[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

ext3 over nfs - can't get rw!



Briefly:
 I'm trying to get an ext3 partition mounted over nfs, from
 therock to bigdaddy.  It comes up as mounted type nfs (rw),
 but using it reports that it's a read-only filesystem.
 As shown below, I've got all the settings that might affect
 this correctly set up.  Well, that's obviously incorrect, but
 /I/ don't know what isn't correct.

 Ideas, anyone?

 Apologies for mail length/no line wrap below.

In depth:
 /etc/passwd files on both machines are harmonised:

  bigdaddy:/home/jaycee# grep jaycee /etc/passwd
  jaycee:x:1000:1000:Me,,,:/home/jaycee:/bin/bash
  therock:/home/jaycee# grep jaycee /etc/passwd
  jaycee:x:1000:1000:Me,,,:/home/jaycee:/bin/bash

 It's reported as mounted rw:

  jaycee@bigdaddy:~$ mount
  /dev/hda2 on / type auto (rw,errors=remount-ro)
  proc on /proc type proc (rw)
  devpts on /dev/pts type devpts (rw,gid=5,mode=620)
  /dev/hda1 on /boot type ext3 (rw)
  /dev/hda5 on /var type ext3 (rw)
  /dev/hda7 on /home type ext3 (rw)
  /dev/hda6 on /usr type ext3 (rw)
  therock:/share on /share type nfs
(rw,noexec,nosuid,nodev,rsize=8192,wsize=8192,soft,addr=192.168.0.2,user=jaycee) 

 This fits in with the client's fstab ...

  jaycee@bigdaddy:~$ cat /etc/fstab
  [snip]
  therock:/share	/share	nfs	rw,rsize=8192,wsize=8192,soft,user,noauto

 ... and the server's exports:

  jaycee@therock:~$ cat /etc/exports
  /share		bigdaddy.jaycee.home(rw,root_squash,squash=0-999
  /backup		*.jaycee.home(rw,no_root_squash)

 I think I've got the appropriate daemons running on both sides:

 therock:/home/jaycee$ ps ax
  PID TTY      STAT   TIME COMMAND
    1 ?        S      0:05 init [2] 
    2 ?        SW     0:00 [keventd]
    3 ?        SWN    0:00 [ksoftirqd_CPU0]
    4 ?        SW     0:00 [kswapd]
    5 ?        SW     0:00 [bdflush]
    6 ?        SW     0:00 [kupdated]
    7 ?        SW     0:01 [kjournald]
   71 ?        SW     0:00 [kjournald]
   72 ?        SW     0:02 [kjournald]
   73 ?        SW     0:03 [kjournald]
   74 ?        SW     0:00 [kjournald]
   75 ?        SW     0:00 [kjournald]
   76 ?        SW     0:00 [kjournald]
   99 ?        S      0:00 /sbin/portmap
  158 ?        S      0:00 /sbin/syslogd
  161 ?        S      0:00 /sbin/klogd
  166 ?        S      0:00 /sbin/rpc.statd
  286 ?        S      0:00 dictd 1.5.5: 0/0
  293 ?        S      0:00 /usr/sbin/inetd
  298 ?        S      0:00 /usr/sbin/lpd
  334 ?        S      0:00 /usr/lib/postgresql/bin/postmaster
  336 ?        S      0:00 postgres: stats buffer process    
  337 ?        S      0:00 postgres: stats collector process   
  349 ?        S      0:05 /usr/sbin/sshd
  355 ?        S      0:06 /usr/bin/X11/xfs -daemon
  358 ?        S      0:00 /usr/sbin/rpc.nfsd
  360 ?        S      0:00 /usr/sbin/rpc.mountd
  364 ?        S      0:00 /usr/sbin/atd
  367 ?        S      0:00 /usr/sbin/cron
  371 ?        S      0:01 /usr/sbin/apache
  374 tty1     S      0:00 /sbin/mingetty tty1
  375 tty2     S      0:00 /sbin/mingetty tty2
  376 tty3     S      0:00 /sbin/mingetty tty3
 2083 ?        S      0:00 /usr/sbin/apache
 2084 ?        S      0:00 /usr/sbin/apache
 3110 ?        S      0:01 /usr/sbin/sshd
 3111 pts/0    S      0:00 -bash
 3124 ?        S      0:02 /usr/sbin/sshd
 3125 pts/1    S      0:00 -bash
 3161 pts/0    S      0:00 bash
 3163 pts/0    R      0:00 ps ax

 jaycee@bigdaddy:~$ ps ax
  PID TTY      STAT   TIME COMMAND
    1 ?        S      0:04 init [2] 
    2 ?        SW     0:01 [keventd]
    3 ?        SWN    0:00 [ksoftirqd_CPU0]
    4 ?        SW     0:06 [kswapd]
    5 ?        SW     0:00 [bdflush]
    6 ?        SW     0:00 [kupdated]
    7 ?        SW     0:00 [kjournald]
   70 ?        SW     0:00 [kjournald]
   71 ?        SW     0:00 [kjournald]
   72 ?        SW     0:04 [kjournald]
   73 ?        SW     0:00 [kjournald]
   95 ?        S      0:00 /sbin/portmap
  150 ?        S      0:00 /sbin/syslogd
  153 ?        S      0:00 /sbin/klogd
  158 ?        S      0:00 /sbin/rpc.statd
  161 ?        S      0:05 /usr/bin/perl /usr/sbin/spamd -d -c
  166 ?        S      0:00 /usr/sbin/exim -bd -q3m
  172 ?        S      0:00 /usr/sbin/inetd
  182 ?        S      0:00 /usr/sbin/sshd
  185 ?        SL     0:00 /usr/sbin/ntpd
  188 ?        S      0:00 /usr/sbin/atd
  191 ?        S      0:00 /usr/sbin/cron
  201 tty1     S      0:00 -bash
  202 tty2     S      0:00 /sbin/mingetty tty2
  203 tty3     S      0:00 /sbin/mingetty tty3
  204 tty4     S      0:00 /sbin/mingetty tty4
  247 ?        SN     0:00 ssh-agent -s
  312 tty1     S      0:00 screen
  313 ?        S      0:50 SCREEN
  550 pts/2    S      0:00 /bin/bash
15262 pts/2    RN     6:39 oggenc -q 4 1.track01.cdda.wav 1.track02.cdda.wav 1.t
15264 pts/0    S      0:00 /bin/bash
15423 pts/1    S      0:00 /bin/bash
15489 pts/1    S      0:00 mutt
15496 pts/1    R      0:02 emacs /tmp/mutt-bigdaddy-15489-0
15497 pts/3    S      0:00 /bin/bash -i
15569 ?        SW     0:00 [rpciod]
15570 ?        SW     0:00 [lockd]
15799 pts/0    S      0:00 ssh therock
15802 pts/3    R      0:00 ps ax

 I'm fairly sure I've got the right lines in hosts.allow (hosts.deny
is ALL:ALL for each box): (NB client is .0.3, server is .0.2)

  jaycee@bigdaddy:~$ cat /etc/hosts.allow
  portmap:	192.168.0. EXCEPT 192.168.0.1
  rpc.statd:	192.168.0. EXCEPT 192.168.0.1
  rpc.mountd:	192.168.0. EXCEPT 192.168.0.1

  jaycee@bigdaddy:~$ ssh therock cat /etc/hosts.allow
  portmap:        192.168.0. EXCEPT 192.168.0.1
  rpc.statd:      192.168.0. EXCEPT 192.168.0.1
  rpc.mountd:     192.168.0. EXCEPT 192.168.0.1
  identd: 127.0.0.1, 192.168.0.

Anything else?  I'm stuck!
Any help MUCH appreciated!

jc

-- 
It may stop, it may not.  And stop calling me "dj".


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: