LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 05-24-2006, 12:35 PM   #1
tsnake
LQ Newbie
 
Registered: May 2006
Posts: 10

Rep: Reputation: 0
How to mount a hardware raid


I have a 3ware 7506-4LP with 3 drives in a RAID5 setup. One drive is degraded, but my understanding is that I should still be able to mount the raid in degraded mode, it'll just NOT be fault tolerant. I want to mount it so that I can copy the data off the raid to another location so when I get a new drive, I don't risk destroying the data upong rebuilding... or for that matter, I have some users who just need access sooner than I seem to be able to get them, to the data.

I cannot find a way to mount it though. Running the command line client for the raid lets me see that is it there and that it has a degraded drive, but I cannot figure out how to actually mount it... and amazingly, I can't seem to goggle anything useful for my request.

Thanks for any help.
 
Old 05-24-2006, 05:43 PM   #2
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
It should still be available as /dev/sda... Having a degraded raid won’t change that.

How were you mounting it before the drive failed?
 
Old 05-24-2006, 11:17 PM   #3
tsnake
LQ Newbie
 
Registered: May 2006
Posts: 10

Original Poster
Rep: Reputation: 0
It wasn't mounted in this install. It's a fresh FC5 install. The raid was on a FC3 system that I had to take down for other complications. So I installed the new system from scratch planning to copy over the old info from a backup. The raid in question isn't backed up, it's not required by the system, only the users who want their data.

The plan was to put the raid on after the system install and I figured at worst, yeah, it would show up and be mountable. I can't tell that's it's showing as a device at all, even though the cli is able to speak to it and check it's status as a raid in general.
 
Old 05-25-2006, 12:04 AM   #4
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
So, what do you get with:

Code:
# fdisk -l
 
Old 05-25-2006, 12:09 AM   #5
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
Also, check the 3ware support site and verify that the FC5 kernel already supports the card. Otherwise, you will need to supply drivers for the card to function.

Do you see the card BIOS setup options as you start the boot? If no, then you have a problem. If yes, then look through the card BIOS settings and see if something is messed up.
 
Old 05-25-2006, 12:53 PM   #6
tsnake
LQ Newbie
 
Registered: May 2006
Posts: 10

Original Poster
Rep: Reputation: 0
fdisk -l only shows the main system raid, a SCSI one.

The 3ware site does not show FC5 as being officially supported, or there's nothing to download for it specifically.

As for the card BIOS settings, yes, they come up and nothign looks out off the ordinary. That is where it reported the degraded drive and let me do the rebuild (unsuccessfully).

Other people were pointing out that there really shouldn't be a problem mounting this based on what I'm seeing... so it's really confusing.

I have done a modprobe 3w-9xxx (per suggestion) and there's already a 3w-xxxx in the list when I lsmod. So, I'm assuming there's driver support in there.

I'm burning a knoppix 5 DVD right now and will boot to that to see if knoppix will have better luck mounting the array... but I'm still looking for some semblance of reasonability in getting this working in the environment it's going gto be running in.

Last edited by tsnake; 05-25-2006 at 01:06 PM.
 
Old 05-25-2006, 01:46 PM   #7
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
Look in /proc and see what’s detected.

For example:

Code:
# cat /proc/scsi/scsi

Attached devices:

Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: AMCC     Model: 9550SX-4LP DISK  Rev: 3.01
  Type:   Direct-Access                    ANSI SCSI revision: 03

Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: WDC WD740GD-00FL Rev: 33.0
  Type:   Direct-Access                    ANSI SCSI revision: 05

Host: scsi2 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: WDC WD740GD-00FL Rev: 33.0
  Type:   Direct-Access                    ANSI SCSI revision: 05
 
Old 05-25-2006, 02:46 PM   #8
tsnake
LQ Newbie
 
Registered: May 2006
Posts: 10

Original Poster
Rep: Reputation: 0
From knoppix:
# cat /proc/scsi/scsi
Attached devices:
Host: scsi2 Channel: 00 Id: 01 Lun: 00
Vendor: 3ware Model: Logical Disk 1 Rev: 1.2
Type: Direct-Access ANSI SCSI revision: ffffffff

Rebooted back into FC5:
# cat /dev/scsi/scsi
cat: /dev/scsi/scsi: No such file or directory

Insanity.
 
Old 05-25-2006, 03:16 PM   #9
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
Sounds like FC5 hotplug didn’t detect/add the card.

Try manually detecting the card, but be sure the card driver is already loaded.

Code:
# modprobe 3w-xxxx
# lsmod | grep 3w-xxxx
# echo "scsi add-single-device 0 0 0 0" > /proc/scsi/scsi
# cat /proc/scsi/scsi
You can read about manual detection in the proc man page section “/proc/scsi/scsi”.


I’m a little confused by the Knoppix detection of the card as scsi2, so if the above add-single-device fails, also try:

Code:
# echo "scsi add-single-device 2 0 0 0" > /proc/scsi/scsi
# echo "scsi add-single-device 1 0 0 0" > /proc/scsi/scsi
 
Old 05-25-2006, 04:03 PM   #10
tsnake
LQ Newbie
 
Registered: May 2006
Posts: 10

Original Poster
Rep: Reputation: 0
I'm an idiot!
I did a cat on /dev/scsi/scsi
here is the result you were looking for:
# cat /proc/scsi/scsi
Attached devices:
Host: scsi2 Channel: 00 Id: 01 Lun: 00
Vendor: 3ware Model: Logical Disk 1 Rev: 1.2
Type: Direct-Access ANSI SCSI revision: ffffffff

