- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- On linux how to know the disk details(disk type,ra...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-21-2010 08:49 PM
тАО10-21-2010 08:49 PM
On linux how to know the disk details(disk type,raidlevel) for hardware raid
I have a linux server and different JBODs are connected to it i.e SAS enclouser, SATA enclouser ,FC enclouser , SCSI enclouser and SAS enclouser SAS and SATA drives are mixed. All the disks are in hardware raid (raid-1 or raid-6 or raid-5).
(1) I want to know the hard disk type- SATA ,SAS, FC etc.
In linux the device I am seeing as /dev/sda where 6 disks are there. The output I need as follows
/dev/sda disk serial no disk type size raid_type
/dev/sda ABCD121 SATA 1TB raid-5
/dev/sda ABCD122 SAS 1TB raid-5
/dev/sda ABCD123 FC 1TB raid-5
/dev/sda ABCD124 SCSI 1TB raid-5
/dev/sda ABCD125 IDE 1TB raid-5
/dev/sda ABCD126 SATA 1TB raid-5
I am planning to write the passthrough and ventor independent solution is required.
Any help on it.
Thanks in advance..
Thanks & Regds,
tmohanta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2010 07:24 AM
тАО10-22-2010 07:24 AM
Re: On linux how to know the disk details(disk type,raidlevel) for hardware raid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2010 07:29 AM
тАО10-22-2010 07:29 AM
Re: On linux how to know the disk details(disk type,raidlevel) for hardware raid
e.g. HP's P4xxx internal raid controller provides the hpacucli utility which can be found on the bizsupport website. (click "download drivers, software..." in left nav of this website.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2010 08:12 AM
тАО10-22-2010 08:12 AM
Re: On linux how to know the disk details(disk type,raidlevel) for hardware raid
I guess you can write a script parsing the output of mdadm sir.
mdadm --detail /dev/mdNN
will give out details of your RAIDs.
I am assuming too you are using md+LVM in your storage configuration -- no?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2010 08:18 AM
тАО10-22-2010 08:18 AM
Re: On linux how to know the disk details(disk type,raidlevel) for hardware raid
In that case, yeah -- you need to have the corresponding raid controller utility to list the details and members of your RAID sets for ya. And it depends largely on the server you have... for HP Proliants -- they provide hpacutil on the PSP for ya and it supports all Smart Array Controllers...
If a home-brew, generic server -- download the Linux utility from the vendor's web site -- I have RocketRaid and MegaRAID - the Linux utils are freely downloadable from their web sites.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2010 08:26 AM
тАО10-22-2010 08:26 AM
Re: On linux how to know the disk details(disk type,raidlevel) for hardware raid
for DSK in `ls /sys/block/`
do
if [ -e "/sys/block/${DSK}/device/vendor" ]
then
VENDOR=`cat /sys/block/${DSK}/device/vendor`
LEVEL=`cat /sys/block/${DSK}/device/level`
echo "${DSK} ${VENDOR} ${MODEL}"
fi
done
Any suggestion on it.