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) |
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. |
Quote:
|
All times are GMT -5. The time now is 07:25 AM. |