Thanks Robert for raising this up. It is a feature worth to add to fcinfo.
Do you mind to raise a RFE at http://bugs.opensolaris.org/. This will
help to keep you in the loop for any progress. And if you like to, you
can also try to go though SUN's opensolaris development process and
integrate the feature by yourself.
Thanks,
Roger
Robert Milkowski 写道:
Hello storage-discuss,
I have a server with quite a lot of LUNs presented to it.
Now I want to create a zpool in a RAID-10 configuration with exact
LUN pairs. LUNs are under MPxIO.
With currently available tools when MPxIO is involved the procedure
is a little bit annoying.
bash-3.00# fcinfo remote-port -p 210000e08b9cb7cb -s | head -20
Remote Port WWN: 5006016041e03566
Active FC4 Types:
SCSI Target: yes
Node WWN: 50060160c1e03566
LUN: 0
Vendor: DGC
Product: RAID 5
OS Device Name: /devices/scsi_vhci/[EMAIL PROTECTED]:c,raw
LUN: 1
Vendor: DGC
Product: DISK
OS Device Name: /dev/rdsk/c6t6006016062231B000ABBBE8517D9DB11d0s2
LUN: 2
Vendor: DGC
Product: DISK
OS Device Name: /dev/rdsk/c6t6006016062231B001A70C49C17D9DB11d0s2
LUN: 3
Vendor: DGC
Product: DISK
OS Device Name: /dev/rdsk/c6t6006016062231B00C497C0AB17D9DB11d0s2
bash-3.00#
Now what if you have lot of these LUNs? Finding MPxIO device name
assigned to a specific LUN from that output is annoying.
Now consider different output (custom tool):
bash-3.00# ./hba_inq -l | tail -10
bus 4 target 239 lun 9
"/dev/rdsk/c6t6006016062231B00E839171618D9DB11d0s2"
bus 4 target 239 lun 8
"/dev/rdsk/c6t6006016062231B008666F90918D9DB11d0s2"
bus 4 target 239 lun 7
"/dev/rdsk/c6t6006016062231B005A25D1FE17D9DB11d0s2"
bus 4 target 239 lun 6
"/dev/rdsk/c6t6006016062231B00E2F7A4DA17D9DB11d0s2"
bus 4 target 239 lun 5
"/dev/rdsk/c6t6006016062231B00DCEA12D017D9DB11d0s2"
bus 4 target 239 lun 4
"/dev/rdsk/c6t6006016062231B003C3032C517D9DB11d0s2"
bus 4 target 239 lun 3
"/dev/rdsk/c6t6006016062231B00C497C0AB17D9DB11d0s2"
bus 4 target 239 lun 2
"/dev/rdsk/c6t6006016062231B001A70C49C17D9DB11d0s2"
bus 4 target 239 lun 1
"/dev/rdsk/c6t6006016062231B000ABBBE8517D9DB11d0s2"
bus 4 target 239 lun 0 "/devices/scsi_vhci/[EMAIL PROTECTED]:c,raw"
bash-3.00#
That's much easier.
IMHO it would be great if fcinfo and/or mpathadm could print device
name with lun and target name all in one line per device.
What do you think?
_______________________________________________
storage-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/storage-discuss