LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 08-20-2007, 02:03 PM   #1
itnaa
Member
 
Registered: Dec 2006
Distribution: CentOS 4.4 (2.6.9-42.0.2.ELsmp)
Posts: 55

Rep: Reputation: 15
Best/Right way to extract disk serial number?


What is the best & right way (command-line) to extract the serial numbers of my hard disks? I have a hardware mirrored RAID setup (using 3ware's 9550SX-8LP).

I checked out various things and the following seemed to work, for eg,

% sginfo -a /dev/sdc | grep Serial

and I do that for all my mounts.

Is this the right way? Is there a better way?

Since I'm mirroring, is there a way to probe the serial numbers of the disk pairs that are being mirrored?

Any help would be much appreciated!! Thanks.
 
Old 08-20-2007, 02:43 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
lshw returns serial numbers (run it as root)
 
Old 08-21-2007, 02:45 AM   #3
itnaa
Member
 
Registered: Dec 2006
Distribution: CentOS 4.4 (2.6.9-42.0.2.ELsmp)
Posts: 55

Original Poster
Rep: Reputation: 15
Thanks pixellany. Installed it and tried it out... rather extensive.

Is it possible to discover the serial numbers of each mirrored set? I noticed that it gave serial numbers of one of each set.

Thanks.
 
Old 08-21-2007, 04:47 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Quote:
Originally Posted by itnaa View Post
Thanks pixellany. Installed it and tried it out... rather extensive.

Is it possible to discover the serial numbers of each mirrored set? I noticed that it gave serial numbers of one of each set.

Thanks.
Not sure I understand--I think lshw gives info only the the actual hardware. Are you saying that it does not see all the hardware?
 
Old 08-21-2007, 11:13 AM   #5
itnaa
Member
 
Registered: Dec 2006
Distribution: CentOS 4.4 (2.6.9-42.0.2.ELsmp)
Posts: 55

Original Poster
Rep: Reputation: 15
Thanks pixellany. I did not put it well...What I meant was that I have 8 similar disks arranged in mirror mode, so effectively 4 disks available. When I run lshw, it provides the serial numbers for 4 disks. I was wondering how to get the serial numbers of the remaining 4 disks. Perhaps it isn't possible when one uses hardware RAID? Maybe I need one of the 3ware cmd-line utilities?
 
  


Reply

Tags
disk, info, number, raid, scsi, serial


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
How to get a computers serial number? rsmccain Linux - General 6 08-06-2006 11:23 PM
harddisk serial number secret_force Linux - Hardware 5 01-05-2006 09:15 AM
Serial number of machine curious+cat AIX 4 12-08-2005 09:39 AM
edit volume serial number (VSN) on floppy disk nvbauer Linux - Hardware 11 08-12-2005 07:44 AM
php question - how to extract line number ?? antony_csf Programming 5 09-15-2004 08:08 PM


All times are GMT -5. The time now is 03:15 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration