Thursday, 2 January 2014

VERITAS DDLADM & DMPADM & DCTL

1)to list disks
-bash-4.1# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c2d0s2       auto:ZFS        -            -            ZFS
c2d1s2       auto:ZFS        -            -            ZFS
c2d8s2       auto:none       -            -            online invalid
c2d9s2       auto:none       -            -            online invalid
c2d10s2      auto:none       -            -            online invalid
c2d11s2      auto:none       -            -            online invalid

2)to check mode
-bash-4.1# vxdctl mode
mode: enabled
3)to check cluster mode
-bash-4.1# vxdctl -c mode
mode: enabled: cluster inactive
4)to recover volboot file
-bash-4.1# rm volboot
-bash-4.1# ls -l /etc/vx/volboot
/etc/vx/volboot: No such file or directory
-bash-4.1# vxdctl init
-bash-4.1# ls -l /etc/vx/volboot
-rw-r--r--   1 root     root         512 Jan  2 12:25 /etc/vx/volboot
5)to change default dg
-bash-4.1# vxdg defaultdg
nodg
-bash-4.1# vxdctl defaultdg testdg
-bash-4.1# vxdg defaultdg
testdg

to set default
-bash-4.1# vxdg defaultdg
testdg
-bash-4.1#
-bash-4.1# vxdctl defaultdg nodg
-bash-4.1# vxdg list
NAME         STATE           ID
-bash-4.1# vxdg defaultdg
nodg

6)to disable veritas diskcontroler
-bash-4.1# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c2d0s2       auto:ZFS        -            -            ZFS
c2d1s2       auto:ZFS        -            -            ZFS
c2d8s2       auto:none       -            -            online invalid
c2d9s2       auto:none       -            -            online invalid
c2d10s2      auto:none       -            -            online invalid
c2d11s2      auto:none       -            -            online invalid
-bash-4.1# vxdctl mode
mode: enabled
-bash-4.1# vxdctl disable
-bash-4.1# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS

7)to enable veritas disk controler
-bash-4.1# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
-bash-4.1# vxdctl mode
mode: disabled
-bash-4.1# vxdctl enable
-bash-4.1# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c2d0s2       auto:ZFS        -            -            ZFS
c2d1s2       auto:ZFS        -            -            ZFS
c2d8s2       auto:none       -            -            online invalid
c2d9s2       auto:none       -            -            online invalid
c2d10s2      auto:none       -            -            online invalid
c2d11s2      auto:none       -            -            online invalid

8)to list volboot file info
-bash-4.1# vxdctl list
Volboot file
version: 3/1
seqno:   0.6
cluster protocol version: 130
hostid:  solaris2
hostguid:  {1aa83506-721e-11e3-a1f6-00144ff8e18d}

9)to list support info of vxdctl
-bash-4.1# vxdctl support
Support information:
  vxconfigd_vrsn:   35
  dg_minimum:       20
  dg_maximum:       190
  kernel:           35
  protocol_minimum: 90
  protocol_maximum: 130
  protocol_current: 0

10)to list transsate
-bash-4.1# vxdctl transstate
transaction state: cluster inactive

11)to check scsi persistence
-bash-4.1# vxdctl scsi3pr
scsi3pr: on
-bash-4.1# vxdctl scsi3pr off
-bash-4.1# vxdctl scsi3pr
scsi3pr: off

12)to list license
-bash-4.1# vxdctl license
All features are available:
 Mirroring
 Root Mirroring
 Concatenation
 Disk-spanning
 Striping
 RAID-5
 RAID-5 Snapshot
 VxSmartSync
 Array Snapshot Integration Feature
 FastResync
 DGSJ
 Site Awareness
 DMP (multipath enabled)
 CDS
 Dynamic LUN Expansion
 Hardware assisted copy
 DMP Native Support
 SMARTIO_VMREAD

13)to list protocol version
-bash-4.1# vxdctl support
Support information:
  vxconfigd_vrsn:   35
  dg_minimum:       20
  dg_maximum:       190
  kernel:           35
  protocol_minimum: 90
  protocol_maximum: 130
  protocol_current: 0
-bash-4.1# vxdctl protocolrange
minprotoversion: 90, maxprotoversion: 130
-bash-4.1# vxdctl protocolversion
Not in cluster

