nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

How to check the RAID level in linux?

This is a discussion on How to check the RAID level in linux? within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; hi , can anyone tell me how to check the RAID level(hardware) in redhat linux?. is there any command for ...


Go Back   nixCraft Linux Forum > Linux Distribution > CentOS / RHEL / Fedora

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 06-17-2008, 01:15 PM
harry's Avatar
Junior Member
User
 
Join Date: Jun 2008
My distro: Redhat
Posts: 8
Rep Power: 0
harry is on a distinguished road
Default How to check the RAID level in linux?

hi ,

can anyone tell me how to check the RAID level(hardware) in redhat linux?. is there any command for the same?
pls help


regds,
harry.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-18-2008, 08:08 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 557
Rep Power: 6
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

Hi,

You need to use vendors tool to see information and configuring RAID. For example under Adaptec RAID card I use arcconf command to see information about RAID devices.

Code:
arcconf getconfig 2
Attached Images
File Type: jpg 1-degraded.JPG (7.0 KB, 11 views)
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
  #3 (permalink)  
Old 06-19-2008, 06:08 PM
harry's Avatar
Junior Member
User
 
Join Date: Jun 2008
My distro: Redhat
Posts: 8
Rep Power: 0
harry is on a distinguished road
Default

is there any tool available for IBM serveRaid?? can you send me the link?
Reply With Quote
  #4 (permalink)  
Old 06-19-2008, 06:55 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 910
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

https://www-304.ibm.com/systems/supp...andind=5000008
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #5 (permalink)  
Old 06-20-2008, 02:21 PM
Member
User
 
Join Date: Jan 2008
My distro: Debian/Redhat
Posts: 39
Rep Power: 0
pansarevai is on a distinguished road
Default

Hi,

For hardware RAID , you can check using BIOS or any menu at the time of boot.
For software RAID , you can check /proc/mdstat
Reply With Quote
  #6 (permalink)  
Old 06-21-2008, 03:05 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 910
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Quote:
Originally Posted by pansarevai View Post
Hi,

For hardware RAID , you can check using BIOS or any menu at the time of boot.
For software RAID , you can check /proc/mdstat
I think he wanted to see status without rebooting server, the only way to do is via command line.
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #7 (permalink)  
Old 06-23-2008, 04:52 AM
Junior Member
User
 
Join Date: Jun 2008
My distro: RedHat
Posts: 1
Rep Power: 0
phatbastard is on a distinguished road
Default Check raid level

Here is some info i found on checking your raid levels. I haven't verified it yet, but I am going to. I was on the same mission as you are...lots of servers with different versions of raid.

#raiddev /dev/md0

and then check

#raiddev /dev/md1

You should get a list like this:

raiddev /dev/md0
raid-level 0
nr-raid-disks 2
persistent-superblock 0
chunk-size 8

device /dev/hda1
raid-disk 0
device /dev/hdb1
raid-disk 1

raiddev /dev/md1
raid-level 5
nr-raid-disks 3
nr-spare-disks 1
persistent-superblock 1
parity-algorithm left-symmetric

device /dev/sda1
raid-disk 0
device /dev/sdb1
raid-disk 1
device /dev/sdc1
raid-disk 2
device /dev/sdd1
spare-disk 0

In this scenario, it shows that md1 had raid 5 installed.


Here is more information on the directives which are in raid configuration files; the options are listen in this file in the same order they should appear in the actual configuration file.
raiddev device This introduces the configuration section for the stated device.
nr-raid-disks count Number of raid devices in the array; there should be count raid-disk entries later in the file. (current maximum limit for RAID devices -including spares- is 12 disks. This limit is already extended to 256 disks in experimental patches.)
nr-spare-disks count Number of spare devices in the array; there should be count spare-disk entries later in the file. Spare disks may only be used with RAID4 and RAID5, and allow the kernel to automatically build new RAID disks as needed. It is also possible to add/remove spares runtime via raidhotadd/raidhotremove, care has to be taken that the /etc/raidtab configuration exactly follows the actual configuration of the array. (raidhotadd/raidhotremove does not change the configuration file)
persistent-superblock 0/1 newly created RAID arrays should use a persistent superblock. A persistent superblock is a small disk area allocated at the end of each RAID device, this helps the kernel to safely detect RAID devices even if disks have been moved between SCSI controllers. It can be used for RAID0/LINEAR arrays too, to protect against accidental disk mixups. (the kernel will either correctly reorder disks, or will refuse to start up an array if something has happened to any member disk. Of course for the 'fail-safe' RAID variants (RAID1/RAID5) spares are activated if any disk fails.)
Every member disk/partition/device has a superblock, which carries all information necessary to start up the whole array. (for autodetection to work all the 'member' RAID partitions should be marked type 0xfd via fdisk) The superblock is not visible in the final RAID array and cannot be destroyed accidentally through usage of the md device files, all RAID data content is available for filesystem use.
parity-algorithm which The parity-algorithm to use with RAID5. It must be one of left-asymmetric, right-asymmetric, left-symmetric, or right-symmetric. left-symmetric is the one that offers maximum performance on typical disks with rotating platters.
chunk-size size Sets the stripe size to size kilobytes. Has to be a power of 2 and has a compilation-time maximum of 4M. (MAX_CHUNK_SIZE in the kernel driver) typical values are anything from 4k to 128k, the best value should be determined by experimenting on a given array, alot depends on the SCSI and disk configuration.
device devpath Adds the device devpath to the list of devices which comprise the raid system. Note that this command must be followed by one of raid-disk, spare-disk, or parity-disk. Also note that it's possible to recursively define RAID arrays, ie. to set up a RAID5 array of RAID5 arrays. (thus achieving two-disk failure protection, at the price of more disk space spent on RAID5 checksum block
raid-disk index The most recently defined device is inserted at position index in the raid array.
spare-disk index The most recently defined device is inserted at position index in the spare disk array.
parity-disk index The most recently defined device is moved to the end of the raid array, which forces it to be used for parity.
failed-disk index The most recently defined device is inserted at position index in the raid array as a failed device. This allows you to create raid 1/4/5 devices in degraded mode - useful for installation. Don't use the smallest device in an array for this, put this after the raid-disk definitions! Hope it works.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
smartd on 3ware RAID under Linux sweta Linux hardware 1 08-10-2007 07:59 PM
Difference between Linux RAID 0, RAID 1 and RAID 5 jerry Linux software 3 06-26-2006 06:48 PM
Setting up RAID 1 mirroring on a running remote Linux system sweta Getting started tutorials 8 06-22-2006 11:48 AM
linux changing run level Linux software 1 01-10-2006 06:25 PM
Different Level of graph rafiq380 Linux software 1 12-23-2005 05:33 PM


All times are GMT +5.5. The time now is 04:51 AM.


Powered by vBulletin® Version 3.7.2 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36