LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-22-2010, 12:36 PM   #1
kopper27
Member
 
Registered: Nov 2009
Posts: 147

Rep: Reputation: 16
Hard Drives Information


hi guys

I know my Linux Servers have RAID...

but I want to know
1. Can I find RAID level?
2. how to find Disk information...I mean if it's not possible to get RAID Can I get how many hard drives and the real size?

Code:
[root@cvx]# fdisk -l | grep Disk
Disk /dev/sda: 72.9 GB, 72999763968 bytes
is does not show me if that is 1 physical hard drive or 2 Hard Drives in RAID 1.

thanks a lot
 
Old 04-22-2010, 01:14 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,818
Blog Entries: 14

Rep: Reputation: 1076Reputation: 1076Reputation: 1076Reputation: 1076Reputation: 1076Reputation: 1076Reputation: 1076Reputation: 1076
Presumably you're speaking of hardware RAID. (Your software RAID could be seen with mdadm.) Since the hardware RAID reports logical units (LUNs) rather than disks to the OS you wouldn't be able to tell what makes up the LUN as the OS thinks that IS a disk.

You really wouldn't want it to see the individual disks anyway since the chances you'd overwrite part of your LUN by accessing one of its component disks are fairly high simply because it would be so easy to do.

To know what made up the underlying LUNs you'd have to examine the hardware that presented them. For example if it were a Dell PERC adapter you could see the disks using Dell's OpenManager or by going into the PERC's configuration during boot. If it were an external array presented via Qlogic or Emulex fibre cards you'd have to go to the array's own utilities to determine this information (e.g. EMC Navisphere to see EMC's Clariion arrays). Its possible that whatever your hardware is offers a command line that can be run from within the OS but that usually requires you to have installed the software on top of the OS.

P.S. Multipathing usually used for external arrays for redundancy makes it even more fun because you see a "disk" for each path to the LUN. That is to say in a multipath arrangement of 4 paths /dev/sda, /dev/sde, /dev/sdi and /dev/sdm might all refer to the same "disk" (LUN).

Last edited by MensaWater; 04-22-2010 at 01:17 PM.
 
Old 04-22-2010, 02:19 PM   #3
kopper27
Member
 
Registered: Nov 2009
Posts: 147

Original Poster
Rep: Reputation: 16
nice to know I was thinking that maybe there was a way on linux to get number of disk o disks details
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
2 hard drives, XP on my main sata drives, 10.2 on my IDE LILO doesnt show on boot up Dachy Slackware 14 01-03-2008 07:01 AM
Hard Drive Partitioning for Large Hard Drives Matir Linux - General 2 12-26-2006 05:55 AM
External Hard Drives/Hard Drives ddrfreak Mandriva 1 12-16-2004 06:12 PM
Upgrading hard drives on Software raid 1 boot drives. linuxboy123 Linux - General 0 12-11-2003 03:28 PM
Where can I find/change information about my logical drives eugeny Linux - Software 2 10-21-2003 09:40 AM


All times are GMT -5. The time now is 06:01 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration