Re: [qubes-users] How to trim AppVm's data to match the correct size inside?

2016-10-09 Thread 8c36b1b85a745a25508d01ced9335bef7a1e4ed1
On Sunday, October 9, 2016 at 2:54:11 PM UTC, yaqu wrote:
> On Sun, 9 Oct 2016 06:19:47 -0700 (PDT),
> 8c36b1b85a745a25508d01ced9335bef7a1e4ed1 <necroku...@gmail.com> wrote:
> 
> > I have delete a lot of big datas on one of my appvm, but the problem
> > is the size doesn't change eventhough 'df -h' in the appvm shows that
> > the user's data already decreased. Qubes-Manager and dom0 still
> > recognised its size with the old values. How can i proceed to
> > decrease it? 
> 
> Procedure should be similar to compacting templates:
> https://www.qubes-os.org/doc/fedora-template-upgrade-21/#compacting-the-upgraded-template
> 
> Inside VM fill unused space on private.img with zeros:
> 
> [user@untrusted ~]$ dd if=/dev/zero of=/home/user/zero
> [user@untrusted ~]$ rm /home/user/zero
> 
> And then copy image in dom0:
> 
> [user@dom0 ~]$ qvm-shutdown --wait untrusted
> [user@dom0 ~]$ cd /var/lib/qubes/appvms/untrusted/
> [user@dom0 ~]$ cp --sparse=always private.img private.img.new
> [user@dom0 ~]$ mv private.img.new private.img
> 
> But I have just noticed, that after removing big files in appvm, its
> private.img has been automagically compacted, without using this
> procedure. Tested on R3.2 and fedora23-based appvm.
> 
> -- 
> yaqu

Excellent, it's working. Thanks for your answer. I skipped the dd part since I 
already delete big files before that and its still works.

-- 
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 qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/1945f553-44e0-4d1d-87db-c3ff0e3ba145%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[qubes-users] How to trim AppVm's data to match the correct size inside?

2016-10-09 Thread 8c36b1b85a745a25508d01ced9335bef7a1e4ed1
I have delete a lot of big datas on one of my appvm, but the problem is the 
size doesn't change eventhough 'df -h' in the appvm shows that the user's data 
already decreased. Qubes-Manager and dom0 still recognised its size with the 
old values. How can i proceed to decrease it? 

-- 
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 qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/e35b6885-494b-43b8-96f4-1843f915088c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.