Increase ssd disk

immer

New Member
Sep 2, 2022
1
0
1
Hello,
Proxmox 6.3.3
We have 2 ssd 450Gb on raid 1 ZFS

We would like to move (increase) to a new SSD 2*1TB with raid 1, and take out the 2*450Gb

I'm totally newbie and after looking for, I don't find a threat to look.



Captura de pantalla 2022-09-02 a las 18.34.19.png
 
Thats not that simple. Didn't tested it but should be something like:
1.) backup everything
2.) remove first disk from pool (zpool detach command)
3.) replace old first disk with new first disk
4.) clone partition table from second disk to first disk and write bootloader to first disk:
Code:
sgdisk <second disk> -R <first disk>
sgdisk -G <first disk>

Then either for systemd boot...:
proxmox-boot-tool format <first disk partition 2>
proxmox-boot-tool init <first disk partition 2>

...or for grub:
grub-install <first disk>
5.) extend third partition on first disk with the partitioning tool of your choice (for example gparted) so it makes use of all the unallocated space. You optionally might want to leave some GBs free for an swap partition
6.) attach the third partition of the first disk to rpool (zpool attach command)
7.) do a resilver and wait for it to finish
8.) remove second disk from pool (zpool detach command)
9.) replace old second disk with new second disk
10.) clone partition table from first disk to second disk and write bootloader to second disk:
Code:
sgdisk <first disk> -R <second disk>
sgdisk -G <second disk>

Then either for systemd boot...:
proxmox-boot-tool format <second disk partition 2>
proxmox-boot-tool init <second disk partition 2>

...or for grub:
grub-install <second disk>
11.) attach the third partition of the second disk to rpool (zpool attach command)
12.) do a resilver and wait for it to finish
13.) optionally create two swap partitions, one on each disk, format it and add it to fstab.


BTW: PVE 6.X is end of life. You should upgrade to PVE 7.2 to be able to receive support and updates. And those old Kingston disks are consumer grade and not recommended for a fast or stable operation with ZFS.
 
Last edited: