Answer the question
In order to leave comments, you need to log in
How to reduce storage in zpool by the size of the unallocated area?
A small introduction. There was a Hyper-V container 500Gb, using the qm utility in proxmox 5.2, I converted it to a disk in the ZFS pool. In fact, the container uses 200Gb, with the help of gparted I reduced the size to 250Gb. But the disk itself remains 500Gb of course. How can I shrink this drive by the size of the unallocated area?
[email protected]:~# zfs list -t all -r raid
NAME USED AVAIL REFER MOUNTPOINT
raid 1.49T 87.4G 492G /raid
raid/subvol-140-disk-1 1.36G 18.6G 1.36G /raid/subvol-140-disk-1
raid/vm-120-disk-2 516G 106G 497G -
raid/vm-121-disk-1 206G 290G 3.69G -
raid/vm-139-disk-1 309G 250G 147G -
Answer the question
In order to leave comments, you need to log in
I'll answer myself. Because this is volume type
[email protected]:~# zfs get type raid/vm-120-disk-2
NAME PROPERTY VALUE SOURCE
raid/vm-120-disk-2 type volume -
[email protected]:~# zfs get volsize raid/vm-120-disk-2
NAME PROPERTY VALUE SOURCE
raid/vm-120-disk-2 volsize 500G local
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question