On 4/8/19 11:24 AM, unman wrote:
On Mon, Apr 08, 2019 at 10:30:23PM +1000, haaber wrote:
Dear qubes-users,
is there a comprehensive way how to down-size a (template) VM ? Let us
assume, that a df shows the template uses 9.2G as root volume. Assume
further that for some reason I had temporarily increased the root vol to
15 or 20G. But, say 11G (even 10G) should suffice, right? So how to
downsize a template carefully? Cheers,
Given that templates are also provisioned as thin-pools, why do you want to do
this?
I mean, why bother?
Yes. My advice is to remove what you don't need, then do an 'fstrim -a'.
The volume's virtual size will of course stay the same, but the
allocated size will reduce to only what is used by the template.
Controlling the virtual size of private volumes is more of an issue,
IMO, because they see a lot more varied use than root volumes and
space-hungry apps in many vms can result in a surprising amount of disk
usage. You can keep on top of this by viewing disk usage in Qube
Manager, and investigate a vm using an allocation grapher like filelight
or baobab.
OTOH, if you really need to reduce a volume's virtual size then its
possible by attaching a volume to a non-networked dispvm, running
'resize2fs' in the dispvm, then using 'qvm-volume resize --force
vm:volume size' in dom0.
--
Chris Laprise, [email protected]
https://github.com/tasket
https://twitter.com/ttaskett
PGP: BEE2 20C5 356E 764A 73EB 4AB3 1DC4 D106 F07F 1886
--
You received this message because you are subscribed to the Google Groups
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/qubes-users/440efe34-0791-9cca-8443-627f612a57e7%40posteo.net.
For more options, visit https://groups.google.com/d/optout.