|
Logical and Physical Mapping [Work In Progress DEC 29 2010] |
Top Previous Next |
|
The -MAP function (currently only supported under Solaris), ties all device names and status together for purposes of cross-referencing and scripting. It create a file called /etc/smartmon-ux.map which contains the information below. When the -MAP option is used without any other options, the program dumps information as shown below and then exits. When the -MAP command may be combined with the -zfs command and the program is polling in the background, it maintains the /etc/smartmon-ux.map file and updates it as necessary every polling period. (If the file is busy at the time, it will pause and attempt to rewrite 3 times. If the file is still busy, it will wait until the next polling period to rewrite the file).
This map file exists for the benefit of the user, and is the foundation of support script (that will be available in January 2011) that allows the user to direct commands to devices that are defined based on one of the identifiers in this map file. For example, if a user wishes to identify all hot spare disks by lighting the IDENTIFY LED; or run a -HEALTH report on all Seagate disks, or light up the bay associated with serial number 3LN27XJ, then the wrapper script will use this map file to figure out the appropriate identifier(s).
(Additional details on the script will be provided early January)
./smartmon-ux -MAP SMARTMon-UX [Release 1.52, Build 29-DEC-2010] - Copyright 2001-2010 SANtools(R), Inc. http://www.SANtools.com VERSION: 1.3 HOSTNAME: nex TIME: 1293634493 "Wed Dec 29 14:54:53 2010" # Solaris device map file generated by SANtools(R) www.santools.com # This file was automatically generated. Do not modify this file, or even open with write permission unless you disable # enclosure monitoring and remediation software beforehand. # NOTE: More than one record may appear for disks with multipath, and data for offline disks and pools may also appear # as there is no way to know if the situation is transient in nature # Legend (DEV records) # FIELD_NO SEPARATOR DATATYPE COMMENTS # DEV space STRING SES Device path for selected bay (-1 means n/a) # 1 , INTEGER Enclosure bay number starting from 0 (-1 means n/a) # 2 ; STRING Combined Vendor/ProductID 'inquiry-product-id' # 3 ; STRING SerialNumber 'inquiry-serial-no' # 4 ; STRING devid 'devid' # 5 ; STRING device path (major node) 'dev_path' # 6 ; STRING guid 'guid' # 7 ; STRING client_guid 'client_guid' # 8 ; STRING naa 'target_port' # 9 ; STRING zfs_pool (zfs) 'name' # 10 ; STRING disk_path 'disk_path' /dev/* # 11 ; UINT64 zfs GUID (zfs) 'guid' # 12 ; STRING path (zfs) 'path' # 13 ; STRING zdevid (zfs) 'devid' # 14 ; STRING zphys_path (zfs) 'phys_path' # 15 ; STRING zpoolstate (zfs pool state) # 16 ; STRING diskstate (extrapolated) # 17 ; CHAR mpath Y or N if same device has multiple paths # 18 ; CHAR scrub Y or N if selected disk is scrubbing or rebuilding # ENCL 0=/dev/es/ses0,12;LSILOGIC;SYM3600-SAS;pci8086,2771@1/pci1000,3080@0/ses@4e,0:0;500a0b82e0850019 DEV /dev/es/ses0,0;SEAGATE ST3146855SS;3LN23ER000009811GG1R;id1,sd@n5000c5000694c6eb;/pci@0,0/pci8086,2771@1/pci1000,3080@0/sd@48,0;5000c5000694c6eb;;5000c5000694c6ea;raidpool;/dev/rdsk/c0t72d0s2;17239741719207066355;/dev/dsk/c0t72d0s0;id1,sd@n5000c5000694c6eb/a;/pci@0,0/pci8086,2771@1/pci1000,3080@0/sd@48,0:a;ONLINE;ONLINE;N;N DEV /dev/es/ses0,1;SEAGATE ST3146855SS;3LN2A02700009811QJ1Y;id1,sd@n5000c5000694be87;/pci@0,0/pci8086,2771@1/pci1000,3080@0/sd@49,0;5000c5000694be87;;5000c5000694be86;raidpool;/dev/rdsk/c0t73d0s2;3671777628587182395;/dev/dsk/c0t73d0s0;id1,sd@n5000c5000694be87/a;/pci@0,0/pci8086,2771@1/pci1000,3080@0/sd@49,0:a;ONLINE;ONLINE;N;N DEV /dev/es/ses0,2;SEAGATE ST3146855SS;3LN29PAS000098111DHN;id1,sd@n5000c5000694bb7b;/pci@0,0/pci8086,2771@1/pci1000,3080@0/sd@4a,0;5000c5000694bb7b;;5000c5000694bb7a;raidpool;/dev/rdsk/c0t74d0s2;710413751874400595;/dev/dsk/c0t74d0s0;id1,sd@n5000c5000694bb7b/a;/pci@0,0/pci8086,2771@1/pci1000,3080@0/sd@4a,0:a;ONLINE;ONLINE;N;N DEV /dev/es/ses0,3;SEAGATE ST3146855SS;3LN27XJ900009811PDM5;id1,sd@n5000c5000694c0df;/pci@0,0/pci8086,2771@1/pci1000,3080@0/sd@4b,0;5000c5000694c0df;;5000c5000694c0de;raidpool;/dev/rdsk/c0t75d0s2;1483635572262442655;/dev/dsk/c0t75d0s0;id1,sd@n5000c5000694c0df/a;/pci@0,0/pci8086,2771@1/pci1000,3080@0/sd@4b,0:a;ONLINE;ONLINE;N;N DEV /dev/es/ses0,8;MAXTOR ATLAS10K5_300SAS;J8033Q6K;id1,sd@n50010b900005ce5c;/pci@0,0/pci8086,2771@1/pci1000,3080@0/sd@4c,0;50010b900005ce5c;;50010b900005ce5b;;/dev/rdsk/c0t76d0s2;0;;;;UNASSIGNED;ONLINE;N;N DEV /dev/es/ses0,11;SEAGATE ST3146855SS;3LN29QG400009811QJMY;id1,sd@n5000c5000694bfff;/pci@0,0/pci8086,2771@1/pci1000,3080@0/sd@4d,0;5000c5000694bfff;;5000c5000694bffe;raidpool;/dev/rdsk/c0t77d0s2;7455094647219611982;/dev/dsk/c0t77d0s0;id1,sd@n5000c5000694bfff/a;/pci@0,0/pci8086,2771@1/pci1000,3080@0/sd@4d,0:a;ONLINE;INUSE;N;N DEV -1,-1;SEAGATE ST314670 CLAR146;3KS1WCPJ00007602RCJU;id1,sd@n20000014c309d971;/scsi_vhci/disk@g20000014c309d971;;20000014c309d971;;mpio_pool;/dev/rdsk/c3t20000014C309D971d0s2;7932703858812877677;/dev/rdsk/c3t20000014C309D971d0s0;id1,sd@n20000014c309d971/a,raw;/scsi_vhci/disk@g20000014c309d971:a,raw;ONLINE;ONLINE;N;N DEV -1,-1;SEAGATE ST1181677FC;3EM044N900002202EMHR;id1,sd@n20000004cf026fb6;/scsi_vhci/disk@g20000004cf026fb6;;20000004cf026fb6;;mpio_pool;/dev/rdsk/c3t20000004CF026FB6d0s2;4892751534347393452;/dev/rdsk/c3t20000004CF026FB6d0s0;id1,sd@n20000004cf026fb6/a,raw;/scsi_vhci/disk@g20000004cf026fb6:a,raw;ONLINE;ONLINE;N;N DEV -1,-1;MAXTOR ATLAS10K5_300SAS;J80G2H8K;id1,sd@n50010b90002362d4;/pci@0,0/pci8086,2771@1/pci1000,3080@0/sd@51,0;50010b90002362d4;;50010b90002362d2;syspool;/dev/rdsk/c0t81d0s2;10895568903039641884;/dev/dsk/c0t81d0s0;id1,sd@n50010b90002362d4/a;/pci@0,0/pci8086,2771@1/pci1000,3080@0/sd@51,0:a;ONLINE;ONLINE;N;N DEV -1,-1;MAXTOR ATLAS10K5_300SAS;J80G2JAK;id1,sd@n50010b9000236388;/pci@0,0/pci8086,2771@1/pci1000,3080@0/sd@4f,0;50010b9000236388;;50010b9000236386;syspool;/dev/rdsk/c0t79d0s2;933903349873881086;/dev/dsk/c0t79d0s0;id1,sd@n50010b9000236388/a;/pci@0,0/pci8086,2771@1/pci1000,3080@0/sd@4f,0:a;ONLINE;ONLINE;N;N DEV -1,-1;WDC WD20EARS-00MVWB0;WD-WMAZ20397906;id1,sd@n50014ee0579d296c;/pci@0,0/pci8086,2771@1/pci1000,3080@0/sd@58,0;50014ee0579d296c;;6c299d57e04e0150;satamirror;/dev/rdsk/c0t88d0s2;3028078359259381576;/dev/dsk/c0t88d0s0;id1,sd@n50014ee0579d296c/a;/pci@0,0/pci8086,2771@1/pci1000,3080@0/sd@58,0:a;ONLINE;ONLINE;N;N DEV -1,-1;WDC WD20EADS-00R6B0;WD-WCAVY0302730;id1,sd@n50014ee2ad7e2a86;/pci@0,0/pci8086,2771@1/pci1000,3080@0/sd@53,0;50014ee2ad7e2a86;;862a7eade24e0150;satamirror;/dev/rdsk/c0t83d0s2;7304872571585252383;/dev/dsk/c0t83d0s0;id1,sd@n50014ee2ad7e2a86/a;/pci@0,0/pci8086,2771@1/pci1000,3080@0/sd@53,0:a;ONLINE;ONLINE;N;N DEV -1,-1;HITACHI DK31CJ-72FC;1D233931;id1,sd@n50000e1000027253;/pci@0,0/pci8086,244e@1e/pci1077,100@0/fp@0,0/disk@w50000e1000027254,0;;;50000e1000027254;;/dev/rdsk/c2t50000E1000027254d0s2;0;;;;UNASSIGNED;OFFLINE;Y;N DEV -1,-1;HITACHI DK31CJ-72FC;1D233931;id1,sd@n50000e1000027253;/pci@0,0/pci8086,244e@1e/pci1077,100@0/fp@0,0/disk@w50000e1000027255,0;;;50000e1000027255;;/dev/rdsk/c2t50000E1000027255d0s2;0;;;;UNASSIGNED;OFFLINE;Y;N DEV -1,-1;HITACHI HUS103073FLF210;V3W908XA0055P6591CC9;id1,sd@n2000000087933931;/pci@0,0/pci8086,244e@1e/pci1077,100@0/fp@0,0/disk@w2100000087933931,0;;;2100000087933931;;/dev/rdsk/c2t2100000087933931d0s2;0;;;;UNASSIGNED;ONLINE;Y;N DEV -1,-1;HITACHI HUS103073FLF210;V3W908XA0055P6591CC9;id1,sd@n2000000087933931;/pci@0,0/pci8086,244e@1e/pci1077,100@0/fp@0,0/disk@w2200000087933931,0;;;2200000087933931;;/dev/rdsk/c2t2200000087933931d0s2;0;;;;UNASSIGNED;ONLINE;Y;N DEV -1,-1;IBM DNEF-318350;AK0LS722;id1,sd@n50050761010a7a82;/pci@0,0/pci8086,244e@1e/pci1077,100@0/fp@0,0/disk@w50050761014a7a82,0;;;50050761014a7a82;;/dev/rdsk/c2t50050761014A7A82d0s2;0;;;;UNASSIGNED;ONLINE;Y;N DEV -1,-1;IBM DNEF-309170;AJ1P3256;id1,sd@n50050761001b3da8;/pci@0,0/pci8086,244e@1e/pci1077,100@0/fp@0,0/disk@w50050761005b3da8,0;;;50050761005b3da8;funkypool;/dev/rdsk/c2t50050761005B3DA8d0s2;3992413709090414528;/dev/dsk/c2t50050761005B3DA8d0s0;id1,sd@n50050761001b3da8/a;/pci@0,0/pci8086,244e@1e/pci1077,100@0/fp@0,0/disk@w50050761005b3da8,0:a;DEGRADED;ONLINE;Y;N DEV -1,-1;IBM DNEF-318350;AK0LS722;id1,sd@n50050761010a7a82;/pci@0,0/pci8086,244e@1e/pci1077,100@0/fp@0,0/disk@w50050761018a7a82,0;;;50050761018a7a82;;/dev/rdsk/c2t50050761018A7A82d0s2;0;;;;UNASSIGNED;ONLINE;Y;N DEV -1,-1;IBM DNEF-309170;AJ1P3256;id1,sd@n50050761001b3da8;/pci@0,0/pci8086,244e@1e/pci1077,100@0/fp@0,0/disk@w50050761009b3da8,0;;;50050761009b3da8;;/dev/rdsk/c2t50050761009B3DA8d0s2;0;;;;UNASSIGNED;ONLINE;Y;N DEV -1,-1;IBM DNEF-318350;AK0LS045;id1,sd@n50050761010a77dd;/pci@0,0/pci8086,244e@1e/pci1077,100@0/fp@0,0/disk@w50050761014a77dd,0;;;50050761014a77dd;funkypool;/dev/rdsk/c2t50050761014A77DDd0s2;8836082988322251852;/dev/dsk/c2t50050761014A77DDd0s0;id1,sd@n50050761010a77dd/a;/pci@0,0/pci8086,244e@1e/pci1077,100@0/fp@0,0/disk@w50050761014a77dd,0:a;DEGRADED;INUSE;Y;N DEV -1,-1;IBM DNEF-309170;AJ1P3505;id1,sd@n50050761001b3ea1;/pci@0,0/pci8086,244e@1e/pci1077,100@0/fp@0,0/disk@w50050761005b3ea1,0;;;50050761005b3ea1;funkypool;/dev/rdsk/c2t50050761005B3EA1d0s2;13949401853816495406;/dev/dsk/c2t50050761005B3EA1d0s0;id1,sd@n50050761001b3ea1/a;/pci@0,0/pci8086,244e@1e/pci1077,100@0/fp@0,0/disk@w50050761005b3ea1,0:a;DEGRADED;UNAVAIL;Y;N DEV -1,-1;IBM DNEF-318350;AK0LS045;id1,sd@n50050761010a77dd;/pci@0,0/pci8086,244e@1e/pci1077,100@0/fp@0,0/disk@w50050761018a77dd,0;;;50050761018a77dd;;/dev/rdsk/c2t50050761018A77DDd0s2;0;;;;UNASSIGNED;ONLINE;Y;N DEV -1,-1;IBM DNEF-309170;AJ1P3505;id1,sd@n50050761001b3ea1;/pci@0,0/pci8086,244e@1e/pci1077,100@0/fp@0,0/disk@w50050761009b3ea1,0;;;50050761009b3ea1;;/dev/rdsk/c2t50050761009B3EA1d0s2;0;;;;UNASSIGNED;ONLINE;Y;N DEV -1,-1;IBM DNEF-309170;AJ197171;id1,sd@n5005076100144043;/pci@0,0/pci8086,244e@1e/pci1077,100@0/fp@0,0/disk@w5005076100544043,0;;;5005076100544043;;/dev/rdsk/c2t5005076100544043d0s2;0;;;;UNASSIGNED;ONLINE;Y;N DEV -1,-1;IBM DNEF-309170;AJ197171;id1,sd@n5005076100144043;/pci@0,0/pci8086,244e@1e/pci1077,100@0/fp@0,0/disk@w5005076100944043,0;;;5005076100944043;;/dev/rdsk/c2t5005076100944043d0s2;0;;;;UNASSIGNED;ONLINE;Y;N DEV -1,-1;IBM DNEF-309170;AJ18Q212;id1,sd@SIBM_____DNEF-309170_____________AJ18Q212;/pci@0,0/pci8086,244e@1e/pci1077,100@0/fp@0,0/disk@w50050761005401ec,0;;;50050761005401ec;;/dev/rdsk/c2t50050761005401ECd0s2;0;;;;UNASSIGNED;ONLINE;Y;N DEV -1,-1;IBM DNEF-309170;AJ18Q212;id1,sd@SIBM_____DNEF-309170_____________AJ18Q212;/pci@0,0/pci8086,244e@1e/pci1077,100@0/fp@0,0/disk@w50050761009401ec,0;;;50050761009401ec;;/dev/rdsk/c2t50050761009401ECd0s2;0;;;;UNASSIGNED;ONLINE;Y;N DEV -1,-1;IBM DNEF-309170;AJ18V425;id1,sd@SIBM_____DNEF-309170_____________AJ18V425;/pci@0,0/pci8086,244e@1e/pci1077,100@0/fp@0,0/disk@w5005076100541261,0;;;5005076100541261;;/dev/rdsk/c2t5005076100541261d0s2;0;;;;UNASSIGNED;ONLINE;Y;N DEV -1,-1;IBM DNEF-309170;AJ18V425;id1,sd@SIBM_____DNEF-309170_____________AJ18V425;/pci@0,0/pci8086,244e@1e/pci1077,100@0/fp@0,0/disk@w5005076100941261,0;;;5005076100941261;;/dev/rdsk/c2t5005076100941261d0s2;0;;;;UNASSIGNED;ONLINE;Y;N # END-OF-FILE
The dump above represents a poorly configured, worst-case scenario configuration that combines SAS, SATA, and fibre channel disks. Some of the fibre channel disks are purposely showing multiple device names due to incorrect switch configuration. You will, however, note that MPIO is configured for several drives.
Below is the output of zpool status for purposes of cross-referencing. Note that the zfs disk and pool states are shown in the cross reference file.
Disks in the satamirror and syspool are NOT in a SES-enclosure. Also, none of the fibre channel disks (the IBM, Hitachi, and two Seagate disks are in a SES enclosure). The software will enumerate all devices, whether or not they are in a SES enclosure. In the event they ARE in a SES enclosure, it will report the slot ID.
root@nex:/volumes/satamirror/Development/smartmon# zpool status pool: funkypool state: DEGRADED status: One or more devices could not be opened. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Attach the missing device and online it using 'zpool online'. see: http://www.sun.com/msg/ZFS-8000-2Q scrub: resilver completed after 0h0m with 0 errors on Tue Dec 28 00:01:45 2010 config:
NAME STATE READ WRITE CKSUM funkypool DEGRADED 0 0 0 raidz1 DEGRADED 0 0 0 c2t50050761005B3DA8d0s0 ONLINE 0 0 0 spare DEGRADED 0 0 0 c2t50050761005B3EA1d0s0 UNAVAIL 0 0 0 cannot open c2t50050761014A77DDd0s0 ONLINE 0 0 0 17.5K resilvered spares c2t50050761014A77DDd0s0 INUSE currently in use
errors: No known data errors
pool: mpio_pool state: ONLINE scrub: none requested config:
NAME STATE READ WRITE CKSUM mpio_pool ONLINE 0 0 0 raidz1 ONLINE 0 0 0 /dev/rdsk/c3t20000004CF026FB6d0 ONLINE 0 0 0 /dev/rdsk/c3t20000014C309D971d0 ONLINE 0 0 0
errors: No known data errors
pool: raidpool state: ONLINE scrub: resilver completed after 0h2m with 0 errors on Tue Dec 28 00:02:43 2010 config:
NAME STATE READ WRITE CKSUM raidpool ONLINE 0 0 0 raidz1 ONLINE 0 0 0 c0t72d0 ONLINE 0 0 0 spare ONLINE 0 0 2 c0t73d0s0 ONLINE 0 0 0 19.7M resilvered c0t77d0s0 ONLINE 0 0 0 c0t74d0 ONLINE 0 0 0 c0t75d0 ONLINE 0 0 0 spares c0t77d0s0 INUSE currently in use
errors: No known data errors
pool: satamirror state: ONLINE scrub: none requested config:
NAME STATE READ WRITE CKSUM satamirror ONLINE 0 0 0 raidz1 ONLINE 0 0 0 c0t88d0 ONLINE 0 0 0 c0t83d0 ONLINE 0 0 0
errors: No known data errors
pool: syspool state: ONLINE scrub: scrub completed after 0h12m with 0 errors on Tue Dec 28 00:57:00 2010 config:
NAME STATE READ WRITE CKSUM syspool ONLINE 0 0 0 mirror ONLINE 0 0 0 c0t79d0s0 ONLINE 0 0 0 c0t81d0s0 ONLINE 0 0 0
errors: No known data errors
|