So, it's in /proc just fine... now I suppose it NEEDS to be in /dev somehow to be mountable... but does it being in /proc make it look like we're on the right path? Now what?
thanks a ton for this help too...
 
Old 05-25-2006, 05:45 PM   #11
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
No, you’re not an idiot.

Getting a system to recognize an undetected scsi device seems to always go this way. What you’re doing is “teaching” the os how to do it the first time and then it will “remember” how the next time.

Try this:

Code:
# cd /dev

# ls sd*
ls: sd*: No such file or directory

# MAKEDEV -vx sda
create sda                            b   8   0 root:disk 640

# MAKEDEV -x sda1
# MAKEDEV -x sda2
# MAKEDEV -x sda3
# MAKEDEV -x sda4
# MAKEDEV -x sda5
# MAKEDEV -x sda6
# MAKEDEV -x sda7
# MAKEDEV -x sda8
# MAKEDEV -x sda9

# ls sd*
sda  sda1  sda2  sda3  sda4  sda5  sda6  sda7  sda8  sda9
For more info see: $ man MAKEDEV

If the raid isn’t mountable, then reboot and try mounting it again.

And it’s always possible that sda isn’t the right device (i.e., also try sdc and sdb if sda fails) since it is detected as scsi2 instead of scsi0. Do you have some USB drives already plugged in?

Last edited by WhatsHisName; 05-25-2006 at 05:49 PM.
 
Old 05-25-2006, 07:06 PM   #12
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
Also make sure that scsi_mod and sd_mod are loaded in addition to the 3ware driver.

Code:
# lsmod | grep scsi_mod

# modprobe scsi_mod
# modprobe sd_mod

# lsmod | grep sd_mod

sd_mod                 19393  21
scsi_mod              140561  3 libata,3w_9xxx,sd_mod
 
Old 05-25-2006, 07:23 PM   #13
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
And to /etc/modprobe.conf, add the line:

alias scsi_hostadapter 3w-xxxx

( or “alias scsi_hostadapter1 3w-xxxx” if there is already a scsi_hostadapter)


The little stuff is so easy to forget about.
 
Old 05-25-2006, 07:52 PM   #14
tsnake
LQ Newbie
 
Registered: May 2006
Posts: 10

Original Poster
Rep: Reputation: 0
it keeps dropping all the sda devs.
I created them all, rebooted and they were all gone.
I then created them again after adding the other lines you gave and just after I tried to mount:
# mount -t ext3 /dev/sda1 /backup/

The operation seemes to have hung. I opened another shell and took a look in /dev and there are NO sda, sda1, etc.
Curiouser and curiouser...


I can FEEL it... it seems like we're almost right there.
Oddly, even though it hung, if I look then in /backup, it does have at least part of one of the directories.. with files dated before the take-down of the raid originally. (yum related stuff I moved there to save space)

So, it APPEARS it started to mount it, then killed off the whole shabang.
However...
#mount
doesn't show it mounted at all.

uh-huh

-edit-
Never mind.... I was looking at the wrong system... the system in question is NOT showing part of the mount... oops.
So I eventually got the hang to stop (ctl-c)... and run again.

Here is the ouput:
# mount -t ext3 /dev/sda1 /backup/
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

[root@dmdlnew /]# dmesg | tail
3w-xxxx: scsi2: Command failed: status = 0xc7, flags = 0x40, unit #1.
3w-xxxx: scsi2: Command failed: status = 0xc7, flags = 0x40, unit #1.
3w-xxxx: scsi2: Command failed: status = 0xc7, flags = 0x40, unit #1.
3w-xxxx: scsi2: Command failed: status = 0xc7, flags = 0x40, unit #1.
sd 2:0:1:0: SCSI error: return code = 0x8000002
sda: Current: sense key: Medium Error
Additional sense: Unrecovered read error
Info fld=0x0
end_request: I/O error, dev sda, sector 65
EXT3-fs: unable to read superblock

Last edited by tsnake; 05-25-2006 at 08:23 PM.
 
Old 05-26-2006, 03:45 PM   #15
tsnake
LQ Newbie
 
Registered: May 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Update, still not there, but closer... I THINK.
Called 3ware and figured out how to get t4eh degrade3d raid rebuilt... and it is now properly rebuilt, AFAIK.

There was also a problem with IRQ conflicts and an ACIP problem, so I told the kernel to boot without it.

So, now it can be found and looks great, but I can't mount it because nothing can tgell what filesystem it is supposed to be. I believe it's ext3, but it claims it's not. qtparted says it's "unknown". SO... that's the new problem. I think if I could get it's filesystem type sorted out... it should be relatively smooth going... (err... I shouldn't edven try to say that)... but I don't know how to repair it's filesystem type.

???
Chris
 
  


Reply

Tags
fedora, hardware, mounting, raid5



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
Why can't I mount this md0 raid? (mdadm and software raid) cruiserparts Linux - Software 35 01-05-2013 03:35 PM
Is it possible to convert from using hardware RAID to software RAID? kindredstar Linux - Hardware 2 12-19-2005 09:13 AM
Dell "CERC" Raid-5 w/CENT OS. Is this true hardware RAID or just an expensive card? fireman949 Linux - Hardware 2 06-24-2005 05:44 PM
Hardware RAID PCI Card (Hardware?) MasterC Linux - Hardware 1 03-01-2003 01:19 AM
Software RAID vs Hardware RAID system Linux - General 3 12-25-2001 08:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 10:16 PM.

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