LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-11-2009, 01:11 AM   #1
wizumwalt
LQ Newbie
 
Registered: Jan 2009
Posts: 11

Rep: Reputation: 0
diskless node mounts / as read-only


I've got a machine that boots via nfs and / is being mounted as readonly. The other partitions listed in the fstab aren't mounting at all.

I found the following in 'dmesg' output.
Code:
Root-NFS: unknown option: rw
...
VFS: Mounted root (nfs filesystem) readonly.
Freeing unused kernel memory: 436k freed.
Here's it's fstab.
Code:
10.0.0.10:/diskless/10.0.1.1    /       nfs     sec=sys,sync,hard,intr,rw,nolock,rsize=8192,wsize=8192,nfsvers=3        0       0
10.0.0.10:/opt                  /opt    nfs     sync,hard,intr,rw,nolock,rsize=8192,wsize=8192  0       0
10.0.0.10:/usr                  /usr    nfs     sec=sys,sync,hard,intr,ro,nolock,rsize=8192,wsize=8192,nfsvers=3        0       0
10.0.0.10:/home                 /home   nfs     sync,hard,intr,rw,nolock,rsize=8192,wsize=8192  0       0
10.0.0.10:/var/log              /var/log nfs    sync,hard,intr,rw       0 0
I am curious why / in the fstab above shows nfsvers=3, yet /proc/mounts below shows /dev/root as vers=2 ... is that right?

And here's /proc/mounts.
Code:
$ cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / nfs ro,vers=2,rsize=4096,wsize=4096,namlen=255,hard,nointr,nolock,proto=udp,timeo=11,retrans=2,sec=sys,mountproto=udp,addr=10.0.0.10 0 0
proc /proc proc rw,nosuid,nodev,noexec 0 0
sysfs / sys sysfs rw,nosuid,nodev,noexec 0 0
udev /dev/ tmpfs rw,nosuid,size=1024k,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,gid=5,mode=620 0 0
usbfs /proc/bus/usb usbfs rw,nosuid,noexec 0 0
I am using PXE and I see that I already have the 'rw' in the append option.
Code:
DEFAULT /bzImage
APPEND ip=dhcp rootfstype=nfs root=/dev/nfs nfsroot=10.0.0.10:/diskless/10.0.1.1,nolock,rw
However, what I don't understand is why I'm seeing the 'Root-NFS: unknown option: rw' in my dmesg output as listed above. So I think my client is seeing the 'rw', but it's not accepting it.

Another thing I see when it boots is the following ...
Code:
(can't see/copy what's on the screen at this point, then I see the following)
/lib64/udev/shell-compat.sh: line 6: /dev/null: Read-only file system
/lib64/udev/shell-compat.sh: line 6: /dev/null: Read-only file system
/lib64/udev/shell-compat.sh: line 6: /dev/null: Read-only file system
/lib64/udev/shell-compat.sh: line 6: /dev/null: Read-only file system
* Mounting /dev ...                                                     [ ok ]
* Starting udevd ...                                                    [ ok ]
* Populating /dev with existing devices through uevents                 [ ok ]
* Waiting for uevents to be processed ...                                
udevd-event][1426]: rename_netif: error changing netif name eth0 to eth2: Device or resource busy
                                                                        [ ok ]
Mounting devpts at /dev/pts ...                                         [ ok ]
* Skipping /etc/mtab initialization (ro root?)
* Updating modules.dep ...
FATAL: Could not open /lib/modules/2.6.26-gentoo-r4/modules.dep.temp for writing: Read-only file system
rm: cannot remove '/fastboot': Read-only file system
* Failed to start /etc/init.d/checkfs

* One or more critical sstartup scripts failed to start!
* Please correct this, and reboot ...

Give root password for maintenance
(or type Control-D to continue):
Any help much appreciated.
 
Old 02-22-2009, 01:45 AM   #2
dogrusty
LQ Newbie
 
Registered: Feb 2009
Posts: 3

Rep: Reputation: 0
I had the same problem
I changed my prelinux.cfg/default from

APPEND ip=dhcp rootfstype=nfs root=/dev/nfs nfsroot=10.0.0.10:/diskless/10.0.1.1

to

APPEND ip=dhcp rootfstype=nfs root=/dev/nfs nfsroot=10.0.0.10:/diskless/10.0.1.1 rw

and it at least solved that problem.

Rusty
 
Old 01-26-2010, 12:46 AM   #3
gkrellm
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Rep: Reputation: 0
I have the same problem.

I also followed dogrusty's post but without result. It only changed some messages on booting but root mounts read-only.

I noticed than IP-Config output contains string
Code:
rootpath=
though /etc/dhcpd.conf on main server contains
Quote:
option root-path "192.168.0.1:/xfs/dirinstall";
(192.168.0.1 is my server IP).
 
Old 01-26-2010, 01:25 AM   #4
gkrellm
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Rep: Reputation: 0
WTF

I totally rewrited all pxebootsh*t and dhcpsh*t and now during boot I see

Quote:
rootpath=/clientroot (this is my shared nfs-dir for client root mount)

rootserver=192.168.0.1 (my main nfs server)
All seems to be nice but then I see a lot of read-only errors and I get login prompt that does not work at all.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB HardDrive mounts read-only. Is there anyway to make it read-write? Fritz_Katz Linux - Hardware 7 09-13-2007 06:50 PM
how can i set a diskless node??/ ZAMO Linux - Server 1 04-04-2007 05:56 PM
Diskless node cant mount root NFS filesystem for read/write leontini Linux - Networking 0 01-31-2007 01:03 AM
Help move gcc stuff into shared root for diskless node GUIPenguin Linux - General 0 03-20-2006 09:09 AM
Diskless node in linux basbosco Linux - Networking 2 11-07-2003 09:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration