NFS mount /usr/local

Charlie Kravetz cjk at teamcharliesangels.com
Mon Dec 29 03:14:25 GMT 2008


On Sun, 28 Dec 2008 20:56:34 -0500
"Alex Katebi" <alex.katebi at gmail.com> wrote:

> On Sun, Dec 28, 2008 at 7:26 PM, Charlie Kravetz
> <cjk at teamcharliesangels.com
> > wrote:
> 
> > On Sun, 28 Dec 2008 18:23:32 -0500
> >  "Alex Katebi" <alex.katebi at gmail.com> wrote:
> >
> > >  The UID is the same on both machines. But I noticed that when I
> > > have one NFS mount point, it works. I can not have both. This
> > > looks like a bug. On Sun, Dec 28, 2008 at 5:42 PM, Charlie Kravetz
> > > <cjk at teamcharliesangels.com
> > > > wrote:
> > >
> > > >  On Sun, 28 Dec 2008 17:08:35 -0500
> > > > "Alex Katebi" <alex.katebi at gmail.com> wrote:
> > > >
> > > > > Whay can't I mount /usr/local. The client hangs at boot.
> > > > >
> > > > > server configuration is in /etc/exports :
> > > > >
> > > > > /home         192.168.1.0/255.255.255.0 (rw,
> > > > > sync,no_subtree_check) /usr/local    192.168.1.0/255.255.255.0
> > > > > (rw, sync,no_subtree_check)
> > > > >
> > > > > client configuration is in /etc/fstab:
> > > > >
> > > > > 192.168.1.100:/home        /home         nfs rw,hard,intr  0
> > > > > 0 192.168.1.100:/usr/local   /usr/local    nfs rw,hard,intr
> > > > > 0  0
> > > > >
> > > > > /home is ok but /usr/local does not work. If I mount it after
> > > > > boot like below it works:
> > > > >
> > > > > sudo mount 192.168.1.100:/usr/local  /usr/local
> > > > >
> > > > > Any help is welcomed?
> > > > >
> > > > > Thanks,
> > > > > -Alex
> 
>   I noticed that I had installed chkconfig. This script is not native
> to Ubuntu. It is a replacement for update-rc.d. Potentially it starts
> nfs-common and portmap at the wrong runlevels for me.
> Would you be kind enough to tell me step by step how you setup your
> nfs server and client using the update-rc.d or invoke-rc.d and what
> was the exact syntax of your /etc/fstab?
> 
> 

As you requested, the /etc/fstab on the clients is:

# /etc/fstab: static file system information.
# cjk_note - added nfs information
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/sda1
UUID=fa0ae6ff-47ba-488d-aac6-afd44007fd27 /               ext3
relatime,errors=remount-ro 0       1 
# /dev/sda7
UUID=c72a9acf-bca7-4c34-9a3b-24ddc2fc28ac /home           ext3
relatime        0       2 
# /dev/sda5
UUID=70a1b64b-a44a-4451-aede-4faeb2d0a02c /tmp            ext3
relatime        0       2 
# /dev/sda2
UUID=748f8b5e-f881-45e6-86bd-5f39e9f5f256 /var            ext3
relatime        0       2 
# /dev/sda6
UUID=02da57d9-4671-497d-addc-15e0ac086c22 none            swap
sw              0       0 
##
## sdb drives are on SATA cable
# /dev/sdb2 - old eMachines home
UUID=920be654-a13c-4688-beae-c107ae3275da /mnt/sdb2       ext3
relatime        0       2 
# /dev/sdb6 - VirtualBox drives
UUID=59274ed9-1b9b-4362-a76a-7a42a28d4f99 /home/VirtualBox  ext3
relatime        0       2 
## 
## /dev/scd is my cdrw drive;
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8
0       0 
## 
## 
192.168.51.1:/home			    /mnt/whynot-home
nfs	rw,hard,intr	0	0
192.168.51.1:/home/Downloads	/home/Downloads   nfs
rw,hard,intr	0	0
192.168.51.1:/home/x-u-buntu_involvement    /home/x-u-buntu_involvement
nfs    rw,hard,intr    0    0
192.168.51.1:/usr/share		    /mnt/whynot-usr-share
nfs	ro,hard,intr	0	0
192.168.51.1:/var/log			/mnt/whynot-var-log
nfs	ro,hard,intr	0	0
192.168.51.1:/var/www			/mnt/whynot-var-www
nfs	rw,hard,intr	0	0

/etc/exports on the server:

/home   192.168.51.2(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.3(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.4(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.5(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.6(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.7(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.8(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.9(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.10(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.11(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.12(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.13(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.14(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.15(rw,sync,no_root_squash,no_subtree_check)
#
##
/home/Downloads   192.168.51.2(rw,sync,no_root_squash,no_subtree_check)
\ 192.168.51.3(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.4(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.5(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.6(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.7(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.8(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.9(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.10(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.11(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.12(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.13(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.14(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.15(rw,sync,no_root_squash,no_subtree_check)
#
##
/usr/share   192.168.51.2(ro,sync,root_squash,no_subtree_check) \
192.168.51.3(ro,sync,root_squash,no_subtree_check) \
192.168.51.4(ro,sync,root_squash,no_subtree_check) \
192.168.51.5(ro,sync,root_squash,no_subtree_check) \
192.168.51.6(ro,sync,root_squash,no_subtree_check) \
192.168.51.7(ro,sync,root_squash,no_subtree_check) \
192.168.51.8(ro,sync,root_squash,no_subtree_check) \
192.168.51.9(ro,sync,root_squash,no_subtree_check) \
192.168.51.10(ro,sync,root_squash,no_subtree_check) \
192.168.51.11(ro,sync,root_squash,no_subtree_check) \
192.168.51.12(ro,sync,root_squash,no_subtree_check) \
192.168.51.13(ro,sync,root_squash,no_subtree_check) \
192.168.51.14(ro,sync,root_squash,no_subtree_check) \
192.168.51.15(ro,sync,root_squash,no_subtree_check)
# 
##
/var/www   192.168.51.2(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.3(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.4(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.5(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.6(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.7(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.8(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.9(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.10(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.11(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.12(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.13(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.14(rw,sync,no_root_squash,no_subtree_check) \
192.168.51.15(rw,sync,no_root_squash,no_subtree_check)
# 
##
/var/log   192.168.51.2(ro,sync,root_squash,no_subtree_check) \
192.168.51.3(ro,sync,root_squash,no_subtree_check) \
192.168.51.4(ro,sync,root_squash,no_subtree_check) \
192.168.51.5(ro,sync,root_squash,no_subtree_check) \
192.168.51.6(ro,sync,root_squash,no_subtree_check) \
192.168.51.7(ro,sync,root_squash,no_subtree_check) \
192.168.51.8(ro,sync,root_squash,no_subtree_check) \
192.168.51.9(ro,sync,root_squash,no_subtree_check) \
192.168.51.10(ro,sync,root_squash,no_subtree_check) \
192.168.51.11(ro,sync,root_squash,no_subtree_check) \
192.168.51.12(ro,sync,root_squash,no_subtree_check) \
192.168.51.13(ro,sync,root_squash,no_subtree_check) \
192.168.51.14(ro,sync,root_squash,no_subtree_check) \
192.168.51.15(ro,sync,root_squash,no_subtree_check)
# 

I do not seem to use the update-rc.d or invoke-rc.d



-- 
Charlie Kravetz 
Linux Registered User Number 425914          [http://counter.li.org/]
Never let anyone steal your DREAM.           [http://keepingdreams.com]




More information about the ubuntu-users mailing list