This is my root volume, it is 32GB and contains /boot, and on LVM LV's are / and swap.
sdb 8:16 0 29.8G 0 disk ├─sdb1 8:17 0 200M 0 part /boot/efi ├─sdb2 8:18 0 256M 0 part /boot └─sdb3 8:19 0 29.4G 0 part ├─AntergosVG-AntergosRoot 254:0 0 26.4G 0 lvm / └─AntergosVG-AntergosSwap 254:1 0 3G 0 lvm [SWAP]
I want to clone this onto a larger SSD. Is the following the correct procedure? I will be using another computer so my original computer won't have both old and new disks inside it at the same time
- dd, where if=old_ssd and of=new_ssd
- Increase the size of partition sdb3 (LVM PV) to fill up the new space using gparted
- Boot into the new system, the use lvresize to expand AntergosRoot to the entire space of the newly resized PV
- Resize the (ext4) filesystem of / to the entire space of the previously resized LV
My main problem is I don't know which commands to use, and secondly, when resizing the LV AntergosRoot, will the swap volume cause it to become non-contiguous?