Tuesday, 24 December 2013

TRY TO REMOVE LUNS FROM GUEST DOMAIN DEVICES WHICH ARE UNDER CONTROL OF VXVM??

A)TRY TO RMOVE LUN FROM CONTROL DOMAIN BUT IT FAILS???
# ldm remove-vdisk lun17 Z10DB
Guest LDom returned the following reason for failing the operation:
Resource Information
---------------- -------------------------
/dev/dsk/c2d17s2 Device being used by VxVM <-------- HERE
VIO operation failed because device is being used in LDom Z10DB
Failed to remove vdisk instance
---
B) IN GUEST DOMAIN OBSERVE DISK IS  IN VXVM CONTROL SO WE REMOVE SAME ...
# vxdisk list
c2d17s2 auto:none - - online invalid
#vxdisk rm c2d17
# vxdisk list
no disk info
==
C) TRY TO RMOVE FORM CONTROL DOMAIN BUT FAILS
===
# ldm remove-vdisk -f lun17 Z10DB
Guest LDom returned the following reason for failing the operation:
Resource Information
---------------- -------------------------
/dev/dsk/c2d17s2 Device being used by VxVM
VIO operation failed because device is being used in LDom Z10DB
Failed to remove vdisk instance
The -f option has no effect because the device cannot be removed safely
D)WE OBSERVER GUEST DOMAIN DISKS ARE UNDER VERITAS DMP SO WE REMVOE DISKS FROM DMP.
TO DISABLE VXDMP FOR SINGLE DISK
for single disk
# vxdmpadm exclude path=c2d17s2
# ldm remove-vdisk lun17 Z10DB

TO DISABLE VXDMP FORM CONTROL WISE
TO LIST ALL CONTROLLERS WHICH R UNDER CONTROLL OF VXVM
# vxdmpadm listctlr all
CTLR_NAME       ENCLR_TYPE      STATE        ENCLR_NAME      PATH_COUNT
=========================================================================
c2              EMC_CLARiiON    ENABLED      emc_clariion0        19

TO GET SUBPATHS
# vxdmpadm getsubpaths ctlr=c2
NAME         STATE[A]   PATH-TYPE[M] DMPNODENAME  ENCLR-TYPE   ENCLR-NAME   ATTR                                                                             S
================================================================================
c2d0s2       ENABLED(A)  PRIMARY      c2d0s2       EMC_CLARiiON  emc_clariion0                                                                                  -
c2d10s2      ENABLED(A)  PRIMARY      c2d10s2      EMC_CLARiiON  emc_clariion0                                                                                  -
c2d11s2      ENABLED(A)  SECONDARY    c2d11s2      EMC_CLARiiON  emc_clariion0                                                                                  -
c2d12s2      ENABLED(A)  PRIMARY      c2d12s2      EMC_CLARiiON  emc_clariion0                                                                                  -
c2d13s2      ENABLED(A)  PRIMARY      c2d13s2      EMC_CLARiiON  emc_clariion0                                                                                  -
c2d14s2      ENABLED(A)  PRIMARY      c2d14s2      EMC_CLARiiON  emc_clariion0                                                                                  -
c2d15s2      ENABLED(A)  PRIMARY      c2d15s2      EMC_CLARiiON  emc_clariion0                                                                                  -
c2d16s2      ENABLED(A)  PRIMARY      c2d16s2      EMC_CLARiiON  emc_clariion0                                                                                  -
c2d17s2      ENABLED(A)  PRIMARY      c2d17s2      EMC_CLARiiON  emc_clariion0                                                                                  -
c2d18        ENABLED(A)  PRIMARY      c2d18        EMC_CLARiiON  emc_clariion0                                                                                  -
c2d1s2       ENABLED(A)  SECONDARY    c2d1s2       EMC_CLARiiON  emc_clariion0                                                                                  -
c2d2s2       ENABLED(A)  SECONDARY    c2d2s2       EMC_CLARiiON  emc_clariion0                                                                                  -
c2d3s2       ENABLED(A)  SECONDARY    c2d3s2       EMC_CLARiiON  emc_clariion0                                                                                  -
c2d4s2       ENABLED(A)  SECONDARY    c2d4s2       EMC_CLARiiON  emc_clariion0                                                                                  -
c2d5s2       ENABLED(A)  SECONDARY    c2d5s2       EMC_CLARiiON  emc_clariion0                                                                                  -
c2d6s2       ENABLED(A)  SECONDARY    c2d6s2       EMC_CLARiiON  emc_clariion0                                                                                  -
c2d7s2       ENABLED(A)  SECONDARY    c2d7s2       EMC_CLARiiON  emc_clariion0                                                                                  -
c2d8s2       ENABLED(A)  SECONDARY    c2d8s2       EMC_CLARiiON  emc_clariion0                                                                                  -
c2d9s2       ENABLED(A)  SECONDARY    c2d9s2       EMC_CLARiiON  emc_clariion0
TO DISABLE VXDMP FOR CONTROLER C2
# vxdmpadm -f disable  ctlr=c2

