Thread: autofs(5): direct mapping NFS4 share
dear all,
last couple hrs. since evening i'm trying figure out how make autofa5 work [with nfs4] using [in]direct mapping no joy far. so, deiced ask here.
firsty, "/etc/exports" on nfs4 server (centos 5.6):
and have in there:code:/media/export htpc(ro,sync,no_subtree_check,no_root_squash,fsid=0) /media/export/mmusic htpc(ro,sync,no_subtree_check,no_root_squash)
on client (lucid, v10.04),code:[root@serv03 /]# ls -l /media/export/mmusic total 16 drwxrwxr-x 11 databank lhome 4096 jun 23 21:25 itunes drwxrwxr-x 3 databank lhome 4096 aug 19 2010 network trash folder drwxrwxr-x 3 databank lhome 4096 aug 13 2010 streaming radio drwxrwxr-x 3 databank lhome 4096 aug 19 2010 temporary items
and /etc/auto.mmusic:code:root@htpc:~# cat /etc/auto.master # # sample auto.master file # automounter map , has following format # key [ -mount-options-separated-by-comma ] location # # mount mmusic serv03 /- /etc/auto.mmusic +auto.masterwhich generate line like:code:root@htpc:~# cat /etc/auto.mmusic #!/bin/bash nfsserv=serv03 mntopts="-fstype=nfs4,ro,async,_netdev,rsize=32768,wsize=32768,hard,intr" /bin/echo -n "/media/nmedia/mmusic" /bin/echo -n -e "\t" /bin/echo -n "${mntopts}" /bin/echo -n -e "\t" /bin/echo "${nfsserv}:/mmusic"/media/nmedia/mmusic -fstype=nfs4,ro,async,_netdev,rsize=32768,wsize=327 68,hard,intr serv03:/mmusicbut doesn't work - neither throws errors in, nor mount share. need mount "/mmusic" (i.e. /media/export/mmusic) "serv03:/media/nmedia/mmusic" tree looks this:
code:. |-- media | |-- nmedia | | |-- mmusic | | | |-- itunes | | | |-- network trash folder | | | |-- streaming radio | | | `-- temporary items
if mount manually, same share mounts nicely without problem:
but no joy @ autofs(5). know if i'm missing here or doing wrong? appreciated. cheers!!code:root@htpc:/media# mount serv03:/mmusic -t nfs4 /media/nmedia/mmusic root@htpc:/media# mount | grep mmusic serv03:/mmusic on /media/nmedia/mmusic type nfs4 (rw,clientaddr=10.0.11.12,addr=10.0.11.20) root@htpc:/media# ls -l /media/nmedia/mmusic/ total 16 drwxrwxr-x 11 4294967294 4294967294 4096 2011-06-23 21:25 itunes drwxrwxr-x 3 4294967294 4294967294 4096 2010-08-19 20:40 network trash folder drwxrwxr-x 3 4294967294 4294967294 4096 2010-08-13 09:50 streaming radio drwxrwxr-x 3 4294967294 4294967294 4096 2010-08-19 20:40 temporary items
sorry rushing guys - i'm stuck here , need fixed quick. there out here been able use autofa5 + nfs4 yet? cheers!!
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] autofs(5): direct mapping NFS4 share
Ubuntu
Comments
Post a Comment