On Jun 17, 2011, at 12:55 AM, Lanky Doodle wrote: > Thanks Richard. > > How does ZFS enumerate the disks? In terms of listing them does it do them > logically, i.e; > > controller #1 (motherboard) > | > |--- disk1 > |--- disk2 > controller #3 > |--- disk3 > |--- disk4 > |--- disk5 > |--- disk6 > |--- disk7 > |--- disk8 > |--- disk9 > |--- disk10 > controller #4 > |--- disk11 > |--- disk12 > |--- disk13 > |--- disk14 > |--- disk15 > |--- disk16 > |--- disk17 > |--- disk18 > > or is it completely random leaving me with some trial and error to work out > what disk is on what port?
For all intents and purposes, it is random. Slot locations are the responsibility of the enclosure, not the disk. Until we get a better framework integrated into illumos, you can get the bay location from a SES-compliant enclosure from the fmtopo output, lsiutil, or the sg_utils. For NexentaStor users I provide some automation for this in a KB article on the customer portal. Also for NexentaStor users, DataON offers a GUI plugin called DSM that shows the enclosure, blinky lights, and all of the status information available -- power supplies, fans, etc -- good stuff! For the curious, fmtopo shows the bay for each disk and the serial number of the disk therein. You can then cross-reference the c*t*d* number for the OS instance to the serial number. Note that for dual-port disks, you can get different c*t*d* numbers for each node connected to the disk (rare, but possible). Caveat: please verify prior to rolling into production that the bay number matches the enclosure silkscreen. The numbers are programmable and different vendors deliver the same enclosure with different silkscreened numbers. As always, the disk serial number is supposed to be unique, so you can test this very easily. For the later Nexenta, OpenSolaris or Solaris 11 Express releases the mpt_sas driver will try to light the OK2RM (ok to remove) LED for a disk when you use cfgadm to disconnect the paths. Apparently this also works for SATA disks in an enclosure that manages SATA disks. The process is documented very nicely by Cindy in the ZFS Admin Guide. However, there are a number of enclosures that do not have an OK2RM LED. YMMV. -- richard _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss