All of lore.kernel.org
 help / color / mirror / Atom feed
* Can't mount nfs rw
@ 2002-09-04 17:39 Nicholas Lafferty
  2002-09-05  2:34 ` Neil Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Nicholas Lafferty @ 2002-09-04 17:39 UTC (permalink / raw)
  To: nfs

I'm having problems getting my diskless clients to mount NFS directories in
Read-Write mode. I'm using bpbatch and tftp to transfer the kernel and a
ramdisk for the root file system. I pass an initscript to the kernel that
mounts the root file system of the server as read-only (mounts on /ro),
/home/guest/share mounts as ro2 (read-only), and /home/guest/01 mounts as
/rw (read-write). Then init is invoked. The problem is that all of the
mounts are read-only.

#Here is what my initscript does for the mounts.
mount-t nfs -o nolock,ro,vers=2 $SERVER:/      /ro
mount-t nfs -o nolock,ro,vers=2 $SERVER:/home/guest/share      /ro2
mount-t nfs -o nolock,rw,vers=2 $SERVER:/home/guest/$ID      /rw

/sbin/init '#'

# Here is my /etc/exports
/
192.168.0.0/255.255.255.0(ro,no_root_squash)
/home/guest/share       192.168.0.0(ro,no_root,squash)
/home/guest/01            192.168.0.0(rw,no_root_squash)
/home/guest/02            192.168.0.0(rw,no_root_squash)
/home/guest/03            192.168.0.0(rw,no_root_squash)

Any suggestions on some other things to try?

Nicholas Lafferty
Manager
Pennswoods.net
Country Club Mall



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Can't mount nfs rw
  2002-09-04 17:39 Can't mount nfs rw Nicholas Lafferty
@ 2002-09-05  2:34 ` Neil Brown
  2002-09-05 14:46   ` Nicholas Lafferty
  0 siblings, 1 reply; 5+ messages in thread
From: Neil Brown @ 2002-09-05  2:34 UTC (permalink / raw)
  To: Nicholas Lafferty; +Cc: nfs

On Wednesday September 4, nlafferty@pennswoods.net wrote:
> I'm having problems getting my diskless clients to mount NFS directories in
> Read-Write mode. I'm using bpbatch and tftp to transfer the kernel and a
> ramdisk for the root file system. I pass an initscript to the kernel that
> mounts the root file system of the server as read-only (mounts on /ro),
> /home/guest/share mounts as ro2 (read-only), and /home/guest/01 mounts as
> /rw (read-write). Then init is invoked. The problem is that all of the
> mounts are read-only.
> 
> #Here is what my initscript does for the mounts.
> mount-t nfs -o nolock,ro,vers=2 $SERVER:/      /ro
> mount-t nfs -o nolock,ro,vers=2 $SERVER:/home/guest/share      /ro2
> mount-t nfs -o nolock,rw,vers=2 $SERVER:/home/guest/$ID      /rw
> 
> /sbin/init '#'
> 
> # Here is my /etc/exports
> /
> 192.168.0.0/255.255.255.0(ro,no_root_squash)
> /home/guest/share       192.168.0.0(ro,no_root,squash)
> /home/guest/01            192.168.0.0(rw,no_root_squash)
> /home/guest/02            192.168.0.0(rw,no_root_squash)
> /home/guest/03            192.168.0.0(rw,no_root_squash)
> 
> Any suggestions on some other things to try?
> 


perl -i -p -e 's,192.168.0.0\(,192.168.0.0/255.255.255.0\(,' /etc/exports

NeilBrown


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Can't mount nfs rw
  2002-09-05  2:34 ` Neil Brown
@ 2002-09-05 14:46   ` Nicholas Lafferty
  2002-09-06  0:24     ` Neil Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Nicholas Lafferty @ 2002-09-05 14:46 UTC (permalink / raw)
  To: Neil Brown; +Cc: nfs

I'm not quite sure I know your perlf00. What does :   perl -i -p -e
's,192.168.0.0\(,192.168.0.0/255.255.255.0\(,' /etc/exports  actually do? I
issue the command and it just hangs. Does it change my exports file in some
way?

Thanks,

Nick

----- Original Message -----
From: "Neil Brown" <neilb@cse.unsw.edu.au>
To: "Nicholas Lafferty" <nlafferty@pennswoods.net>
Cc: "nfs" <nfs@lists.sourceforge.net>
Sent: Wednesday, September 04, 2002 10:34 PM
Subject: Re: [NFS] Can't mount nfs rw


> On Wednesday September 4, nlafferty@pennswoods.net wrote:
> > I'm having problems getting my diskless clients to mount NFS directories
in
> > Read-Write mode. I'm using bpbatch and tftp to transfer the kernel and a
> > ramdisk for the root file system. I pass an initscript to the kernel
that
> > mounts the root file system of the server as read-only (mounts on /ro),
> > /home/guest/share mounts as ro2 (read-only), and /home/guest/01 mounts
as
> > /rw (read-write). Then init is invoked. The problem is that all of the
> > mounts are read-only.
> >
> > #Here is what my initscript does for the mounts.
> > mount-t nfs -o nolock,ro,vers=2 $SERVER:/      /ro
> > mount-t nfs -o nolock,ro,vers=2 $SERVER:/home/guest/share      /ro2
> > mount-t nfs -o nolock,rw,vers=2 $SERVER:/home/guest/$ID      /rw
> >
> > /sbin/init '#'
> >
> > # Here is my /etc/exports
> > /
> > 192.168.0.0/255.255.255.0(ro,no_root_squash)
> > /home/guest/share       192.168.0.0(ro,no_root,squash)
> > /home/guest/01            192.168.0.0(rw,no_root_squash)
> > /home/guest/02            192.168.0.0(rw,no_root_squash)
> > /home/guest/03            192.168.0.0(rw,no_root_squash)
> >
> > Any suggestions on some other things to try?
> >
>
>
> perl -i -p -e 's,192.168.0.0\(,192.168.0.0/255.255.255.0\(,' /etc/exports
>
> NeilBrown
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> _______________________________________________
> NFS maillist  -  NFS@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nfs



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Can't mount nfs rw
  2002-09-05 14:46   ` Nicholas Lafferty
@ 2002-09-06  0:24     ` Neil Brown
  2002-09-06 14:45       ` Nicholas Lafferty
  0 siblings, 1 reply; 5+ messages in thread
From: Neil Brown @ 2002-09-06  0:24 UTC (permalink / raw)
  To: Nicholas Lafferty; +Cc: nfs

On Thursday September 5, nlafferty@pennswoods.net wrote:
> I'm not quite sure I know your perlf00. What does :   perl -i -p -e
> 's,192.168.0.0\(,192.168.0.0/255.255.255.0\(,' /etc/exports  actually do? I
> issue the command and it just hangs. Does it change my exports file in some
> way?

Hmmm. The command worked for me.
It uses perl to do an in-place (-i) edit of /etc/exports which
changes every
   192.160.0.0(
to
   192.160.0.0/255.255.255.0(

Producing
/ 192.168.0.0/255.255.255.0(ro,no_root_squash)
/home/guest/share       192.168.0.0/255.255.255.0(ro,no_root,squash)
/home/guest/01            192.168.0.0/255.255.255.0(rw,no_root_squash)
/home/guest/02            192.168.0.0/255.255.255.0(rw,no_root_squash)
/home/guest/03            192.168.0.0/255.255.255.0(rw,no_root_squash)


As it was, the only filesystem that was exported to 192.168.*.* was /,
and it was exported read-only, just as you reported.

Note: this will only work if /home/guest/* are on a different
filesystem to /.  If they are on the same filesystem, you may as well
just export '/' rw.

NeilBrown

> 
> Thanks,
> 
> Nick
> 
> ----- Original Message -----
> From: "Neil Brown" <neilb@cse.unsw.edu.au>
> To: "Nicholas Lafferty" <nlafferty@pennswoods.net>
> Cc: "nfs" <nfs@lists.sourceforge.net>
> Sent: Wednesday, September 04, 2002 10:34 PM
> Subject: Re: [NFS] Can't mount nfs rw
> 
> 
> > On Wednesday September 4, nlafferty@pennswoods.net wrote:
> > > I'm having problems getting my diskless clients to mount NFS directories
> in
> > > Read-Write mode. I'm using bpbatch and tftp to transfer the kernel and a
> > > ramdisk for the root file system. I pass an initscript to the kernel
> that
> > > mounts the root file system of the server as read-only (mounts on /ro),
> > > /home/guest/share mounts as ro2 (read-only), and /home/guest/01 mounts
> as
> > > /rw (read-write). Then init is invoked. The problem is that all of the
> > > mounts are read-only.
> > >
> > > #Here is what my initscript does for the mounts.
> > > mount-t nfs -o nolock,ro,vers=2 $SERVER:/      /ro
> > > mount-t nfs -o nolock,ro,vers=2 $SERVER:/home/guest/share      /ro2
> > > mount-t nfs -o nolock,rw,vers=2 $SERVER:/home/guest/$ID      /rw
> > >
> > > /sbin/init '#'
> > >
> > > # Here is my /etc/exports
> > > /
> > > 192.168.0.0/255.255.255.0(ro,no_root_squash)
> > > /home/guest/share       192.168.0.0(ro,no_root,squash)
> > > /home/guest/01            192.168.0.0(rw,no_root_squash)
> > > /home/guest/02            192.168.0.0(rw,no_root_squash)
> > > /home/guest/03            192.168.0.0(rw,no_root_squash)
> > >
> > > Any suggestions on some other things to try?
> > >
> >
> >
> > perl -i -p -e 's,192.168.0.0\(,192.168.0.0/255.255.255.0\(,' /etc/exports
> >
> > NeilBrown
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by: OSDN - Tired of that same old
> > cell phone?  Get a new here for FREE!
> > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> > _______________________________________________
> > NFS maillist  -  NFS@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nfs


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Can't mount nfs rw
  2002-09-06  0:24     ` Neil Brown
