Re: NFS and /dev/mdXpY

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Vlad Glagolev
Date: Wednesday, April 21, 2010 - 12:08 pm

Another interesting facts:

According to exports(5) small integers or UUIDs must be used for "fsid=" option.

If I set "fsid=__UUID__" in /etc/exports (where __UUID__ is UUID of partition returned by blkid command), then I got _exactly_ the same error as the first time: impossible to mount nfs partition from Linux client box, and "Stale NFS file handle" while trying to cd into mounted dir on OpenBSD box.

If I set "fsid=1" in /etc/exports, then from Linux client box I can write files without any performance issues, and from OpenBSD client box I get this: I copy a file (size's around 50-60 mibs) after visible full existance on the other side, it freezes and I see nfsrcvl call in top; few mins later I notice nfs_fsy call in top; a few mins later cp returns 0, and file is copied successfully.

I checked sha1sum hashes on both sides, they're equal.

On the server with tcpdump (while writing file from OpenBSD box) it's visible:

22:49:17.002445 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 164)
    172.17.2.2.2049 > 81.200.8.213.1393674899: reply ok 136 write POST: REG 100644 ids 8000/10 sz 27583794 8192 bytes
22:49:17.003105 IP (tos 0x0, ttl 64, id 64645, offset 0, flags [+], proto UDP (17), length 1500)
    81.200.8.213.1015648788 > 172.17.2.2.2049: 1472 write fh Unknown/01000101010000001D080000000000000000000000A4C0000000200000000002 8192 (8192) bytes @ 10797056 <filesync>
22:49:17.003131 IP (tos 0x0, ttl 64, id 64645, offset 1480, flags [+], proto UDP (17), length 1500)
    81.200.8.213 > 172.17.2.2: udp
22:49:17.003345 IP (tos 0x0, ttl 64, id 64645, offset 2960, flags [+], proto UDP (17), length 1500)
    81.200.8.213 > 172.17.2.2: udp
22:49:17.003468 IP (tos 0x0, ttl 64, id 64645, offset 4440, flags [+], proto UDP (17), length 1500)
    81.200.8.213 > 172.17.2.2: udp
22:49:17.003590 IP (tos 0x0, ttl 64, id 64645, offset 5920, flags [+], proto UDP (17), length 1500)
    81.200.8.213 > 172.17.2.2: udp
22:49:17.003598 IP (tos 0x0, ttl 64, id 64645, offset 7400, flags [none], proto UDP (17), length 940)
    81.200.8.213 > 172.17.2.2: udp

No errors, like in the first log. But something's definetely incorrect here.

Also tried mounting the partition with "-T" (tcp) flag on the client side -- no luck.

On Wed, 21 Apr 2010 22:26:12 +0400
Vlad Glagolev <stealth@sourcemage.org> wrote:



-- 
Dont wait to die to find paradise...
--
Cheerz,
Vlad "Stealth" Glagolev
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
NFS and /dev/mdXpY, Vlad Glagolev, (Sat Apr 17, 8:57 am)
Re: NFS and /dev/mdXpY, Steve Cousins, (Wed Apr 21, 9:39 am)
Re: NFS and /dev/mdXpY, Vlad Glagolev, (Wed Apr 21, 9:48 am)
Re: NFS and /dev/mdXpY, Roger Heflin, (Wed Apr 21, 10:09 am)
Re: NFS and /dev/mdXpY, Vlad Glagolev, (Wed Apr 21, 11:26 am)
Re: NFS and /dev/mdXpY, Vlad Glagolev, (Wed Apr 21, 12:08 pm)
Re: NFS and /dev/mdXpY, Roger Heflin, (Wed Apr 21, 6:20 pm)
Re: NFS and /dev/mdXpY, J. Bruce Fields, (Thu Apr 22, 11:25 am)
Re: NFS and /dev/mdXpY, Vlad Glagolev, (Thu Apr 22, 11:53 am)
Re: NFS and /dev/mdXpY, J. Bruce Fields, (Thu Apr 22, 12:32 pm)
Re: NFS and /dev/mdXpY, Trond Myklebust, (Thu Apr 22, 12:47 pm)
Re: NFS and /dev/mdXpY, Vlad Glagolev, (Thu Apr 22, 12:51 pm)
Re: NFS and /dev/mdXpY, Trond Myklebust, (Thu Apr 22, 12:56 pm)
Re: NFS and /dev/mdXpY, Vlad Glagolev, (Thu Apr 22, 1:07 pm)