automount problem

Discussion about using NAS on Linux and Unix OS.
Post Reply
urandom
New here
Posts: 8
Joined: Fri Oct 05, 2007 2:35 am

automount problem

Post by urandom »

Hello!

Just bought me a brandly new TS-209 Pro ;)

First thing I did was to upgrade the firmware to latest level (1.1.1 Build 083).

I have many linux workstations and I need to get the NFS server running properly
on my new device TS-209 Pro.

When I mount nfs shares manually from TS-209 it works fine.
But when I trying to use the automount daemon on my linux stations, they can not mount any of my exported filesystems from the nfs server.

I receive no mount points with showmount --all my_TS-209
But as I mentioned earlier, I can mount my exported filesystems manually.

As far as I understand, "rpc.statd" must be running on the nfs server if
I want to use automount with RPC services.
I checked on my NAS server which NFS daemons running and found following.
/usr/bin/portmap
/usr/sbin/rpc.rquotad
/usr/sbin/rpc.mountd
nfsd
/usr/sbin/rpc.statd
Everything seems to be okay


Any idea what can be wrong?

Regards,
//urandom
User avatar
AndyChuo
Experience counts
Posts: 2388
Joined: Thu Sep 13, 2007 11:56 am
Location: Taipei, Taiwan

Re: automount problem

Post by AndyChuo »

Hi urandom,
First thing I did was to upgrade the firmware to latest level (1.1.1 Build 083).
There's a bug contained in the 0831 build so try flash it agin with the latest 0928 build and let us know how it goes.

Andy
=============================================================>>>
TS-659-Pro [RAID6] rtorrent+SABnzbdplus+SickBeard+Couchpotato [Best PVR] Plex+PMS [Ultimate Streamer]
Apple iPad [Best Tablet] HTC One M8 [Mobile Phone] Samsung UA46ES6100 [My Screen] KRK Rokit 6 [Audio Speakers]
Chrome Cast [Screen Casting] Philips Hue [Personal Lighing]
Buffalo WZR-1750DHP [My Wifi Hub] D-Link DGS-1005D [Gbit Network]
=============================================================>>>
urandom
New here
Posts: 8
Joined: Fri Oct 05, 2007 2:35 am

Re: automount problem

Post by urandom »

QNAPAndy wrote:Hi urandom,
First thing I did was to upgrade the firmware to latest level (1.1.1 Build 083).
There's a bug contained in the 0831 build so try flash it agin with the latest 0928 build and let us know how it goes.

Andy
Hi Andy,

My current firmware is version: 1.1.2 Build 0928T, after a successful update.
But still same problem.

Below you perhaps will find some useful output for debugging.

First my automount configuration:
[root@baldur ~]# cat /etc/auto.master
/auto /etc/auto.misc --timeout=60
[root@baldur ~]# cat /etc/auto.misc
alfa -fstype=nfs,ro alfa:/home
sunshine -fstype=nfs,rw suneshine:/tony

Restart of automount daemon:
[root@baldur ~]# /etc/rc.d/autofs restart
:: Stopping automounter [DONE]
:: Starting automounter [BUSY]
/auto [DONE]
[root@baldur ~]#


Lets check auto mounts:

[root@baldur ~]# cd /auto/
[root@baldur auto]# ls
[root@baldur auto]# ls alfa
catrin dakke esa ftp guest jci01 lost+found olle pirkko quota.user rookie siw sus swedala temp tl tonyl tonymobil
[root@baldur auto]# ls sunshine
ls: cannot access sunshine: No such file or directory
[root@baldur auto]# showmount --all alfa
All mount points on alfa:
baldur.tonyl.nu:/home
bloated.tonyl.nu:/home
ripper.tonyl.nu:/home
[root@baldur auto]# showmount --all sunshine
All mount points on sunshine:
[root@baldur auto]#

Can we mount manually from my TS-209 Pro nfs exports?
[root@baldur auto]# mount -t nfs sunshine:/tony /import/tony
[root@baldur auto]# mount -t nfs sunshine:/Public /import/public
root@baldur auto]# df | grep sunshine
sunshine:/tony 479596896 199008 479397888 1% /import/tony
sunshine:/Public 479596896 199008 479397888 1% /import/public

