Search This Blog

Friday, July 25, 2014

Removing a Mirror

  • Select Actions -> Mirror-> Remove
  • Remove by mirror name, quantity, or disk

# vxassist –g datadg remove mirror volume [!] dm_name

Example:
# vxprint -th test1vol
Disk group: ux4devdg

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
EX NAME         ASSOC        VC                       PERMS    MODE     STATE
SR NAME         KSTATE

v  test1vol     -            ENABLED  ACTIVE   10485760 SELECT    -        fsgen
pl test1vol-01  test1vol     ENABLED  ACTIVE   10485760 CONCAT    -        RW
sd ux4devdg_62437_d00-01 test1vol-01 ux4devdg_62437_d00 0 10485760 0 TagmaStore-USP0_1 ENA
pl test1vol-02  test1vol     ENABLED  ACTIVE   10485760 CONCAT    -        RW
sd ux4devdg_62449_d00-01 test1vol-02 ux4devdg_62449_d00 0 10485760 0 TagmaStore-USP1_0 ENA

# vxassist -g diskgroup remove mirror volume! mirrordisk

# vxassist -g ux4devdg remove mirror test1vol !ux4devdg_62449_d00

After Removing Mirror Copy:
# vxprint -th test1vol
Disk group: ux4devdg

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
EX NAME         ASSOC        VC                       PERMS    MODE     STATE
SR NAME         KSTATE

v  test1vol     -            ENABLED  ACTIVE   10485760 SELECT    -        fsgen
pl test1vol-01  test1vol     ENABLED  ACTIVE   10485760 CONCAT    -        RW
sd ux4devdg_62437_d00-01 test1vol-01 ux4devdg_62437_d00 0 10485760 0 TagmaStore-USP0_1 ENA

To remove the plex that contains a subdisk from the disk datadg02:
# vxassist –g datadg remove mirror datavol !datadg02

To remove the plex that uses any disk except datadg02:
# vxassist –g datadg remove mirror datavol datadg02

# vxplex –g diskgroup dis plex_name
# vxedit –g diskgroup –rf rm plex_name

Example:
# vxprint -th test1vol
Disk group: ux4devdg

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
EX NAME         ASSOC        VC                       PERMS    MODE     STATE
SR NAME         KSTATE

v  test1vol     -            ENABLED  ACTIVE   10485760 SELECT    -        fsgen
pl test1vol-01  test1vol     ENABLED  ACTIVE   10485760 CONCAT    -        RW
sd ux4devdg_62437_d00-01 test1vol-01 ux4devdg_62437_d00 0 10485760 0 TagmaStore-USP0_1 ENA
pl test1vol-02  test1vol     ENABLED  ACTIVE   10485760 CONCAT    -        RW
sd ux4devdg_62449_d00-01 test1vol-02 ux4devdg_62449_d00 0 10485760 0 TagmaStore-USP1_0 ENA

# vxplex -g ux4devdg dis test1vol-02
# vxedit -g ux4devdg -r rm test1vol-02
# vxprint -th test1vol
Disk group: ux4devdg

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
EX NAME         ASSOC        VC                       PERMS    MODE     STATE
SR NAME         KSTATE

v  test1vol     -            ENABLED  ACTIVE   10485760 SELECT    -        fsgen
pl test1vol-01  test1vol     ENABLED  ACTIVE   10485760 CONCAT    -        RW

sd ux4devdg_62437_d00-01 test1vol-01 ux4devdg_62437_d00 0 10485760 0 TagmaStore-USP0_1 ENA

Adding a Log to a Volume

Adding a Log to a Volume


Dirty Region Loggin (for mirrored Volumes)
RAID-5 Loggind (for RAID-5 volumes)
  • Log keeps track of changed regions.
  • Log keeps a copy of data and parity writes
  • If the system fails, only the changed regions of volumes must be recovered
  • If the system fails, the log is replaced to speed resynchronization
  • DRL is not enabled by default. When DRL is enabled, one log is created.
  • RAID-5 logging is enabled by default
  • You can create additional logs to mirror log data
  • RAID-5 logs can be mirrored

  • Store logs on disks separate from volume data and parity


Displaying Volume Information

To display volume configuration information:

# vxprint [–g diskgroup] [options]

-vpsd         Select only volumes(v), Plexes (p), subdisk(s), or disks(d).
-h            Hierarchical listing
-r            Related records (Layered volumes)
-t            Tabular Listing.
-l            Display all information from each selected record.
-a            Display all information about each selected record, one record per line.
-A            Active Disk groups.
-u unit       Unit of measure (for size)
-e pattern    Show records that match an editor pattern.

To display the volume, plex, and subdisk record information for a diskgroup:

# vxprint –g diskgroup –htr –u h

# vxprint -g test_dg -htr -u -h |more

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         RVG          KSTATE   STATE    NVOLUME
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
EX NAME         ASSOC        VC                       PERMS    MODE     STATE
SR NAME         KSTATE

dg test_dg     default      default  27000    1332859417.22.test

dm apevmx09_01d6 apevmx09_01d6 auto   32m      119g     -

v  test_campaign -          ENABLED  ACTIVE   95g      SELECT    -        fsgen
pl test_campain-01 test_campaign ENABLED ACTIVE 95g   CONCAT    -        RW
sd apevmx09_01d6-01 test_campain-01 apevmx09_01d6 0.00000000000000000000000000000000 95g 0.00000000000000000000000000000000 apevmx09_01d6 ENA

v  vxfsvol1     -            ENABLED  ACTIVE   20g      SELECT    -        fsgen
pl vxfsvol1-01  vxfsvol1     ENABLED  ACTIVE   20g      CONCAT    -        RW
sd apevmx09_01d6-02 vxfsvol1-01 apevmx09_01d6 95g 20g   0.00000000000000000000000000000000 apevmx09_01d6 ENA

In the output, the top few lines indicate the headers that match each type of output line that follows.

Each volume is listed along with its associated plexes and subdisks and other VxVM objects.
    dg is a disk group.
    st is a storage pool (used in Intelligent Storage Provisioning).
    dm is a disk.
    rv is a replicated volume group (used in Veritas Volume Replicator).
    rl is an rlink (used in Veritas Volume Replicator).
    co is a cache object.
    vt is a volume template (used in Intelligent Storage Provisioning).
    v is a volume.
    pl is a plex.
    sd is a subdisk.
    sv is a subvolume.
    sc is a storage cache.
    dc is a data change object.
    sp is a snap object.