scientificlinuxforum.org QR code
Scientific Linux Forum.org



  Reply to this topicStart new topicStart Poll

> Migrating NFS to IPv6
NeoAmsterdam
 Posted: Jul 16 2011, 07:23 AM
Quote Post


SLF Geek
****

Group: Members
Posts: 155
Member No.: 181
Joined: 16-May 11









Okay... SL 6 and NFS: it works under IPv4. Too well, actually, but I need to use IPv6*. So far I can SSH to the SL/NFS box with avahi (I don't actually know the SL/NFS box's IP address unsure.gif), but trying to mount the NFS share just won't work. I think the problem has to do with exportfs not understanding IPv6 address formats and netmasks in /etc/exports.

Here's a watered-down version of the working [IPv4] configuration in /etc/exports:
CODE
/srv/nfs 192.168.0.0/255.255.248.240(rw,anonuid=65534,anongid=65534)
The goal is to do the same, but with IPv6 addresses ("fe08::::::0/16"?).

Has anyone managed to set up NFS with IPv6? How do I write my IPv6 addresses and netmask in /etc/exports? And, since I've broached the subject, is there any real reason why to migrate to IPv6 on a local network (i.e.: is the throughput any "better")?

* That's because the SL/NFS box is directly connected to another machine via crossover cable at gigabit, because that machine is able to find the SL/NFS box over IPv6 but not IPv4, and because I don't have a gigabit router, and I don't feel like wasting my whole weekend on transferring 2TB of data (base 1024, of course wink.gif)
PM
^
redman
 Posted: Jul 16 2011, 09:38 AM
Quote Post


SLF Admin
********

Group: Admins
Posts: 1924
Member No.: 2
Joined: 8-April 11









I have no experience with IPv6 except that is can be a pain to set up.
Especially since its structure is different than that from IPv4.

I suggest first doing some research on the new structure and what that means for your LAN.


--------------------
What is SL? - Forum Rules - Info on 3rd Party Repos - How to post images - How to post large text / config files

Desktop: ASUS P5QPL-AM, Intel Dual-Core E6500, 4GB DDR2, ASUS GeForce GT 430 1GB, SL6.5 x86_64
Laptop: ASUS X58L, Intel Dual-Core T3200, 3GB DDR2, Intel GMA X3100, RHEL6.5 x86_64
Test box: Intel S5000PSL, 2x Intel Xeon E5310, 8GB ECC DDR2 FB-DIMM, ASUS GeForce GT 220 1GB, RHEL7 x86_64 Beta
PMEmail Poster
^
NeoAmsterdam
 Posted: Jul 16 2011, 06:16 PM
Quote Post


SLF Geek
****

Group: Members
Posts: 155
Member No.: 181
Joined: 16-May 11









QUOTE (redman @ Jul 16 2011, 09:38 AM)
I suggest first doing some research on the new structure and what that means for your LAN.
I always research before posting wink.gif It keeps me from asking stupid questions and looking a fool for it. But when the search results for "NFS", "IPv6", and "won't work" are all posts you've made asking why NFS over IPv6 won't work... http://fuzedglobal.com/forums/public/style_emoticons/default/facepalm.gif well, Google stops being a friend.

All the documentation I've read says that NFS should work over IPv6 no differently than IPv4 (Yeah, right http://dl.dropbox.com/u/2835777/BangHead1.gif). I figured that, given our savvy SL users cool.gif, someone here might have been through this before.

In the meantime I'm shuttling the data over SSH. dry.gif I've yet to see the speedometer surpass the 24MB/s mark, but at least I'm getting there faster than I would have at 100Base-T...
PM
^
joutlan
 Posted: Jul 16 2011, 07:26 PM
Quote Post


SLF Founder
********

Group: Admins
Posts: 1180
Member No.: 1
Joined: 8-April 11









I'll bump it as someone might be able to help you here. Didn't I hear that Google was migrating to IPv6? ......... huh.gif


--------------------
DΞLL Precision M6700: 17 inch NB//i7-quad w/USB 3.0, 16.0GB, Quadro K5000M 2.0GB DDR3, RGBLED //W8P64/Scientific Linux 6.4 x64
DΞLL Vostro 3350 Nirvana: 13 inch NB w/ IntelSSD// W8Px64 (Work;Games)
Nexus 4 //Android
PMEmail PosterUsers WebsiteIntegrity Messenger IM
^
helikaon
 Posted: Jul 17 2011, 04:27 AM
