|
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.
|