14)to change request threads
-bash-4.1# vxdctl request_threads
2
-bash-4.1# vxdctl request_threads 5
-bash-4.1# vxdctl request_threads
5

15)to stop/start vxconfiguration daemon
-bash-4.1# pgrep vxconfigd
10630
-bash-4.1# vxdctl stop
-bash-4.1# pgrep vxconfigd
-bash-4.1# vxconfigd -k
-bash-4.1# pgrep vxconfigd
10641

16)to check bootdg
-bash-4.1# vxdg bootdg
nodg
-bash-4.1# vxdctl bootdg rootdg
-bash-4.1# vxdg bootdg
rootdg
-bash-4.1# vxdctl bootdg nodg
-bash-4.1# vxdg bootdg
nodg

17)to help
-bash-4.1# vxdctl help
VxVM vxdctl INFO V-5-1-9632
vxdctl - manage the volume configuration daemon and the volboot file

    Usage: vxdctl  keyword arg ...
Recognized keywords:
    bootdg group
    debug {[tagged=]0-9 [file] | get}
    defaultdg group
    disable
    [-f] enable
    hostid hostid
    init [hostid]
    initdmp
    license [init]
    list
    mgmtserver hostname
    [-c] mode
    protocolrange
    protocolversion
    request_threads [<count>]
    scsi3_pr [on|off]
    scsi3pr [on|off]
    [-F] set <attribute>[=value]
    settz
    setversion [<version>]
    [-k] stop
    support
    transstate
    [-F] unset <attribute>
    upgrade [<version>]
    vmcacheareadg <group>
    fscacheareadg <group>
    cmdcompletion [enable|disable]
18)to list device discover layour identified disks
-bash-4.1# vxddladm list
Devices discovered on the system
===================================
hba -
        port -
                target -
                        device c2d1s2
                        device c2d4
                        device c2d6
                        device c2d8s2
                        device c2d10s2
                        device c2d2s2
                        device c2d3
                        device c2d5
                        device c2d7
                        device c2d9s2
                        device c2d11s2
                        device c2d0s2
