Hello,
I got tired of gathering disk information from different places when working
with Solaris disks so I wrote a small utility for summarizing the most commonly
used information.
It is especially tricky to work with a large set of SAN disks using MPxIO you
do not even see the logical unit number in the name of the disk so your have to
use other commands to acquire that information per disk.
The focus of the first version is ZFS so it does understand which disks are
part of pools, later version might add other volume managers or filesystems.
Besides the name of the disk, size and usage it can also show number of FC
paths to disks, if it's labeled, driver type, logical unit number, vendor,
serial and product names.
Examples, mind the format, it looks good with 80 columns:
$ dskinfo list
disk
size use type
c0t600144F00008288C50B55BC58DB70001d0 499G - iscsi
c5t0d0
149G rpool disk
c5t2d0
37G - disk
c6t0d0
1.4T zpool01 disk
c6t1d0
1.4T zpool01 disk
c6t2d0
1.4T zpool01 disk
# dskinfo list-long
disk size lun use p spd type lb
c1t0d0 136G - rpool - - disk y
c1t1d0 136G - rpool - - disk y
c6t60000879120292610822533095343732d0 100G 0x1 zpool03 4 4Gb fc y
c6t60000879120292610822533095343734d0 100G 0x3 zpool03 4 4Gb fc y
c6t60000879120292610822533095343736d0 404G 0x5 zpool03 4 4Gb fc y
c6t60000879120292610822533095343745d0 5T 0xb zpool03 4 4Gb fc y
# dskinfo list-full
disk size hex dec p spd type lb
use vendor product serial
c0t0d0 68G - - - - disk y
rpool FUJITSU MAP3735N SUN72G -
c0t1d0 68G - - - - disk y
rpool FUJITSU MAP3735N SUN72G -
c1t1d0 16G - - - - disk y
storage SEAGATE ST318404LSUN18G -
c1t2d0 16G - - - - disk y
storage FUJITSU MAJ3182M SUN18G -
c1t3d0 16G - - - - disk y
storage FUJITSU MAJ3182M SUN18G -
c1t4d0 16G - - - - disk y
storage FUJITSU MAG3182L SUN18G -
c1t5d0 16G - - - - disk y
storage FUJITSU MAJ3182M SUN18G -
c1t6d0 16G - - - - disk y
storage FUJITSU MAJ3182M SUN18G -
I'we been using it for myself for a while now, I thought it might fill a need
so I am making the current version available for download. Download link and
some other information can be found here:
http://sparcv9.blogspot.com/2011/06/solaris-dskinfo-utility.html
Regards
Henrik
http://sparcv9.blogspot.com
_______________________________________________
zfs-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss