Questions upgrading a mdadm RAID1 array

the rsync has finished… but perhaps not 100% successfully?

          7.39T 100%  151.61MB/s   12:54:37 (xfr#328614, to-chk=0/360669)

sent 7.39T bytes  received 6.45M bytes  159.01M bytes/sec
total size is 7.39T  speedup is 1.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1330) [sender=v3.2.3]

Not sure where I’d find the “previous errors” if I wasn’t watching the file transfer the whole time, but it looks like I need to do a compare/diff. Is one way to address this to rerun the rsync command to see what changes it tries (and fails) to make?

Hmm, I think so… Looks like the only error was related to the root locked lost+found:

$ rsync -avhH --info=progress2 /data/raid1/* /data/st18raid/
sending incremental file list
              0   0%    0.00kB/s    0:00:00 (xfr#0, ir-chk=1018/360606)
rsync: [sender] opendir "/data/raid1/lost+found" failed: Permission denied (13)
              0   0%    0.00kB/s    0:00:00 (xfr#0, to-chk=120/360669)rsync: [generator] failed to set times on "/data/st18raid/lost+found": Operation not permitted (1)
              0   0%    0.00kB/s    0:00:00 (xfr#0, to-chk=5/360669)  
lost+found/
              0   0%    0.00kB/s    0:00:00 (xfr#0, to-chk=0/360669)

sent 12.14M bytes  received 34.51K bytes  8.12M bytes/sec
total size is 7.39T  speedup is 606,762.52
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1330) [sender=v3.2.3]

… so nothing to worry about, as I’m pretty sure that folder is created on every drive format. I guess I could have run the rsync with sudo or figured out how to add a folder exclusion… but not worried about it for that specific folder (which is empty anyway).

yeah, I don’t think sudo is always the best answer… seems pretty easy to add an exclusion…

$ rsync -avhH --exclude 'lost+found' --info=progress2 /data/raid1/* /data/st18raid/
sending incremental file list
              0   0%    0.00kB/s    0:00:00 (xfr#0, to-chk=0/360668)   

sent 12.14M bytes  received 34.51K bytes  8.12M bytes/sec
total size is 7.39T  speedup is 606,765.91

Yay, no errors! :+1:


I thought I’d go for a second opinion and using freefilesync (which probably uses rsync) found all things were “equal”… sometimes it’s nice to have a great interactive visual.


Seeing as all data appears to have been successfully migrated, I see my only remaining tasks as being:

  1. edit /etc/fstab to remove/rem the old array mounting
  2. optionally remove my /data/raid1 mountpoint for it (certainly doesn’t take much space)
  3. edit /etc/mdadm.conf to remove/rem the old array
  4. run mkinitcpio -P
  5. remove the old drives (or simply detach their power cable)
1 Like

Sometimes errors are not even due to non-transfers, but also because of incompatible ACLs or xattrs. A second pass will usually clue you in, and you can even opt for a log file as well (specified by the rsync command itself.)

lost+found is for EXT4 filesystem, where it creates “recovered” files after an fsck pass, whenever applicable. These recovered files are usually corrupt, and removed from the proper filesystem. I’ve never, ever found a single thing inside lost+found in all the time I’ve used EXT4.


UPDATE:

Looks like it doesn’t use rsync.

1 Like

Yah, maybe that’s why it’s symlink handling options sounded weird/confusing, and I don;t think it has an option for hardlinks, so I rely on rsync for those and just use freefilesync for drive/folder compares; which it seems to do a great job at.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.