19)to list exclude device list
-bash-4.1# vxddladm listexclude
The Diskarrays excluded
-----------------------
Based on Library names:
-----------------------
Based on VID, PID Combination:
------------------------------
20)to list version
-bash-4.1# vxddladm listversion
LIB_NAME                        ASL_VERSION      Min. VXVM version
===================================================================
libvxpp.so                      vm-6.1-rev-1     6.1
libvxsun7x10.so                 vm-6.1-rev-1     6.1
libvxfjtsye2k.so                vm-6.1-rev-1     6.1
libvxhds9980.so                 vm-6.1-rev-1     6.1
libvxveritas.so                 vm-6.1-rev-1     6.1
libvxfujitsu.so                 vm-6.1-rev-1     6.1
libvxhpsvsp.so                  vm-6.1-rev-1     6.1
libvxxp1281024.so               vm-6.1-rev-1     6.1
libvxxiv.so                     vm-6.1-rev-1     6.1
libvxibmds6k.so                 vm-6.1-rev-1     6.1
libvxnetapp.so                  vm-6.1-rev-1     6.1
libvxcopan.so                   vm-6.1-rev-1     6.1
libvxibmds8k.so                 vm-6.1-rev-1     6.1
libvxhuawei.so                  vm-6.1-rev-1     6.1
libvxhpalua.so                  vm-6.1-rev-1     6.1
libvxlsiall.so                  vm-6.1-rev-1     6.1
libvxddns2a_sfa.so              vm-6.1-rev-1     6.1
libvxhdsusp.so                  vm-6.1-rev-1     6.1
libvxstec.so                    vm-6.1-rev-1     6.1
libvxshark.so                   vm-6.1-rev-1     6.1
libvxintel.so                   vm-6.1-rev-1     6.1
libvxhdsalua.so                 vm-6.1-rev-1     6.1
libvxdothill.so                 vm-6.1-rev-1     6.1
libvxInvista.so                 vm-6.1-rev-1     6.1
libvxfusionio.so                vm-6.1-rev-1     6.1
libvxcompellent.so              vm-6.1-rev-1     6.1
libvxmsa2k.so                   vm-6.1-rev-1     6.1
libvxhitachi.so                 vm-6.1-rev-1     6.1
libvxpurestorage.so             vm-6.1-rev-1     6.1
libvxviolin.so                  vm-6.1-rev-1     6.1
libvxhillsannet2.so             vm-6.1-rev-1     6.1
libvxfje3k4ka.so                vm-6.1-rev-1     6.1
libvxpurple.so                  vm-6.1-rev-1     6.1
libvxxiotechE5k.so              vm-6.1-rev-1     6.1
libvxvpath.so                   vm-6.1-rev-1     6.1
libvxKaminario.so               vm-6.1-rev-1     6.1
libvxvfcache.so                 vm-6.1-rev-1     6.1
libvxxp256.so                   vm-6.1-rev-1     6.1
libvxnipnyis.so                 vm-6.1-rev-1     6.1
libvx3par.so                    vm-6.1-rev-1     6.1
libvxCLARiiON.so                vm-6.1-rev-1     6.1
libvxXtremio.so                 vm-6.1-rev-1     6.1
libvxnexsan.so                  vm-6.1-rev-1     6.1
libvxibmsvc.so                  vm-6.1-rev-1     6.1
libvxddns2a.so                  vm-6.1-rev-1     6.1
libvxeccs.so                    vm-6.1-rev-1     6.1
libvxeqlogic.so                 vm-6.1-rev-1     6.1
libvxramsan.so                  vm-6.1-rev-1     6.1
libvxtsbaf.so                   vm-6.1-rev-1     6.1
libvxstorcomp.so                vm-6.1-rev-1     6.1
libvxsena.so                    vm-6.1-rev-1     6.1
libvxfsc.so                     vm-6.1-rev-1     6.1
libvxemc.so                     vm-6.1-rev-1     6.1
libvxmsa2kfc_sa.so              vm-6.1-rev-1     6.1
libvxinfortrend.so              vm-6.1-rev-1     6.1
libvxxp12k.so                   vm-6.1-rev-1     6.1
libvxFJTSYe6k.so                vm-6.1-rev-1     6.1
libvxrdac.so                    vm-6.1-rev-1     6.1
libvxap.so                      vm-6.1-rev-1     6.1
libvxsunse3k.so                 vm-6.1-rev-1     6.1
libvxpromise.so                 vm-6.1-rev-1     6.1
libvxssa.so                     vm-6.1-rev-1     6.1
libvxpillaraxiom.so             vm-6.1-rev-1     6.1
libvxsunset4.so                 vm-6.1-rev-1     6.1
libvxhds.so                     vm-6.1-rev-1     6.1
libvxlefthand.so                vm-6.1-rev-1     6.1
libvxFJTSYe8k.so                vm-6.1-rev-1     6.1
-bash-4.1# vxddladm list
list         listexclude  listforeign  listjbod     listsupport  listversion
21)to list support arrays
-bash-4.1# vxddladm listsupport
LIBNAME             VID                 PID
=================================================================================================
libvxpp.so          EMC, DGC            All
libvxsun7x10.so     SUN                 Sun Storage 7410, Sun Storage 7310, Sun Storage 7210, Sun Storage 7110, ZFS Storage 7120, ZFS Storage 7320, ZFS
Storage 7420, ZFS Storage 7720, ZFS Storage 7130, ZFS Storage 7330, ZFS Storage 7430, ZFS Storage 7335
libvxfjtsye2k.so    FUJITSU             E2000, ETERNUS_DXL
libvxhds9980.so     HITACHI             All
libvxveritas.so     VERITAS             All
libvxfujitsu.so     FUJITSU             GR710, GR720, GR730, GR740, GR820, GR840
libvxhpsvsp.so      HP                  HSVX740
libvxxp1281024.so   HP                  All
libvxxiv.so         XIV, IBM            NEXTRA, 2810XIV
libvxibmds6k.so     IBM                 1750
libvxnetapp.so      NETAPP              All
libvxcopan.so       COPANSYS            8814, 8818
libvxibmds8k.so     IBM                 2107
libvxhuawei.so      HUAWEI, HUASY       S5100, S5300, S5500, S5600, S6800E, S8000, S8000-I, VIS6000, S5500T, S5600T, S5800T, S6800T, S2600T, V1500, V1800,
S2100, S2200T, S2300, S2300E, S2600, S3900-M100, S3900-M200, S3900-M300, S5900-M100, S5900-M200, S6900-M100, Dorado2100, Dorado2100 G2, Dorado5100, HVS85T,
HVS88T
libvxhpalua.so      HP, COMPAQ          HSV101, HSV111 (C)COMPAQ, HSV111, HSV200, HSV210, HSV300, HSV400, HSV450, HSV340, HSV360
libvxlsiall.so      IBM, SUN, STK, SGI, DELL, LSI, ENGENIOAll
libvxddns2a_sfa.so  DDN                 S2A 6620, SFA 10000
libvxhdsusp.so      HITACHI             All
libvxstec.so        STEC                All
libvxshark.so       IBM                 2105
libvxintel.so       INTEL(R)            All
libvxhdsalua.so     HITACHI             DF600, DF600-V, DF600F, DF600F-V
libvxdothill.so     DotHill             R/Evo 2730-2R, R/Evo 2530-2R, R/Evo 2330-2R, R/Evo 2130-2RX, R/Evo 2130-2J, R/Evo 5730-2R
libvxInvista.so     EMC                 Invista
libvxfusionio.so    FIO                 ioDrive
libvxcompellent.so  COMPELNT            Compellent Vol
libvxmsa2k.so       HP                  MSA2012fc, MSA2212fc, MSA2012i
libvxhitachi.so     HITACHI             DF350, DF400, DF400F, DF500, DF500F
libvxpurestorage.so PURE                FlashArray
libvxviolin.so      VIOLIN              SAN ARRAY
libvxhillsannet2.so DotHill             SANnet II FC, SANnet II SCSI, SANnet II SATA, SANnet II U320
libvxfje3k4ka.so    FUJITSU             E3000, E400A
libvxpurple.so      SUN                 T300
libvxxiotechE5k.so  XIOTECH             ISE1400
libvxvpath.so       IBM                 2105
libvxKaminario.so   KMNRIO              K2
libvxvfcache.so     EMC                 SLP-300
libvxxp256.so       HP                  All
libvxnipnyis.so     NEC                 iStorage 1000, iStorage 2000, iStorage 4000, DISK ARRAY
libvx3par.so        3PARdata            VV
libvxCLARiiON.so    DGC                 All
libvxXtremio.so     XtremIO             XtremApp
libvxnexsan.so      NEXSAN              SATABoy2, SATABeast2, NXS-B01-000
libvxibmsvc.so      IBM                 2145
libvxddns2a.so      DDN                 S2A 9550, S2A 9900, S2A 9700
libvxeccs.so        ECCS                All
libvxeqlogic.so     EQLOGIC             100E-00
libvxramsan.so      TMS                 RamSan 400, RamSan
libvxtsbaf.so       TOSHIBA             AF_AF3500, AF_AF1500, AF2_AF7000, AF2_AF2000, AF3_AF1700, AF3_AF7500, AF3_AF2500, AF3_AF900
libvxstorcomp.so    StorComp            OmniForce
libvxsena.so        SENA                All
libvxfsc.so         FSC                 FibreCAT_SX1
libvxemc.so         EMC                 SYMMETRIX
libvxmsa2kfc_sa.so  HP                  MSA2312fc, MSA2324fc, MSA2012sa, MSA2312sa, MSA2324sa, MSA2312i, MSA2324i, P2000 G3 FC, P2000G3 FC/iSCSI, P2000 G3
SAS, P2000 G3 iSCSI, MSA 2040 SAN
libvxinfortrend.so  IFT, WINSYS, EVERTZ All
libvxxp12k.so       HP                  All
libvxFJTSYe6k.so    FUJITSU             E6000
libvxrdac.so        VERITAS             RDACNODES
libvxap.so          SUN                 All
libvxsunse3k.so     SUN                 StorEdge 3310, StorEdge 3320, StorEdge 3510, StorEdge 3511
libvxpromise.so     Promise             VTrak E610f, VTrak E310f, VTrak E610s, VTrak E310s
libvxssa.so         SSA                 SSA
libvxpillaraxiom.so Pillar              Axiom 300, Axiom 500, Axiom 600
libvxsunset4.so     SUN                 T4
libvxhds.so         HITACHI             All
libvxlefthand.so    LEFTHAND            iSCSIDisk
libvxFJTSYe8k.so    FUJITSU             All

