No, it's a custom initrd image (gzipped ext2 filesystem image), but a
stock non-xen kernel.
Linux mynode 2.6.17-1.2519.4.21.el5 #1 SMP Wed Aug 30 18:19:01 EDT 2006
i686 i686 i386 GNU/Linux
The linuxrc script in our initrd tries to do the NFS mounts, which in
ELAS3/4 have been fine, but with EL5 they're all showing up as read-only.
The sequence is:
mount /proc and /sys
mount the root filesystem read-only over NFS
unmount /proc and /sys
pivot_root to the NFS root
mount /proc and /sys again
mount more filesystems read-write
The NFS server is an ELAS3u6 system, and it's exporting the directories
read-write. I can drop to a shell (bash) from the linuxrc script and
issue the mount by hand, and I get the same results: it succeeds, but is
read-only.
For example:
# mount -o nfsvers=3,tcp,nolock,rw 10.0.116.3:/exports/mydir /boot
Can't get /etc/mtab~ lock file
# cat /proc/mounts | grep boot
10.0.116.3:/exports/mydir /boot nfs
ro,vers=3,rsize=8192,wsize=8192,hard,nolock,proto=tcp,timeo=600,retrans=2,sec=sys,addr=10.0.116.3
0 0
# touch /boot/xxx
touch: cannot touch `/boot/xxx': Read-only file system
The mount system call arguments look OK, as I mentioned, but the kernel
appears to not be honoring the read-write aspect somehow. Note that
using the '-n' option to mount gets rid of the /etc/mtab~ warning, but
the mount is still read-only.
Chris
Bill Nottingham wrote:
Chris Johns ([EMAIL PROTECTED]) said:
I'm having trouble mounting an NFS filesystem read-write from an initrd
script.
We're booting the EL5 kernel using an ext2-based initrd image, which
runs a script which mounts various filesystems from a server, and some
are read-write filesystems.
However, even though the script issues a command such as:
mount -o nfsvers=3,tcp,nolock,rw <server-ip>:<pathname> /mnt
when I do a 'mount' command, to see what's mounted, that filesystem
shows up as read-only.
Is this using the stock mkinitrd code to do the mounting?
Bill
_______________________________________________
rhelv5-beta-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-beta-list
_______________________________________________
rhelv5-beta-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-beta-list