Difference between revisions of "Zfs resize disk"
Jump to navigation
Jump to search
Line 20: | Line 20: | ||
+ | ``` | ||
+ | echo 1 | sudo tee /sys/class/block/sdb/device/rescan | ||
+ | zpool get autoexpand zfspv-pool | ||
+ | zpool set autoexpand=on zfspv-pool | ||
+ | |||
+ | ``` | ||
``` | ``` | ||
Line 29: | Line 35: | ||
``` | ``` | ||
− | https://serverfault.com/questions/946055/increase-the-zfs-partition-to-use-the-entire-disk | + | - https://serverfault.com/questions/946055/increase-the-zfs-partition-to-use-the-entire-disk |
+ | - https://serverfault.com/questions/703471/why-isnt-my-zfs-pool-expanding-using-zfs-on-linux |
Revision as of 16:28, 30 May 2022
Expand disk in Vsphere or qemu-img then
echo 1 | sudo tee /sys/class/block/sdb/device/rescan
sudo partprobe -s sudo partprobe lsblk zpool list sudo zpool online -e <POOL NAME> <DEVICE NAME> # zpool online -e mypoolname sdb zpool list # Note: # partprobe - command to inform the OS of partition table changes
https://serverfault.com/questions/946055/increase-the-zfs-partition-to-use-the-entire-disk
echo 1 | sudo tee /sys/class/block/sdb/device/rescan zpool get autoexpand zfspv-pool zpool set autoexpand=on zfspv-pool
sudo partprobe -s sudo parted /dev/sdb rm 9 sudo parted /dev/sdb resizepart 1 100% zpool status -v sudo zpool online -e zfspv-pool sdb