Host baldur log file:
Oct 5 20:53:36 baldur automount[21468]: attempting to mount entry /auto/alfa
Oct 5 20:53:36 baldur automount[21479]: lookup(file): alfa -> -fstype=nfs,ro alfa:/home
Oct 5 20:53:36 baldur automount[21479]: parse(sun): expanded entry: -fstype=nfs,ro alfa:/home
Oct 5 20:53:36 baldur automount[21479]: parse(sun): dequote("fstype=nfs,ro") -> fstype=nfs,ro
Oct 5 20:53:36 baldur automount[21479]: parse(sun): gathered options: fstype=nfs,ro
Oct 5 20:53:36 baldur automount[21479]: parse(sun): dequote("alfa:/home") -> alfa:/home
Oct 5 20:53:36 baldur automount[21479]: parse(sun): core of entry: options=fstype=nfs,ro, loc=alfa:/home
Oct 5 20:53:36 baldur automount[21479]: parse(sun): mounting root /auto, mountpoint alfa, what alfa:/home, fstype nfs, options ro
Oct 5 20:53:36 baldur automount[21479]: mount(nfs): root=/auto name=alfa what=alfa:/home, fstype=nfs, options=ro
Oct 5 20:53:36 baldur automount[21479]: mount(nfs): nfs options="ro", nosymlink=0, ro=1
Oct 5 20:53:36 baldur automount[21479]: mount(nfs): winner = alfa local = 0
Oct 5 20:53:36 baldur automount[21479]: mount(nfs): from alfa:/home elected alfa:/home
Oct 5 20:53:36 baldur automount[21479]: mount(nfs): calling mkdir_path /auto/alfa
Oct 5 20:53:36 baldur automount[21479]: mount(nfs): calling mount -t nfs -s -o ro alfa:/home /auto/alfa
Oct 5 20:53:36 baldur automount[21479]: mount(nfs): mounted alfa:/home on /auto/alfa
Oct 5 20:53:36 baldur automount[21468]: handle_child: got pid 21479, sig 0 (0), stat 0
Oct 5 20:53:36 baldur automount[21468]: sig_child: found pending iop pid 21479: signalled 0 (sig 0), exit status 0
Oct 5 20:53:36 baldur automount[21468]: send_ready: token=57
Oct 5 20:53:40 baldur automount[21468]: handle_packet: type = 0
Oct 5 20:53:40 baldur automount[21468]: handle_packet_missing: token 58, name sunshine
Oct 5 20:53:40 baldur automount[21468]: attempting to mount entry /auto/sunshine
Oct 5 20:53:40 baldur automount[21486]: lookup(file): sunshine -> -fstype=nfs,rw suneshine:/tony
Oct 5 20:53:40 baldur automount[21486]: parse(sun): expanded entry: -fstype=nfs,rw suneshine:/tony
Oct 5 20:53:40 baldur automount[21486]: parse(sun): dequote("fstype=nfs,rw") -> fstype=nfs,rw
Oct 5 20:53:40 baldur automount[21486]: parse(sun): gathered options: fstype=nfs,rw
Oct 5 20:53:40 baldur automount[21486]: parse(sun): dequote("suneshine:/tony") -> suneshine:/tony
Oct 5 20:53:40 baldur automount[21486]: parse(sun): core of entry: options=fstype=nfs,rw, loc=suneshine:/tony
Oct 5 20:53:40 baldur automount[21486]: parse(sun): mounting root /auto, mountpoint sunshine, what suneshine:/tony, fstype nfs, options rw
Oct 5 20:53:40 baldur automount[21486]: mount(nfs): root=/auto name=sunshine what=suneshine:/tony, fstype=nfs, options=rw
Oct 5 20:53:40 baldur automount[21486]: mount(nfs): nfs options="rw", nosymlink=0, ro=0
Oct 5 20:53:40 baldur automount[21486]: mount(nfs): host suneshine: lookup failure
Oct 5 20:53:40 baldur automount[21486]: mount(nfs): winner = (null) local = 0
Oct 5 20:53:40 baldur automount[21486]: mount(nfs): no host elected
Oct 5 20:53:40 baldur automount[21486]: failed to mount /auto/sunshine
Oct 5 20:53:40 baldur automount[21486]: umount_multi: path=/auto/sunshine incl=1
Oct 5 20:53:40 baldur automount[21486]: umount_multi: no mounts found under /auto/sunshine
Oct 5 20:53:40 baldur automount[21468]: handle_child: got pid 21486, sig 0 (0), stat 1
Oct 5 20:53:40 baldur automount[21468]: sig_child: found pending iop pid 21486: signalled 0 (sig 0), exit status 1
Oct 5 20:53:40 baldur automount[21468]: send_fail: token=58
Oct 5 20:53:40 baldur automount[21468]: handle_packet: type = 0
Oct 5 20:53:40 baldur automount[21468]: handle_packet_missing: token 59, name sunshine


Any more ideas?

Regards,
//urandom
urandom
New here
Posts: 8
Joined: Fri Oct 05, 2007 2:35 am

Re: automount problem

Post by urandom »

urandom wrote:
QNAPAndy wrote:Hi urandom,
First thing I did was to upgrade the firmware to latest level (1.1.1 Build 083).
There's a bug contained in the 0831 build so try flash it agin with the latest 0928 build and let us know how it goes.

Andy
Hi Andy,

My current firmware is version: 1.1.2 Build 0928T, after a successful update.
But still same problem.

Below you perhaps will find some useful output for debugging.

First my automount configuration:
[root@baldur ~]# cat /etc/auto.master
/auto /etc/auto.misc --timeout=60
[root@baldur ~]# cat /etc/auto.misc
alfa -fstype=nfs,ro alfa:/home
sunshine -fstype=nfs,rw suneshine:/tony

Restart of automount daemon:
[root@baldur ~]# /etc/rc.d/autofs restart
:: Stopping automounter [DONE]
:: Starting automounter [BUSY]
/auto [DONE]
[root@baldur ~]#


Lets check auto mounts:

[root@baldur ~]# cd /auto/
[root@baldur auto]# ls
[root@baldur auto]# ls alfa
catrin dakke esa ftp guest jci01 lost+found olle pirkko quota.user rookie siw sus swedala temp tl tonyl tonymobil
[root@baldur auto]# ls sunshine
ls: cannot access sunshine: No such file or directory
[root@baldur auto]# showmount --all alfa
All mount points on alfa:
baldur.tonyl.nu:/home
bloated.tonyl.nu:/home
ripper.tonyl.nu:/home
[root@baldur auto]# showmount --all sunshine
All mount points on sunshine:
[root@baldur auto]#

Can we mount manually from my TS-209 Pro nfs exports?
[root@baldur auto]# mount -t nfs sunshine:/tony /import/tony
[root@baldur auto]# mount -t nfs sunshine:/Public /import/public
root@baldur auto]# df | grep sunshine
sunshine:/tony 479596896 199008 479397888 1% /import/tony
sunshine:/Public 479596896 199008 479397888 1% /import/public

Host baldur log file:
Oct 5 20:53:36 baldur automount[21468]: attempting to mount entry /auto/alfa
Oct 5 20:53:36 baldur automount[21479]: lookup(file): alfa -> -fstype=nfs,ro alfa:/home
Oct 5 20:53:36 baldur automount[21479]: parse(sun): expanded entry: -fstype=nfs,ro alfa:/home
Oct 5 20:53:36 baldur automount[21479]: parse(sun): dequote("fstype=nfs,ro") -> fstype=nfs,ro
Oct 5 20:53:36 baldur automount[21479]: parse(sun): gathered options: fstype=nfs,ro
Oct 5 20:53:36 baldur automount[21479]: parse(sun): dequote("alfa:/home") -> alfa:/home
Oct 5 20:53:36 baldur automount[21479]: parse(sun): core of entry: options=fstype=nfs,ro, loc=alfa:/home
Oct 5 20:53:36 baldur automount[21479]: parse(sun): mounting root /auto, mountpoint alfa, what alfa:/home, fstype nfs, options ro
Oct 5 20:53:36 baldur automount[21479]: mount(nfs): root=/auto name=alfa what=alfa:/home, fstype=nfs, options=ro
Oct 5 20:53:36 baldur automount[21479]: mount(nfs): nfs options="ro", nosymlink=0, ro=1
Oct 5 20:53:36 baldur automount[21479]: mount(nfs): winner = alfa local = 0
Oct 5 20:53:36 baldur automount[21479]: mount(nfs): from alfa:/home elected alfa:/home
Oct 5 20:53:36 baldur automount[21479]: mount(nfs): calling mkdir_path /auto/alfa
Oct 5 20:53:36 baldur automount[21479]: mount(nfs): calling mount -t nfs -s -o ro alfa:/home /auto/alfa
Oct 5 20:53:36 baldur automount[21479]: mount(nfs): mounted alfa:/home on /auto/alfa
Oct 5 20:53:36 baldur automount[21468]: handle_child: got pid 21479, sig 0 (0), stat 0
Oct 5 20:53:36 baldur automount[21468]: sig_child: found pending iop pid 21479: signalled 0 (sig 0), exit status 0
Oct 5 20:53:36 baldur automount[21468]: send_ready: token=57
Oct 5 20:53:40 baldur automount[21468]: handle_packet: type = 0
Oct 5 20:53:40 baldur automount[21468]: handle_packet_missing: token 58, name sunshine
Oct 5 20:53:40 baldur automount[21468]: attempting to mount entry /auto/sunshine
Oct 5 20:53:40 baldur automount[21486]: lookup(file): sunshine -> -fstype=nfs,rw suneshine:/tony
Oct 5 20:53:40 baldur automount[21486]: parse(sun): expanded entry: -fstype=nfs,rw suneshine:/tony
Oct 5 20:53:40 baldur automount[21486]: parse(sun): dequote("fstype=nfs,rw") -> fstype=nfs,rw
Oct 5 20:53:40 baldur automount[21486]: parse(sun): gathered options: fstype=nfs,rw
Oct 5 20:53:40 baldur automount[21486]: parse(sun): dequote("suneshine:/tony") -> suneshine:/tony
Oct 5 20:53:40 baldur automount[21486]: parse(sun): core of entry: options=fstype=nfs,rw, loc=suneshine:/tony
Oct 5 20:53:40 baldur automount[21486]: parse(sun): mounting root /auto, mountpoint sunshine, what suneshine:/tony, fstype nfs, options rw
Oct 5 20:53:40 baldur automount[21486]: mount(nfs): root=/auto name=sunshine what=suneshine:/tony, fstype=nfs, options=rw
Oct 5 20:53:40 baldur automount[21486]: mount(nfs): nfs options="rw", nosymlink=0, ro=0
Oct 5 20:53:40 baldur automount[21486]: mount(nfs): host suneshine: lookup failure
Oct 5 20:53:40 baldur automount[21486]: mount(nfs): winner = (null) local = 0
Oct 5 20:53:40 baldur automount[21486]: mount(nfs): no host elected
Oct 5 20:53:40 baldur automount[21486]: failed to mount /auto/sunshine
Oct 5 20:53:40 baldur automount[21486]: umount_multi: path=/auto/sunshine incl=1
Oct 5 20:53:40 baldur automount[21486]: umount_multi: no mounts found under /auto/sunshine
Oct 5 20:53:40 baldur automount[21468]: handle_child: got pid 21486, sig 0 (0), stat 1
Oct 5 20:53:40 baldur automount[21468]: sig_child: found pending iop pid 21486: signalled 0 (sig 0), exit status 1
Oct 5 20:53:40 baldur automount[21468]: send_fail: token=58
Oct 5 20:53:40 baldur automount[21468]: handle_packet: type = 0
Oct 5 20:53:40 baldur automount[21468]: handle_packet_missing: token 59, name sunshine


Any more ideas?

Regards,
//urandom

I must apologize.
When I started to debug this I found the problem.
I have spelled the hostname wrong in the automount configuration file.
"sunshine -fstype=nfs,rw suneshine:/tony"
Hostname is sunshine, not suneshine.

Everything works fine now with automount ;)

Sorry forthe inconvenience.

Best regards,
//urandom
User avatar
AndyChuo
Experience counts
Posts: 2388
Joined: Thu Sep 13, 2007 11:56 am
Location: Taipei, Taiwan

Post by AndyChuo »

oops typos, not at all man. you saved our time by examining the prob youself that's a good thing too. :D
=============================================================>>>
TS-659-Pro [RAID6] rtorrent+SABnzbdplus+SickBeard+Couchpotato [Best PVR] Plex+PMS [Ultimate Streamer]
Apple iPad [Best Tablet] HTC One M8 [Mobile Phone] Samsung UA46ES6100 [My Screen] KRK Rokit 6 [Audio Speakers]
Chrome Cast [Screen Casting] Philips Hue [Personal Lighing]
Buffalo WZR-1750DHP [My Wifi Hub] D-Link DGS-1005D [Gbit Network]
=============================================================>>>
Post Reply

Return to “Linux & Unix (NFS)”