LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 05-22-2010, 11:53 AM   #1
AchyuthaRao
LQ Newbie
 
Registered: May 2010
Posts: 2

Rep: Reputation: 0
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
 
Old 05-22-2010, 02:46 PM   #2
tommylovell
Member
 
Registered: Nov 2005
Distribution: Raspbian, Debian, Ubuntu
Posts: 380

Rep: Reputation: 103Reputation: 103
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:

like:
cp -p /etc/fstab /etc/fstab.bad
cp: cannot create regular file `/etc/fstab.bad': Read-only file system

or in vi:
"/etc/fstab" [readonly] 18L, 959C

If that is the case, remount the root filesystem read-write (using the -o flag).

To do that, use the mount command to find where '/' is mounted; then remount it.

Example:
mount -o remount,rw /dev/cciss/c0d0p1 /

You didn't say if you were using LVM. If that's the case, it is a little more complicated.
You may need to vgchange -ay, then remount.

Example:
mount -o remount,rw /dev/mapper/volgrp-root /

(or something like that...)

Once mounted read-write, you can use the vi editor to remove the "LABEL=/MSA20" line.

When the line is removed, type <ctl> D to reboot.

I hope your valuable data is not on the MSA20 filesystem. That data may be gone.

Good luck.

Last edited by tommylovell; 05-22-2010 at 02:58 PM.
 
Old 05-23-2010, 06:53 AM   #3
AchyuthaRao
LQ Newbie
 
Registered: May 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Hi Tommy!

Thanks a ton for your answer!
I was able to get my RHEL 5.1 working again by using the steps that you mentioned!!

Best Regards,
Achyutha
 
Old 07-10-2010, 03:48 PM   #4
dharmendrajet
LQ Newbie
 
Registered: May 2010
Location: gurgaon India
Distribution: Fedora, Cent os, RHEL, Ubuntu Server
Posts: 4

Rep: Reputation: 0
in fstab file
i remove " = " between LABEL=/
this is first line of fstab

now my system in maintienence mode plz slove my proble with out use rescue mode
 
Old 07-10-2010, 04:57 PM   #5
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
When you play with fire you get burned. Only Rescue mode from Installation CD or any other LiveCD can help you now.
 
  


Reply



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
Repair File System Gujju Red Hat 6 08-01-2011 09:23 PM
File system repair anj Linux - Software 3 03-31-2009 06:49 PM
In RHEL 4, how to find who deleted particular directory or file dhanju Linux - Server 1 09-25-2008 05:37 AM
RHEL 3: Steps of expanding file system (add new SCSI disks) to existing SW RAID & LVM atman1974 Linux - General 2 01-12-2006 09:49 PM
Repair file system zillah Fedora - Installation 4 08-24-2005 01:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 10:45 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