22)to change naming scheme
-bash-4.1# vxddladm set namingscheme=osn
-bash-4.1# vxddladm get namingscheme
NAMING_SCHEME       PERSISTENCE    LOWERCASE      USE_AVID
============================================================
OS Native           No             Yes            Yes
-bash-4.1# vxddladm set namingscheme=ebn
-bash-4.1# vxddladm get namingscheme
NAMING_SCHEME       PERSISTENCE    LOWERCASE      USE_AVID
============================================================
Enclosure Based     Yes            Yes            Yes
-bash-4.1# vxddladm set namingscheme=osn
-bash-4.1# vxddladm get namingscheme
NAMING_SCHEME       PERSISTENCE    LOWERCASE      USE_AVID
============================================================
OS Native           No             Yes            Yes

23)to change scsi3 mode
-bash-4.1# vxddladm modescsi3
vxddladm: SCSI 3 is currently enabled in aa mode
-bash-4.1# vxddladm disablescsi3
-bash-4.1# vxddladm modescsi3
vxddladm: SCSI 3 is currently disabled
-bash-4.1# vxddladm enablescsi3
-bash-4.1# vxddladm modescsi3
vxddladm: SCSI 3 is currently enabled in aa mode

24)to help
-bash-4.1# vxddladm help
Device Discovery Layer subsystem administration CLI.
Usage:
        vxddladm option <attribute=value..>
