I have two new 8TB drives that will be replacing older 2TB drives in my NAS. The drive labels of the old drives are the location of the drives in the bays, so I want the new drives to use the same labels. What is the best way to accomplish this? I tried this a few weeks ago and ended up having to reinstall OMV because I must have forgotten or not known the proper way to clean up references to the old drives.
My assumption is that I would:
1) Physically install the new drive and create an ext4 filesystem, use a temporary label
2) Rsync the data from the old drive to the new (rsync -avxHAWX --numeric-ids --info=progress2 /srv/olddisk /srv/newdisk ???)
3) Remove the old drive from the mergerfs pool, remove shared folders and any other references
4) Unmount old drive, physically remove it from case
5) Mount new drive, boot OMV, still has old label
6) Use e2label to re-name drive to "proper" label
7) Add drive to mergerfs pool
I also use SnapRAID, but it will detect the new UUID on the first scan and should be no problem.
Is there something I am missing? Does fstab need to be edited manually, and if so, in what way? I'm a Linux beginner.