Hi, I have installed ProxMox 6.1 on mirrored pool with systemd-boot. I wanted to migrate to bigger single disk but I think I screwed up the sequence of operations. This is what I have done so far:
- Initial state:
- mirrored rpool 2x250GB
- autoexpand=off
- Executed operations:
- dd one of the pooled disks to the new 400GB disk (I used dd instead of attaching the disk to the pool in order to avoid screwing the creation of new partition table and avoid copying bootloader and risk not booting system.)
- remove the 2x250GB disks from the system
- The rpool was in degraded state. I have removed the missing disk with zpool detach rpool /dev/<old_disk>
- set autoexpand=on
- zpool online -e rpool /dev/nvme (I have tried this when the disk is mounted and from live image - no effect)
- Current disk status
- the system boots and works normally.
- rpool is still shown with the size of the old 250GB disks
Any idea how to expand the pool to the full disk size without creating mirror pool and reshuffling the data?
Thanks.
zdb output:
- Initial state:
- mirrored rpool 2x250GB
- autoexpand=off
- Executed operations:
- dd one of the pooled disks to the new 400GB disk (I used dd instead of attaching the disk to the pool in order to avoid screwing the creation of new partition table and avoid copying bootloader and risk not booting system.)
- remove the 2x250GB disks from the system
- The rpool was in degraded state. I have removed the missing disk with zpool detach rpool /dev/<old_disk>
- set autoexpand=on
- zpool online -e rpool /dev/nvme (I have tried this when the disk is mounted and from live image - no effect)
- Current disk status
- the system boots and works normally.
- rpool is still shown with the size of the old 250GB disks
Code:
zpool list rpool
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
rpool 236G 51.6G 184G - - 43% 21% 1.00x ONLINE -
Any idea how to expand the pool to the full disk size without creating mirror pool and reshuffling the data?
Thanks.
zdb output:
Code:
rpool:
version: 5000
name: 'rpool'
state: 0
txg: 2900932
pool_guid: 1410778047723683399
errata: 0
hostid: 893736543
hostname: 'hyper-convergence'
com.delphix:has_per_vdev_zaps
vdev_children: 1
vdev_tree:
type: 'root'
id: 0
guid: 1410778047723683399
create_txg: 4
children[0]:
type: 'disk'
id: 0
guid: 9306575638810125867
path: '/dev/nvme1n1p3'
whole_disk: 0
metaslab_array: 256
metaslab_shift: 31
ashift: 12
asize: 255517786112
is_log: 0
DTL: 282
create_txg: 4
expansion_time: 1585472028
com.delphix:vdev_zap_leaf: 131
com.delphix:vdev_zap_top: 129
features_for_read:
com.delphix:hole_birth
com.delphix:embedded_data