Re: [vserver] hashify cleanup

From: JF Straeten <jfstraeten_at_scarlet.be>
Date: Sat 10 Apr 2010 - 16:36:56 BST
Message-ID: <20100410153656.GA16030@hermes.jfs.dt>

On Sat, Apr 10, 2010 at 05:18:48PM +0200, Eugen Leitl wrote:

> Do I have to call
>
> find /vservers/.hash -type f -links 1 -exec rm -v '{}' ';'
>
> after every hashify?

You can, but it's not mandatory.

It depends, of course, of the frequency at which you modify your
VServers, but calling that command once a week by crontab should be a
reasonable setting.

> It doesn't seem to free anything in the filesystem.

Simply run it without the "-exec" part, to see if the command find
anything.

If it prints nothing, it means that all hashed files have more than
one link, so they are linked to some VServer (and should obviously not
be removed...).

> If yes, does this work with the Debian vserver layout?

Yes, providing you give the right path for your VServers repo, i.e.
your VServers have to be in /vservers in the used command above.
Substitue as apropriate.

Hih,

-- 
JFS.
Received on Sat Apr 10 16:37:09 2010
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Sat 10 Apr 2010 - 16:37:10 BST by hypermail 2.1.8