[CentOS] File system goes read-only once in a while

Fri Aug 1 20:13:20 UTC 2008
Toby Bluhm <tkb at midwestinstruments.com>

Mufit Eribol wrote:
> I think I found the culprit albeit I still don't know how to fix.
> 
> 1. During boot the screen prints the following errors
> "no fstab.sys, mounting internal defaults
> ...
> No devices found
> Setting up Logical Volume Management: /var/lock: mkdir failed: No such 
> file or directory"
> 
> I have a LV on RAID mounted as /mnt/raid. Then /mnt/raid/var is 
> symlinked to /var. 

I was afraid you were going to say that.


Go back to single user mode.

mkdir /new_var
cd /mnt/raid/var
tar cf - . | ( cd /new_var ; tar xvf - )

Make sure both dirs look the same.

Change the link to /new_var. Or remove the old link & mv /new_var /var.

reboot.


-- 
Toby Bluhm
Alltech Medical Systems America, Inc.