Re: [Users] root.hds size issue

2020-05-25 Thread Konstantin Bukharov
Hello all,

Another option is to call ploop balloon discard directly.

>From 'man ploop':

   balloon discard  

 


 
   In a situation when a lot of disk space were freed on an in-ploop 
filesystem, use ploop balloon discard to optimize the ploop image size. 



 
   ploop balloon discard [--automount] [--to-free size] [--min-block 
min_size] [--defrag] DiskDescriptor.xml 



 
   Iteratively try to relocate and discard unused blocks from a ploop 
image, reducing its size.   
   


 
   Note that ploop device and its inner file system should be mounted.  If 
not, one can use --automount option to automatically mount ploop for the 
duration 
   of the operation.

 


 
   Option --defrag can be used to run a filesystem defragmentation utility 
(currently e4defrag2 on ext4 only) before the main operation.   
  


 
   Option --to-free can be used to specify a maximum disk space to be 
freed. In other words, stop the process once  freed  space  exceeded  requested 
 size. 
   Default is 0, meaning to try to free as much space as possible.  

 


 
   Option  --min-block can be used to specify a minimum size of an extent 
to free. The smallest possible extent is 1 cluster (currently 1 MB), one can 
spec‐ 
   ify higher value to speed up the whole discarding operation. 

 


 
   Note that the same functionality is available by means of vzctl compact 
command.
  


 

Best regards,
Konstantin

-Original Message-
From: users-boun...@openvz.org  On Behalf Of Vasily 
Averin
Sent: Monday, May 25, 2020 9:52 AM
To: users@openvz.org
Subject: Re: [Users] root.hds size issue

Dear Oleksiy,

please use pcompact:

pcompact(8) System Manager's Manualpcompact(8)

NAME
   pcompact - utility for compacting Container virtual disks

SYNOPSIS
   pcompact [-v] [-n] [-s] [-t timeout[s|m|h]] [-DfR]

DESCRIPTION
   Remove unused blocks from Container virtual disks, increasing free disk
   space on the server

Thank you,
Vasily Averin

On 5/23/20 2:30 AM, Oleksiy Tkachenko wrote:
> root.hds CTs file took more (much more) space that shown in df -H.
> Is there way to reduce real size?
> 
> I tried to run "prl_disk_tool compact --hdd" but it seems not really helped 
> with that.
> 
> For example, one CT has 30Gigs in size but its root.hds tooks 150Gigs.
> 
> ___
> Users mailing list
> Users@openvz.org
> https://lists.openvz.org/mailman/listinfo/users
> 
___
Users mailing list
Users@openvz.org
https://lists.openvz.org/mailman/listinfo/users
___
Users mailing list
Users@openvz.org
https://lists.openvz.org/mailman/listinfo/users


Re: [Users] root.hds size issue

2020-05-24 Thread Vasily Averin
Dear Oleksiy,

please use pcompact:

pcompact(8) System Manager's Manualpcompact(8)

NAME
   pcompact - utility for compacting Container virtual disks

SYNOPSIS
   pcompact [-v] [-n] [-s] [-t timeout[s|m|h]] [-DfR]

DESCRIPTION
   Remove unused blocks from Container virtual disks, increasing free disk
   space on the server

Thank you,
Vasily Averin

On 5/23/20 2:30 AM, Oleksiy Tkachenko wrote:
> root.hds CTs file took more (much more) space that shown in df -H.
> Is there way to reduce real size?
> 
> I tried to run "prl_disk_tool compact --hdd" but it seems not really helped 
> with that.
> 
> For example, one CT has 30Gigs in size but its root.hds tooks 150Gigs.
> 
> ___
> Users mailing list
> Users@openvz.org
> https://lists.openvz.org/mailman/listinfo/users
> 
___
Users mailing list
Users@openvz.org
https://lists.openvz.org/mailman/listinfo/users


[Users] root.hds size issue

2020-05-22 Thread Oleksiy Tkachenko
root.hds CTs file took more (much more) space that shown in df -H.
Is there way to reduce real size?

I tried to run "prl_disk_tool compact --hdd" but it seems not really helped
with that.

For example, one CT has 30Gigs in size but its root.hds tooks 150Gigs.
___
Users mailing list
Users@openvz.org
https://lists.openvz.org/mailman/listinfo/users