I have Windows VM machine virtualized from physical machine via virtio.
I had to reduce lvm size to 1TB because I use 2TB disk for migrating (physical server is only 1TB)
When I tried to use fstrim how can I think there is error.
I had to reduce lvm size to 1TB because I use 2TB disk for migrating (physical server is only 1TB)
There is one problem...I had about 600GB cams recording in the server, so I delete it and server has only 200GB/1000GB filled. But system still see 80% used capacity. E.g if backup of this machine has about 700GB instead 150GB. How can I clean this space?root@pve1:/dev/disk# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data pve twi-aotz-- 1.67t 46.97 1.93
root pve -wi-ao---- 96.00g
swap pve -wi-ao---- <7.53g
vm-100-disk-1 pve Vwi-aotz-- 1000.00g data 80.34
I think I need to use fstrim, but I don`t know how.--- Logical volume ---
LV Path /dev/pve/vm-100-disk-1
LV Name vm-100-disk-1
VG Name pve
LV UUID 5XDIJk-yljE-muc5-q9jW-NK7X-h0M5-ImYKoO
LV Write Access read/write
LV Creation host, time pve1, 2023-12-21 23:56:27 +0100
LV Pool name data
LV Status available
# open 1
LV Size 1000.00 GiB
Mapped size 80.34%
Current LE 256000
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:7
When I tried to use fstrim how can I think there is error.
How can I need to use fstrim correctly?root@pve1:/# fstrim /dev/pve/vm-100-disk-1
fstrim: /dev/pve/vm-100-disk-1: not a directory