Re: [vserver] Copy-on-write Hard Links, Shared Libraries, Prelink and Memory

From: Eugen Leitl <eugen_at_leitl.org>
Date: Wed 09 Jun 2010 - 17:08:27 BST
Message-ID: <20100609160826.GE1964@leitl.org>

On Wed, Jun 09, 2010 at 05:01:12PM +0100, Gordan Bobic wrote:

> >Can you cut& paste the exact rm command you use?
>
> He did. The find command execs 'rm -f' on all the files it finds that
> have a hard link count of 1. Or am I misunderstanding your question?

Oh, so

find /var/lib/vservers/.hash -type f -links 1 -exec rm -v '{}' ';'

does it for Debian, then. I thought I was missing something.

Below did strike as a bit much space for 253 barebone guests.

beryllium:~# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 73742752 42989868 27006932 62% /
tmpfs 2031656 0 2031656 0% /lib/init/rw
udev 10240 692 9548 7% /dev
tmpfs 2031656 0 2031656 0% /dev/shm

Is there a way to verify the symlinks are actually there? I don't
see them in the filesystem explicitly. Does the kernel hide it?

-- 
Eugen* Leitl leitl http://leitl.org
______________________________________________________________
ICBM: 48.07100, 11.36820 http://www.ativel.com http://postbiota.org
8B29F6BE: 099D 78BA 2FD3 B014 B08A  7779 75B0 2443 8B29 F6BE
Received on Wed Jun 9 17:09:06 2010
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 09 Jun 2010 - 17:09:09 BST by hypermail 2.1.8