essinghigh
Dabbler
- Joined
- Feb 3, 2023
- Messages
- 19
Hi all, have been searching for some information on this for a fair while and am starting to go a little insane trying to wrap my head around zfs documentation
I have a zvol for a Debian VM - mediasrv-35uf3. This is a sparse volume - so should only consume what it's using as far as I am aware. Total size is set at 5TiB.
root@truenas[~]# zfs list | grep media
Big Data/Virtual Machines/mediasrv-35uf3 1.70T 13.8T 1.70T -
root@truenas[~]#
I can see that 1.70T is used when checking the output of `zfs list`, however this is not reflected inside of the VM - I'm using considerably less.
Filesystem Size Used Avail Use% Mounted on
udev 3.9G 0 3.9G 0% /dev
tmpfs 794M 536K 793M 1% /run
/dev/vda2 5.0T 57G 4.7T 2% /
tmpfs 3.9G 4.0K 3.9G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/vda1 511M 9.8M 502M 2% /boot/efi
tmpfs 794M 0 794M 0% /run/user/1000
Disk /dev/vda: 5 TiB, 5497558138880 bytes, 10737418240 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 0F233894-9A6A-4245-A7E1-C5FA54CBAC7E
Device Start End Sectors Size Type
/dev/vda1 2048 1050623 1048576 512M EFI System
/dev/vda2 1050624 10735319039 10734268416 5T Linux filesystem
/dev/vda3 10735319040 10737416191 2097152 1G Linux swap
root@mediasrv:~# fstrim / -v
/: 463.3 MiB (485847040 bytes) trimmed
In reality, I'm using about 60G, but I cannot figure out for the life of me why this would not be represented in the sparse volume. I don't have any snapshots etc that may be using space. I believe at one point I would have been using 2TiB, so possible that it's expanding because of this usage and then not reclaiming the space after it has been freed inside of the VM?
VM Disk Config: Mode=VirtIO , Disk Sector Size=Default
Zvol Config: Size=5.00TiB , Sync=Standrd , Compression=lz4 , Deduplication=Off , Read-only=off , Snapdev=hidden
Is this normal? Is there a way for me to reclaim this space?
Thanks in advance for any help.
I have a zvol for a Debian VM - mediasrv-35uf3. This is a sparse volume - so should only consume what it's using as far as I am aware. Total size is set at 5TiB.
root@truenas[~]# zfs list | grep media
Big Data/Virtual Machines/mediasrv-35uf3 1.70T 13.8T 1.70T -
root@truenas[~]#
I can see that 1.70T is used when checking the output of `zfs list`, however this is not reflected inside of the VM - I'm using considerably less.
Filesystem Size Used Avail Use% Mounted on
udev 3.9G 0 3.9G 0% /dev
tmpfs 794M 536K 793M 1% /run
/dev/vda2 5.0T 57G 4.7T 2% /
tmpfs 3.9G 4.0K 3.9G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/vda1 511M 9.8M 502M 2% /boot/efi
tmpfs 794M 0 794M 0% /run/user/1000
Disk /dev/vda: 5 TiB, 5497558138880 bytes, 10737418240 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 0F233894-9A6A-4245-A7E1-C5FA54CBAC7E
Device Start End Sectors Size Type
/dev/vda1 2048 1050623 1048576 512M EFI System
/dev/vda2 1050624 10735319039 10734268416 5T Linux filesystem
/dev/vda3 10735319040 10737416191 2097152 1G Linux swap
root@mediasrv:~# fstrim / -v
/: 463.3 MiB (485847040 bytes) trimmed
In reality, I'm using about 60G, but I cannot figure out for the life of me why this would not be represented in the sparse volume. I don't have any snapshots etc that may be using space. I believe at one point I would have been using 2TiB, so possible that it's expanding because of this usage and then not reclaiming the space after it has been freed inside of the VM?
VM Disk Config: Mode=VirtIO , Disk Sector Size=Default
Zvol Config: Size=5.00TiB , Sync=Standrd , Compression=lz4 , Deduplication=Off , Read-only=off , Snapdev=hidden
Is this normal? Is there a way for me to reclaim this space?
Thanks in advance for any help.