Quote Post


SLF Moderator
******

Group: Moderators
Posts: 521
Member No.: 4
Joined: 8-April 11









Hi,
well, i'm not gonna help on this one either, since i dont know how usage of IPv6 influences firewall settings (ports?), NFS settings (ports again), portmap...?

too many variables here which i cant say ....

cheers,


--------------------
PMEmail Poster
^
NeoAmsterdam
 Posted: Jul 17 2011, 08:08 PM
Quote Post


SLF Geek
****

Group: Members
Posts: 155
Member No.: 181
Joined: 16-May 11









QUOTE (joutlan @ Jul 16 2011, 07:26 PM)
I'll bump it as someone might be able to help you here.  Didn't I hear that Google was migrating to IPv6?  .........   huh.gif
Yes - just in time for the "World IPv6 Day" non-event. Its implementation is mandated in the US for September 2012, if I remember correctly.

QUOTE (helikaon @ Jul 17 2011, 04:27 AM)
Hi,
well, i'm not gonna help on this one either, since i dont know how usage of IPv6 influences firewall settings (ports?), NFS settings (ports again), portmap...?

too many variables here which i cant say ....
I've ruled out the firewall settings for ports and addresses - they're OK. Otherwise I wouldn't be able to SSH, VNC, or "see" the SL/NFS box over Avahi. cool.gif

