From: Marco Gaiarin <gaio@lilliput.linux.it>
To: Arjen via pve-user <pve-user@lists.proxmox.com>
Cc: pve-user@lists.proxmox.com
Subject: Re: [PVE-User] Force reclaiming space on a vdisk...
Date: Fri, 21 Jan 2022 11:03:13 +0100 [thread overview]
Message-ID: <vvcqbi-gqb.ln1@hermione.lilliput.linux.it> (raw)
In-Reply-To: <mailman.129.1642678747.436.pve-user@lists.proxmox.com>; from SmartGate on Fri, Jan 21, 2022 at 12:06:01PM +0100
Mandi! Arjen via pve-user
In chel di` si favelave...
> When discard is enabled on the virtual disk and also the OS inside the VM executes trim commands for deleted data, then it should inform ZFS that the blocks are free. Marking blocks as usused will not work without the help of the OS inside the VM.
OK. So, speking practically:
a) i've do the wrong things, deleting the partitions, because the guest OS
had not the opportunity to reclaim free space; because trim/discard need
the cooperation of all the 'chain', probably it was needed to delete all the
file in the partition, the trim them, then delete them.
b) if the guest OS does not support trim, or support wrongly/buggy, the same
result will be achieved (creating and) zeroing the partition, if
conpression are enabled. This does not involve trim/discard, but only
compression, acheving the same result indeed.
> Was trimming enabled for the OS inside the VM? Otherwise, you need to create a partition and trim it inside the VM.
Guest os support fstrim, so i'll try a).
Thanks.
--
Con Windows sei in vacanza: ti diverti senza pensare a ciò che fai,
ma dopo un po' finisce. In Linux entri nella vita reale:
Devi tirar fuori le palle! (Alain Modolo)
next prev parent reply other threads:[~2022-01-21 11:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-19 8:19 Marco Gaiarin
2022-01-19 8:49 ` Daniel Plominski
2022-01-20 10:47 ` Marco Gaiarin
[not found] ` <qmMMMDznVErHvtLDASvXi93ArFgsrEDwDgYRRb1tvWRv7rmQTETQI8owpr6NthnRc4Ti1mgm4XjK-QciST-hyaWdPwjq2OpIc_7yEM5_b0Q=@protonmail.ch>
2022-01-20 12:23 ` Daniel Plominski
[not found] ` <mailman.129.1642678747.436.pve-user@lists.proxmox.com>
2022-01-21 10:03 ` Marco Gaiarin [this message]
2022-01-25 10:44 ` Marco Gaiarin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=vvcqbi-gqb.ln1@hermione.lilliput.linux.it \
--to=gaio@lilliput.linux.it \
--cc=pve-user@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox