OpenVZ Forum


Home » General » Support » Can't configure user_xattr option with bind mount into container
Can't configure user_xattr option with bind mount into container [message #34760] Sun, 01 February 2009 01:54 Go to previous message
nikichi is currently offline  nikichi
Messages: 2
Registered: January 2009
Junior Member
Hello,
Nice to be part of the community, I just joined.

I need to configure a user_xattr option on the filesystem of the container.
I have try to use bind mount with -o rw,user_xattr,acl into the container, but binded filesystem does not have "user_xattr,acl" option as /proc/mounts showed.
In HN, it was succeeded to configure as /etc/fstab showed, and working properly.
But, can't see in container node and not working as this option feature.

Is there any way to configure it into the container node or in the container node?
I don't care about bind mount way, if there are any better way.

-----------information----------------------

[ used bind command ]
# mount --bind -o user_xattr,acl /vol/vps001 /vz/root/301/data

Here is the retrieved information of my system.

[[HN]]

OS: Fedora release 9 (Sulphur)
Kernel : ovzkernel 2.6.18-92.1.13.el5.028stab059.6 (should XATTR be configued)
filesystem : LVM

attr.i386 2.4.41-1.fc9 installed
libattr.i386 2.4.41-1.fc9 installed
lvm2.i386 2.02.33-11.fc9 installed

ovzkernel.i686 2.6.18-92.1.13.el5.028stab059.6
vzctl.i386 3.0.23-1 installed
vzctl-lib.i386 3.0.23-1 installed
vzpkg.noarch 2.7.0-18 installed
vzquota.i386 3.0.12-1 installed
vzrpm43-python.i386 4.3.3-7_nonptl.6 installed
vzrpm44.i386 4.4.1-22.5 installed
vzrpm44-python.i386 4.4.1-22.5 installed
vzyum.noarch 2.4.0-11 installed


[[Container Node 301]]

OS template : fedora-9-x86.tar.gz (signature) downloaded from procreated site

attr.i386 2.4.41-1.fc9 installed
libattr.i386 2.4.41-1.fc9 installed

[[ HN # mount ]]

[root@fedorahost ~]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/mapper/VolGroup00-vps001 on /vol/vps001 type ext3 (rw,user_xattr,acl)
/dev/mapper/VolGroup00-dcsvol on /vol/dcsvol type ext3 (rw,user_xattr,acl)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
fuse on /root/.gvfs type fuse (rw,nosuid,nodev)
/vol/vps001 on /vz/root/301/data type none (rw,bind,user_xattr,acl)

[[ HN # /proc/mounts ]]

[root@fedorahost ~]# cat /proc/mounts
/dev/root / ext3 rw,data=ordered 0 0
/dev /dev tmpfs rw 0 0
/proc /proc proc rw 0 0
/sys /sys sysfs rw 0 0
/proc/bus/usb /proc/bus/usb usbfs rw 0 0
devpts /dev/pts devpts rw 0 0
/dev/sda1 /boot ext3 rw,data=ordered 0 0
tmpfs /dev/shm tmpfs rw 0 0
/dev/mapper/VolGroup00-vps001 /vol/vps001 ext3 rw,data=ordered 0 0
/dev/mapper/VolGroup00-dcsvol /vol/dcsvol ext3 rw,data=ordered 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
fusectl /sys/fs/fuse/connections fusectl rw 0 0
fuse /root/.gvfs fuse rw,nosuid,nodev,user_id=0,group_id=0 0 0
/vz/private/301 /vz/root/301 simfs rw 0 0
/proc /vz/root/301/proc proc rw 0 0
/sys /vz/root/301/sys sysfs rw 0 0
none /vz/root/301/dev tmpfs rw 0 0
none /vz/root/301/dev/pts devpts rw 0 0
none /vz/root/301/proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
/dev/mapper/VolGroup00-vps001 /vz/root/301/data ext3 rw,data=ordered 0 0

][ HN # /etc/fstab ]]

[root@fedorahost ~]# cat /etc/fstab
/dev/VolGroup00/LogVol00 / ext3 defaults,user_xattr 1 1
UUID=925f232d-fdc5-4ddd-a5e6-32cf005aa174 /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/VolGroup00/vps001 /vol/vps001 ext3 rw,user_xattr,acl 0 0
/dev/VolGroup00/dcsvol /vol/dcsvol ext3 rw,user_xattr,acl 0 0

[[ CN 301 # /etc/mtab ]]

[root@fedorahost ~]# vzctl exec 301 cat /etc/mtab
simfs / simfs rw 0 0
/proc /proc proc rw 0 0
/sys /sys sysfs rw 0 0
none /dev tmpfs rw 0 0
none /dev/pts devpts rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
/dev/mapper/VolGroup00-vps001 /data ext3 rw,data=ordered 0 0

[[ CN 301 # mount ]]

[root@fedorahost ~]# vzctl exec 301 mount
simfs on / type simfs (rw)
/proc on /proc type proc (rw)
/sys on /sys type sysfs (rw)
none on /dev type tmpfs (rw)
none on /dev/pts type devpts (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/mapper/VolGroup00-vps001 on /data type ext3 (rw,data=ordered)


Thanks for help

Regards,
Nikichi


-----------------
NIKICHI
 
Read Message
Read Message
Read Message
Previous Topic: User Seperation Issue
Next Topic: Consuption of a single virtual machine
Goto Forum:
  


Current Time: Fri Sep 27 21:29:31 GMT 2024

Total time taken to generate the page: 0.04545 seconds