Le 08/09/2011 11:24, Ghislain a écrit :
> to reply to my own post, also this would work only if we mount
> partition on the host i guess. If we mount the partitions at guest
> boot time then this solution won't work ?
>
> Anyone solved this issue before ?
>
i still have the issue with the latest kernel and latest patch.
the new linux quotatool use /proc/mounts and therefor do not work
anymore in the guest for me:
---------------------------------------------------------------------------
guest01:/# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext4 rw,tag,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/mapper/vserverpool-guest01 /var ext4
rw,noatime,user_xattr,barrier=1,data=ordered,usrquota,grpquota 0 0
/dev/mapper/vserverpool-vserversroot /var/tmp ext4
rw,tag,nosuid,nodev,noexec,noatime,user_xattr,barrier=1,data=ordered 0 0
none /proc proc rw,nodev,relatime 0 0
none /dev/pts devpts rw,relatime,gid=5,mode=620 0 0
none /tmp tmpfs rw,nosuid,nodev,noexec,noatime,size=65536k 0 0
guest01:/# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hdv2 40G 680M 39G 2% /var
/dev/hdv1 3.9G 308K 3.8G 1% /
none 64M 0 64M 0% /tmp
guest01:/# mount
/dev/hdv2 on /var type ufs (rw,noatime,usrquota,grpquota)
/dev/hdv1 on / type ufs (rw,noatime)
none on /proc type proc (defaults)
none on /dev/pts type devpts (gid=5,mode=620)
none on /tmp type tmpfs
(size=64m,mode=1777,rw,noatime,nodev,noexec,nosuid,nouser)
/vservers/tmp/guest01 on /var/tmp type none
(rbind,rw,noexec,nosuid,nodev,noatime)
guest01:/# quotacheck -vfmug /var
quotacheck: Cannot stat() mounted device
/dev/mapper/vserverpool-guest01: No such file or directory
quotacheck: Mountpoint (or device) /var not found or has no quota enabled.
quotacheck: Cannot find filesystem to check or filesystem not mounted
with quota option.
guest01:/# quotacheck -vfmug /dev/mapper/vserverpool-guest01
quotacheck: Cannot stat() mounted device
/dev/mapper/vserverpool-guest01: No such file or directory
quotacheck: Cannot stat() given mountpoint
/dev/mapper/vserverpool-guest01: No such file or directory
Skipping...
quotacheck: No correct mountpoint specified.
quotacheck: Cannot initialize mountpoint scan.
guest01:/# quotaon /var
quotaon: Cannot stat() mounted device /dev/mapper/vserverpool-guest01:
No such file or directory
quotaon: Mountpoint (or device) /var not found or has no quota enabled.
guest01:/# quotaon /dev/hdv2
quotaon: Cannot stat() mounted device /dev/mapper/vserverpool-guest01:
No such file or directory
quotaon: Cannot find mountpoint for device /dev/hdv2
quotaon: No correct mountpoint specified.
guest01:/# quotaon /dev/mapper/vserverpool-guest01
quotaon: Cannot stat() mounted device /dev/mapper/vserverpool-guest01:
No such file or directory
quotaon: Cannot stat() given mountpoint /dev/mapper/vserverpool-guest01:
No such file or directory
Skipping...
quotaon: No correct mountpoint specified.
----------------------------------------------------------------------
I really do not know how to solve this, am i doing something wrong ?
i do in /scripts/pre-start.d
/usr/sbin/vrsetup /dev/vroot1 /dev/mapper/vserverpool-guest01
\rm -f /vservers/guest01/dev/hdv2
cp -af /dev/vroot1 /vservers/guest01/dev/hdv2
and in scripts/postpost-stop.d :
/usr/sbin/vrsetup -d /dev/vroot1
--------------------------------------------------------
Versions:
Kernel: 3.1.6-vs2.3.2.5
VS-API: 0x00020308
VCI: 0x0000000013001f11
util-vserver: 0.30.216-pre3004; Dec 28 2011, 18:58:30
Features:
CC: gcc, gcc (Debian 4.4.5-8) 4.4.5
CPPFLAGS: ''
CFLAGS: '-g -O2 -std=c99 -Wall -pedantic -W
-funit-at-a-time'
build/host: x86_64-pc-linux-gnu/x86_64-pc-linux-gnu
Use dietlibc: yes
Build C++ programs:
Build C99 programs: yes
Available APIs: compat,v11,fscompat,v13,net,v21,v22,v23,netv2
ext2fs Source: e2fsprogs
syscall(2) invocation: alternative
vserver(2) syscall#: 236/glibc
crypto api: nss
python bindings: yes
use library versioning: yes
Paths:
prefix: /usr
sysconf-Directory: /etc
cfg-Directory: /etc/vservers
initrd-Directory: /etc/init.d
pkgstate-Directory: /var/run/vservers
vserver-Rootdir: /vservers