I have a home media server with 2 x 3TB drives in it. Its currently set up using mdraid (1), LVM and EXT4. The setup was done using the ncurses Ubuntu Server installer.
Convert the setup to use ZFS (RAIDZ) and add a 3rd 3TB drive. I want to enable on-the-fly compression and deduplication. The conversion should not require a reinstall of Ubuntu and all the packages. There should be no data loss (unless a disk crashes during the process of course).
How do i do this?
Bonus question, is it better to do this using btrfs, because as i understand it i can initialize the array with one disk, copy the data over and then add the second disk with btrfs but not with zfs?
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] md4 : active raid1 sdb2 sda2 2930070069 blocks super 1.2 [2/2] [UU] unused devices: <none>
my pvs -v
Scanning for physical volume names PV VG Fmt Attr PSize PFree DevSize PV UUID /dev/md4 Data lvm2 a- 2,73t 0 2,73t MlZlTJ-UWGx-lNes-FJap-eEJh-MNIP-XekvvS
my lvs -a -o +devices
LV VG Attr LSize Origin Snap% Move Log Copy% Convert Devices Data Data -wi-ao 2,68t /dev/md4(13850) Swap Data -wi-ao 7,54g /dev/md4(11920) Ubuntu Data -wi-ao 46,56g /dev/md4(0)