2021年1月25日 星期一

Migrate Ubuntu 20.04 on ZFS from 1TB SSD to 2TB SDD

1. Use "gdisk -l /dev/nvme0n1" to list out current partitions.

2. Create an Ubuntu 20.04 LiveUSB and also create a Clonezilla LiveUSB.

3. Boot system from Clonezilla LiveUSB and use it to copy partitions on current 1TB SSD that needs to be preserved. For my case, they are nvme0n1p0 (EFI), nvme0n1p5 (bpool) & nvme0n1p6 (rpool).

4. Install new 2TB SSD into system (remember to disconnect battery while replacing SSD).

5. Boot system from Ubuntu LiveUSB and create partitions that listed from step 1.

6. Boot system from Clonezilla LiveUSB and restore the reserved partitions image.

7. Boot system from Ubuntu LiveUSB and open a Terminal session.

8. On Terminal, import rpool first, "sudo zpool import -d /dev/nvme0n1p6 -R /mnt rpool"

9. Then import bpool, "sudo zpool import -d /dev/nvme0n1p5 -R /mnt bpool"

沒有留言: