View previous topic :: View next topic |
Author |
Message |
bahadir Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 02 Aug 2004 Posts: 81
|
Posted: Tue Jan 31, 2006 1:57 pm Post subject: Mounting root filesystem via NFS in read/write mode. |
|
|
Hi,
I am able to mount the root filesystem of a machine via NFS, but it is always read only.
I know that appending "rw" and "no_root_squash" to the entries in /etc/exports file should enable write mode
but it doesn't help. I also have "rw" appended to the nfsroot variable of the kernel commandline on the client side.
I still get the message, something like: VFS: mounting NFS root filesystem read-only.
The root filesystem has rwx bits enabled for the owner part of all files, (the owner of filesystem is root)
Is there anything else that matters?
Thanks,
Bahadir |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
JeliJami Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/148526789243d7753a09b11.jpg)
Joined: 17 Jan 2006 Posts: 1086 Location: Belgium
|
Posted: Tue Jan 31, 2006 3:28 pm Post subject: Re: Mounting root filesystem via NFS in read/write mode. |
|
|
bahadir wrote: | VFS: mounting NFS root filesystem read-only. |
that's a message during boot, right?
just ignore it
can you edit/create/touch/remove files on your file system? _________________ Unanswered Post Initiative | Search | FAQ
Former username: davjel |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bahadir Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 02 Aug 2004 Posts: 81
|
Posted: Tue Jan 31, 2006 5:31 pm Post subject: |
|
|
Yes that's a boot message. But no I can't touch/modify files.
Thanks,
Bahadir |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
JeliJami Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/148526789243d7753a09b11.jpg)
Joined: 17 Jan 2006 Posts: 1086 Location: Belgium
|
Posted: Wed Feb 01, 2006 8:09 am Post subject: Re: Mounting root filesystem via NFS in read/write mode. |
|
|
bahadir wrote: | Hi,
I am able to mount the root filesystem of a machine via NFS, but it is always read only.
I know that appending "rw" and "no_root_squash" to the entries in /etc/exports file should enable write mode |
can you post your /etc/exports file, please?
bahadir wrote: | but it doesn't help. I also have "rw" appended to the nfsroot variable of the kernel commandline on the client side.
I still get the message, something like: VFS: mounting NFS root filesystem read-only.
The root filesystem has rwx bits enabled for the owner part of all files, (the owner of filesystem is root)
Is there anything else that matters? |
can you post your /etc/fstab file, please? _________________ Unanswered Post Initiative | Search | FAQ
Former username: davjel |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
emuller n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Simpsons/Simpsons_-_Krusty.jpg)
Joined: 28 Oct 2005 Posts: 23
|
Posted: Sat Apr 01, 2006 11:47 am Post subject: |
|
|
Hi,
I followed the gentoo diskless howto:
http://www.gentoo.org/doc/en/diskless-howto.xml
And I had the same problem. I solved it by adding the server IP address to the /diskless/clientname/etc/hosts and removing the /diskless/clientname/etc/mtab file which is copied from the server in the howto via the command (code listing 2.12 there):
Code: |
cp -r /etc /diskless/192.168.1.21/etc
|
I assume this mtab file listed / as already mounted to the server /dev/sdaX device so it didn't remount. The nfsroot kernel variable ensures however that it mounts the first time. Try that out.
But now my /usr /opt and /home don't mount. I'm unclear where to add this "before *"... (code listing 6.3) in /diskless/clientname/etc/init.d/netmount or the server /etc/init.d/netmount? ... and if it's necessary at all for 2006.0 ... the howto says for baselayout version 1.11.* it's not necessary. What's a baselayout?
Also if you're running amd64 like I am... you have to add
Code: |
rsync -avz /lib64 /diskless/clientname
|
to code listing 6.1
I added the hack lines:
Code: |
mount /usr
mount /opt
mount /home
|
after the mount -at nofs,etc in my /etc/init.d/localmount which seems to mount everything ok... but then I get a devs issue stating my dev directory is not correct. I think this is because I added a rw in my pxelinux.cfg/default
Code: |
DEFAULT /bzImage
APPEND ip=dhcp root=/dev/nfs rw nfsroot=192.168.1.1:/diskless/192.168.1.21
|
and therefore /dev/null gets created as a file. But I have yet to verify this yet.
this is just a hack. How should /usr /opt and /home be mounted correctly? In netmount? netmount should belong to the boot runlevel? But it doesn't seem to mount soon enough in the init scripts. Any ideas?
Someone with the same problem:
https://forums.gentoo.org/viewtopic-t-448852-highlight-nfsroot+diskless.html
thanks,
emuller |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Mgiese Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/121230163842a882a496181.jpg)
Joined: 23 Mar 2005 Posts: 1630 Location: indiana
|
Posted: Thu Feb 01, 2007 4:26 pm Post subject: |
|
|
could you post also your /etc/fstab ? _________________ I do not have a Superman complex, for I am God not Superman
Ryzen9 7950x (powersave governor) ; Radeon 7900XTX ; kernel 6.11.3 ; XFCE |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|