From: Nicolas Costes (nicolas.costes_at_iut-laroche.univ-nantes.fr)
Date: Thu 01 Sep 2005 - 16:28:15 BST
Le Jeudi 1 Septembre 2005 14:20, Nicolas Costes a écrit :
> I read the quota articles on the wiki, but nothing seems to apply to my
> case. I'm thinking about a way to do it, but I don't know if that is
> possible :
>
> - Deleting '/dev/mapper/volume1-filesv--home' and
> '/dev/mapper/volume1-filesv--Proj' from the host's fstab
> - Stopping the file vserver
> - Unmount these 2 partitions
> - Create /dev nodes for these 2 partitions INSIDE the file vserver
> - Mount these /dev/nodes inside the file vserver (into '/home' and
> '/home/proj')
> - Try to set the quotas.
>
> Can this work ?
Oh dear....
[root_at_filesv /]# ll /dev/volume1-filesv--*
brw-r--r-- 1 root root 252, 8 sep 1 17:03 /dev/volume1-filesv--Proj
brw-r--r-- 1 root root 252, 7 sep 1 17:03 /dev/volume1-filesv--home
[root_at_filesv /]# cat /etc/fstab
/dev/volume1-filesv--home /home xfs defaults,quota 1 2
/dev/volume1-filesv--Proj /home/Projects xfs defaults,quota 1 2
[root_at_filesv /]# mount
/dev/hdv1 on / type ufs (defaults)
none on /proc type proc (defaults)
none on /tmp type tmpfs (size=16m,mode=1777)
none on /dev/pts type devpts (gid=5,mode=620)
[root_at_filesv /]# mount /home/
mount: permission refusée (Permission denied)
Ok, ok, I think I missed one of the basic concepts of linux-vserver ;-)
-- ,, (°> Nicolas Costes /|\ IUT de La Roche / Yon ( ^ ) Clé publique: http://www.keyserver.net/ ^ ^ Musique libre: http://musique-legale.info/ - http://www.jamendo.com/?s=concept
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver