Hello
I can mount a NFS server fine manually. And I put this in /etc/fstab
Quote:
XX.XX.XX.XX:/share/inmemory.no /mnt/nasse nfs hard,nosuid,intr,async,bg 0 0
|
The XX is the ip address of a NAS. I've been trying different options but it doesn't seem to make a difference.
The end of dmesg after a reboot is this:
Quote:
... mounting of local disks here
[ 15.655668] EXT4-fs (sdf1): mounted filesystem with ordered data mode
[ 16.273155] ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 16.276402] e1000: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX
[ 16.284351] ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[ 18.540255] fuse init (API version 7.13)
[ 25.707168] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 26.406467] eth1: no IPv6 routers present
|
But the NAS is not mounted. And I can find nothing in the logs about it. When I do "mount /mnt/nasse" or "mount -a" this is added to dmesg:
Quote:
[ 253.495731] RPC: Registered udp transport module.
[ 253.495736] RPC: Registered tcp transport module.
[ 253.495739] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 253.547313] Slow work thread pool: Starting up
[ 253.547521] Slow work thread pool: Ready
[ 253.547661] FS-Cache: Loaded
[ 253.600391] FS-Cache: Netfs 'nfs' registered for caching
|
And now the mount is fine. Anyone have any idea on how to troubleshoout this?
The NFS client is a server running Debian Squeeze LTS and the NFS server is some QNAP NAS box. I think the problem is on the client side because mounting manually works fine.
I searched the net and found many similar threads, but no solutions seem to work for me.
Maybe I should do it in a different way? The perfect solution would be like this:
- If the NAS is down, keep retrying till it comes up.
- And it would be better if Apache isn't started until the NAS is up.
- Is there a way to stop Apache if the NAS box goes down?
Maybe mounting in fstab is not the best way in this scenario?