trying to figure out a reliable way to identify drives to make sure I pull the right drive when there is a failure. These will be smaller installations (<16 drives) I am pretty sure the wwn name on a sas device is preassigned like a MAC address, but I just want to make sure. Is there any scenario where the wwn changes? so ideally, as long as I label the disk, with the correct wwn, then I should be able to identify it as failed, and be able to pull it? NAME STATE READ WRITE CKSUM tank ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 c2t5000C50033F5BD7Fd0 ONLINE 0 0 0 c2t5000C50033F5BE3Bd0 ONLINE 0 0 0 mirror-1 ONLINE 0 0 0 c2t5000C50033F5BF9Fd0 ONLINE 0 0 0 c2t5000C50033F5BFBBd0 ONLINE 0 0 0 spares c2t5000C50033F5D607d0 AVAIL thanks, Geoff
On 2/03/12 09:11 AM, Geoff Nordli wrote:> trying to figure out a reliable way to identify drives to make sure I pull the > right drive when there is a failure. These will be smaller installations > (<16 drives) > > I am pretty sure the wwn name on a sas device is preassigned like a MAC > address, but I just want to make sure. Is there any scenario where the wwn > changes?No.> so ideally, as long as I label the disk, with the correct wwn, then I should > be able to identify it as failed, and be able to pull it?Yes. If you''re running S11 and have supported hardware, you might be able to see location information in format, and using the diskinfo too. Otherwise, if you''re running S11, you could try using /usr/lib/fm/fmd/fmti - a tool which blinks LEDs at you and prompts for label confirmation. James C. McPherson -- Oracle http://www.jmcp.homeunix.com/blog
> From: zfs-discuss-bounces at opensolaris.org [mailto:zfs-discuss- > bounces at opensolaris.org] On Behalf Of Geoff Nordli > > trying to figure out a reliable way to identify drives to make sure I pullthe> right drive when there is a failure. These will be smaller installationshttp://support.oracle.com In the search bar in the upper right, enter: jumpstart_solution062011 There you can download a package, which includes a script... It''s really stupid. There''s a conf file for each of the supported hardware types, which simply hardcode some mappings in it. You have to select the right conf file for your system, and run slot.sh against that conf file (which you will probably copy or rename slot.conf) ... After that, it''s all simple. You just type in commands like this: Display all disks and all slots ./slot.sh -a slot.conf Display a specific disk ./slot.sh -d disk_name slot.conf Display a specific slot ./slot.sh -s slot_number slot.conf