Difference between revisions of "Zfs resize disk"

From UVOO Tech Wiki
Jump to navigation Jump to search
Line 1: Line 1:
Expand disk in Vsphere or qemu-img
+
Expand disk in Vsphere or qemu-img then
 +
 
 +
```
 +
echo 1 | sudo tee /sys/class/block/sdb/device/rescan
 +
```
  
 
```
 
```

Revision as of 01:47, 11 November 2021

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