Forum Discussion

cowboycraig's avatar
17 years ago

Remove Subdisk without offlining Volume

   
Want to remove backupd04    c7t2d10s2 from the volume below (backupvol).
It is in the diskgroup, but not being used in the volume.

If I do a:

vxdg -g backupdg -k rmdisk  backupd04

Will that mess up my volume?


Disk group: backupdg

DG NAME         NCONFIG      NLOG     MINORS   GROUP-ID
ST NAME         STATE        DM_CNT   SPARE_CNT         APPVOL_CNT
DM NAME         DEVICE       TYPE     PRIVLEN  PUBLEN   STATE
RV NAME         RLINK_CNT    KSTATE   STATE    PRIMARY  DATAVOLS  SRL
RL NAME         RVG          KSTATE   STATE    REM_HOST REM_DG    REM_RLNK
CO NAME         CACHEVOL     KSTATE   STATE
VT NAME         NVOLUME      KSTATE   STATE
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

dg backupdg     default      default  57000    1155128715.56.dssdb01

dm backupd01    c7t2d5s2     auto     2048     1117668096 -
dm backupd02    c7t2d6s2     auto     2048     1121277696 -
dm backupd04    c7t2d10s2    auto     2048     840420096 -
dm backupd05    c7t2d184s2   auto     2048     849252096 -
dm backupd06    -            -        -        -        REMOVED
dm backupd07    -            -        -        -        REMOVED
dm backupd08    -            -        -        -        REMOVED
dm backupd09    c7t2d185s2   auto     2048     849252096 -
dm backupd10    c7t1d186s2   auto     2048     134128896 -
dm backupd11    c7t1d187s2   auto     2048     134128896 -
dm backupd12    c7t1d188s2   auto     2048     134128896 -
dm backupd13    c7t1d189s2   auto     2048     134128896 -
dm backupd14    c7t1d190s2   auto     2048     134128896 -
dm backupd15    c7t1d191s2   auto     2048     134128896 -
dm backupd16    c7t1d192s2   auto     2048     134128896 -
dm backupd17    c7t1d193s2   auto     2048     134128896 -

sd backupd06-01 -            backupd06 0       840420096 -        -        RMOV
sd backupd07-01 -            backupd07 0       840420096 -        -        RMOV

v  backupvol    -            ENABLED  ACTIVE   4868686848 SELECT  -        fsgen
pl backupvol-01 backupvol    ENABLED  ACTIVE   4868686848 CONCAT  -        RW
sd backupd01-01 backupvol-01 backupd01 0       975874304 0        c7t2d5   ENA
sd backupd02-01 backupvol-01 backupd02 0       1121277696 975874304 c7t2d6 ENA
sd backupd09-01 backupvol-01 backupd09 0       840420096 2097152000 c7t2d185 ENA
sd backupd05-01 backupvol-01 backupd05 0       849252096 2937572096 c7t2d184 ENA
sd backupd10-01 backupvol-01 backupd10 0       134128896 3786824192 c7t1d186 ENA
sd backupd11-01 backupvol-01 backupd11 0       134128896 3920953088 c7t1d187 ENA
sd backupd12-01 backupvol-01 backupd12 0       134128896 4055081984 c7t1d188 ENA
sd backupd13-01 backupvol-01 backupd13 0       134128896 4189210880 c7t1d189 ENA
sd backupd14-01 backupvol-01 backupd14 0       134128896 4323339776 c7t1d190 ENA
sd backupd15-01 backupvol-01 backupd15 0       134128896 4457468672 c7t1d191 ENA
sd backupd16-01 backupvol-01 backupd16 0       134128896 4591597568 c7t1d192 ENA
sd backupd17-01 backupvol-01 backupd17 0       134128896 4725726464 c7t1d193 ENA
sd backupd09-02 backupvol-01 backupd09 840420096 8831488 4859855360 c7t2d185 ENA

  • if the disk is not being used by the volume then you can remove it from the diskgroup by
     
    # vxdg -g <disk_group> rmdisk <disk_name>
     
    but if it is being used by a volume then
     
    first you will need to evacuate the volume onto another disk and then you can remove it from the diskgroup..
     
    this can be done online using
     
    # vxevac
     
    or
     
    # vxdiskadm option 7