Welcome to WebmasterWorld Guest from 3.214.184.124

Forum Moderators: bakedjake

Message Too Old, No Replies

*nix command to display RAID type?

Not sure how this server has been setup......

     
10:38 am on Mar 27, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member trillianjedi is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Apr 15, 2003
posts:7256
votes: 3


Is there a *nix command to display what RAID type a server has been configured as?

cat /proc/scsi/scsi sees 2 disks, but mount shows only /sda.

And DF shows 73 gig, when there's two 73 gig drives in there.

So I assume I'm looking at a RAID 1 box, but just wondered if there was a command that details this?

Thanks,

TJ

1:27 pm on Mar 27, 2006 (gmt 0)

Preferred Member

10+ Year Member

joined:Dec 30, 2003
posts:428
votes: 0


All the boxen I've been on that use RAID only show one disk. The RAID controller presents a virtual interface.

Here's one with a 3ware RAID card and 2 attached devices:

# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: 3ware Model: Logical Disk 0 Rev: 1.2
Type: Direct-Access ANSI SCSI revision: ffffffff

And an IBM blade with 2 SCSI drives on the internal RAID controller:

$ cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: LSILOGIC Model: 1030 IM IM Rev: 1000
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 08 Lun: 00
Vendor: IBM Model: 48P7098a S320 1 Rev: 1
Type: Processor ANSI SCSI revision: 02

(The first one is a disk, the second is the CD)

Almost sounds like one of the disks is unused.

Sean

2:39 pm on Mar 27, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member trillianjedi is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Apr 15, 2003
posts:7256
votes: 3


Thanks Sean. That's the unknown part for me - there's two possibilities. Either the disk is just unused, or it's a RAID 1 array (I want the latter).

There must be some way that I can ask the SCSI card BIOS? I can't reboot the machine and view the BIOS output when it starts up as the server is 4,000 miles away :)

2:50 pm on Mar 27, 2006 (gmt 0)

Preferred Member

10+ Year Member

joined:Dec 30, 2003
posts:428
votes: 0


Look through the output of dmesg to find out what kind of controller it's got, then find out the utilities that go with it. I don't know of a standard interface to RAID cards, they all seem to be different.

Sean

3:02 pm on Mar 27, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member trillianjedi is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Apr 15, 2003
posts:7256
votes: 3


Thanks Sean - useful tip - never looked at dmesg before and there's some useful info in there (although according to it there's 4 procs, when I think there's only 2? Dual core maybe appear as 2?).

Is "Fusion" the brand of the card here?

Fusion MPT SCSI Host driver 3.02.18
scsi0 : ioc0: LSI53C1030, FwRev=01000c00h, Ports=1, MaxQ=203, IRQ=185
Vendor: FUJITSU Model: MAP3735NP Rev: 5605
Type: Direct-Access ANSI SCSI revision: 03
SCSI device sda: 143374650 512-byte hdwr sectors (73408 MB)
SCSI device sda: drive cache: write through
sda: sda1 sda2 sda3 sda4 < sda5 >
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
Vendor: FUJITSU Model: MAP3735NP Rev: 5605
Type: Direct-Access ANSI SCSI revision: 03
SCSI device sdb: 143374650 512-byte hdwr sectors (73408 MB)
SCSI device sdb: drive cache: write through
sdb: unknown partition table
Attached scsi disk sdb at scsi0, channel 0, id 1, lun 0

Thanks,

TJ

3:16 pm on Mar 27, 2006 (gmt 0)

Preferred Member

10+ Year Member

joined:Dec 30, 2003
posts:428
votes: 0


RE cores; yes, the system will see 4 cpus on a 2 x dual core sytem. Top should show 4 cpus.

That fusion card seems to be made by LSI, I found a manual at [lsilogic.com...]

It implies there is a command line utility, limcu, that you can get to get info off the device.

Sean

3:53 pm on Mar 27, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member trillianjedi is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Apr 15, 2003
posts:7256
votes: 3


Thanks Sean - I also just found that manual before coming back here to post ;)

I can't find that utility anywhere on disk, but I'll see if I can install if from somewhere.

Many thanks for your help.

TJ

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members