Richard Smits | 31 Aug 2010 16:49
Picon
Picon

krb5 authentication error with nfs client 1.2.x

Hello,

We are working on a problem here what is getting bigger. I will explain.

Our clients are using SLED 11. If they upgrade to sp1, they get a newer 
nfs client.

Client before update : nfs-client-1.1.3-18.17
Client after update : nfs-client-1.2.1-2.6.6

We are using krb5 authentication with an active directory. The nfs mount 
we are trying to make is on a netapp nashead.

The scenario is as followes. The client works as expected. When you ONLY 
upgrade the nfsclient package, we get an error :

mount /mnt/nfs/
mount.nfs4: access denied by server while mounting srvxxx:/vol/vol1/target

I have enabled logging on the rpcgssd :

Aug 31 16:17:09 vmlinux12 rpc.gssd[14072]: Full hostname for 
'srvxxx.domain.net' is 'srvxxx.domain.net'
Aug 31 16:17:09 vmlinux12 rpc.gssd[14072]: Full hostname for 
'server.domain.net' is 'server.domain.net'
Aug 31 16:17:09 vmlinux12 rpc.gssd[14072]: Key table entry not found 
while getting keytab entry for 'root
/server.domain.net <at> DOMAIN.NET'
Aug 31 16:17:09 vmlinux12 rpc.gssd[14072]: Success getting keytab entry 
for 'nfs/server.domain.net <at> DOMAIN.NET'
(Continue reading)

Mi Jinlong | 24 Aug 2010 11:36
Favicon

[RFC][PATCH] nfs4: set exception->state before calling nfs4_handle_exception() for locks

At the latest kernel, it is calling nfs4_handle_exception() without 
setting exception->state for locks. That cause client can't get lock 
success when new_lock_owner != 0.

nfs4_recovery_handle_error() also be called after nfs4_proc_renew, 
but claim OPEN proc always after RENEW proc. Maybe the function 
nfs4_state_end_reclaim_reboot() shouldn't be called when client 
get a NFS4ERR_STALE_CLIENTID error.

This patch sets exception->state before calling nfs4_handle_exception()
and also modifies nfs4_recovery_handle_error().

Signed-off-by: Mi Jinlong <mijinlong <at> cn.fujitsu.com>