where, the option can be:
addforeign              Add a Foreign disk
addjbod                 Specify an array to be JBOD
assign                  To assign names to DMP devices
disablescsi3            Disable SCSI 3 support
enablescsi3             Enable SCSI 3 support
excludearray            Exclude an array library/a set of libraries
get                     Obtain DDL attributes such as naming scheme
getiscsi                To obtain list of parameters of an iSCSI target
includearray            Include an array library/a set of libraries
list                    To obtain list of DDL discovered entities
listexclude             Listing Of all excluded Array Libraries
listforeign             List all Foreign disks
listjbod                List all JBODs
listsupport             Listing Of all Supported Arrays
listversion             Listing of all ASL with their corresponding versions
modescsi3               Show if SCSI 3 support is enabled or not
rmforeign               Remove a Foreign disk
rmjbod                  Remove an array from JBOD List
set                     Change DDL attributes such as naming scheme, DMP device names
setiscsi                To set a parameter of an iSCSI target
start                   Start event source daemon
stop                    Stop event source daemon
status                  Status of the event source daemon
restart                 Restart event source daemon
For detailed help on any option use:
                vxddladm {-h|-H|--help|help} <option>
Note:   Options/attributes must be specified in the order shown in help messages.
-bash-4.1#

25)to list controllers whit r under control of vxvm
-bash-4.1# vxdmpadm listctlr
CTLR_NAME       ENCLR_TYPE      STATE        ENCLR_NAME      PATH_COUNT
=========================================================================
c2              OTHER_DISKS     ENABLED      other_disks          6

-bash-4.1# vxdmpadm listapm
Filename           APM Name           APM Version  Array Types       State
================================================================================
dmpapg             dmpapg                 1        A/PG              Not-Active
dmpapg             dmpapg                 1        A/PG-C            Not-Active
dmpap              dmpap                  1        A/P               Not-Active
dmpap              dmpap                  1        A/P-C             Not-Active
dmpCLARiiON        dmpCLARiiON            1        CLR-A/P           Not-Active
dmpCLARiiON        dmpCLARiiON            1        CLR-A/PF          Not-Active
dmpCLARiiON        dmpCLARiiON            1        CLR-ALUA          Not-Active
dmpaaa             dmpaaa                 1        A/A-A             Not-Active
dmpapf             dmpapf                 1        A/PF-VERITAS      Not-Active
dmpapf             dmpapf                 1        A/PF-T3PLUS       Not-Active
dmphuawei          dmphuawei              1        A/A-A-HUAWEI      Not-Active
dmphuawei          dmphuawei              1        A/PF-HUAWEI       Not-Active
dmpalua            dmpalua                1        ALUA              Not-Active
dmpjbod            dmpjbod                1        Disk              Not-Active
dmpjbod            dmpjbod                1        APdisk            Not-Active
dmpaa              dmpaa                  1        A/A               Not-Active
dmpsvc             dmpsvc                 1        IBMSVC-ALUA       Not-Active
dmpsun7x10alua     dmpsun7x10alua         1        SUN7x10-ALUA      Not-Active
dmpEngenio         dmpEngenio             1        A/PF-LSI          Not-Active
dmpinv             dmpinv                 1        Inv-A/A           Not-Active
dmpinv             dmpinv                 1        VPLEX-A/A         Not-Active

