OpenVZ Forum


Home » Mailing lists » Users » NFS problems with 2.6.24
NFS problems with 2.6.24 [message #28395] Mon, 17 March 2008 06:17 Go to next message
Dietmar Maurer is currently offline  Dietmar Maurer
Messages: 52
Registered: March 2007
Member
From: openvz.org
Hi all,

I just observed a strange problem with nfs, seems that remount does not
work anymore:

My fstab looks like:

aipaddr:/pve/0.9 /pve/0.9 nfs ro 0 0

When I trie to remount that directory rw: 

> mount -o remount,rw /pve/0.9/

Everythink works as expected. But remounting it ro later fails:

> mount -o remount,ro /pve/0.9/
mount: /pve/0.9 not mounted already, or bad option

This failure seems to be specific to openvz kernel (2.6.24) from git.

- Dietmar
Re: NFS problems with 2.6.24 [message #28397 is a reply to message #28395] Mon, 17 March 2008 06:37 Go to previous messageGo to next message
den is currently offline  den
Messages: 494
Registered: December 2005
Senior Member
From: openvz.org
Is this happens in VE0 or inside VE?

If this is a VE, could you check what if the file /etc/mtab is, i.e.
whether it is a regular file or a symlink to /proc/mounts

Regards,
	Den

On Mon, 2008-03-17 at 07:17 +0100, Dietmar Maurer wrote:
> Hi all,
> 
> I just observed a strange problem with nfs, seems that remount does not
> work anymore:
> 
> My fstab looks like:
> 
> aipaddr:/pve/0.9 /pve/0.9 nfs ro 0 0
> 
> When I trie to remount that directory rw: 
> 
> > mount -o remount,rw /pve/0.9/
> 
> Everythink works as expected. But remounting it ro later fails:
> 
> > mount -o remount,ro /pve/0.9/
> mount: /pve/0.9 not mounted already, or bad option
> 
> This failure seems to be specific to openvz kernel (2.6.24) from git.
> 
> - Dietmar
> 
>
AW: NFS problems with 2.6.24 [message #28398 is a reply to message #28397] Mon, 17 March 2008 07:12 Go to previous message
Dietmar Maurer is currently offline  Dietmar Maurer
Messages: 52
Registered: March 2007
Member
From: openvz.org
It happens in VE0. mtab is a file an contains:

aipaddr:/pve/0.9 /pve/0.9 nfs rw,addr=XXX.XXX.XXX.XXX 0 0

But remount rw fails:

> mount -o ro,remount /pve/0.9/
mount: /pve/0.9 not mounted already, or bad option

Strace says:

mount("aipaddr:/pve/0.9", "/pve/0.9", 0x517c10, MS_MGC_VAL|MS_RDONLY|MS_REMOUNT, "\6") = -1 EINVAL (Invalid argument)

- Dietmar 

> -----Ursprüngliche Nachricht-----
> Von: users-bounces@openvz.org 
> [mailto:users-bounces@openvz.org] Im Auftrag von Denis V. Lunev
> Gesendet: Montag, 17. März 2008 07:38
> An: users@openvz.org
> Cc: Alexey Dobriyan
> Betreff: Re: [Users] NFS problems with 2.6.24
> 
> Is this happens in VE0 or inside VE?
> 
> If this is a VE, could you check what if the file /etc/mtab is, i.e.
> whether it is a regular file or a symlink to /proc/mounts
Previous Topic: VLAN and venet/veth
Next Topic: 2.6.24 bug report: problems with vzmigrate
Goto Forum:
  


Current Time: Sat Oct 19 20:34:35 GMT 2019