---
 fs/nfs/nfs4proc.c  |   12 +++++++++---
 fs/nfs/nfs4state.c |    4 ++--
 2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 089da5b..a2f56bc 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
 <at>  <at>  -4233,7 +4233,9  <at>  <at>  static int _nfs4_do_setlk(struct nfs4_state *state, int cmd, struct file_lock *f
 static int nfs4_lock_reclaim(struct nfs4_state *state, struct file_lock *request)
 {
 	struct nfs_server *server = NFS_SERVER(state->inode);
-	struct nfs4_exception exception = { };
+	struct nfs4_exception exception = {
+		.state = state,
(Continue reading)

Steve Gaarder | 13 Aug 2010 22:47
Picon
Favicon

Can create and delete but not overwrite

I have a strange problem with Kerberos security and NFVv4.

I have two servers, one running RHEL 4 (kernel 2.6.9-89.0.25.ELsmp) and 
the other RHEL 5 (2.6.18-194.3.1.el5).  Clients running either OS work 
fine.

I have one user who is using Ubuntu (9.04 Jaunty; the kernel is 
2.6.28-19-generic #61-Ubuntu).  On that machine, he can access filesystems 
on the RHEL 5 server fine. Using filesystems mounted from the RHEL 4 
server, authenticated users can create and write files, but they cannot 
write to an existing file. SO, for example,

echo foo >foo

works, but a subsequent

echo foo >foo

says "Input/Output Error".

Any ideas?

--

-- 
Steve Gaarder
System Administrator, Dept of Mathematics
Cornell University, Ithaca, NY, USA
gaarder <at> math.cornell.edu
_______________________________________________
NOTE: THIS LIST IS DEPRECATED.  Please use linux-nfs <at> vger.kernel.org instead.
(To subscribe to linux-nfs <at> vger.kernel.org: send "subscribe linux-nfs" in the body of a message to majordomo <at> vger.kernel.org.)
(Continue reading)

carrierebouvy | 10 Aug 2010 23:46
Picon
Favicon

就知道中秋节你会被铺天盖地的短信包围,英明的 =?GB2312?B?0tK71Oe+zcjD16O4o7/nuf2438m91L25/bjfwqW088/DtKm5/bTzvdbQoc/v?= ,闪过卖茶叶蛋的老太太,钻进你的耳朵:祝中秋炖郑

ÉäÏéÎÂÕÃÜ°ÑøÌἢʾÂ ±¾¹«×®Ë¾ÓÐÔöÎüԮֵѹ˰¾úâ·¢Ò¶½¥Æ±ÅÍ£¬¹·½¨ÓãÖþ²Ï·¢ÐïÆ±¹é£¬¹ã·ô¸æ¿¿Òµµ¼×¨ÄâÓö۷¢´×Ʊ°ÞµÈµÈµâ¿É°ì¼¢Àí£¬Èç¹ó¹«Ë¾ÓÐÕâ·½ÃæÒµÎñÐèÒªÇëÀ ´µç ×Éղѯ£¡Ìõ ²Ý ÈÏ Î¿ ÁªÐ¿ÏµÏàÈË:³ÂÁßÓêÕÅÉ­ ·ñµçÆÇ»°:137Êì60ɯ7Õ¹77ÏÙ438 ÌÏ Ï» Q´ÖQ:´·53Ìó09ÃË54857 ¿õ ±ê ÓÊÏä:chenyusen189Óí <at> È×163.com¿û £¨·²ÊǼ®Óɱ¾ÓÞ¹«´»Ë¾¿ªÏÖ³öÈ¥µÄƱ¸®¾Ý£¬Ò»ÂÉÑéÖ¤ºó¸¶Éã¿î£¬È·±£Äã¸ùµÄ×ʽðÎܰ²È«£© £¨µ«ÔÚÅ»´ËͬµÔʱÈç¹ûË¥ÊDz»½²ÐÅÓõģ¬Çë²»ÒªÀÜÀ´µç£¬±ÜÃâ¸ø×Ô¼ºÕÒ¸¶À´²»±ØÒªµÄÂé·³£© £¨Ñ°ÕðÕÒÃų¤ÖîÆÚ¸£µÄȹºÏ×÷»ï°é£¬ÈÃÐßÄãÎҶŶ¼ÓÃÕæ³ÏÏÒ¶Ô´ý£¬·Ç³ÏÎðÈÅ£¬Ð»Ð»£© ×° £¨´ËÐÅÀµÏ¢ÈçÓºÓдò³¥ÈÅÀʵ½³äÄú£¬ÇëÁ½⣩
_______________________________________________
NOTE: THIS LIST IS DEPRECATED.  Please use linux-nfs <at> vger.kernel.org instead.
(To subscribe to linux-nfs <at> vger.kernel.org: send "subscribe linux-nfs" in the body of a message to majordomo <at> vger.kernel.org.)

NFSv4 mailing list
NFSv4 <at> linux-nfs.org
http://linux-nfs.org/cgi-bin/mailman/listinfo/nfsv4
高级管理人员 | 6 Aug 2010 23:12
Picon

<AD>办公技能

您   好:

        我司将于2010年8月13-14日 上 海 、8月20-21日  深 圳 、8月27-28日  北 京 三地举办:

《 企业白领核心办公技能(PPT+Excel)高级应用v3.0
》公开课!由企业信息化领域资深专家,

微软认证专家、IPMA认证项目经理、经济分析师、国际职业讲师协会认证讲师----陈
剑 先生主讲!

详细内容请来电咨询或发邮件至:baoming01 <at> 126.com
索取! (来信请注明课程名称!)谢谢! 

咨*询*电*话:0-2-0--3-4-8-0-6-0-3-9 、3-5-6-2-9-4-8-9  陈先生 、曾小姐

报*名*邮*箱:baoming01 <at> 126.com

如不需要此类信息,请发送主题“移除”或“delete”到:tuidin01 <at> 163.com  谢谢!
_______________________________________________
NOTE: THIS LIST IS DEPRECATED.  Please use linux-nfs <at> vger.kernel.org instead.
(To subscribe to linux-nfs <at> vger.kernel.org: send "subscribe linux-nfs" in the body of a message to majordomo <at> vger.kernel.org.)

NFSv4 mailing list
NFSv4 <at> linux-nfs.org
http://linux-nfs.org/cgi-bin/mailman/listinfo/nfsv4
Marc Eshel | 5 Aug 2010 05:53
Picon
Favicon

Linux pNFS status meeting 08/05

Meeting on Thursday 08/05/10 at 9:30 AM pacific time (12:30 PM UMICH time)

Marc. 
_______________________________________________
NOTE: THIS LIST IS DEPRECATED.  Please use linux-nfs <at> vger.kernel.org instead.
(To subscribe to linux-nfs <at> vger.kernel.org: send "subscribe linux-nfs" in the body of a message to majordomo <at> vger.kernel.org.)

NFSv4 mailing list
NFSv4 <at> linux-nfs.org
http://linux-nfs.org/cgi-bin/mailman/listinfo/nfsv4

Mi Jinlong | 3 Aug 2010 11:41
Favicon

[RFC] Should client get lock success after NFSv4 server restart?

Hi,

When using the NFSv4's nfslock at the latest kernel at RHEL, 
I meet a problem about the stateid, as follows.

 Step 1: Client open file, and get a LOCK.
 Step 2: Server restart the nfs service("service nfs restart").
 Step 3: Client try to get a LOCK again.

But, at step3, client get reply with error(NFS4ERR_STALE_STATEID (10023)) at NFS layer,
and fcntl return EIO.

The problem appears after Trond's patch a2c0b9e291208f65221a0ad8a0c80a377707d480,
so, there are some question about this problem.

1. IMO, in theory, Client at step3 should get lock success after server restart, right?

2. For this instance, when client get error NFS4ERR_STALE_STATEID, it should try to
   * renew * the stateid for the lock_owner is an old one at nfs4_handle_exception, 
   rather than return immediately, is that right?

3. As I known, when the lock_owner is a new one, client will try once when it's lock request 
   get error NFS4ERR_STALE_STATEID.
   IMO, the problem as above is a bug, and should be fixed, but I'm not sure!

   Waiting your idea ...

thanks,
Mi Jinlong

_______________________________________________
NOTE: THIS LIST IS DEPRECATED.  Please use linux-nfs <at> vger.kernel.org instead.
(To subscribe to linux-nfs <at> vger.kernel.org: send "subscribe linux-nfs" in the body of a message to majordomo <at> vger.kernel.org.)

NFSv4 mailing list
NFSv4 <at> linux-nfs.org
http://linux-nfs.org/cgi-bin/mailman/listinfo/nfsv4

Sid Moore | 30 Jul 2010 11:13
Picon

Linux NFSv4 Client kernel panic

Hi,

My NFS Client is CentOS5.3 (2.6.18) and server is SUSE11. When running
LTP (ltp-full-20080930), the client crashed. the stack is below.

Kernel BUG at fs/nfs/nfs4xdr.c:872
invalid opcode: 0000 [1] SMP
last sysfs file: /block/sdb/size
CPU 0
Modules linked in: ipv6 xfrm_nalgo crypto_api autofs4 hidp l2cap
bluetooth blockvt(PU) nfs(U) lockd(U) fscache nfs_acl sunrpc ib_iser
rdma_cm ib_cm iw_cm ib_sa ib_mad ib_core ib_addr iscsi_tcp libiscsi
scsi_transport_iscsi dm_mirror dm_multipath scsi_dh video hwmon
backlight sbs i2c_ec button battery asus_acpi acpi_memhotplug ac lp
floppy sg pcspkr i2c_piix4 i2c_core pcnet32 mii parport_pc parport
shpchp serio_raw dm_raid45 dm_message dm_region_hash dm_log dm_mod
dm_mem_cache ata_piix libata mptspi mptscsih mptbase
scsi_transport_spi sd_mod scsi_mod ext3 jbd uhci_hcd ohci_hcd ehci_hcd
Pid: 18655, comm: mknod01 Tainted: P      2.6.18-128.el5 #1
RIP: 0010:[<ffffffff8844841d>]  [<ffffffff8844841d>]
:nfs:encode_share_access+0x6d/0x82
RSP: 0018:ffff81000d4cdb18  EFLAGS: 00010297
RAX: 00000000ffffffff RBX: ffff810007c770b8 RCX: ffff810007c770b8
RDX: 0000000000000008 RSI: 0000000000000008 RDI: ffff81000d4cdb68
RBP: 0000000000000080 R08: ffff810007c770ac R09: 0000000000000009
R10: ffff81000601e980 R11: ffffffff8844bc69 R12: ffff81000d4cdb68
R13: ffff81000216d158 R14: ffff81000d4cde18 R15: ffff810002912000
FS:  00002b7f2d2c3210(0000) GS:ffffffff803ac000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000003ec6a41900 CR3: 0000000007c10000 CR4: 00000000000006e0
Process mknod01 (pid: 18655, threadinfo ffff81000d4cc000, task ffff810004308040)
Stack:  ffff810004308040 ffff810007c770b0 ffff81000834f408 ffffffff8844b919
 ffff8100080b7df8 ffff81000216d158 ffff81000834f408 ffffffff8844bc69
 ffff81000216d158 ffffffff8844bcd6 ffff810007c770c0 ffff81000216d160
Call Trace:
 [<ffffffff8844b919>] :nfs:encode_open+0x66/0x33e
 [<ffffffff8844bc69>] :nfs:nfs4_xdr_enc_open+0x0/0xac
 [<ffffffff8844bcd6>] :nfs:nfs4_xdr_enc_open+0x6d/0xac
 [<ffffffff8844bc69>] :nfs:nfs4_xdr_enc_open+0x0/0xac
 [<ffffffff883c63f0>] :sunrpc:call_transmit+0x1bc/0x222
 [<ffffffff883cb923>] :sunrpc:__rpc_execute+0x92/0x24e
 [<ffffffff883cbb36>] :sunrpc:rpc_run_task+0x37/0x3f
 [<ffffffff884430e0>] :nfs:_nfs4_proc_open+0x50/0x1aa
 [<ffffffff88443ff2>] :nfs:nfs4_do_open+0xc2/0x1dd
 [<ffffffff884459a4>] :nfs:nfs4_proc_create+0x7f/0x1b2
 [<ffffffff883cc91a>] :sunrpc:rpcauth_lookup_credcache+0x12e/0x24c
 [<ffffffff8842d3c4>] :nfs:nfs_access_get_cached+0xab/0xfa
 [<ffffffff8842e440>] :nfs:nfs_create+0x87/0xed
 [<ffffffff8002221b>] d_alloc+0x174/0x1a9
 [<ffffffff8003a031>] vfs_create+0xe6/0x158
 [<ffffffff800e3120>] sys_mknodat+0x107/0x188
 [<ffffffff8005d229>] tracesys+0x71/0xe0
 [<ffffffff8005d28d>] tracesys+0xd5/0xe0

Code: 0f 0b 68 14 5e 45 88 c2 68 03 c7 03 00 00 00 00 41 5a 5b 5d
RIP  [<ffffffff8844841d>] :nfs:encode_share_access+0x6d/0x82
 RSP <ffff81000d4cdb18>
 <0>Kernel panic - not syncing: Fatal exception

I think open_flags was set to be zero when calling
encode_share_access(), but I don't know what happened and triggered
this crash.
is anyone willing to help me ?

Best,
sid
_______________________________________________
NOTE: THIS LIST IS DEPRECATED.  Please use linux-nfs <at> vger.kernel.org instead.
(To subscribe to linux-nfs <at> vger.kernel.org: send "subscribe linux-nfs" in the body of a message to majordomo <at> vger.kernel.org.)

NFSv4 mailing list
NFSv4 <at> linux-nfs.org
http://linux-nfs.org/cgi-bin/mailman/listinfo/nfsv4

人事经理 | 27 Jul 2010 19:49

股权^激励法


《 “五步连贯”股权激励法--留驻核心人才 》公开课!将于2010年7月--9月在下列城市举办:


2010年8月13--14日 北 京 、8月20--21日 深 圳 、8月24--25日 上 海 、9月10--11日 北 京

由中国股权激励第一人,国内实战派股权激励专家、企业“股权激励”领域的拓荒者、权威专家---薛中行 教授主讲!


详细资料大纲请回复邮件至:baoming01 <at> 126.com 索取! ( 来信请注明课程名称!)谢谢!


咨.询.电.话:0-2-0--3-9-9-2-6-2-7-5、3-5-6-2-9-4-8-9  陈先生 、曾小姐

报.名.邮.箱:baoming01 <at> 126.com


如不需要此类信息,请发送主题“移除”或“delete”到:tuidin01 <at> 163.com 谢谢!

_______________________________________________
NOTE: THIS LIST IS DEPRECATED.  Please use linux-nfs <at> vger.kernel.org instead.
(To subscribe to linux-nfs <at> vger.kernel.org: send "subscribe linux-nfs" in the body of a message to majordomo <at> vger.kernel.org.)

NFSv4 mailing list
NFSv4 <at> linux-nfs.org
http://linux-nfs.org/cgi-bin/mailman/listinfo/nfsv4
Марк Коренберг | 22 Jul 2010 15:32
Picon
Gravatar

Accessing mounted NFS filesystem hang when crossmnt specified on server

I have Ubuntu server on kernel 2.6.28.

My exports:
/mnt		*(sec=none,ro,fsid=0,crossmnt,insecure,no_subtree_check,sync,no_root_squash)
/home/ide	*(ro,fsid=1,insecure,no_subtree_check,sync,anonuid=65534,anongid=65534)

When I mount this file system from other host with
mount -t nfs4 -o sec=none,proto=tcp,intr 10.80.1.112:/ /mnt/KVM_quad
it is mounted successfully.

But after "ls /mnt/KVM_quad", command stuck completely.

If I remove crossmnt from exports everything work OK. -t nfs, -t nfs4
- all the same. security=sys, security=none - all the same....

in /mnt dir (on nfs server) I have 10 file systems (LVM) mounted in
subdirs of /mnt. All of them are accessible.

dmesg on both systems are clear.

--

-- 
Segmentation fault
_______________________________________________
NOTE: THIS LIST IS DEPRECATED.  Please use linux-nfs <at> vger.kernel.org instead.
(To subscribe to linux-nfs <at> vger.kernel.org: send "subscribe linux-nfs" in the body of a message to majordomo <at> vger.kernel.org.)

NFSv4 mailing list
NFSv4 <at> linux-nfs.org
http://linux-nfs.org/cgi-bin/mailman/listinfo/nfsv4

Tom H | 16 Jul 2010 17:01
Picon
Gravatar

why do attempts to access a nfs v3 filesystem (ro,soft) block the process for minutes at a time? (when the server is down)


Hi all,

I have a web server which serves some content from an nfs filesystem 
mounted like so;
nfsserver1:/somemount /var/www/html/somefiles  nfs     rw,soft 
             0 0

# mount | grep nfs
nfsserver1:/somemount on /var/www/html/somefiles type nfs 
(ro,soft,addr=xx.xx.xx.xx)

According to the documentation, an NFS operation on a soft mount should 
wait for a "major timeout" and then report "server not responding" to 
syslog and return an error. where a major timeout is after default 
retrans=3 retransmissions.

I understand the process to be like this;
call --->0.7 secs --->retransmission--->1.4 
secs--->retransmission--->2.8 secs--->server not responding(major timeout)

However it is pretty clear that this is retrying indefinitely, as the 
log files show loads of;
Jul 16 07:56:09 server1 kernel: nfs: server server2 not responding, 
timed out
Jul 16 07:57:09 server1 last message repeated 4 times
Jul 16 07:57:09 server1 last message repeated 6 times

and eventually this kills the apache server as all the available 
processes are blocked during "retrying indefinitely", until the apache 
server is restarted. (restarting the nfs server at this point does not 
seem to recover the apache child processes)

So what should my strategy be to stop the failed mount killing apache. I 
care more about the apache staying up, as I don't have that much control 
over the nfs server..

(also I noticed that it seems to timeout quicker with the mount options 
set like (soft, timeo=7, retrans=3) which is unexpected, because they 
are supposed to be the default)

Regards and thanks in advance,
T

_______________________________________________
NOTE: THIS LIST IS DEPRECATED.  Please use linux-nfs <at> vger.kernel.org instead.
(To subscribe to linux-nfs <at> vger.kernel.org: send "subscribe linux-nfs" in the body of a message to majordomo <at> vger.kernel.org.)

NFSv4 mailing list
NFSv4 <at> linux-nfs.org
http://linux-nfs.org/cgi-bin/mailman/listinfo/nfsv4


Gmane