Forum Discussion

rwong's avatar
rwong
Level 2
11 years ago

Unmirror Second disk (sdb)

HI,

 

I'm trying to unmirror my second disk sdb in the rootdg but was unable to do it correctly.  Ayy help would be appreciated.

The Veritas version is 4.1 and the system is installed with the following RPMs on RHEL 5.0

VRTSvxvm-platform-4.1.40.00-MP4_RHEL5
VRTSvxfs-platform-4.1.40.00-MP4_RHEL5
VRTSvxfen-4.1.40.00-MP4_RHEL5
VRTSvxvm-common-4.1.40.00-MP4_RHEL5
VRTSvxfs-common-4.1.40.00-MP4_RHEL5

 

# vxprint -hvt -g rootdg
V  NAME         RVG/VSET/CO  KSTATE   STATE    LENGTH   READPOL   PREFPLEX UTYPE
PL NAME         VOLUME       KSTATE   STATE    LENGTH   LAYOUT    NCOL/WID MODE
SD NAME         PLEX         DISK     DISKOFFS LENGTH   [COL/]OFF DEVICE   MODE
SV NAME         PLEX         VOLNAME  NVOLLAYR LENGTH   [COL/]OFF AM/NM    MODE
SC NAME         PLEX         CACHE    DISKOFFS LENGTH   [COL/]OFF DEVICE   MODE
DC NAME         PARENTVOL    LOGVOL
SP NAME         SNAPVOL      DCO

v  dump         -            DISABLED ACTIVE   37748736 SELECT    -        fsgen
v  oradump      -            DISABLED ACTIVE   4194304  SELECT    -        fsgen
v  oravol       -            DISABLED ACTIVE   20971520 SELECT    -        fsgen

v  rootvol      -            ENABLED  ACTIVE   41945652 ROUND     -        root
pl rootvol-01   rootvol      ENABLED  ACTIVE   41945652 CONCAT    -        RW
sd sda-02       rootvol-01   sda      0        41945652 0         sda      ENA

v  swapvol      -            ENABLED  ACTIVE   16384000 ROUND     -        swap
pl mirswapvol-01 swapvol     DISABLED STALE    0        CONCAT    -        RW
pl swapvol-01   swapvol      ENABLED  ACTIVE   16384000 CONCAT    -        RW
sd sda-01       swapvol-01   sda      41945652 4192965  0         sda      ENA
sd sda-04       swapvol-01   sda      67110137 12191035 4192965   sda      ENA

 

When attempted to dis the mirswapvol-01 plex, I got the following error:

# vxplex -g rootdg dis  mirswapvol-01
VxVM vxplex ERROR V-5-1-621 Enabled Volume swapvol would be left with no active restricted plexes,
 

When try to re-mirror the disk, it said sdb is already in the rootdg:

]# vxrootmir -t rootmirror sdb rootmir

  sda is your root disk
      AND
  sdb is the dmp disk on which root disk is to be mirrored

  Is this correct ? [y,n,q,?] (default: n) y

  VxVM vxrootmir ERROR V-5-2-2238
Disk sdb is already being used as auto:sliced disk - in disk group -;
        Disk cannot be used for mirroring root.

  VxVM vxrootmir INFO V-5-2-0
To use this disk for root disk mirroring, remove it from the
VxVM disk group using the 'vxdg rmdisk' command and/or remove it
from the VxVM configuration with the 'vxdiskunsetup' utility
 