@ 2002-09-06 14:45       ` Nicholas Lafferty
  0 siblings, 0 replies; 5+ messages in thread
From: Nicholas Lafferty @ 2002-09-06 14:45 UTC (permalink / raw)
  To: Neil Brown; +Cc: nfs

Unfortunaly they are on the same filesystem. I'm mounting / as /ro on the
client and symlinking to the need directories. I changed / to export as rw
and then I remount / onto /ro as ro after the system boots. Does that sound
like a safe workaround?

Thanks,
Nick

----- Original Message -----
From: "Neil Brown" <neilb@cse.unsw.edu.au>
To: "Nicholas Lafferty" <nlafferty@pennswoods.net>
Cc: "nfs" <nfs@lists.sourceforge.net>
Sent: Thursday, September 05, 2002 8:24 PM
Subject: Re: [NFS] Can't mount nfs rw


> On Thursday September 5, nlafferty@pennswoods.net wrote:
> > I'm not quite sure I know your perlf00. What does :   perl -i -p -e
> > 's,192.168.0.0\(,192.168.0.0/255.255.255.0\(,' /etc/exports  actually
do? I
> > issue the command and it just hangs. Does it change my exports file in
some
> > way?
>
> Hmmm. The command worked for me.
> It uses perl to do an in-place (-i) edit of /etc/exports which
> changes every
>    192.160.0.0(
> to
>    192.160.0.0/255.255.255.0(
>
> Producing
> / 192.168.0.0/255.255.255.0(ro,no_root_squash)
> /home/guest/share       192.168.0.0/255.255.255.0(ro,no_root,squash)
> /home/guest/01            192.168.0.0/255.255.255.0(rw,no_root_squash)
> /home/guest/02            192.168.0.0/255.255.255.0(rw,no_root_squash)
> /home/guest/03            192.168.0.0/255.255.255.0(rw,no_root_squash)
>
>
> As it was, the only filesystem that was exported to 192.168.*.* was /,
> and it was exported read-only, just as you reported.
>
> Note: this will only work if /home/guest/* are on a different
> filesystem to /.  If they are on the same filesystem, you may as well
> just export '/' rw.
>
> NeilBrown
>
> >
> > Thanks,
> >
> > Nick
> >
> > ----- Original Message -----
> > From: "Neil Brown" <neilb@cse.unsw.edu.au>
> > To: "Nicholas Lafferty" <nlafferty@pennswoods.net>
> > Cc: "nfs" <nfs@lists.sourceforge.net>
> > Sent: Wednesday, September 04, 2002 10:34 PM
> > Subject: Re: [NFS] Can't mount nfs rw
> >
> >
> > > On Wednesday September 4, nlafferty@pennswoods.net wrote:
> > > > I'm having problems getting my diskless clients to mount NFS
directories
> > in
> > > > Read-Write mode. I'm using bpbatch and tftp to transfer the kernel
and a
> > > > ramdisk for the root file system. I pass an initscript to the kernel
> > that
> > > > mounts the root file system of the server as read-only (mounts on
/ro),
> > > > /home/guest/share mounts as ro2 (read-only), and /home/guest/01
mounts
> > as
> > > > /rw (read-write). Then init is invoked. The problem is that all of
the
> > > > mounts are read-only.
> > > >
> > > > #Here is what my initscript does for the mounts.
> > > > mount-t nfs -o nolock,ro,vers=2 $SERVER:/      /ro
> > > > mount-t nfs -o nolock,ro,vers=2 $SERVER:/home/guest/share      /ro2
> > > > mount-t nfs -o nolock,rw,vers=2 $SERVER:/home/guest/$ID      /rw
> > > >
> > > > /sbin/init '#'
> > > >
> > > > # Here is my /etc/exports
> > > > /
> > > > 192.168.0.0/255.255.255.0(ro,no_root_squash)
> > > > /home/guest/share       192.168.0.0(ro,no_root,squash)
> > > > /home/guest/01            192.168.0.0(rw,no_root_squash)
> > > > /home/guest/02            192.168.0.0(rw,no_root_squash)
> > > > /home/guest/03            192.168.0.0(rw,no_root_squash)
> > > >
> > > > Any suggestions on some other things to try?
> > > >
> > >
> > >
> > > perl -i -p -e 's,192.168.0.0\(,192.168.0.0/255.255.255.0\(,'
/etc/exports
> > >
> > > NeilBrown
> > >
> > >
> > > -------------------------------------------------------
> > > This sf.net email is sponsored by: OSDN - Tired of that same old
> > > cell phone?  Get a new here for FREE!
> > > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> > > _______________________________________________
> > > NFS maillist  -  NFS@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/nfs
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> _______________________________________________
> NFS maillist  -  NFS@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nfs



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-09-06 14:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-04 17:39 Can't mount nfs rw Nicholas Lafferty
2002-09-05  2:34 ` Neil Brown
2002-09-05 14:46   ` Nicholas Lafferty
2002-09-06  0:24     ` Neil Brown
2002-09-06 14:45       ` Nicholas Lafferty

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.