If you just have a simple setup with a single zdev that you want to allocate all the space to (which is usually the case), the easiest way is as follows:
- Place an upgrade order
- Wait for us to confirm the upgrade has been carried out
- SSH into your server (or use the VNC console)
- Verify you can see the extra space with
gpart list
(you should seestate: CORRUPT
near the top which we will sort in a moment, and underConsumers:
you should see thatda0
has aMediasize
representing your new chosen size -- your ZFS partitionda0p3
underProviders:
does not yet use all of this space, and we'll sort this in a moment too) - Update the the GPT to match the new disk size with
gpart recover /dev/da0
(you should seestate: OK
near the top now) - Expand the ZFS partition with
gpart resize -i 3 /dev/da0
(you should seeda0p3 resized
) - Verify the ZFS partition expanded correctly with
gpart list
(you should see your ZFS partitionda0p3
underProviders:
has expanded to use most of your drive -- minus the amount used by your swap partition, usuallyda0p2
) - Expand your zpool to use the full space of the resized partition with
zpool online -e zroot da0p3
- Verify your new space is available to your ZFS datasets with
zfs list