My first terabyte drive (/dev/sde) is biting the dust and shall be euthanized soon. I’ll retire the rest of Pool2’s drives at that time and add a new 3.6T drive to Pool1.
The plan is:
- Drop the Samba share associated with Pool2
- Delete Pool2
- Shut down, remove drives sdg, sde, sda, and install the new drive.
- Power up (and hope that sdb is still sdb, since that is my OS)
- In Rockstor, import Pool1 if necessary.
- Verify that shares, Samba shares, and Rockons are still there.
6a. Whine, cry, and crack open a bottle of Aberlour 12yo double barrel if they aren’t there. - Add the new drive to Pool1.
7a. Celebrate by cracking open the aforementioned bottle of Aberlour.
I suspect that when I remove sdg, sde, and sda and insert a new sd that my dear friend Linux will reassign the drive designations. With luck, sdb will still be sdb since that is my OS.
So there’s the rub… I imagine that Linux will reassign drives: sdc and sdf may no longer be sdc and sdf once I remove and add drives. I think btrfs will figure that out and Pool1 will still exist. Am I right? Are there any other “gotchas” that I may need to look out for?
Note 1: Pool2 currently contains backups of certain things on Pool1. I’ve got that functionality covered elsewhere so I am not worried about data loss from Pool2.
Note 2: I’m on Rockstor 4.1.0 and OpenSUSE 5.3.18-150300.59.101-default (patched up as of a few days ago).
NAME MOUNTPOINT LABEL SIZE HOTPLUG FSSIZE FSUSED FSUSE%
sdd 223.6G 0
sdb 232.9G 0
sdb1 2M 0
sdh 1.8T 1
sdb2 /boot/efi EFI 64M 0 63.9M 1.2M 2%
sdf Pool1 3.6T 0
sdc /mnt2/Pool1 Pool1 3.6T 0 3.6T 1.4T 38%
sdg Pool2 465.8G 0
sde /mnt2/Pool2 Pool2 931.5G 0 1.6T 1.2T 75%
sda Pool2 232.9G 0
sdb4 / ROOT 230.8G 0 230.8G 5.3G 2%
sdb3 [SWAP] SWAP 2G 0
sdh1 /mnt/WD2TbExt WD2TbExt 1.8T 1 1.8T 1.2T 67%
btrfs fi show
Label: 'ROOT' uuid: 4ac51b0f-afeb-4946-aad1-975a2a26c941
Total devices 1 FS bytes used 5.33GiB
devid 1 size 230.82GiB used 6.80GiB path /dev/sdb4
Label: 'Pool2' uuid: 3c242b00-dfc5-4aa6-8e9c-5cff96a1c338
Total devices 3 FS bytes used 1.19TiB
devid 1 size 931.51GiB used 814.00GiB path /dev/sde
devid 2 size 232.89GiB used 117.00GiB path /dev/sda
devid 3 size 465.76GiB used 349.02GiB path /dev/sdg
Label: 'Pool1' uuid: 5bb8f2b3-f202-4208-afcf-6770cb4c89a1
Total devices 2 FS bytes used 1.38TiB
devid 1 size 3.64TiB used 1.39TiB path /dev/sdc
devid 2 size 3.64TiB used 1.39TiB path /dev/sdf