Thanks, But summarizes of that script is this command:
fstrim -v /
# fstrim -v /
fstrim: /: the discard operation is not supported
I try this but give me error:For vm, its posible with qrmy agent:: qm agent vmid fstrim
# qm agent 104 fstrim
No Qemu Guest Agent
root@pve:~# qm set 104 -agent 1
update VM 104: -agent 1
root@pve:~# qm agent 104 fstrim
VM 104 qmp command 'guest-fstrim' failed - got timeout
# yum install qemu-guest-agent
root@pve:~# qm agent 104 fstrim
{
"paths" : [
{
"minimum" : 0,
"path" : "/boot",
"trimmed" : 951955456
},
{
"minimum" : 0,
"path" : "/",
"trimmed" : 17067794432
}
]
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.