Solved Migratng a ZFS installation to new disk

zpool set autoexpand=on tank

That's all, it should automatically balloon to the size of the partition.
I ran zpool set autoexpand=on zroot (I presume that was correct in my case)

df -h shows the same as it did before, ie 273G on zroot/ROOT/default.

zpool list shows EXPANDSZ 632G

Is that to be expected?
 
I asked ChatGPT:-

zpool set autoexpand=on zroot not working


1. What​


  • It does NOT immediately resize existing vdevs
  • It only allows a vdev to grow after the underlying block device grows
  • Expansion happens when ZFS detects a size change, or when you explicitly tell it to

So setting the property alone does nothing until the disk itself is larger and ZFS is told to rescan.
 
I asked ChatGPT:-




1. What​


  • It does NOT immediately resize existing vdevs
  • It only allows a vdev to grow after the underlying block device grows
  • Expansion happens when ZFS detects a size change, or when you explicitly tell it to

So setting the property alone does nothing until the disk itself is larger and ZFS is told to rescan.
Not exactly sure what that means but it will probably sort itself out.

The main thing is that I my original installation on a bigger disk.

Many thanks for your help.
 
I asked ChatGPT:-




1. What​


  • It does NOT immediately resize existing vdevs
  • It only allows a vdev to grow after the underlying block device grows
  • Expansion happens when ZFS detects a size change, or when you explicitly tell it to

So setting the property alone does nothing until the disk itself is larger and ZFS is told to rescan.

I consider that AI slop. Note how in point 3 it doesn't say how you explicitly tell it to. You don't.

I expanded a zpool just recently.
 
You should be able to zpool attach a USB disk and zpool split when mirroring is complete.
I ran zpool set autoexpand=on zroot (I presume that was correct in my case)

df -h shows the same as it did before, ie 273G on zroot/ROOT/default.

zpool list shows EXPANDSZ 632G

Is that to be expected?
zpool online -e zroot device_name will finish the job.
 
What exactly did you do?
I followed what I got from ChatGPT when I typed:-

zpool set autoexpand=on zroot not working

Some of the instructions were as follows (designed for Linux users):-

zpool get autoexpand zroot

zpool online -e zroot /dev/sdX

parted /dev/sdX
resizepart N 100%

zpool online -e zroot /dev/sdXN

zpool list
zfs list

zpool status zroot
zpool get autoexpand zroot
lsblk
zpool list


I got there in the end by trying them out.
I'm very new to all this so just used this as an exercise to familiarise myself with these terms
 
Back
Top