If try to remove sdb from rootdg, it said sdb is not in configuration:

]# vxdg -g rootdg rmdisk sdb
VxVM vxdg ERROR V-5-1-555 Disk sdb not found in configuration

 

 

 

 

 

 

  • It does not look like sdb is in rootdg - please provide output from 

    vxprint -d

    and

    vxdisk -o alldgs list

     

    Mike

  • Hi Mike

     

    Appreciate your response.  Below are the command output:

     

    # vxprint -d
    Disk group: rootdg

    TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
    dm rootmir      -            -        -        -        REMOVED  -       -
    dm sda          sda          -        143621037 -       -        -       -

    Disk group: arcdg

    TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
    dm emcpowerh    emcpowerh    -        209713136 -       -        -       -

    Disk group: ardg

    TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
    dm emcpowerf    emcpowerf    -        20969456 -        -        -       -

    Disk group: bkpdg

    TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
    dm emcpoweri    emcpoweri    -        587200496 -       -        -       -

    Disk group: cdrdg

    TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
    dm emcpowerb    emcpowerb    -        775944176 -       -        -       -

    Disk group: oradg

    TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
    dm emcpowerc    emcpowerc    -        20969456 -        -        -       -

    Disk group: orpdg

    TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
    dm emcpowera    emcpowera    -        754972656 -       -        -       -

    Disk group: upm1dg

    TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
    dm emcpowerg    emcpowerg    -        73398256 -        -        -       -

    Disk group: upm2dg

    TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
    dm emcpowere    emcpowere    -        73398256 -        -        -       -

    Disk group: workdg

    TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
    dm emcpowerd    emcpowerd    -        104855536 -       -        -       -

     

    # vxdisk -o alldgs list
    DEVICE       TYPE            DISK         GROUP        STATUS
    emcpowera    simple          emcpowera    orpdg        online
    emcpowerb    simple          emcpowerb    cdrdg        online
    emcpowerc    simple          emcpowerc    oradg        online
    emcpowerd    simple          emcpowerd    workdg       online
    emcpowere    simple          emcpowere    upm2dg       online
    emcpowerf    simple          emcpowerf    ardg         online
    emcpowerg    simple          emcpowerg    upm1dg       online
    emcpowerh    simple          emcpowerh    arcdg        online
    emcpoweri    simple          emcpoweri    bkpdg        online
    sda          auto:sliced     sda          rootdg       online
    sdb          auto:sliced     -            -            online
    sdc          auto            -            -            error
    sdd          auto:none       -            -            online invalid
    -            -         rootmir      rootdg       removed was:sdb
     

  • Hi Mike,

    Appreciate your response.  Below are the command output:

    # vxprint -d
    Disk group: rootdg

    TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
    dm rootmir      -            -        -        -        REMOVED  -       -
    dm sda          sda          -        143621037 -       -        -       -

    Disk group: arcdg

    TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
    dm emcpowerh    emcpowerh    -        209713136 -       -        -       -

    Disk group: ardg

    TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
    dm emcpowerf    emcpowerf    -        20969456 -        -        -       -

    Disk group: bkpdg

    TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
    dm emcpoweri    emcpoweri    -        587200496 -       -        -       -

    Disk group: cdrdg

    TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
    dm emcpowerb    emcpowerb    -        775944176 -       -        -       -

    Disk group: oradg

    TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
    dm emcpowerc    emcpowerc    -        20969456 -        -        -       -

    Disk group: orpdg

    TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
    dm emcpowera    emcpowera    -        754972656 -       -        -       -

    Disk group: upm1dg

    TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
    dm emcpowerg    emcpowerg    -        73398256 -        -        -       -

    Disk group: upm2dg

    TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
    dm emcpowere    emcpowere    -        73398256 -        -        -       -

    Disk group: workdg

    TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
    dm emcpowerd    emcpowerd    -        104855536 -       -        -       -

    # vxdisk -o alldgs list
    DEVICE       TYPE            DISK         GROUP        STATUS
    emcpowera    simple          emcpowera    orpdg        online
    emcpowerb    simple          emcpowerb    cdrdg        online
    emcpowerc    simple          emcpowerc    oradg        online
    emcpowerd    simple          emcpowerd    workdg       online
    emcpowere    simple          emcpowere    upm2dg       online
    emcpowerf    simple          emcpowerf    ardg         online
    emcpowerg    simple          emcpowerg    upm1dg       online
    emcpowerh    simple          emcpowerh    arcdg        online
    emcpoweri    simple          emcpoweri    bkpdg        online
    sda          auto:sliced     sda          rootdg       online
    sdb          auto:sliced     -            -            online
    sdc          auto            -            -            error
    sdd          auto:none       -            -            online invalid
    -            -         rootmir      rootdg       removed was:sdb