/var/lib/vz/[private|root]

2und4zig

New Member
Mar 13, 2010
2
0
1
I wonder why there are two directories with the filesystems of one machine - who can tell me? I need some additional harddisk space.

Jan
 
private holds your openvz containers.
root is for running openvz containers.
i think you don't lose any memory, since it's similar to a bind-mount.
 
private holds your openvz containers.
root is for running openvz containers.
i think you don't lose any memory, since it's similar to a bind-mount.

If I'm not mistaken, that's EXACTLY what it is - a bind-mount.... So it's not using any additional disk space, even though it looks like it.
 
Ah, ok. thanks.
And i see that youre right:

# df -h /dev/mapper/guests-vz
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/guests-vz 148G 47G 94G 34% /var/lib/vz

# du -sh /var/lib/vz
92G /var/lib/vz


Whats the reason? For taking snapshots?