Hello !

I'm leaving my netatalk problems for a moment, because I have a more 
important issue to deal with:

I used to build my file servers with Samba, winbind (NT domain member, no 
unix users on the server) and XFS file system with quotas. Now, I'm 
trying to do it in a vserver: Everything works fine nearly out-the-box !

The problem is with filesystem quotas, as there is only /dev/hdv1 
apparently mounted (and special filesystems)

[EMAIL PROTECTED] /]# df
Sys. de fich.        1K-blocs       Occupé Disponible Capacité Monté sur
/dev/hdv1             996M  535M  461M  54% /
none                   16M     0   16M   0% /tmp

[EMAIL PROTECTED] /]# 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)

In fact, I created 2 LVM partitions on the host, and mounted them below my 
file vserver's root:

[EMAIL PROTECTED] ~]# mount
/dev/mapper/volume1-filesv--home on /vservers/filesv/home type xfs 
(rw,quota)
/dev/mapper/volume1-filesv--Proj on /vservers/filesv/home/Proj type xfs 
(rw,quota)

[EMAIL PROTECTED] ~]# df
Sys. de fich.         Tail. Occ. Disp. %Occ. Monté sur
/dev/mapper/volume1-vservers
                      996M  535M  461M  54% /vservers
/dev/mapper/volume1-filesv--home
                       12G  1,3M   12G   1% /vservers/filesv/home
/dev/mapper/volume1-filesv--Proj
                       12G  416K   12G   1% /vservers/filesv/home/Proj

So, I tried to "setquota ..... /home", and of course, this fails, as the 
'/home' mountpoint virtually doesn't exist in inside the vserver.

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 ?

Side question : Why udev doesn't want to start inside the vserver ?

Thanks.

-- 
  ,,
 (°>   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

Attachment: pgplufNZpuxlB.pgp
Description: PGP signature

_______________________________________________
Vserver mailing list
[email protected]
http://list.linux-vserver.org/mailman/listinfo/vserver

Reply via email to