OpenVZ Forum


Home » General » Support » WORKAROUND - Does AutoFS work in OpenVZ yet?
Re: Does AutoFS work in OpenVZ yet? [message #22023 is a reply to message #22013] Thu, 18 October 2007 18:51 Go to previous messageGo to previous message
dranch is currently offline  dranch
Messages: 33
Registered: August 2007
Member

When you say autofs/nfs works in a VPS, is that with a vanilla patched kernel or a Centos5 patched kernel? Again.. here on Centos5, it doesn't work.


On the base system's OS (Centos5):
------------------------------------------------------------ -
# uname -a
Linux dolly-centos5-openvz.xxx.xxx.xxx 2.6.18-8.1.14.el5.028stab045.1 #1 SMP Mon Oct 1 13:22:25 MSD 2007 i686 i686 i386 GNU/Linux


# /sbin/lsmod | grep auto
autofs4 24324 8

# tail /etc/vz/conf/101.conf
--
.
.
VE_PRIVATE="/vz/private/$VEID"
ORIGIN_SAMPLE="pvl.basic"
OSTEMPLATE="centos-5-i386-default"
NAME="dolly-centos5-A"
HOSTNAME="dolly-centos5-A"
IP_ADDRESS="10.159.4.232"
NAMESERVER="172.17.28.100 172.17.28.101"
NETDEV="eth1"
FEATURES="nfs:on"
--



In the VPS....


#cat /proc/filesystems
ext2
ext3
nodev rpc_pipefs
nodev autofs
nodev nfs
nodev proc
nodev sysfs
nodev tmpfs
nodev devpts



------

Moving forward, a manual mount works fine in the physical machine's OS as does an automount (for example, the "labtools" mount):

# mount -t nfs 10.159.4.7:/ /mnt
[works fine]

#df
.
.
phobos-cf2:/vol/lab/labtools
41943040 29057984 12885056 70% /volume/labtools
10.159.4.7:/ 948779200 103575840 797008192 12% /mnt


-------
-------

Now.. in a VPS, there are all the initial autofs errors upon initial load that are shown earlier in this thread. Manual NFS mounts DO work though their are some minor issues:

1) it throws a permission error:

mount -t nfs 10.159.4.7:/ /mnt

Can't set perms on /etc/mtab


# ls -la /etc/mtab
lrwxrwxrwx 1 root root 12 Aug 16 17:46 /etc/mtab -> /proc/mounts


2) The" mount" command shows the source of the mount as "nfs" and not the IP address (like what it does on the physical machine shown above. Seems minor but might mean something

[root@dolly-centos5-A /]# df
Filesystem 1K-blocks Used Available Use% Mounted on
simfs 2389512 365772 2023740 16% /
nfs 948779200 103575840 797008192 12% /mnt



Still.. with all this.. running the RHEL5 kernel, the manual NFS mount is functional but "autofs" does't work when I try to login to the VPS:

#ssh dranch@10.159.4.232
dranch@10.159.4.232's password:

Last login: Thu Oct 18 11:37:52 2007 from 10.150.52.4
Could not chdir to home directory /homes/dranch: No such file or directory
-bash-3.1$

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Cannot access /proc/bus/pci
Next Topic: Fedora Core 2 Template?
Goto Forum:
  


Current Time: Fri Apr 26 01:15:00 GMT 2024

Total time taken to generate the page: 0.01628 seconds