LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-24-2011, 07:59 AM   #1
zkab
Member
 
Registered: Dec 2007
Posts: 142

Rep: Reputation: 16
NFS Problems


Have a problem with NFS mounted disks.
On a Debian server (NSLU2) I added two disks to use as backups ('BackUp_1' & 'BackUp_2') and a recording disk ('Inspelningar') for a HTPC.
Disk 1 has 2 partitions 'BackUp_1' and 'Inspelningar'.
Disk 2 has 1 partition 'BackUp_2'.

Here are outputs of 'fstab' and 'exports' and 'mount'
-----------------------------------------------------
raivo@NSLU2:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda1 during installation
UUID=b88be199-e99e-4355-815c-e0d3c14d1a76 / ext3 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=c07a17a9-8b1e-4be2-bb79-883389b1862b none swap sw 0 0

#/dev/sdb1 /disk_2 ext3 defaults,errors=remount-ro 0 1
UUID=8393ff8a-e3f0-4ff5-99ab-37958cdf8ea2 /disk_2 ext3 defaults,errors=remount-ro 0 1

#/dev/sda1 /home/raivo/BackUp_1 ext3 defaults,errors=remount-ro 0 1
UUID=20745f6e-07e1-4fb7-8deb-ddf0dcfdf0f3 /home/raivo/BackUp_1 ext3 defaults,errors=remount-ro 0 1

#/dev/sda2 /home/raivo/Inspelningar ext3 defaults,errors=remount-ro 0 1
UUID=125e715d-cb46-4135-ae8f-cffe6f0946b1 /home/raivo/Inspelningar ext3 defaults,errors=remount-ro 0 1

#/dev/sdb1 /home/raivo/BackUp_2 ext3 defaults,errors=remount-ro 0 1
UUID=e4bc62bb-1fca-4b2c-8a93-5659b74d344a /home/raivo/BackUp_2 ext3 defaults,errors=remount-ro 0 1

/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

----------------------------------------------------
raivo@NSLU2:~$ cat /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#

/home/raivo/ 192.168.0.4(rw,subtree_check,sync)
/disk_2 192.168.0.4(rw,subtree_check,sync)

/home/raivo/ 192.168.0.2(rw,subtree_check,sync)
/disk_2 192.168.0.2(rw,subtree_check,sync)

/home/raivo/Inspelningar/DBMovie/DB1 192.168.0.8(rw,subtree_check,sync)
/home/raivo/Inspelningar/DBMovie/DB2 192.168.0.9(rw,subtree_check,sync)
/home/raivo/Inspelningar/DBMovie/DB3 192.168.0.10(rw,subtree_check,sync)

----------------------------------------------------
raivo@NSLU2:~$ mount
/dev/sdc1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sdd1 on /disk_2 type ext3 (rw,errors=remount-ro)
/dev/sda1 on /home/raivo/BackUp_1 type ext3 (rw,errors=remount-ro)
/dev/sda2 on /home/raivo/Inspelningar type ext3 (rw,errors=remount-ro)
/dev/sdb1 on /home/raivo/BackUp_2 type ext3 (rw,errors=remount-ro)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)

----------------------------------------------------
When I try to pick up the NFS volumes on my desktop (zkab - 192.168.0.4) I only see the subdir

/home/raivo/BackUp_1
/home/raivo/BackUp_2
/home/raivo/Inspelningar

but not the files in the subdirs.
I have used autofs at my desktop with following:

raivo@zkab / $ cat /etc/auto.master
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#
/nfs /etc/auto.nfs --ghost

----------------------------------------------------
raivo@zkab / $ cat /etc/auto.nfs
Arkiv_X -fstype=nfs,rw,hard,intr,rsize=65536,wsize=65536 arkiv-x:/home
Arkiv_Disk -fstype=nfs,rw,hard,intr,rsize=65536,wsize=65536 arkiv-x:/Arkiv_Disk/home
NSLU2 -fstype=nfs,rw,hard,intr,rsize=65536,wsize=65536 NSLU2:/home/raivo/
NSLU2_Disk_2 -fstype=nfs,rw,hard,intr,rsize=65536,wsize=65536 NSLU2:/disk_2

----------------------------------------------------
Also I don't understand why /home/raivo/Inspelningar/DBMovie/DB1->DB3 don't get mounted in server NSLU2 since 'showmount'
gives me strange output ... where does '/home/raivo/DBMovie/DB2' and '/home/raivo/DBMovie/DB3' come from ... outer space maybe:

raivo@zkab / $ sudo showmount -a NSLU2
All mount points on NSLU2:
192.168.0.10:/home/raivo/DBMovie/DB3
192.168.0.2:/disk_2
192.168.0.2:/home/raivo
192.168.0.4:/disk_2
192.168.0.4:/home/raivo
192.168.0.9:/home/raivo/DBMovie/DB2

I have spent hours to trying to get it work ... but can't figure out where I have missed.
(BTW ... the server 'arkiv-x' works OK and I get the NFS volumes correctly on my desktop)
 
Old 10-24-2011, 03:15 PM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan with some Tiny Core, Fatdog, Haiku, & BSD thrown in.
Posts: 5,443

Rep: Reputation: Disabled
Please understand, I am not an expert, just trying to help.

>When I try to pick up the NFS volumes on my desktop (zkab - 192.168.0.4) I only see the subdir
>/home/raivo/BackUp_1
>/home/raivo/BackUp_2
>/home/raivo/Inspelningar
>but not the files in the subdirs.

I don't think you are exporting the sub directories in /etc/exports.
(Suggest a re read of man)

>Also I don't understand why /home/raivo/Inspelningar/DBMovie/DB1->DB3 don't get mounted in server NSLU2 since 'showmount'
>gives me strange output ... where does '/home/raivo/DBMovie/DB2' and '/home/raivo/DBMovie/DB3' come from ... outer space mayb

I think, from /etc/exports

..but no DB1 ? Perhaps its not mounted.

Hope this helps a little.
 
Old 10-25-2011, 08:17 AM   #3
zkab
Member
 
Registered: Dec 2007
Posts: 142

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by fatmac View Post
I don't think you are exporting the sub directories in /etc/exports.
(Suggest a re read of man)
Since BackUp_1 & BackUp_2 & Inspelningar are subir of /home/raivo and I export /home/raivo ... then they should be exported.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] NFS mount fails (times out): NFS server is in DMZ, NFS client is in intranet Hiroshi Linux - Networking 2 05-24-2010 10:22 AM
NFS problems smart_shell Linux - Networking 1 01-28-2010 04:33 PM
NFS and RH Cluster Suite; Problems relating services/resources to NFS l_long_island Linux - Server 5 08-30-2008 11:20 AM
Very Slow Exporting during NFS Start / Many NFS Problems VorlonInfoTech Linux - Networking 3 06-28-2006 06:48 PM
NFS Problems cdeverapalli Linux - Networking 4 10-23-2004 11:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration