Re: [zfs-discuss] Disk locating in OpenSolaris/Solaris 10

2009-10-22 Thread Bruno Sousa
If you use an LSI, maybe you install the LSI Logic MPT Configuration 
Utility.

Example of the usage :

lsiutil

LSI Logic MPT Configuration Utility, Version 1.61, September 18, 2008

1 MPT Port found

Port Name Chip Vendor/Type/RevMPT Rev  Firmware Rev  IOC
1.  mpt0  LSI Logic SAS1068E B3 105  011a 0

Select a device:  [1-1 or 0 to quit] 1

1.  Identify firmware, BIOS, and/or FCode
2.  Download firmware (update the FLASH)
4.  Download/erase BIOS and/or FCode (update the FLASH)
8.  Scan for devices
10.  Change IOC settings (interrupt coalescing)
13.  Change SAS IO Unit settings
16.  Display attached devices
20.  Diagnostics
21.  RAID actions
22.  Reset bus
23.  Reset target
42.  Display operating system names for devices
45.  Concatenate SAS firmware and NVDATA files
59.  Dump PCI config space
60.  Show non-default settings
61.  Restore default settings
66.  Show SAS discovery errors
69.  Show board manufacturing information
97.  Reset SAS link, HARD RESET
98.  Reset SAS link
99.  Reset port
e   Enable expert mode in menus
p   Enable paged mode
w   Enable logging

Main menu, select an option:  [1-99 or e/p/w or 0 to quit] 16

SAS1068E's links are down, down, down, down, 3.0 G, 3.0 G, 3.0 G, 3.0 G

B___T SASAddress PhyNum  Handle  Parent  Type
   500605b000eea990   0001   SAS Initiator
   500605b000eea991   0002   SAS Initiator
   500605b000eea992   0003   SAS Initiator
   500605b000eea993   0004   SAS Initiator
   500605b000eea994   0005   SAS Initiator
   500605b000eea995   0006   SAS Initiator
   500605b000eea996   0007   SAS Initiator
   500605b000eea997   0008   SAS Initiator
   50030480003d95ff   4 00090005   Edge Expander
0  10  50030480003d95c4 4 000a0009   SATA Target
0  11  50030480003d95c5 5 000b0009   SATA Target
0  12  50030480003d95c6 6 000c0009   SATA Target
0  13  50030480003d95c7 7 000d0009   SATA Target
0  14  50030480003d95c8 8 000e0009   SATA Target
0  15  50030480003d95c9 9 000f0009   SATA Target
0  17  50030480003d95ca10 00100009   SATA Target
0  16  50030480003d95cb11 00110009   SATA Target
0  18  50030480003d95cc12 00120009   SATA Target
0  19  50030480003d95cd13 00130009   SATA Target
0  20  50030480003d95ce14 00140009   SATA Target
0  21  50030480003d95cf15 00150009   SATA Target
0  22  50030480003d95d016 00160009   SATA Target
0  23  50030480003d95d117 00170009   SATA Target
0  24  50030480003d95d218 00180009   SATA Target
0  25  50030480003d95d319 00190009   SATA Target
0  26  50030480003d95d622 001a0009   SATA Target
0   8  50030480003d95fd36 001b0009   SAS Initiator and Target

The colum  PhyNum , im my case points out to the drive disk slot in the 
JBOD chassis.


However i don't know how this works with multipath.
The ideal solution would be to use the cfgadm with the hardware option, 
to put the disk led blinking.
Something like, as seen in 
http://docs.sun.com/app/docs/doc/816-5166/cfgadm-scsi-1m?a=view :



 Example 6 Display the Value of the Locator for a Disk

The following command displays the value of the locator for a disk. This 
example is specific to the SPARC Enterprise Server family:



# *cfgadm -x locator c0::dsk/c0t6d0*
 


The system responds with the following:


DiskLed
c0t6d0  locator=on

But maybe this option is just for SPARC with SCSI?

Bruno


SHOUJIN WANG wrote:

Hi there,
What I am tring to do is: Build a NAS storage server based on the following 
hardware architecture:
Server--SAS HBA---SAS JBOD
I plugin 2 SAS HBA cards into a X86 box, I also have 2 SAS I/O Modules on SAS JBOD. From each HBA card, I have one SAS cable which connects to SAS JBOD. 
Configured MPT successfully on server, I can see the single multipahted disks likes the following:

r...@super01:~# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
   0. c0t5000C5000D34BEDFd0 SEAGATE-ST31000640SS-0001-931.51GB
  /scsi_vhci/d...@g5000c5000d34bedf
   1. c0t5000C5000D34BF37d0 SEAGATE-ST31000640SS-0001-931.51GB
  /scsi_vhci/d...@g5000c5000d34bf37
   2. c0t5000C5000D34C727d0 SEAGATE-ST31000640SS-0001-931.51GB
  /scsi_vhci/d...@g5000c5000d34c727
   3. c0t5000C5000D34D0C7d0 SEAGATE-ST31000640SS-0001-931.51GB
  /scsi_vhci/d...@g5000c5000d34d0c7
   4. c0t5000C5000D34D85Bd0 SEAGATE-ST31000640SS-0001-931.51GB
  /scsi_vhci/d...@g5000c5000d34d85b

The problem is: if one of disks failed, I don't know how to locate the disk in 
chasiss. It is diffcult for failed disk replacement.

Is there any utility in opensoalris which can be used to locate/blink 

Re: [zfs-discuss] Disk locating in OpenSolaris/Solaris 10

2009-10-21 Thread Trevor Pretty





have a look at this thread:-
http://mail.opensolaris.org/pipermail/zfs-discuss/2009-September/032349.html

we discussed this a while back.



SHOUJIN WANG wrote:

  Hi there,
What I am tring to do is: Build a NAS storage server based on the following hardware architecture:
Server--SAS HBA---SAS JBOD
I plugin 2 SAS HBA cards into a X86 box, I also have 2 SAS I/O Modules on SAS JBOD. From each HBA card, I have one SAS cable which connects to SAS JBOD. 
Configured MPT successfully on server, I can see the single multipahted disks likes the following:
r...@super01:~# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
   0. c0t5000C5000D34BEDFd0 SEAGATE-ST31000640SS-0001-931.51GB
  /scsi_vhci/d...@g5000c5000d34bedf
   1. c0t5000C5000D34BF37d0 SEAGATE-ST31000640SS-0001-931.51GB
  /scsi_vhci/d...@g5000c5000d34bf37
   2. c0t5000C5000D34C727d0 SEAGATE-ST31000640SS-0001-931.51GB
  /scsi_vhci/d...@g5000c5000d34c727
   3. c0t5000C5000D34D0C7d0 SEAGATE-ST31000640SS-0001-931.51GB
  /scsi_vhci/d...@g5000c5000d34d0c7
   4. c0t5000C5000D34D85Bd0 SEAGATE-ST31000640SS-0001-931.51GB
  /scsi_vhci/d...@g5000c5000d34d85b

The problem is: if one of disks failed, I don't know how to locate the disk in chasiss. It is diffcult for failed disk replacement.

Is there any utility in opensoalris which can be used to locate/blink the failed disk(or do we have any michanism to implement the SES command in bond of SAS)? Or do we have a tool to map the multipathing device ID to the original single pathing device ID likes the following?

 c0t5000C5000D34BF37d0 
   |c2t0d0
\c3t0d0

Regards,
Autumn Wang.
  




www.eagle.co.nz
This email is confidential and may be legally 
privileged. If received in error please destroy and immediately notify 
us.


___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss