OpenVZ Forum


Home » General » Support » Problem with NFS client from a VE
Problem with NFS client from a VE [message #26236] Fri, 18 January 2008 09:43 Go to next message
jmelyn is currently offline  jmelyn
Messages: 27
Registered: June 2007
Junior Member
The HN (CentOS 5) works correctly. I tried to mount nfs and it's OK. The VE (CentOS 5 as well) works fine but I cannot mount nfs.

I followed the HowTo (http://wiki.openvz.org/NFS). The command:
# vzctl exec 182215 cat /proc/filesystems gives:
......ext2
......ext3
nodev autofs
nodev rpc_pipefs
nodev nfs
nodev proc
nodev sysfs
nodev tmpfs
nodev devpts

But from within the VE, the command:
# mount -t nfs abpc10303:/local /mnt gives the error:
mount: wrong fs type, bad option, bad superblock on abpc10303:/local,
.......missing codepage or other error
.......In some cases useful info is found in syslog - try
.......dmesg | tail or so


Of course, there is nothing written in /var/log/messages of VE, HN and the NFS server.

Does anybody have an idea about the error? Maybe there is an obvious reason, but I can't find it...
Re: Problem with NFS client from a VE [message #26237 is a reply to message #26236] Fri, 18 January 2008 10:15 Go to previous messageGo to next message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
Hello

1) what kernel/vzctl do you use?
2) may be it makes sense to provide the codepage as an explicit option to the mount?
3) did you check only /var/log/messages? Can you please also check "dmesg" inside the VE, VE0 and nfs server.

Thank you.

--
Konstantin.


If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
Re: Problem with NFS client from a VE [message #26239 is a reply to message #26237] Fri, 18 January 2008 10:33 Go to previous messageGo to next message
jmelyn is currently offline  jmelyn
Messages: 27
Registered: June 2007
Junior Member
1) VE kernel version: 2.6.18-53.el5.028stab051.1. vzctl version: 3.0.22.

2) The man page about mount says this can be done when the file system is FAT or VFAT. But I use ext3 everywhere.

3) Syslogd is running on VE, VE0 (the HN OS, right?) and NFS server, but /var/log/dmesg files did not register anything about the mount attempt (file times are hours ago).

Thank you for your fast reply, Konstantin.
Re: Problem with NFS client from a VE [message #26247 is a reply to message #26236] Fri, 18 January 2008 13:17 Go to previous messageGo to next message
jmelyn is currently offline  jmelyn
Messages: 27
Registered: June 2007
Junior Member
There is no /usr/sbin/rpc.mountd. The portmap program is running correctly.

So it is a problem of installation! I'm going to check the OS template...
Re: Problem with NFS client from a VE [message #26254 is a reply to message #26247] Fri, 18 January 2008 17:33 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

Try to install nfs-utils inside VPS. I hope this must help you.
Please show the output of the following:
- rpm -qa | grep nfs (from HN and VPS)
- rpm -qf /bin/mount (from HN and VPS)
What exactly ostemplate do you use?

Thank You!
Re: Problem with NFS client from a VE [message #26314 is a reply to message #26254] Mon, 21 January 2008 12:40 Go to previous messageGo to next message
jmelyn is currently offline  jmelyn
Messages: 27
Registered: June 2007
Junior Member
Sorry to answer so lately. I'm implied on several projects so I'm not working much on each.

It was a template problem cause I have CentOS 5 minimal and default files and for the VE I was working on, I installed the minimal version.

How is it possible to know the template name the VE is based on?

Anyway, thanks to all of those who replied to my questions.
Re: Problem with NFS client from a VE [message #26315 is a reply to message #26314] Mon, 21 January 2008 13:07 Go to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

In VE conf file
grep -i OSTEMPLATE /etc/vz/conf/<VE_ID>.conf
Previous Topic: failure in name resolution
Next Topic: ]# vzdump problem
Goto Forum:
  


Current Time: Sun Aug 11 10:23:56 GMT 2024

Total time taken to generate the page: 0.04005 seconds