26)to exclude specifc disk or contoler
-bash-4.1# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c2d0s2       auto:ZFS        -            -            ZFS
c2d1s2       auto:ZFS        -            -            ZFS
c2d8s2       auto:none       -            -            online invalid
c2d9s2       auto:none       -            -            online invalid
c2d10s2      auto:none       -            -            online invalid
c2d11s2      auto:none       -            -            online invalid
-bash-4.1# vxdmpadm exclude all
-bash-4.1# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
-bash-4.1# vxdctl mode
mode: enabled
-bash-4.1# vxdisk scandisks
-bash-4.1# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS

-bash-4.1# vxdmpadm include all
-bash-4.1# vxdctl mode
mode: enabled
-bash-4.1# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c2d0s2       auto:ZFS        -            -            ZFS
c2d1s2       auto:ZFS        -            -            ZFS
c2d8s2       auto:none       -            -            online invalid
c2d9s2       auto:none       -            -            online invalid
c2d10s2      auto:none       -            -            online invalid
c2d11s2      auto:none       -            -            online invalid

===
-bash-4.1# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c2d0s2       auto:ZFS        -            -            ZFS
c2d1s2       auto:ZFS        -            -            ZFS
c2d8s2       auto:none       -            -            online invalid
c2d9s2       auto:none       -            -            online invalid
c2d10s2      auto:none       -            -            online invalid
c2d11s2      auto:none       -            -            online invalid
-bash-4.1# vxdmpadm listctlr
CTLR_NAME       ENCLR_TYPE      STATE        ENCLR_NAME      PATH_COUNT
=========================================================================
c2              OTHER_DISKS     ENABLED      other_disks          6
-bash-4.1# vxdmpadm exclude ctlr=c2
-bash-4.1# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
-bash-4.1# vxdmpadm include ctlr=c2
-bash-4.1# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c2d0s2       auto:ZFS        -            -            ZFS
c2d1s2       auto:ZFS        -            -            ZFS
c2d8s2       auto:none       -            -            online invalid
c2d9s2       auto:none       -            -            online invalid
c2d10s2      auto:none       -            -            online invalid
c2d11s2      auto:none       -            -            online invalid

=============
 vxdmpadm exclude all
        vxdmpadm exclude ctlr=[!]<ctlr-name>
        vxdmpadm exclude dmpnodename=<dmp-device-name> [path=!<path-name>]
        vxdmpadm exclude path=[!]<path-name>
        vxdmpadm exclude product=<VID:PID>

vxdmpadm include all
        vxdmpadm include ctlr=[!]<ctlr-name>
        vxdmpadm include dmpnodename=<dmp-device-name> [path=!<path-name>]
        vxdmpadm include path=[!]<path-name>
        vxdmpadm include product=<VID:PID>

===
-bash-4.1# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c2d0s2       auto:ZFS        -            -            ZFS
c2d1s2       auto:ZFS        -            -            ZFS
c2d8s2       auto:none       -            -            online invalid
c2d9s2       auto:none       -            -            online invalid
c2d10s2      auto:none       -            -            online invalid
c2d11s2      auto:none       -            -            online invalid
-bash-4.1# vxdmpadm exclude path=c2d11s2
-bash-4.1# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c2d0s2       auto:ZFS        -            -            ZFS
c2d1s2       auto:ZFS        -            -            ZFS
c2d8s2       auto:none       -            -            online invalid
c2d9s2       auto:none       -            -            online invalid
c2d10s2      auto:none       -            -            online invalid
-bash-4.1# vxdmpadm include path=c2d11s2
-bash-4.1# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c2d0s2       auto:ZFS        -            -            ZFS
c2d1s2       auto:ZFS        -            -            ZFS
c2d8s2       auto:none       -            -            online invalid
c2d9s2       auto:none       -            -            online invalid
c2d10s2      auto:none       -            -            online invalid
c2d11s2      auto:none       -            -            online invalid

