Migrate drives
HDD to SDD
List drives name
Identify source and destination (e.g. /dev/sata1, /dev/sata2)
Clone bit by bit using the block information got from command above (e.g. 512 byte):
Remove from an SHR/RAID1 array
Note: SHR is just an extra layer (LVM) on top of standard Linux-RAID (MD); so the commands below are simply based on this last one.
Let's say you have 2 drives in SHR/RAID1
List all the RAID arrays and volumes
Storage Manager -> Deactivate one of them (e.g.
/dev/sata2
); otherwise you can also do the following:For each RAID array (e.g.
/dev/md0
,/dev/md1
,/dev/md2
)Fail and remove the drive from that array, e.g.:
For each RAID array (e.g.
/dev/md0
,/dev/md1
,/dev/md2
)Resize that array to just 1 drive, e.g:
Convert ext4 to btrfs
At the time being I didn't manage to convert an ext4 drive entirely to btrfs. Feel free to raise a pull-request for any suggestion/idea.
Backup & restore (entire system)
Note: this procedure is only theoretical, didn't worked!
Backup the entire system to C2
Power off and replace the old ext4 with a spare new drive
Start the NAS and delete the old volume, create the new one with btrfs
Restore the system (took 5 days for 2TB, e.g.)
In-place conversion
Ideally this should be the best & fastest option.
Plug the ext4 drive into a Linux system with mdadm package
Get the ext4 partition name, i.e. using partitionmanager (e.g.
/dev/vg1000/lv
)sudo e2fsck -fvy /dev/vg1000/lv
sudo btrfs-convert /dev/vg1000/lv
(Optional) remove the ext2 backup image & balance, see documentation
Unfortunately at the time being, you get the following error, most probably because of a bug on large size partitions..
See also: btrfs-convert
References
Last updated