Upgrading Disks to bigger ones in zfs raid

stefluik

Member
Jan 20, 2021
13
0
6
57
Hello I just changed my disks with bigger ones. I just want to communicate, which commands I needed.
This is made with Ubuntu 20.04. I think, this will also work on similar linux systems.

Upgrade disk in zfs raid ( for each disk):
change disk (old disk is going offline, raid is going degraded)
replace disk: zpool replace data 'old-name(find in zpool status)' 'new-name(in /dev/disk/by-id/)'
check in zfspool status
sync
check fs size with df -h

That's enough
Stefan
 
In theory yes. Maybe you also need to set the autoexend zpool property, but you have to try.

If you're already running PVE, just create a new VM with two disks, install PVE inside of it and play around with disk resizing until you're familiar with everything. Then proceed to your live system.