NFSv4 client in openvz container?

Elodie

New Member
Dec 5, 2011
9
0
1
Greetings,

I have exactly the same problem of this thread :
http://forum.proxmox.com/threads/8175-NFSv4-server-in-openvz-container
but for me, it's only a client.

When i check the UID/GUI of a mount :
stat /home/httpd/f/r/a/franceserv/www.franceserv.com/
i get : Uid: (4294967294/ UNKNOWN) Gid: (4294967294/ UNKNOWN)

and the real UID/GID from the NFS server is :
stat /home/httpd/f/r/a/franceserv/www.franceserv.com/
Uid: ( 5001/franceserv) Gid: ( 5001/franceserv)

from the client and server, i can ask this :
id franceserv
uid=5001(franceserv) gid=5001(franceserv) groups=5001(franceserv)
It's exactly the same response because i have exactly the same user from a libnss-mysql.

The problem come from "idmapd" who map the ID of the user and when i check the log of "idmapd" from the client, i get this :
Feb 18 12:46:14 web1 rpc.idmapd[1086]: nfsdopenone: Opening /proc/net/rpc/nfs4.nametoid/channel failed: errno 2 (No such file or directory)

This error come on each "query" to obtain UID/GID, "idmapd" for NFSv4 don't work on OpenVZ because he don't find the directory "/proc/net/rpc/nfs4.nametoid/".

from the server, the file exist :
stat /proc/net/rpc/nfs4.nametoid/channel
File: `/proc/net/rpc/nfs4.nametoid/channel'
Size: 0 Blocks: 0 IO Block: 1024 regular empty file
Device: 3h/3d Inode: 4026532176 Links: 1
Access: (0600/-rw-------) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2012-02-18 12:26:39.822306402 +0100
Modify: 2012-02-18 12:26:39.822306402 +0100
Change: 2012-02-18 12:26:39.822306402 +0100

but not from the client, the "/proc/net/rpc/nfs4.nametoid/" don't exist. How can i load it ? It's not a problem from a module or the kernel (2.6.32-6-pve #1 SMP Mon Jan 23 08:27:52 CET 2012 x86_64 GNU/Linux) who don't support it ?

I don't understand why OpenVZ can't support NFSv4, server i could understand but not for a client.

Do you have a solution please ?
 
I have mount my NFSv4 directly into the real host and it's same. The problem don't seem come OpenVZ but perhaps from the kernel or a module.
 
Hello Elodie,

I have the same problem. Did you find a solution ?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!