# vxdmpadm getsubpaths ctlr=c2
NAME         STATE[A]   PATH-TYPE[M] DMPNODENAME  ENCLR-TYPE   ENCLR-NAME   ATTRS
================================================================================
c2d0s2       DISABLED(M)  PRIMARY      c2d0s2       EMC_CLARiiON  emc_clariion0     -
c2d10s2      DISABLED(M)  PRIMARY      c2d10s2      EMC_CLARiiON  emc_clariion0     -
c2d11s2      DISABLED(M)  SECONDARY    c2d11s2      EMC_CLARiiON  emc_clariion0     -
c2d12s2      DISABLED(M)  PRIMARY      c2d12s2      EMC_CLARiiON  emc_clariion0     -
c2d13s2      DISABLED(M)  PRIMARY      c2d13s2      EMC_CLARiiON  emc_clariion0     -
c2d14s2      DISABLED(M)  PRIMARY      c2d14s2      EMC_CLARiiON  emc_clariion0     -
c2d15s2      DISABLED(M)  PRIMARY      c2d15s2      EMC_CLARiiON  emc_clariion0     -
c2d16s2      DISABLED(M)  PRIMARY      c2d16s2      EMC_CLARiiON  emc_clariion0     -
c2d17s2      DISABLED(M)  PRIMARY      c2d17s2      EMC_CLARiiON  emc_clariion0     -
c2d18        DISABLED(M)  PRIMARY      c2d18        EMC_CLARiiON  emc_clariion0     -
c2d1s2       DISABLED(M)  SECONDARY    c2d1s2       EMC_CLARiiON  emc_clariion0     -
c2d2s2       DISABLED(M)  SECONDARY    c2d2s2       EMC_CLARiiON  emc_clariion0     -
c2d3s2       DISABLED(M)  SECONDARY    c2d3s2       EMC_CLARiiON  emc_clariion0     -
c2d4s2       DISABLED(M)  SECONDARY    c2d4s2       EMC_CLARiiON  emc_clariion0     -
c2d5s2       DISABLED(M)  SECONDARY    c2d5s2       EMC_CLARiiON  emc_clariion0     -
c2d6s2       DISABLED(M)  SECONDARY    c2d6s2       EMC_CLARiiON  emc_clariion0     -
c2d7s2       DISABLED(M)  SECONDARY    c2d7s2       EMC_CLARiiON  emc_clariion0     -
c2d8s2       DISABLED(M)  SECONDARY    c2d8s2       EMC_CLARiiON  emc_clariion0     -
c2d9s2       DISABLED(M)  SECONDARY    c2d9s2       EMC_CLARiiON  emc_clariion0     -
TO SEE DISK LIST
# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c2d0s2       auto            -            -            error
c2d1s2       auto:cdsdisk    -            -            error
c2d2s2       auto:cdsdisk    -            -            error
c2d3s2       auto:cdsdisk    -            -            error
c2d4s2       auto:cdsdisk    -            -            error
c2d5s2       auto:cdsdisk    -            -            error
c2d6s2       auto:cdsdisk    -            -            error
c2d7s2       auto:cdsdisk    -            -            error
c2d8s2       auto:cdsdisk    ascs1        Z10ASCS      online shared lfailed
c2d9s2       auto:cdsdisk    ascs2        Z10ASCS      online shared lfailed
c2d10s2      auto:cdsdisk    -            -            error
c2d11s2      auto:cdsdisk    -            -            error
c2d12s2      auto:sliced     -            -            error
c2d13s2      auto:sliced     -            -            error
c2d14s2      auto:sliced     -            -            error
c2d15s2      auto:sliced     -            -            error
c2d16s2      auto:sliced     -            -            error
c2d17s2      auto            -            -            error
c2d18        auto            -            -            error
TO ENABLE VXDMP FOR CONTROLLER C2
# vxdmpadm enable ctlr=c2
# vxdmpadm getsubpaths ctlr=c2
NAME         STATE[A]   PATH-TYPE[M] DMPNODENAME  ENCLR-TYPE   ENCLR-NAME   ATTRS
================================================================================
c2d0s2       ENABLED(A)  PRIMARY      c2d0s2       EMC_CLARiiON  emc_clariion0     -
c2d10s2      ENABLED(A)  PRIMARY      c2d10s2      EMC_CLARiiON  emc_clariion0     -
c2d11s2      ENABLED(A)  SECONDARY    c2d11s2      EMC_CLARiiON  emc_clariion0     -
c2d12s2      ENABLED(A)  PRIMARY      c2d12s2      EMC_CLARiiON  emc_clariion0     -
c2d13s2      ENABLED(A)  PRIMARY      c2d13s2      EMC_CLARiiON  emc_clariion0     -
c2d14s2      ENABLED(A)  PRIMARY      c2d14s2      EMC_CLARiiON  emc_clariion0     -
c2d15s2      ENABLED(A)  PRIMARY      c2d15s2      EMC_CLARiiON  emc_clariion0     -
c2d16s2      ENABLED(A)  PRIMARY      c2d16s2      EMC_CLARiiON  emc_clariion0     -
c2d17s2      ENABLED(A)  PRIMARY      c2d17s2      EMC_CLARiiON  emc_clariion0     -
c2d18        ENABLED(A)  PRIMARY      c2d18        EMC_CLARiiON  emc_clariion0     -
c2d1s2       ENABLED(A)  SECONDARY    c2d1s2       EMC_CLARiiON  emc_clariion0     -
c2d2s2       ENABLED(A)  SECONDARY    c2d2s2       EMC_CLARiiON  emc_clariion0     -
c2d3s2       ENABLED(A)  SECONDARY    c2d3s2       EMC_CLARiiON  emc_clariion0     -
c2d4s2       ENABLED(A)  SECONDARY    c2d4s2       EMC_CLARiiON  emc_clariion0     -
c2d5s2       ENABLED(A)  SECONDARY    c2d5s2       EMC_CLARiiON  emc_clariion0     -
c2d6s2       ENABLED(A)  SECONDARY    c2d6s2       EMC_CLARiiON  emc_clariion0     -
c2d7s2       ENABLED(A)  SECONDARY    c2d7s2       EMC_CLARiiON  emc_clariion0     -
c2d8s2       ENABLED(A)  SECONDARY    c2d8s2       EMC_CLARiiON  emc_clariion0     -
c2d9s2       ENABLED(A)  SECONDARY    c2d9s2       EMC_CLARiiON  emc_clariion0     -
TO SEE DISK LIST
-bash-4.1# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c2d0s2       auto            -            -            error
c2d1s2       auto:cdsdisk    -            -            error
c2d2s2       auto:cdsdisk    -            -            error
c2d3s2       auto:cdsdisk    -            -            error
c2d4s2       auto:cdsdisk    -            -            error
c2d5s2       auto:cdsdisk    -            -            error
c2d6s2       auto:cdsdisk    -            -            error
c2d7s2       auto:cdsdisk    -            -            error
c2d8s2       auto:cdsdisk    ascs1        Z10ASCS      online shared lfailed
c2d9s2       auto:cdsdisk    ascs2        Z10ASCS      online shared lfailed
c2d10s2      auto:cdsdisk    -            -            error
c2d11s2      auto:cdsdisk    -            -            error
c2d12s2      auto:sliced     -            -            error
c2d13s2      auto:sliced     -            -            error
c2d14s2      auto:sliced     -            -            error
c2d15s2      auto:sliced     -            -            error
c2d16s2      auto:sliced     -            -            error
c2d17s2      auto            -            -            error
c2d18        auto             -            -            error
TO REREAD CONFIGURATION
-bash-4.1# vxdctl disable
-bash-4.1# vxdctl enable
-bash-4.1# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c2d0s2       auto:ZFS        -            -            ZFS
c2d1s2       auto:cdsdisk    -            -            online
c2d2s2       auto:cdsdisk    -            -            online
c2d3s2       auto:cdsdisk    -            -            online
c2d4s2       auto:cdsdisk    -            -            online
c2d5s2       auto:cdsdisk    -            -            online
c2d6s2       auto:cdsdisk    -            -            online
c2d7s2       auto:cdsdisk    -            -            online
c2d8s2       auto:cdsdisk    ascs1        Z10ASCS      online shared
c2d9s2       auto:cdsdisk    ascs2        Z10ASCS      online shared
c2d10s2      auto:cdsdisk    -            -            online
c2d11s2      auto:cdsdisk    -            -            online
c2d12s2      auto:sliced     -            -            online
c2d13s2      auto:sliced     -            -            online
c2d14s2      auto:sliced     -            -            online
c2d15s2      auto:sliced     -            -            online
c2d16s2      auto:sliced     -            -            online
c2d17s2      auto:none       -            -            online invalid
c2d18        auto:ZFS        -            -            ZFS

D)FORM CONTROL DOMAIN IT REMOVED.
# ldm remove-vdisk lun17 Z10DB

1 comment:

  1. this is not working for me
    bash-3.2# vxdmpadm exclude path=c0d45s2

    # ldm remove-vdisk migrationoradata7-mp hcaidngbsdb01
    Guest LDom returned the following reason for failing the operation:

    Resource Information
    ---------------- -------------------------
    /dev/dsk/c0d45s2 Device being used by VxVM
    VIO operation failed because device is being used in LDom hcaidngbsdb01
    Failed to remove vdisk instance

    any other suggestion
    ldm -V

    Logical Domains Manager (v 3.0.0.0.28)
    Hypervisor control protocol v 1.9
    Using Hypervisor MD v 1.4

    System PROM:
    Hostconfig v. 1.2.2. @(#)Hostconfig 1.2.2.a 2012/11/02 10:25 [seville-yf:release]
    Hypervisor v. 1.11.2. @(#)Hypervisor 1.11.2.b 2012/11/02 17:27
    OpenBoot v. 4.34.2. @(#)OpenBoot 4.34.2.a 2012/11/02 08:26

    ReplyDelete