Can someone tell me what did I do to my filesystem, and how I can get it back?
I am configuring a RHEL5 system and I had some file system problems, including superblock errors. I followed a correction found here Surviving Filesystem Failures
After many reboots and fsck executions, it still will not mount on boot to read-write. However now it will let me remount to read-write after boot.
My /etc/fstab looks like:
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/VolGroup00/LogVol00 / ext3 defaults 1 2
/dev/VolGroup00/LogVol02 /usr ext3 defaults 1 2
/dev/VolGroup00/LogVol03 /tmp ext3 defaults 1 2
/dev/VolGroup00/LogVol04 /var ext3 defaults 1 2
/dev/VolGroup00/LogVol05 /home ext3 defaults 1 2
/dev/VolGroup00/LogVol06 /more ext3 defaults 1 2
Running the command cut /proc/mounts -f 2,3,4 -d " " gives me:
/ rootfs rw
/ ext3 ro,data=ordered
/dev tmpfs rw
/proc proc rw
/sys sysfs rw
/dev/shm tmpfs rw
/dev/pts devpts rw
/usr ext3 rw,data=ordered
/tmp ext3 rw,data=ordered
/var ext3 rw,data=ordered
/home ext3 rw,data=ordered
/more ext3 rw,data=ordered
/misc autofs rw,fd=6,pgrp=3015,timeout=300,minproto=5,maxproto=5,indirect
/net autofs rw,fd=12,pgrp=3015,timeout=300,minproto=5,maxproto=5,indirect
Notice that the rootfs is mounted rw, but the next one is ro.
Doing df -h gives me:
Filesystem Size Used Avail Use% Mounted on
10G 1.1G 8.5G 11% /
/dev/sda3 10G 1.1G 8.5G 11% /boot
Notice that the /dev/sda3 and the /devVolGroup00/LogVol00 have the same information, which is suspicious. Also, I am missing my other Logical volumes. (They are mounted but they don't show up unless I do a df -h /dev/VolGroup00/LogVol02). I have a another RHEL5 box with a similar setup and these volumes are listed with a simple df -h.
Anybody have any ideas on what's going on?
Thanks for any advice,