About this list Date view Thread view Subject view Author view Attachment view

From: Nicolas Costes (nicolas.costes_at_iut-laroche.univ-nantes.fr)
Date: Thu 01 Sep 2005 - 13:20:13 BST

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)

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

[root_at_filevserver /]# 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:

[root_at_host ~]# mount
/dev/mapper/volume1-filesv--home on /vservers/filesv/home type xfs
/dev/mapper/volume1-filesv--Proj on /vservers/filesv/home/Proj type xfs

[root_at_hostic ~]# df
Sys. de fich. Tail. Occ. Disp. %Occ. Monté sur
                      996M 535M 461M 54% /vservers
                       12G 1,3M 12G 1% /vservers/filesv/home
                       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
- Try to set the quotas.

Can this work ?

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


 (°>   Nicolas Costes
 /|\   IUT de La Roche / Yon
( ^ )  Clé publique: http://www.keyserver.net/
 ^ ^   Musique libre: http://musique-legale.info/ - 

Vserver mailing list

About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 01 Sep 2005 - 13:22:09 BST by hypermail 2.1.3