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. |
lshw returns serial numbers (run it as root)
|
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. |
Quote:
|
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?
|
All times are GMT -5. The time now is 07:59 PM. |