[SOLVED] Stuck trying to expand ZFS boot drive

Rxunique

New Member
Feb 5, 2024
17
0
1
I had a pair of 200gb SSD with ZFS mirror, went through the process to successfully resilvered with a pair of 400GB, made sure each of the new drive can booth the system. But stuck couldn't expand the size.

I follow a couple thread here with export / import method and got data set busy

Code:
root@r730:~# zpool export -f rpool
cannot unmount '/': pool or dataset is busy

I then followed another thread using offline online method, all command executed but no change, see below

Code:
root@r730:~# zpool status rpool
  pool: rpool
 state: ONLINE
  scan: resilvered 1.31M in 00:00:00 with 0 errors on Sat Feb 17 15:12:59 2024
config:

        NAME        STATE     READ WRITE CKSUM
        rpool       ONLINE       0     0     0
          mirror-0  ONLINE       0     0     0
            sda3    ONLINE       0     0     0
            sdb3    ONLINE       0     0     0

errors: No known data errors
root@r730:~# zpool list rpool
NAME    SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
rpool   185G  1.88G   183G        -         -     0%     1%  1.00x    ONLINE  -
root@r730:~# zpool offline rpool sda3
root@r730:~# zpool online -e rpool sda3
root@r730:~# zpool offline rpool sdb3
root@r730:~# zpool online -e rpool sdb3
root@r730:~# zpool list rpool
NAME    SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
rpool   185G  1.88G   183G        -         -     0%     1%  1.00x    ONLINE  -
root@r730:~# zpool get autoexpand rpool
NAME   PROPERTY    VALUE   SOURCE
rpool  autoexpand  on      local


Have I done anything wrong? or is there another method?

PS. auto expand is on from beginning, did it last to log a result here
 
Last edited:
found another post of similar issue, unfortunately not resolved

I used these command

Code:
# sgdisk <healthy bootable device> -R <new device>
# sgdisk -G <new device>
# zpool replace -f <pool> <old zfs partition> <new zfs partition>
# proxmox-boot-tool format <new disk's ESP>
# proxmox-boot-tool init <new disk's ESP>

I just noticed that in offcial PVE doc, I missed [grub] option when executing mine, it still worked, but would this be the cause on a remote chance of not expanding?

Code:
# proxmox-boot-tool init <new disk's ESP> [grub]
 
Enabling autoexpand and a reboot should usually do the trick. Maybe the partitions are not resized yet: what is the output of gdisk -l /dev/sda and gdisk -l /dev/sdb ?
 
  • Like
Reactions: Dunuin

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!