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 - 16:47:58 BST


Le Jeudi 1 Septembre 2005 17:28, Nicolas Costes a écrit :
> 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 ;-)

host# cat /etc/vservers/filesv/bcapabilities
CHOWN
DAC_OVERRIDE
DAC_READ_SEARCH
FOWNER
FSETID
KILL
SETGID
SETUID
SETPCAP
LINUX_IMMUTABLE
NET_BIND_SERVICE
NET_BROADCAST
NET_ADMIN
NET_RAW
IPC_LOCK
IPC_OWNER
SYS_MODULE
SYS_RAWIO
SYS_CHROOT
SYS_PTRACE
SYS_PACCT
SYS_ADMIN
SYS_BOOT
SYS_NICE
SYS_RESOURCE
SYS_TIME
SYS_TTY_CONFIG
MKNOD
LEASE
AUDIT_WRITE
AUDIT_CONTROL

host# vserver filesv restart
host# vserver filesv enter
filesv# mount /home
filesv# ls -l /home
dir1
dir2...

Ok... [Sadly, netatalk still doesn't start, but it's another thread ;-))

filesv# df -h
/dev/hdv1 996M 536M 461M 54% /
none 16M 0 16M 0% /tmp
/dev/volume1-filesv--home 12G 1,3M 12G 1% /home
/dev/volume1-filesv--Proj 12G 416K 12G 1% /home/Projects

Ha !

filesv# setquota someone 100000 120000 0 0 /home
setquota: Mountpoint (or device) /home not found.
setquota: Not all specified mountpoints are using quota.

Huh ?

Theses tests are very interesting to discover vservers, but I guess i'm
going nowhere: I will have to either leave quotas, or do it in the host.
Anyway, I'm learning something here ;-)

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


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 - 16:49:45 BST by hypermail 2.1.3