[SOLVED] RAID, deleted LUN: Repair File System problem on RHEL 5.1
Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
RAID, deleted LUN: Repair File System problem on RHEL 5.1
Hi,
I have a HP Proliant DL380 G4 server installed with RHEL 5.1 using 2 SCSI disks using RAID 1+0. This is, using the HP Smart Array 6i controller.
I had used one MSA20 array for creating LUN out of 4 disks - this, using HP Smart Array 642 SCSI controller. I had also mounted this partition and added to entry to /etc/fstab.
Since there was some problem in closing the terminal while running an IO on this LUN, I happened to reboot the system and deleted the logical drive at ORCA on the 642 controller.
Now, my RHEL 5.1 system is in "Repair File System" mode. I have got huge valuable data on this and cant afford to get it screwed. Kindly help me solve my problem.
Please, can you explain the steps in detail, as to what I need to do?
This is how it is seen:
Give root password for maintenance
(or type Control-D for normal startup):
At this point enter the root password then run fsck:
(repair file system) 1#
I have run fsck -A -y Also, it shows the entry that I had made to /etc/fstab (last line) as LABEL=/MSA20 ext3 defaults 1 2 and the fact that the contents in the directories are seen properly. Only problem is that am not able to resolve the "Repair File System"
Also, I am getting a message during booting the OS: "Unable to Resolve LABEL=/MSA20". This was the directory for the LUN which I had created and mounted....and had subsequently deleted the LUN during boot time, using ORCA.
Thanks in Advance,
Achyutha
Last edited by unSpawn; 05-22-2010 at 01:07 PM.
Reason: //rephrasing
You need to remove the "LABEL=/MSA20 ext3 defaults 1 2" entry from /etc/fstab. You are in "Repair File System" mode because because the system is trying to mount that filesystem and it no longer exists.
So, to remove that entry from /etc/fstab--
Make a backup copy before you start: cp -p /etc/fstab /etc/fstab.bad
Then remove the offending entry.
'vi /etc/fstab'
move to the "LABEL=/MSA20" line
type dd to delete it
then type <esc> followed by :wq
Your root file system may be mounted in read-only mode at this point. In which case when you 'cp' or 'vi' edit it, it will say the file is read only:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.