27)to list enclosures
-bash-4.1# vxdmpadm listenclosure
ENCLR_NAME        ENCLR_TYPE     ENCLR_SNO      STATUS       ARRAY_TYPE     LUN_COUNT    FIRMWARE
===================================================================================================
other_disks       OTHER_DISKS    OTHER_DISKS          CONNECTED    OTHER_DISKS   6            -

28)to get dmp mode
-bash-4.1# vxdmpadm getdmpnode
NAME                 STATE        ENCLR-TYPE   PATHS  ENBL  DSBL  ENCLR-NAME
==============================================================================
c2d0s2               ENABLED      OTHER_DISKS  1      1     0     other_disks
c2d1s2               ENABLED      OTHER_DISKS  1      1     0     other_disks
c2d8s2               ENABLED      OTHER_DISKS  1      1     0     other_disks
c2d9s2               ENABLED      OTHER_DISKS  1      1     0     other_disks
c2d10s2              ENABLED      OTHER_DISKS  1      1     0     other_disks
c2d11s2              ENABLED      OTHER_DISKS  1      1     0     other_disks
29)to get subpath
-bash-4.1# vxdmpadm getsubpaths
NAME         STATE[A]   PATH-TYPE[M] DMPNODENAME  ENCLR-NAME   CTLR   ATTRS
================================================================================
c2d0s2       ENABLED(A)   -          c2d0s2       other_disks  c2        -
c2d10s2      ENABLED(A)   -          c2d10s2      other_disks  c2        -
c2d11s2      ENABLED(A)   -          c2d11s2      other_disks  c2        -
c2d1s2       ENABLED(A)   -          c2d1s2       other_disks  c2        -
c2d8s2       ENABLED(A)   -          c2d8s2       other_disks  c2        -
c2d9s2       ENABLED(A)   -          c2d9s2       other_disks  c2        -
30)to get controler
-bash-4.1# vxdmpadm getctlr
LNAME     PNAME                                    VENDOR               CTLR-ID
=============================================================================================
c2        /virtual-devices@100/channel-devices@200  -                    -
31)to help
-bash-4.1# vxdmpadm help
Dynamic Multipathing subsystem administration CLI.
Usage
        vxdmpadm option <attribute=value..>
where, the option can be:
cfgapm          Configure a specific APM.
config          Load/save DMP settings from/into template file.
disable         Disable specified DMP path(s).
enable          Enable specified DMP path(s).
exclude         Exclude a device/path from vxvm.
getattr         Get attributes of an entity (enclosure, array or array type).
getctlr         Report detailed information about host controllers.
getdmpnode      Report the DMP device(s) associated to the specified object.
getlungroup     Print all the DMP device(s) in the same LUN group.
getportids      Get the array ports associated with an entity (enclosure, controller, DMP device or path).
getsubpaths     Report all DMP paths under the specified entity.
gettpdnode      Get the TPD metanode for a  TPD path.
gettune         Report the current values of all DMP tunables.
include         Include a device/path in vxvm.
iostat          Manage and print DMP i/o statistics.
list            Report detailed information about a specified entity.
listapm         List all APMs available on the system.
listctlr        List association between host controllers and enclosures.
listenclosure   List all connected storage enclosures.
setattr         Set attributes for an entity (enclosure, DMP device, path, array or array type).
settune         Set a DMP tunable online.
start           Start the DMP maintenance tasks such as path restoration.
stat            Report the status of DMP maintenance tasks such as path restoration.
stop            Stop the DMP maintenance tasks such as path restoration.
For detailed help on any option use:
                vxdmpadm {-h|-H|--help|help} <option>
Note:   Options/attributes must be specified in the order shown in help messages.



 

No comments:

Post a Comment