I'm running into the same issue, but in my case I (think I) cannot use the solution mentioned by
@ph0x since I only have a single SSD which contains everything (default Proxmox installation on single disk (RAID0) ZFS).
So I cloned the disk using Clonezilla, which actually worked pretty well (as in, system boots and PVE runs fine). Except for sda3 still being the old smaller size (new disk is 480GB):
Code:
root@node1:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 447,1G 0 disk
├─sda1 8:1 0 1007K 0 part
├─sda2 8:2 0 512M 0 part
└─sda3 8:3 0 232,4G 0 part
So the instructions on growing the rpool are pretty straightforward, but that will only work if the *partition* has the required size beforehand, right?
Is there any way to enlarge a ZFS *partition*? If not, what's the way to go if I don't want to (or can't) re-install the entire system?
Thinking ahead, would the following work?
1. Add second disk of same size (luckily I still have one)
2. Clone only sda1 and sda2 (since I'm booting straight to systemd via UEFI, no need to worry about GRUB)
3. Boot PVE from original SSD
4. Use fdisk(?) to create new partition sdb3, size 430G (to allow for a swap partition in the remaining free space in the future)
5. Create rpool on sdb3, full size
6. Copy data from sda3 to sdb3 (via zfs send/receive? -> suggested elswhere)
7. Shut down system
8. Swap SSD's
9. Cross fingers
10. Boot system
Also, when I run gdisk (tried that in my quest to find a way to enlarge the partition) on the cloned partition, I get the following error:
Code:
root@node1:~# gdisk /dev/sda3
GPT fdisk (gdisk) version 1.0.3
Caution: invalid main GPT header, but valid backup; regenerating main header
from backup!
Caution! After loading partitions, the CRC doesn't check out!
Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
on the recovery & transformation menu to examine the two tables.
Warning! One or more CRCs don't match. You should repair the disk!
Partition table scan:
MBR: not present
BSD: not present
APM: not present
GPT: damaged
Found invalid MBR and corrupt GPT. What do you want to do? (Using the
GPT MAY permit recovery of GPT data.)
1 - Use current GPT
2 - Create blank GPT
Your answer:
Not sure what to do here... I'm tempted to choose 'Create blank GPT' in the hopes it will allow me to expand the partition size, but a) I might loose all data (?) and b) this might not work anyway?