• Learning Map
  • Unix Quiz Center
  • Unix Professional Network
  • Just-Unix-No-Noise FB Group

unixadminschool.com

  • Home
  • Announcements
    • Feed
    • MISC
  • Beginners zone
    • Beginners Lessons
    • Career Guidance
  • Experts Zone
    • Cloud Computing
    • Configuration Solutions
    • Migrations
    • Network Design
    • Scripting
    • Server Security
    • SUN CLUSTERS
    • SUN LDOMS
    • Tools & Applications
    • Veritas Cluster Services ( VCS ) Learning
  • Intermediate Zone
    • Linux Learning
      • Linux Booting
      • Linux Disk Management
      • Linux LVM
      • Linux Networking
      • Linux Performance
      • Linux Troubleshooting
      • Linux YUM/RPM
      • Performance Analysis
      • Redhat Linux Kernel
      • RHEL 6
        • RHEL LDAP
        • Rhel6 Storage
      • Web Servers
    • Solaris Admin
      • Blog for Unix Admin
        • Storage Administration – SAN
      • Oracle Hardware
      • Reference Docs
      • Solaris 10 Zones & LDOMs
      • Solaris 11
      • Solaris Access Control
      • Solaris Best Practices
      • Solaris Booting
      • Solaris Disk Management
      • Solaris DNS
      • Solaris How-to
      • Solaris Installation
      • Solaris Kernel
      • Solaris Networking
      • Solaris NFS
      • Solaris NIS
      • Solaris Packages & Patching
      • Solaris Performance
      • Solaris Tips
      • Solaris Troubleshooting
      • Solaris User Authentication
      • solaris X86
      • Solaris ZFS and Boot Environment
      • Storage Configurations
      • SUN Hardware
      • Troubleshooting Flow charts
    • Veritas Admin
      • Veritas Netbackup
      • VxVM Learning
      • VxVM Troubleshooting
  • QUIZ Center
  • Vlabs

Subscribe

Linux – Identify if linux was installed on a hardware RAID

In Enterprise environment Linux operating systems were installed on various X86 ( HP / SUN ) models of hardware, and most of the times we dont use software Raid to mirror the Operating system harddisks, and we rely on the hardware RAID.

Below tips will be useful to identify the whether the linux OS are under hardware RAID or not. If OS disks are under control of HARDWARE RAID, then what type of Hardware RAID it is using.

Locating the Root Mount  and device information for “/”

 Issue the following command to identify the root volume name:

 # /bin/mount | grep “on / “

 This will produce similar to the following output:

 /dev/sda2 on / type ext3 (rw)

 The output above informs us that the root volume / is mounted on a device designated /dev/sda2.

 Syntax breakdown is as follows:

 s = SCSI

 d = disk

 a = first device

 2 = second partition

Older revisions of Linux used legacy disk attachment drivers that did not emulate SCSI and therefore reported themselves as follows:

 h = hard

 d = disk

 a = first device

 2 = second partition

We use the keyword SCSI because all storage devices in a modern Linux platform including IDE/PATA, FC-AL, SAS, SATA, SCSI, and USB emulate SCSI to be represented as a storage device.  

 Issue the following command to identify the attached disk properties:

 # /bin/more /proc/scsi/scsi

 This will produce similar to the following output depending on platform type and configuration:

 Scenario 1 Output :

Attached devices: 

Host: scsi0 Channel: 00 Id: 00 Lun: 00

Vendor: SEAGATE  Model: ST373207LC       Rev: 0003

Type:   Direct-Access                    ANSI SCSI revision: 03

Host: scsi0 Channel: 00 Id: 01 Lun: 00

Vendor: SEAGATE  Model: ST373207LC       Rev: 0003

Type:   Direct-Access                    ANSI SCSI revision: 03

  

Scenrio 2 Output:

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

  

Scenario 3 Output:

Attached devices:

Host: scsi1 Channel: 02 Id: 00 Lun: 00

Vendor: MegaRAID Model: LD 0 RAID5  278G Rev: 413Y

Type:   Direct-Access                    ANSI SCSI revision: 02

 

So what did you see difference from the above three outputs.  We have to look at the two important parameters from the above output those are “Vendor” and “Disk Model”.

Scenario 1  – Analysis: 

This output identifies two SCSI disks attached to the internal controller. The internal controller is not shown in this output.
Note that both disks are shown in the Vendor: field as the true manufacturer disk name SEAGATE and the field Model: shows the true manufacturer disk model ST373207LC. 

This actually indicates that  these were not configured with any RAID because the Linux was able to access the disk model information directly.

Result: OS DISKS NOT UNDER THE CONTROL OF HARDWARE RAID MANAGEMENT

 

Scenario 2 – Analysis:

This output identifies one SCSI disk attached to the internal controller.

Note that the disk reported in the field Vendor: is LSILOGIC and the field Model: shows 1030 IM.

Here we see that the true disk manufacturer is hidden from the operating system and replaced with a pseudo volume name LSILOGIC. And the true disk model is replaced with an identifier providing us with the RAID controller name and configuration 1030 IM.

The 1030 refers to the LSI 1020/1030 controller built in to this platform. The IM refers to the configuration of RAID:

IS = Stripe / RAID 0

IM = Mirror / RAID 1

Result:OS DISKS UNDER THE CONTROL OF ONBOARD LSI HARDWARE RAID MANAGEMENT

 

Scenario 3 – Analysis:

This output identifies one SCSI disk attached to the internal controller. More devices may show if you have an intelligent disk backplane installed or additional disks not under hardware RAID control.

Note that the disk reported in the field Vendor: is MEGARAID and the field Model: shows LD 0 RAID5.

Here we see that the true disk manufacturer is hidden from the operating system and replaced with a pseudo volume name MEGARAID. The true disk model is replaced with an identifier providing us with the RAID controller ID and configuration LD 0 RAID5

Result : OS DISKS WERE UNDER THE CONTROL OF LSI MEGARAID HARDWARE RAID MANAGEMENT

 

 

You might be interested to read below :


  • Test Your Understanding about Linux Fundamentals

  • RHEL 6 – ISCSI Administration Series – ISCSI Lun resize

  • RHEL 6 – ISCSI Administration Series – Configuring ISCSI Server and Client

  • RHEL 6.3 – LDAP Series – Part 4 : Troubleshooting

  • RHEL 6.3 – LDAP Series – Part 3 : LDAP Configuration With Encrypted Communication using TLS/SSL

  • RHEL 6.3 – LDAP Series – Part 2 : Configuration of Certification Authority for LDAP encryption.
  • Email
  • More
  • Print
  • Digg
Posted by Ramdev
2 Comments
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

2 Comments on “Linux – Identify if linux was installed on a hardware RAID”

  • pavan
    2 November, 2011, 9:45

    very good stuff, keep going on.

  • Siva
    16 March, 2012, 11:33

    Super … keep going …

Leave a Comment

Join to our Professional Network (of 1400+ unixadmins ) to receive Unix Administration and Job Updates -

Pages1

Don't Miss Updates

 

Beginners Zone

 

Unixadmin Careers

Server Hardware

Beginners Lessons

Troubleshooting-Flowchart

 

Intermediate Zone

 

Solaris Booting

Solaris Volume Manager

Storage Configurations

Solaris Networking

Solaris X86

Solaris ZFS

Solaris NFS

Solaris NIS

Solaris Patching

Solaris Booting

Solaris Kernel

Veritas Volume Manager

Solaris NIS

Logical Volume Manager

Linux Networking

Linux Disk Management

Linux Troubleshooting

 

Experts Zone 

 

Solutions

Scripting and Automation

Server Security

Veritas Cluster Services

Sun Cluster Services

Cloud Computing

SUN LDOMS

Copyright © 2009 unixadminschool.com. All rights reserved.
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.