The prime suspect is /etc/exports: it works fine with dotted-quads but chokes on... uhm... "double-dotted octs". (There's gotta be a better name for IPv6-style addresses other than "a series of colons"... it conjures up a silly mental image http://i23.photobucket.com/albums/b390/pep_133/smileys/rofl.gif?t=1241899258)
PM
^
helikaon
 Posted: Jul 20 2011, 12:07 PM
Quote Post


SLF Moderator
******

Group: Moderators
Posts: 521
Member No.: 4
Joined: 8-April 11









Do we have any update on the NFS? Curious ... smile.gif
BTW. I dont know if i asked already, its dumb basic question - what NFS version you use? Because i think the NFS 3 was buggy with this and only NFS 4 is supposed to have proper support over ipv6...

cheers,


--------------------
PMEmail Poster
^
NeoAmsterdam
 Posted: Jul 20 2011, 08:29 PM
Quote Post


SLF Geek
****

Group: Members
Posts: 155
Member No.: 181
Joined: 16-May 11









QUOTE (helikaon @ Jul 20 2011, 12:07 PM)
Do we have any update on the NFS? Curious ...  smile.gif
Not that I'm aware of.
QUOTE (helikaon @ Jul 20 2011, 12:07 PM)
BTW. I dont know if i asked already, its dumb basic question - what NFS version you use?
Not a dumb question at all. In fact, very good question blink.gif I'm not sure.

Hmm... let's see now... (clickety-clackety noises from the keyboard)... yum shows nfs-utils, nfs-utils-lib, & nfs4-acl-tools installed... (more clatter and a "hmm")... and rpcinfo lists versions 1-4...
I'm going to infer that I've got NFS v4 running.

Strange, though, that rpcinfo shows IPv4 and IPv6 running and some dotted-sextets - not dotted-quads unsure.gif Here's rpcinfo -s...
CODE
  program version(s) netid(s)                         service     owner
   100000  2,3,4     local,udp,tcp,udp6,tcp6          portmapper  superuser
   100024  1         tcp6,udp6,tcp,udp                status      29
   100003  4,3,2     udp,tcp                          nfs         unknown
   100227  3,2       udp,tcp                          nfs_acl     unknown
   100021  4,3,1     tcp6,udp6,tcp,udp                nlockmgr    unknown
   100005  3,2,1     tcp,udp                          mountd      superuser
...and here's rpcinfo...
CODE
  program version netid     address                service    owner
   100000    4    tcp6      ::.0.111               portmapper superuser
   100000    3    tcp6      ::.0.111               portmapper superuser
   100000    4    udp6      ::.0.111               portmapper superuser
   100000    3    udp6      ::.0.111               portmapper superuser
   100000    4    tcp       0.0.0.0.0.111          portmapper superuser
   100000    3    tcp       0.0.0.0.0.111          portmapper superuser
   100000    2    tcp       0.0.0.0.0.111          portmapper superuser
   100000    4    udp       0.0.0.0.0.111          portmapper superuser
   100000    3    udp       0.0.0.0.0.111          portmapper superuser
   100000    2    udp       0.0.0.0.0.111          portmapper superuser
   100000    4    local     /var/run/rpcbind.sock  portmapper superuser
   100000    3    local     /var/run/rpcbind.sock  portmapper superuser
   100024    1    udp       0.0.0.0.189.11         status     29
   100024    1    tcp       0.0.0.0.180.2          status     29
   100024    1    udp6      ::.163.118             status     29
   100024    1    tcp6      ::.190.250             status     29
   100003    2    tcp       0.0.0.0.8.1            nfs        unknown
   100003    3    tcp       0.0.0.0.8.1            nfs        unknown
   100003    4    tcp       0.0.0.0.8.1            nfs        unknown
   100227    2    tcp       0.0.0.0.8.1            nfs_acl    unknown
   100227    3    tcp       0.0.0.0.8.1            nfs_acl    unknown
   100003    2    udp       0.0.0.0.8.1            nfs        unknown
   100003    3    udp       0.0.0.0.8.1            nfs        unknown
   100003    4    udp       0.0.0.0.8.1            nfs        unknown
   100227    2    udp       0.0.0.0.8.1            nfs_acl    unknown
   100227    3    udp       0.0.0.0.8.1            nfs_acl    unknown
   100021    1    udp       0.0.0.0.171.234        nlockmgr   unknown
   100021    3    udp       0.0.0.0.171.234        nlockmgr   unknown
   100021    4    udp       0.0.0.0.171.234        nlockmgr   unknown
   100021    1    tcp       0.0.0.0.205.57         nlockmgr   unknown
   100021    3    tcp       0.0.0.0.205.57         nlockmgr   unknown
   100021    4    tcp       0.0.0.0.205.57         nlockmgr   unknown
   100021    1    udp6      ::.219.19              nlockmgr   unknown
   100021    3    udp6      ::.219.19              nlockmgr   unknown
   100021    4    udp6      ::.219.19              nlockmgr   unknown
   100021    1    tcp6      ::.230.191             nlockmgr   unknown
   100021    3    tcp6      ::.230.191             nlockmgr   unknown
   100021    4    tcp6      ::.230.191             nlockmgr   unknown
   100005    1    udp       0.0.0.0.228.18         mountd     superuser
   100005    1    tcp       0.0.0.0.135.58         mountd     superuser
   100005    2    udp       0.0.0.0.228.18         mountd     superuser
   100005    2    tcp       0.0.0.0.135.58         mountd     superuser
   100005    3    udp       0.0.0.0.228.18         mountd     superuser
   100005    3    tcp       0.0.0.0.135.58         mountd     superuser
Hmm... Ideas?
PM
^
helikaon
 Posted: Jul 21 2011, 03:04 PM
Quote Post


SLF Moderator
******

Group: Moderators
Posts: 521
Member No.: 4
Joined: 8-April 11









Hi,
if you need to find out the version you use i suggest
CODE

man nfsstat
nfsstat -o all -234


This should show you which version you actually use.
Btw did you try to mount your nfs share directly on server itself?
like
CODE

mount localhost:/myNFSshare /whatever-mountpoint-in-my-tree


cheers,


--------------------
PMEmail Poster
^
NeoAmsterdam
 Posted: Jul 22 2011, 03:18 AM
Quote Post


SLF Geek
****

Group: Members
Posts: 155
Member No.: 181
Joined: 16-May 11









man nfsstat is dated "7 Aug 2007", though that might be referring only to the documentation's date. I can't mount via localhost at the moment because /etc/exportfs prohibits traffic to anything except for 192.168.0.0/255.255.248.240 - a feature, not a flaw. The SL6 box dutifully responds "mount.nfs: access denied by server while mounting localhost:/srv/nfs".

Okay... so now you know where I've stashed the good stuff since FHS doesn't actually say "thou shalt serve NFS from these directories; thou shalt have no other shared directories but these."

Finally, it's 90°F, 90% humidity, it's been a long day, I'd have to do some rewiring and generate some hefty traffic before I can nfsstat -o all -234, and I'm all worn out. I'll have to give it a go some other time.

Thanks for the pointers, though.
PM
^
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll