LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 09-22-2013, 05:35 AM   #1
senthil4984
LQ Newbie
 
Registered: Aug 2013
Posts: 24

Rep: Reputation: Disabled
command to find internal and external storage devices inRHEL5


I want to know the command to check the external storage disk and internal disk in RHEL5.4.can any one help me out pls..
 
Old 09-22-2013, 01:10 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,517

Rep: Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619
have you read the man pages for
" lsusb " and " lspci"
 
Old 09-22-2013, 01:17 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,657

Rep: Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911
Quote:
Originally Posted by senthil4984 View Post
I want to know the command to check the external storage disk and internal disk in RHEL5.4.can any one help me out pls..
Really?? Did you post not long ago that you have completed an RHCE???
http://www.linuxquestions.org/questi...ce-4175473957/

...and you don't know basic Linux commands? Exactly why I give so little weight to 'certifications'.....
 
1 members found this post helpful.
Old 09-24-2013, 10:56 AM   #4
senthil4984
LQ Newbie
 
Registered: Aug 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
exactly i know this command already ,but i am confused of something like in cat /proc/scsi/scsi its showing some devices and it will show some host id lun etc.so I want know what exactly the above path will show.
 
Old 09-24-2013, 01:33 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,657

Rep: Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911
Quote:
Originally Posted by senthil4984 View Post
exactly i know this command already ,but i am confused of something like in cat /proc/scsi/scsi its showing some devices and it will show some host id lun etc.so I want know what exactly the above path will show.
Which is not what you originally posted. If you're an RHCE, what are you confused about? What kind of external devices? Attached how? What is the output that confuses you??
 
Old 09-25-2013, 01:43 AM   #6
senthil4984
LQ Newbie
 
Registered: Aug 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
Hi,
Just see the output below of scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 31 Lun: 00
Vendor: IBM-ESXS Model: SAS EXP BP Rev: 602A
Type: Enclosure ANSI SCSI revision: 04
Host: scsi0 Channel: 02 Id: 00 Lun: 00
Vendor: IBM Model: ServeRAID M5014 Rev: 2.12
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi0 Channel: 02 Id: 01 Lun: 00
Vendor: IBM Model: ServeRAID M5014 Rev: 2.12
Type: Direct-Access ANSI SCSI revision: 05

In this output we can see 3 disk attached and in the first disk the type is enclosure wat does it mean ,the disk is not attached ryt?And from boot messages i can able to see two disk attached to scsi0

Vendor: IBM Model: ServeRAID M5014 Rev: 2.12
Type: Direct-Access ANSI SCSI revision: 05
SCSI device sda: 1425776640 512-byte hdwr sectors (729998 MB)
sda: Write Protect is off
sda: Mode Sense: 1f 00 00 08
SCSI device sda: drive cache: write back, no read (daft)
SCSI device sda: 1425776640 512-byte hdwr sectors (729998 MB)
sda: Write Protect is off
sda: Mode Sense: 1f 00 00 08
SCSI device sda: drive cache: write back, no read (daft)
sda: sda1 sda2
sd 0:2:0:0: Attached scsi disk sda
Vendor: IBM Model: ServeRAID M5014 Rev: 2.12
Type: Direct-Access ANSI SCSI revision: 05
SCSI device sdb: 1140621312 512-byte hdwr sectors (583998 MB)
sdb: Write Protect is off
sdb: Mode Sense: 1f 00 00 08
SCSI device sdb: drive cache: write back, no read (daft)
SCSI device sdb: 1140621312 512-byte hdwr sectors (583998 MB)
sdb: Write Protect is off
sdb: Mode Sense: 1f 00 00 08
SCSI device sdb: drive cache: write back, no read (daft)
sdb: sdb1
sd 0:2:1:0: Attached scsi disk sdb

My question is for external disk also the proc/scsi file will show the same thing like host:channel:bus:lun,so how can u differtiate internal disk from external.Here Multipath will come into picture?

please clear my doubt and RHCE certified will not give exp my pal.
 
Old 09-25-2013, 09:04 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,657

Rep: Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911
Quote:
Originally Posted by senthil4984 View Post
Hi,
Just see the output below of scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 31 Lun: 00
Vendor: IBM-ESXS Model: SAS EXP BP Rev: 602A
Type: Enclosure ANSI SCSI revision: 04
Host: scsi0 Channel: 02 Id: 00 Lun: 00
Vendor: IBM Model: ServeRAID M5014 Rev: 2.12
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi0 Channel: 02 Id: 01 Lun: 00
Vendor: IBM Model: ServeRAID M5014 Rev: 2.12
Type: Direct-Access ANSI SCSI revision: 05

In this output we can see 3 disk attached and in the first disk the type is enclosure wat does it mean ,the disk is not attached ryt?
Spell your words out, and quit using text-speak. And the device identifies itself as a SAS device, type ENCLOSURE. Wouldn't that indicate to you that it's the drive in the system enclosure, running on the SAS controller on the motherboard??? The other devices clearly say they're on the ServRAID controller, right???
Quote:
And from boot messages i can able to see two disk attached to scsi0

Vendor: IBM Model: ServeRAID M5014 Rev: 2.12
Type: Direct-Access ANSI SCSI revision: 05
SCSI device sda: 1425776640 512-byte hdwr sectors (729998 MB)
sda: Write Protect is off
sda: Mode Sense: 1f 00 00 08
SCSI device sda: drive cache: write back, no read (daft)
SCSI device sda: 1425776640 512-byte hdwr sectors (729998 MB)
sda: Write Protect is off
sda: Mode Sense: 1f 00 00 08
SCSI device sda: drive cache: write back, no read (daft)
sda: sda1 sda2
sd 0:2:0:0: Attached scsi disk sda
Vendor: IBM Model: ServeRAID M5014 Rev: 2.12
Type: Direct-Access ANSI SCSI revision: 05
SCSI device sdb: 1140621312 512-byte hdwr sectors (583998 MB)
sdb: Write Protect is off
sdb: Mode Sense: 1f 00 00 08
SCSI device sdb: drive cache: write back, no read (daft)
SCSI device sdb: 1140621312 512-byte hdwr sectors (583998 MB)
sdb: Write Protect is off
sdb: Mode Sense: 1f 00 00 08
SCSI device sdb: drive cache: write back, no read (daft)
sdb: sdb1
sd 0:2:1:0: Attached scsi disk sdb

My question is for external disk also the proc/scsi file will show the same thing like host:channel:bus:lun,so how can u differtiate internal disk from external.Here Multipath will come into picture?

please clear my doubt and RHCE certified will not give exp my pal.
I am not your "pal", and the word "doubt" and the word "question" mean two different things.

Since you're 'certified', did you miss the parts where it told you about device identification, and how to manage them? Full article with explanations on Red Hat's website.
https://access.redhat.com/site/solutions/3941

You differentiate between them by the controller.
 
Old 09-25-2013, 10:17 AM   #8
senthil4984
LQ Newbie
 
Registered: Aug 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
Hi,

Thanks for your help and support.
 
  


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
[xubuntu] 12.04: cannot successfully mount any external drives or storage devices nobuntu Linux - Desktop 10 05-03-2014 07:58 PM
how do i find internal or external disk? mokku Solaris / OpenSolaris 4 11-09-2009 08:48 AM
how do we find internal or external disk? mokku Linux - Hardware 4 11-06-2009 07:05 AM
External storage devices category under the HCL LinuxLala LQ Suggestions & Feedback 3 05-30-2004 12:57 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 07:11 PM.

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
Open Source Consulting | Domain Registration