How to create Instant Volume Snapshots in Veritas Volume Manager 4.0 onwards

book

Article ID: 100029321

calendar_today

Updated On:

Description

Description

How to create Instant Volume Snapshots in Veritas Volume Manager 4.0 onwards

Resolution


This procedure details the steps required in creating Instant Volume Snapshots.

Note: This feature requires additional license of Veritas Volume Manager:

The additional License required is "VERITAS FlashSnap Option"
After installing the license we get the output of "vxlicrep -e" as below:
----------------------------------------------------------------------------------------------------------------------------------------------------
LicenseKey                        = XXX-XXXX-XXXX-XXXX-XXXX-XXXX-X
  ProductName                        =VERITAS FlashSnap Option
  LicenseType                        =Permanent
  OEMID                              =XXXX

  EditionsProduct                    =YES
  Node LockFlag                      =0

User Defined :=
  FASTRESYNC#VERITAS Volume Manager   =Enabled
  DGSJ#VERITAS Volume Manager         =Enabled
  CPU Count#VERITAS Volume Manager    = Not Restricted
  VXCKPT#VERITAS FileSystem          = Enabled
  CPU Count#VERITASFile System       = Not Restricted
  VERITASFlashSnap                   =Enabled
 RESERVED                            =Disabled

Feature ID :=
 Platform                            =Solaris
 Version                            = 4.1
  FMR_DGSJ#VERITAS Volume Manager     =Enabled
----------------------------------------------------------------------------------------------------------------------------------------------------



==========================================================================================================
1.] Viewthe vxdisk liststatus
==========================================================================================================
sh-2.05#vxdisk list
DEVICE      TYPE            DISK        GROUP        STATUS
Disk_0      auto:cdsdisk    -            -            online
Disk_1      auto:cdsdisk    CLR1         rdg-evidenceonline
Disk_2      auto:cdsdisk    JBOD3510_1   rdg-evidenceonline
Disk_3      auto:cdsdisk    SENA01       rdg-evidenceonline
Disk_4      auto:cdsdisk    -            -            online
Disk_5      auto            -            -            error
Disk_6      auto:cdsdisk    -            -            online
Disk_7      auto:cdsdisk    -            -            online
Disk_8      auto:cdsdisk    CLR2         rdg-evidenceonline
Disk_9      auto:cdsdisk    -            -            online
Disk_10      auto:cdsdisk    -            -            online
Disk_11      auto:cdsdisk    -            -            online
Disk_12      auto:cdsdisk    -            -            online
Disk_13      auto:cdsdisk    -            -            online
Disk_14      auto:cdsdisk    -            -            online
Disk_15      auto:cdsdisk    -            -            online
Disk_16      auto:cdsdisk    -            -            online
Disk_17      auto:cdsdisk    -            -            online
Disk_18      auto:cdsdisk    -            -            online
Disk_19      auto:cdsdisk    -            -            online
Disk_20      auto:cdsdisk    -            -            online
Disk_21      auto:cdsdisk    -            -            online
Disk_22      auto:cdsdisk    -            -            online
Disk_23      auto:cdsdisk    -            -            online
Disk_24      auto:cdsdisk    -            -            online
Disk_25      auto:cdsdisk    -            -            online
Disk_26      auto:cdsdisk    -            -            online
Disk_27      auto:cdsdisk    -            -            online
Disk_29      auto:cdsdisk    -            -            online
Disk_30      auto:cdsdisk    -            -            online
Disk_31      auto:cdsdisk    -            -            online
c1t0d0s2    auto:sliced     rootdisk     rootdg      online
c1t1d0s2     auto:sliced     rootmirror  rootdg      online

==========================================================================================================
2.] We first add only the four disks into the flash_dg diskgroup which are required in the primary volume.
==========================================================================================================
sh-2.05#vxdg init flash_dg flash_dg01=Disk_11 flash_dg02=Disk_12 flash_dg03=Disk_13flash_dg04=Disk_14

sh-2.05# vxdisk list
DEVICE      TYPE            DISK        GROUP        STATUS
Disk_0      auto:cdsdisk    -            -            online
Disk_1      auto:cdsdisk    CLR1         rdg-evidenceonline
Disk_2      auto:cdsdisk    JBOD3510_1   rdg-evidenceonline
Disk_3      auto:cdsdisk    SENA01       rdg-evidenceonline
Disk_4      auto:cdsdisk    -            -            online
Disk_5      auto            -            -            error
Disk_6      auto:cdsdisk    -            -            online
Disk_7      auto:cdsdisk    -            -            online
Disk_8      auto:cdsdisk    CLR2         rdg-evidenceonline
Disk_9      auto:cdsdisk    -            -            online
Disk_10      auto:cdsdisk    -            -            online
Disk_11      auto:cdsdisk    flash_dg01  flash_dg    online
Disk_12      auto:cdsdisk    flash_dg02  flash_dg    online
Disk_13      auto:cdsdisk    flash_dg03  flash_dg    online
Disk_14      auto:cdsdisk    flash_dg04  flash_dg    online
Disk_15      auto:cdsdisk    -            -            online
Disk_16      auto:cdsdisk    -            -            online
Disk_17      auto:cdsdisk    -            -            online
Disk_18      auto:cdsdisk    -            -            online
Disk_19      auto:cdsdisk    -            -            online
Disk_20      auto:cdsdisk    -            -            online
Disk_21      auto:cdsdisk    -            -            online
Disk_22      auto:cdsdisk    -            -            online
Disk_23      auto:cdsdisk    -            -            online
Disk_24      auto:cdsdisk    -            -            online
Disk_25      auto:cdsdisk    -            -            online
Disk_26      auto:cdsdisk    -            -            online
Disk_27      auto:cdsdisk    -            -            online
Disk_29      auto:cdsdisk    -            -            online
Disk_30      auto:cdsdisk    -            -            online
Disk_31      auto:cdsdisk    -            -            online
c1t0d0s2    auto:sliced     rootdisk     rootdg      online
c1t1d0s2     auto:sliced     rootmirror  rootdg       online


sh-2.05# vxprint -htrgflash_dg
DG NAME        NCONFIG      NLOG     MINORS   GROUP-ID
STNAME         STATE        DM_CNT  SPARE_CNT         APPVOL_CNT
DMNAME         DEVICE       TYPE    PRIVLEN  PUBLEN   STATE
RV NAME        RLINK_CNT    KSTATE  STATE    PRIMARY  DATAVOLS  SRL
RLNAME        RVG          KSTATE   STATE    REM_HOSTREM_DG    REM_RLNK
CO NAME        CACHEVOL     KSTATE   STATE
VTNAME         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/]OFFAM/NM    MODE
SC NAME        PLEX         CACHE    DISKOFFS LENGTH  [COL/]OFF DEVICE   MODE
DC NAME        PARENTVOL    LOGVOL
SP NAME        SNAPVOL      DCO

dg flash_dg    default      default  19000    1182420217.51.punv240-d7g

dmflash_dg01   Disk_11      auto    2048     8292096  -
dm flash_dg02  Disk_12      auto     2048    8292096  -
dm flash_dg03  Disk_13      auto     2048     10404096-
dm flash_dg04   Disk_14      auto    2048     10404096-


==========================================================================================================
3.] Now we create the Volume for the Primary Volume (If the Volume already exists with data so no need to recreate)
==========================================================================================================
sh-2.05#vxassist -g flash_dg -b make f_vol 8g layout=mirror-concatalloc=flash_dg01,flash_dg02,flash_dg03,flash_dg04

sh-2.05# vxprint -htrgflash_dg
DG NAME        NCONFIG      NLOG     MINORS   GROUP-ID
STNAME         STATE        DM_CNT  SPARE_CNT         APPVOL_CNT
DMNAME         DEVICE       TYPE    PRIVLEN  PUBLEN   STATE
RV NAME        RLINK_CNT    KSTATE  STATE    PRIMARY  DATAVOLS  SRL
RLNAME        RVG          KSTATE   STATE    REM_HOSTREM_DG    REM_RLNK
CO NAME        CACHEVOL     KSTATE   STATE
VTNAME         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/]OFFAM/NM    MODE
SC NAME        PLEX         CACHE    DISKOFFS LENGTH  [COL/]OFF DEVICE   MODE
DC NAME        PARENTVOL    LOGVOL
SP NAME        SNAPVOL      DCO

dg flash_dg    default      default  19000    1182420217.51.punv240-d7g

dmflash_dg01   Disk_11      auto    2048     8292096  -
dm flash_dg02  Disk_12      auto     2048    8292096  -
dm flash_dg03  Disk_13      auto     2048     10404096-
dm flash_dg04   Disk_14      auto    2048     10404096-

v  f_vol        -            ENABLED  SYNC    16777216 SELECT    -        fsgen
plf_vol-01    f_vol        ENABLED  ACTIVE   16777216CONCAT    -        RW
sd flash_dg01-01f_vol-01    flash_dg010      6373120  0        Disk_11  ENA
sd flash_dg03-01 f_vol-01    flash_dg030      10404096 6373120   Disk_13  ENA
plf_vol-02    f_vol        ENABLED  ACTIVE   16777216CONCAT    -        RW
sd flash_dg02-01f_vol-02    flash_dg020      6373120  0        Disk_12  ENA
sd flash_dg04-01 f_vol-02    flash_dg040      10404096 6373120   Disk_14  ENA
sh-2.05#
sh-2.05#


==========================================================================================================
4.] Now we have the Volume in place so we create the filesystem (If data exists on
existing Volumes then there is no need to create filesystems)
==========================================================================================================
sh-2.05#mkfs -F vxfs /dev/vx/rdsk/flash_dg/f_vol
   version 6layout
   16777216 sectors, 8388608 blocks of size 1024, log size16384 blocks
   largefilessupported


==========================================================================================================
5.] Create the mount point directory and mount the Volume (we should be having the directory in place if filesystem already exists)
==========================================================================================================
sh-2.05#mkdir /vobstore

sh-2.05# mount -F vxfs /dev/vx/dsk/flash_dg/f_vol/vobstore

sh-2.05# df-h
Filesystem             size  used  avail capacity  Mountedon
/dev/vx/dsk/bootdg/rootvol
                       48G  6.1G    41G    13%    /
/proc                    0K    0K     0K    0%    /proc
mnttab                  0K     0K     0K    0%    /etc/mnttab
fd                      0K     0K     0K    0%    /dev/fd
swap                  8.1G    24K   8.1G    1%    /var/run
dmpfs                  8.1G    0K   8.1G    0%    /dev/vx/dmp
dmpfs                  8.1G    0K   8.1G    0%    /dev/vx/rdmp
swap                  8.1G     0K   8.1G    0%    /tmp
/dev/vx/dsk/bootdg/data
                     4.9G   602M  4.3G    13%    /data
linux.veritas.com:/h/re/osdist
                     734G  691G    41G    95%    /mnt
/dev/vx/dsk/flash_dg/f_vol
                     8.0G    19M   7.5G    1%    /vobstore


==========================================================================================================
6.] Now we have the filesystem mounted so I will just copy some data in the filesystem(This test is just for testing in this lab. Data may already be existing on Volumes/Filesystems)
==========================================================================================================
sh-2.05#cp -r /opt /vobstore

sh-2.05# df-h
Filesystem             size  used  avail capacity  Mountedon
/dev/vx/dsk/bootdg/rootvol
                       48G  6.1G    41G    13%    /
/proc                    0K    0K     0K    0%    /proc
mnttab                  0K     0K     0K    0%    /etc/mnttab
fd                      0K     0K     0K    0%    /dev/fd
swap                  8.0G    24K   8.0G    1%    /var/run
dmpfs                  8.0G    0K   8.0G    0%    /dev/vx/dmp
dmpfs                  8.0G    0K   8.0G    0%    /dev/vx/rdmp
swap                  8.0G     0K   8.0G    0%    /tmp
/dev/vx/dsk/bootdg/data
                     4.9G   602M  4.3G    13%    /data
linux.veritas.com:/h/re/osdist
                     734G  691G    41G    95%    /mnt
/dev/vx/dsk/flash_dg/f_vol
                     8.0G   1.3G  6.2G    18%    /vobstore


==========================================================================================================
7.] Now we prepare the Volume which will be the primary Volume for the Snapshot. This creates the dco objects if they do not already exist.
==========================================================================================================
sh-2.05#vxsnap -g flash_dg prepare f_vol alloc=alloc=flash_dg01,flash_dg02,flash_dg03,flash_dg04

sh-2.05# vxprint-htrg flash_dg
DG NAME        NCONFIG      NLOG     MINORS   GROUP-ID
STNAME         STATE        DM_CNT  SPARE_CNT         APPVOL_CNT
DMNAME         DEVICE       TYPE    PRIVLEN  PUBLEN   STATE
RV NAME        RLINK_CNT    KSTATE  STATE    PRIMARY  DATAVOLS  SRL
RLNAME        RVG          KSTATE   STATE    REM_HOSTREM_DG    REM_RLNK
CO NAME        CACHEVOL     KSTATE   STATE
VTNAME         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/]OFFAM/NM    MODE
SC NAME        PLEX         CACHE    DISKOFFS LENGTH  [COL/]OFF DEVICE   MODE
DC NAME        PARENTVOL    LOGVOL
SP NAME        SNAPVOL      DCO

dg flash_dg    default      default  19000    1182420217.51.punv240-d7g

dmflash_dg01   Disk_11      auto    2048     8292096  -
dm flash_dg02  Disk_12      auto     2048    8292096  -
dm flash_dg03  Disk_13      auto     2048     10404096-
dm flash_dg04   Disk_14      auto    2048     10404096-

v  f_vol        -            ENABLED  ACTIVE  16777216 SELECT    -        fsgen
plf_vol-01    f_vol        ENABLED  ACTIVE   16777216CONCAT    -        RW
sd flash_dg01-01f_vol-01    flash_dg010      6373120  0        Disk_11  ENA
sd flash_dg03-01 f_vol-01    flash_dg030      10404096 6373120   Disk_13  ENA
plf_vol-02    f_vol        ENABLED  ACTIVE   16777216CONCAT    -        RW
sd flash_dg02-01f_vol-02    flash_dg020      6373120  0        Disk_12  ENA
sd flash_dg04-01 f_vol-02    flash_dg040      10404096 6373120   Disk_14  ENA
dcf_vol_dco    f_vol        f_vol_dcl  
v  f_vol_dcl    -            ENABLED  ACTIVE  1696     SELECT    -        gen
plf_vol_dcl-01 f_vol_dcl    ENABLED  ACTIVE  1696     CONCAT    -        RW
sdflash_dg01-02 f_vol_dcl-01 flash_dg01 6373120 1696  0         Disk_11  ENA
pl f_vol_dcl-02f_vol_dcl    ENABLED  ACTIVE   1696    CONCAT    -        RW
sd flash_dg02-02f_vol_dcl-02 flash_dg02 6373120 1696   0        Disk_12  ENA


==========================================================================================================
8.] Now we need to get some parameters from the Primary Volume which will be used to create our SnapshotVolume
==========================================================================================================
sh-2.05#LEN=`vxprint -g flash_dg -F%len f_vol`; echo $LEN
16777216

sh-2.05#DCONAME=`vxprint -g flash_dg -F%dco_name f_vol`; echo$DCONAME
f_vol_dco

sh-2.05# RSZ=`vxprint -g flash_dg -F%regionsz$DCONAME`; echo$RSZ
128



==========================================================================================================
9.] First we add the two other disks into the diskgroup which will be used to create the SnapshotVolume
==========================================================================================================
sh-2.05#vxdisk list
DEVICE      TYPE            DISK        GROUP        STATUS
Disk_0      auto:cdsdisk    -            -            online
Disk_1      auto:cdsdisk    CLR1         rdg-evidenceonline
Disk_2      auto:cdsdisk    JBOD3510_1   rdg-evidenceonline
Disk_3      auto:cdsdisk    SENA01       rdg-evidenceonline
Disk_4      auto:cdsdisk    -            -            online
Disk_5      auto            -            -            error
Disk_6      auto:cdsdisk    -            -            online
Disk_7      auto:cdsdisk    -            -            online
Disk_8      auto:cdsdisk    CLR2         rdg-evidenceonline
Disk_9      auto:cdsdisk    -            -            online
Disk_10      auto:cdsdisk    -            -            online
Disk_11      auto:cdsdisk    flash_dg01  flash_dg    online
Disk_12      auto:cdsdisk    flash_dg02  flash_dg    online
Disk_13      auto:cdsdisk    flash_dg03  flash_dg    online
Disk_14      auto:cdsdisk    flash_dg04  flash_dg    online
Disk_15      auto:cdsdisk    -            -            online
Disk_16      auto:cdsdisk    -            -            online
Disk_17      auto:cdsdisk    -            -            online
Disk_18      auto:cdsdisk    -            -            online
Disk_19      auto:cdsdisk    -            -            online
Disk_20      auto:cdsdisk    -            -            online
Disk_21      auto:cdsdisk    -            -            online
Disk_22      auto:cdsdisk    -            -            online
Disk_23      auto:cdsdisk    -            -            online
Disk_24      auto:cdsdisk    -            -            online
Disk_25      auto:cdsdisk    -            -            online
Disk_26      auto:cdsdisk    -            -            online
Disk_27      auto:cdsdisk    -            -            online
Disk_29      auto:cdsdisk    -            -            online
Disk_30      auto:cdsdisk    -            -            online
Disk_31      auto:cdsdisk    -            -            online
c1t0d0s2    auto:sliced     rootdisk     rootdg      online
c1t1d0s2     auto:sliced     rootmirror  rootdg       online


sh-2.05# sh-2.05# vxdg -g flash_dgadddisk flash_dg05=Disk_16 flash_dg06=Disk_17

sh-2.05# vxdisk list
DEVICE      TYPE            DISK        GROUP        STATUS
Disk_0      auto:cdsdisk    -            -            online
Disk_1      auto:cdsdisk    CLR1         rdg-evidenceonline
Disk_2      auto:cdsdisk    JBOD3510_1   rdg-evidenceonline
Disk_3      auto:cdsdisk    SENA01       rdg-evidenceonline
Disk_4      auto:cdsdisk    -            -            online
Disk_5      auto            -            -            error
Disk_6      auto:cdsdisk    -            -            online
Disk_7      auto:cdsdisk    -            -            online
Disk_8      auto:cdsdisk    CLR2         rdg-evidenceonline
Disk_9      auto:cdsdisk    -            -            online
Disk_10      auto:cdsdisk    -            -            online
Disk_11      auto:cdsdisk    flash_dg01  flash_dg    online
Disk_12      auto:cdsdisk    flash_dg02  flash_dg    online
Disk_13      auto:cdsdisk    flash_dg03  flash_dg    online
Disk_14      auto:cdsdisk    flash_dg04  flash_dg    online
Disk_15      auto:cdsdisk    -            -            online
Disk_16      auto:cdsdisk    flash_dg05  flash_dg    online
Disk_17      auto:cdsdisk    flash_dg06  flash_dg    online
Disk_18      auto:cdsdisk    -            -            online
Disk_19      auto:cdsdisk    -            -            online
Disk_20      auto:cdsdisk    -            -            online
Disk_21      auto:cdsdisk    -            -            online
Disk_22      auto:cdsdisk    -            -            online
Disk_23      auto:cdsdisk    -            -            online
Disk_24      auto:cdsdisk    -            -            online
Disk_25      auto:cdsdisk    -            -            online
Disk_26      auto:cdsdisk    -            -            online
Disk_27      auto:cdsdisk    -            -            online
Disk_29      auto:cdsdisk    -            -            online
Disk_30      auto:cdsdisk    -            -            online
Disk_31      auto:cdsdisk    -            -            online
c1t0d0s2    auto:sliced     rootdisk     rootdg      online
c1t1d0s2     auto:sliced     rootmirror  rootdg      online


==========================================================================================================
10.] Now we create the new volume for the snapshot volume with the parameters that we got from the above commands in step(8)
==========================================================================================================

sh-2.05#vxassist -g flash_dg make f_vol_snap $LEN layout=concat logtype=dco drl=ondcoversion=20 regionsz=$RSZ init=active flash_dg05 flash_dg06

sh-2.05#vxprint -htrg flash_dg
DG NAME        NCONFIG      NLOG     MINORS   GROUP-ID
STNAME         STATE        DM_CNT  SPARE_CNT         APPVOL_CNT
DMNAME         DEVICE       TYPE    PRIVLEN  PUBLEN   STATE
RV NAME        RLINK_CNT    KSTATE  STATE    PRIMARY  DATAVOLS  SRL
RLNAME        RVG          KSTATE   STATE    REM_HOSTREM_DG    REM_RLNK
CO NAME        CACHEVOL     KSTATE   STATE
VTNAME         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/]OFFAM/NM    MODE
SC NAME        PLEX         CACHE    DISKOFFS LENGTH  [COL/]OFF DEVICE   MODE
DC NAME        PARENTVOL    LOGVOL
SP NAME        SNAPVOL      DCO

dg flash_dg    default      default  19000    1182420217.51.punv240-d7g

dmflash_dg01   Disk_11      auto    2048     8292096  -
dm flash_dg02  Disk_12      auto     2048    8292096  -
dm flash_dg03  Disk_13      auto     2048     10404096-
dm flash_dg04   Disk_14      auto    2048     10404096 -
dm flash_dg05  Disk_16      auto     2048     10404096-
dm flash_dg06   Disk_17      auto    2048    8292096  -

v  f_vol        -            ENABLED  ACTIVE  16777216 SELECT    -        fsgen
plf_vol-01    f_vol        ENABLED  ACTIVE   16777216CONCAT    -        RW
sd flash_dg01-01f_vol-01    flash_dg010      6373120  0        Disk_11  ENA
sd flash_dg03-01 f_vol-01    flash_dg030      10404096 6373120   Disk_13  ENA
plf_vol-02    f_vol        ENABLED  ACTIVE   16777216CONCAT    -        RW
sd flash_dg02-01f_vol-02    flash_dg020      6373120  0        Disk_12  ENA
sd flash_dg04-01 f_vol-02    flash_dg040      10404096 6373120   Disk_14  ENA
dcf_vol_dco    f_vol        f_vol_dcl  
v  f_vol_dcl    -            ENABLED  ACTIVE  1696     SELECT    -        gen
plf_vol_dcl-01 f_vol_dcl    ENABLED  ACTIVE  1696     CONCAT    -        RW
sdflash_dg01-02 f_vol_dcl-01 flash_dg01 6373120 1696  0         Disk_11  ENA
pl f_vol_dcl-02f_vol_dcl    ENABLED  ACTIVE   1696    CONCAT    -        RW
sd flash_dg02-02f_vol_dcl-02 flash_dg02 6373120 1696   0        Disk_12  ENA

v  f_vol_snap  -            ENABLED  ACTIVE   16777216SELECT    -        fsgen
pl f_vol_snap-01f_vol_snap  ENABLED  ACTIVE   16777216CONCAT    -        RW
sd flash_dg05-01f_vol_snap-01 flash_dg05 0    10404096 0        Disk_16  ENA
sd flash_dg06-01 f_vol_snap-01 flash_dg060    6373120  10404096  Disk_17  ENA
dcf_vol_snap_dco f_vol_snap f_vol_snap_dcl
v  f_vol_snap_dcl-          ENABLED  ACTIVE  1696     SELECT    -        gen
plf_vol_snap_dcl-01 f_vol_snap_dcl ENABLED ACTIVE 1696CONCAT    -        RW
sd flash_dg06-02f_vol_snap_dcl-01 flash_dg06 6373120 16960      Disk_17  ENA

Note: Now we see that the f_vol_snap volume is created with the same parameters as that of the original volume and is now ready to be used as the SnapshotVolume.


==========================================================================================================
11.] This step is to confirm that the Snapshot Volume is ready for InstantSnapshots
==========================================================================================================
sh-2.05#vxsnap -g flash_dg prepare f_vol_snap alloc=flash_dg05,flash_dg06
VxVMvxassist ERROR V-5-1-7039 volume f_vol_snap is already instantready

sh-2.05# vxprint -htrg flash_dg
DGNAME         NCONFIG      NLOG    MINORS   GROUP-ID
ST NAME        STATE        DM_CNT  SPARE_CNT         APPVOL_CNT
DMNAME         DEVICE       TYPE    PRIVLEN  PUBLEN   STATE
RV NAME        RLINK_CNT    KSTATE  STATE    PRIMARY  DATAVOLS  SRL
RLNAME        RVG          KSTATE   STATE    REM_HOSTREM_DG    REM_RLNK
CO NAME        CACHEVOL     KSTATE   STATE
VTNAME         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/]OFFAM/NM    MODE
SC NAME        PLEX         CACHE    DISKOFFS LENGTH  [COL/]OFF DEVICE   MODE
DC NAME        PARENTVOL    LOGVOL
SP NAME        SNAPVOL      DCO

dg flash_dg    default      default  19000    1182420217.51.punv240-d7g

dmflash_dg01   Disk_11      auto    2048     8292096  -
dm flash_dg02  Disk_12      auto     2048    8292096  -
dm flash_dg03  Disk_13      auto     2048     10404096-
dm flash_dg04   Disk_14      auto    2048     10404096 -
dm flash_dg05  Disk_16      auto     2048     10404096-
dm flash_dg06   Disk_17      auto    2048    8292096  -

v  f_vol        -            ENABLED  ACTIVE  16777216 SELECT    -        fsgen
plf_vol-01    f_vol        ENABLED  ACTIVE   16777216CONCAT    -        RW
sd flash_dg01-01f_vol-01    flash_dg010      6373120  0        Disk_11  ENA
sd flash_dg03-01 f_vol-01    flash_dg030      10404096 6373120   Disk_13  ENA
plf_vol-02    f_vol        ENABLED  ACTIVE   16777216CONCAT    -        RW
sd flash_dg02-01f_vol-02    flash_dg020      6373120  0        Disk_12  ENA
sd flash_dg04-01 f_vol-02    flash_dg040      10404096 6373120   Disk_14  ENA
dcf_vol_dco    f_vol        f_vol_dcl  
v  f_vol_dcl    -            ENABLED  ACTIVE  1696     SELECT    -        gen
plf_vol_dcl-01 f_vol_dcl    ENABLED  ACTIVE  1696     CONCAT    -        RW
sdflash_dg01-02 f_vol_dcl-01 flash_dg01 6373120 1696  0         Disk_11  ENA
pl f_vol_dcl-02f_vol_dcl    ENABLED  ACTIVE   1696    CONCAT    -        RW
sd flash_dg02-02f_vol_dcl-02 flash_dg02 6373120 1696   0        Disk_12  ENA

v  f_vol_snap  -            ENABLED  ACTIVE   16777216SELECT    -        fsgen
pl f_vol_snap-01f_vol_snap  ENABLED  ACTIVE   16777216CONCAT    -        RW
sd flash_dg05-01f_vol_snap-01 flash_dg05 0    10404096 0        Disk_16  ENA
sd flash_dg06-01 f_vol_snap-01 flash_dg060    6373120  10404096  Disk_17  ENA
dcf_vol_snap_dco f_vol_snap f_vol_snap_dcl
v  f_vol_snap_dcl-          ENABLED  ACTIVE  1696     SELECT    -        gen
plf_vol_snap_dcl-01 f_vol_snap_dcl ENABLED ACTIVE 1696CONCAT    -        RW
sd flash_dg06-02f_vol_snap_dcl-01 flash_dg06 6373120 16960      Disk_17  ENA


==========================================================================================================
12.] Now we make the Instant Snapshot from the Primary Volume to the Snapshot Volume.(The data available on the Snapshot Volume will be of time when this command is executed.)
==========================================================================================================
sh-2.05#vxsnap -g flash_dg make source=f_vol/snapvol=f_vol_snap

sh-2.05# vxprint-htrg flash_dg
DG NAME        NCONFIG      NLOG     MINORS   GROUP-ID
STNAME         STATE        DM_CNT  SPARE_CNT         APPVOL_CNT
DMNAME         DEVICE       TYPE    PRIVLEN  PUBLEN   STATE
RV NAME        RLINK_CNT    KSTATE  STATE    PRIMARY  DATAVOLS  SRL
RLNAME        RVG          KSTATE   STATE    REM_HOSTREM_DG    REM_RLNK
CO NAME        CACHEVOL     KSTATE   STATE
VTNAME         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/]OFFAM/NM    MODE
SC NAME        PLEX         CACHE    DISKOFFS LENGTH  [COL/]OFF DEVICE   MODE
DC NAME        PARENTVOL    LOGVOL
SP NAME        SNAPVOL      DCO

dg flash_dg    default      default  19000    1182420217.51.punv240-d7g

dmflash_dg01   Disk_11      auto    2048     8292096  -
dm flash_dg02  Disk_12      auto     2048    8292096  -
dm flash_dg03  Disk_13      auto     2048     10404096-
dm flash_dg04   Disk_14      auto    2048     10404096 -
dm flash_dg05  Disk_16      auto     2048     10404096-
dm flash_dg06   Disk_17      auto    2048    8292096  -

v  f_vol        -            ENABLED  ACTIVE  16777216 SELECT    -        fsgen
plf_vol-01    f_vol        ENABLED  ACTIVE   16777216CONCAT    -        RW
sd flash_dg01-01f_vol-01    flash_dg010      6373120  0        Disk_11  ENA
sd flash_dg03-01 f_vol-01    flash_dg030      10404096 6373120   Disk_13  ENA
plf_vol-02    f_vol        ENABLED  ACTIVE   16777216CONCAT    -        RW
sd flash_dg02-01f_vol-02    flash_dg020      6373120  0        Disk_12  ENA
sd flash_dg04-01 f_vol-02    flash_dg040      10404096 6373120   Disk_14  ENA
dcf_vol_dco    f_vol        f_vol_dcl  
v  f_vol_dcl    -            ENABLED  ACTIVE  1696     SELECT    -        gen
plf_vol_dcl-01 f_vol_dcl    ENABLED  ACTIVE  1696     CONCAT    -        RW
sdflash_dg01-02 f_vol_dcl-01 flash_dg01 6373120 1696  0         Disk_11  ENA
pl f_vol_dcl-02f_vol_dcl    ENABLED  ACTIVE   1696    CONCAT    -        RW
sd flash_dg02-02f_vol_dcl-02 flash_dg02 6373120 1696   0        Disk_12  ENA
sp f_vol_snap_snpf_vol      f_vol_dco  

v  f_vol_snap  -            ENABLED  ACTIVE   16777216SELECT    -        fsgen
pl f_vol_snap-01f_vol_snap  ENABLED  ACTIVE   16777216CONCAT    -        RW
sd flash_dg05-01f_vol_snap-01 flash_dg05 0    10404096 0        Disk_16  ENA
sd flash_dg06-01 f_vol_snap-01 flash_dg060    6373120  10404096  Disk_17  ENA
dcf_vol_snap_dco f_vol_snap f_vol_snap_dcl
v  f_vol_snap_dcl-          ENABLED  ACTIVE  1696     SELECT    -        gen
plf_vol_snap_dcl-01 f_vol_snap_dcl ENABLED ACTIVE 1696CONCAT    -        RW
sd flash_dg06-02f_vol_snap_dcl-01 flash_dg06 6373120 16960      Disk_17  ENA
spf_vol_snp    f_vol_snap   f_vol_snap_dco


Note: So after the snapshot is created then we see that there is a "sp" for "Snapshot" inthe vxprint output.


==========================================================================================================
13.] Now we sync all the data on the Original Volume to the snapshot Volume so that we may disassociate the Snapshot Volume for Backend Processing.
==========================================================================================================
sh-2.05#vxsnap -g flas h_dg syncwait f_vol_snap &

sh-2.05# vxtask list
TASKID  PTID TYPE/STATE    PCT   PROGRESS
 183         SNAPSYNC/R 28.28% 0/16777216/4745344 SNAPSYNCf_vol_snap flash_dg

sh-2.05# vxtask monitor
TASKID  PTIDTYPE/STATE    PCT   PROGRESS
 183         SNAPSYNC/R 33.28% 0/16777216/5582976 SNAPSYNCf_vol_snap flash_dg
  183         SNAPSYNC/R 33.29%0/16777216/5585024 SNAPSYNC f_vol_snap flash_dg
 183         SNAPSYNC/R 33.30% 0/16777216/5587072 SNAPSYNCf_vol_snap flash_dg
  183         SNAPSYNC/R 33.31%0/16777216/5589120 SNAPSYNC f_vol_snap flash_dg
 183         SNAPSYNC/R 33.33% 0/16777216/5591168 SNAPSYNCf_vol_snap flash_dg
  183         SNAPSYNC/R 33.34%0/16777216/5593216 SNAPSYNC f_vol_snap flash_dg
 183         SNAPSYNC/R 33.35% 0/16777216/5595264 SNAPSYNCf_vol_snap flash_dg
  183         SNAPSYNC/R 33.36%0/16777216/5597312 SNAPSYNC f_vol_snap flash_dg
 183         SNAPSYNC/R 33.37% 0/16777216/5599360 SNAPSYNCf_vol_snap flash_dg
...
...
...
...
...
 183         SNAPSYNC/R 99.71% 0/16777216/16728192 SNAPSYNCf_vol_snap flash_dg
  183         SNAPSYNC/R 99.72%0/16777216/16730240 SNAPSYNC f_vol_snap flash_dg
 183         SNAPSYNC/R 99.73% 0/16777216/16732288 SNAPSYNCf_vol_snap flash_dg
  183         SNAPSYNC/R 99.74%0/16777216/16734336 SNAPSYNC f_vol_snap flash_dg
 183         SNAPSYNC/R 99.76% 0/16777216/16736384 SNAPSYNCf_vol_snap flash_dg
  183         SNAPSYNC/R 99.77%0/16777216/16738432 SNAPSYNC f_vol_snap flash_dg
 183         SNAPSYNC/R 99.78% 0/16777216/16740480 SNAPSYNCf_vol_snap flash_dg
  183         SNAPSYNC/R 99.79%0/16777216/16742528 SNAPSYNC f_vol_snap flash_dg
 183         SNAPSYNC/R 99.81% 0/16777216/16744576 SNAPSYNCf_vol_snap flash_dg
  183         SNAPSYNC/R 99.82%0/16777216/16746624 SNAPSYNC f_vol_snap flash_dg
 183         SNAPSYNC/R 99.83% 0/16777216/16748672 SNAPSYNCf_vol_snap flash_dg
  183         SNAPSYNC/R 99.84%0/16777216/16750720 SNAPSYNC f_vol_snap flash_dg
 183         SNAPSYNC/R 99.85% 0/16777216/16752768 SNAPSYNCf_vol_snap flash_dg
  183         SNAPSYNC/R 99.87%0/16777216/16754816 SNAPSYNC f_vol_snap flash_dg
 183         SNAPSYNC/R 99.88% 0/16777216/16756864 SNAPSYNCf_vol_snap flash_dg
  183         SNAPSYNC/R 99.89%0/16777216/16758912 SNAPSYNC f_vol_snap flash_dg
 183         SNAPSYNC/R 99.90% 0/16777216/16760960 SNAPSYNCf_vol_snap flash_dg
  183         SNAPSYNC/R 99.92%0/16777216/16763008 SNAPSYNC f_vol_snap flash_dg
 183         SNAPSYNC/R 99.93% 0/16777216/16765056 SNAPSYNCf_vol_snap flash_dg
  183         SNAPSYNC/R 99.94%0/16777216/16767104 SNAPSYNC f_vol_snap flash_dg
 183         SNAPSYNC/R 99.95% 0/16777216/16769152 SNAPSYNCf_vol_snap flash_dg
  183         SNAPSYNC/R 99.96%0/16777216/16771200 SNAPSYNC f_vol_snap flash_dg
 183         SNAPSYNC/R 99.98% 0/16777216/16773248 SNAPSYNCf_vol_snap flash_dg
  183         SNAPSYNC/R 99.99%0/16777216/16775296 SNAPSYNC f_vol_snap flash_dg
 183         SNAPSYNC/EXITED
sh-2.05#


sh-2.05#vxprint -htrg flash_dg
DG NAME        NCONFIG      NLOG     MINORS   GROUP-ID
STNAME         STATE        DM_CNT  SPARE_CNT         APPVOL_CNT
DMNAME         DEVICE       TYPE    PRIVLEN  PUBLEN   STATE
RV NAME        RLINK_CNT    KSTATE  STATE    PRIMARY  DATAVOLS  SRL
RLNAME        RVG          KSTATE   STATE    REM_HOSTREM_DG    REM_RLNK
CO NAME        CACHEVOL     KSTATE   STATE
VTNAME         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/]OFFAM/NM    MODE
SC NAME        PLEX         CACHE    DISKOFFS LENGTH  [COL/]OFF DEVICE   MODE
DC NAME        PARENTVOL    LOGVOL
SP NAME        SNAPVOL      DCO

dg flash_dg    default      default  19000    1182420217.51.punv240-d7g

dmflash_dg01   Disk_11      auto    2048     8292096  -
dm flash_dg02  Disk_12      auto     2048    8292096  -
dm flash_dg03  Disk_13      auto     2048     10404096-
dm flash_dg04   Disk_14      auto    2048     10404096 -
dm flash_dg05  Disk_16      auto     2048     10404096-
dm flash_dg06   Disk_17      auto    2048    8292096  -

v  f_vol        -            ENABLED  ACTIVE  16777216 SELECT    -        fsgen
plf_vol-01    f_vol        ENABLED  ACTIVE   16777216CONCAT    -        RW
sd flash_dg01-01f_vol-01    flash_dg010      6373120  0        Disk_11  ENA
sd flash_dg03-01 f_vol-01    flash_dg030      10404096 6373120   Disk_13  ENA
plf_vol-02    f_vol        ENABLED  ACTIVE   16777216CONCAT    -        RW
sd flash_dg02-01f_vol-02    flash_dg020      6373120  0        Disk_12  ENA
sd flash_dg04-01 f_vol-02    flash_dg040      10404096 6373120   Disk_14  ENA
dcf_vol_dco    f_vol        f_vol_dcl  
v  f_vol_dcl    -            ENABLED  ACTIVE  1696     SELECT    -        gen
plf_vol_dcl-01 f_vol_dcl    ENABLED  ACTIVE  1696     CONCAT    -        RW
sdflash_dg01-02 f_vol_dcl-01 flash_dg01 6373120 1696  0         Disk_11  ENA
pl f_vol_dcl-02f_vol_dcl    ENABLED  ACTIVE   1696    CONCAT    -        RW
sd flash_dg02-02f_vol_dcl-02 flash_dg02 6373120 1696   0        Disk_12  ENA
sp f_vol_snap_snpf_vol      f_vol_dco  

v  f_vol_snap  -            ENABLED  ACTIVE   16777216SELECT    -        fsgen
pl f_vol_snap-01f_vol_snap  ENABLED  ACTIVE   16777216CONCAT    -        RW
sd flash_dg05-01f_vol_snap-01 flash_dg05 0    10404096 0        Disk_16  ENA
sd flash_dg06-01 f_vol_snap-01 flash_dg060    6373120  10404096  Disk_17  ENA
dcf_vol_snap_dco f_vol_snap f_vol_snap_dcl
v  f_vol_snap_dcl-          ENABLED  ACTIVE  1696     SELECT    -        gen
plf_vol_snap_dcl-01 f_vol_snap_dcl ENABLED ACTIVE 1696CONCAT    -        RW
sd flash_dg06-02f_vol_snap_dcl-01 flash_dg06 6373120 16960      Disk_17  ENA
spf_vol_snp    f_vol_snap   f_vol_snap_dco
sh-2.05#



==========================================================================================================
14.] After the Snapshot Volume is fully synchronized we may check the integrity of the Filesystem on the SnapshotVolume
==========================================================================================================
sh-2.05#fsck -F vxfs /dev/vx/rdsk/flash_dg/f_vol_snap
file system is clean - logreplay is not required

==> Now we have confirmed that the filesystem is clean on the snapshot volume.


==========================================================================================================
15.] We now disassociate the Snapshot Volume from the Primary Volume so that it can be used for Offhost/BackendOperations.
==========================================================================================================

sh-2.05#vxsnap -g flash_dg dis f_vol_snap

sh-2.05# vxprint -htrg flash_dg
DGNAME         NCONFIG      NLOG    MINORS   GROUP-ID
ST NAME        STATE        DM_CNT  SPARE_CNT         APPVOL_CNT
DMNAME         DEVICE       TYPE    PRIVLEN  PUBLEN   STATE
RV NAME        RLINK_CNT    KSTATE  STATE    PRIMARY  DATAVOLS  SRL
RLNAME        RVG          KSTATE   STATE    REM_HOSTREM_DG    REM_RLNK
CO NAME        CACHEVOL     KSTATE   STATE
VTNAME         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/]OFFAM/NM    MODE
SC NAME        PLEX         CACHE    DISKOFFS LENGTH  [COL/]OFF DEVICE   MODE
DC NAME        PARENTVOL    LOGVOL
SP NAME        SNAPVOL      DCO

dg flash_dg    default      default  19000    1182420217.51.punv240-d7g

dmflash_dg01   Disk_11      auto    2048     8292096  -
dm flash_dg02  Disk_12      auto     2048    8292096  -
dm flash_dg03  Disk_13      auto     2048     10404096-
dm flash_dg04   Disk_14      auto    2048     10404096 -
dm flash_dg05  Disk_16      auto     2048     10404096-
dm flash_dg06   Disk_17      auto    2048    8292096  -

v  f_vol        -            ENABLED  ACTIVE  16777216 SELECT    -        fsgen
plf_vol-01    f_vol        ENABLED  ACTIVE   16777216CONCAT    -        RW
sd flash_dg01-01f_vol-01    flash_dg010      6373120  0        Disk_11  ENA
sd flash_dg03-01 f_vol-01    flash_dg030      10404096 6373120   Disk_13  ENA
plf_vol-02    f_vol        ENABLED  ACTIVE   16777216CONCAT    -        RW
sd flash_dg02-01f_vol-02    flash_dg020      6373120  0        Disk_12  ENA
sd flash_dg04-01 f_vol-02    flash_dg040      10404096 6373120   Disk_14  ENA
dcf_vol_dco    f_vol        f_vol_dcl  
v  f_vol_dcl    -            ENABLED  ACTIVE  1696     SELECT    -        gen
plf_vol_dcl-01 f_vol_dcl    ENABLED  ACTIVE  1696     CONCAT    -        RW
sdflash_dg01-02 f_vol_dcl-01 flash_dg01 6373120 1696  0         Disk_11  ENA
pl f_vol_dcl-02f_vol_dcl    ENABLED  ACTIVE   1696    CONCAT    -        RW
sd flash_dg02-02f_vol_dcl-02 flash_dg02 6373120 1696   0        Disk_12  ENA

v  f_vol_snap  -            ENABLED  ACTIVE   16777216SELECT    -        fsgen
pl f_vol_snap-01f_vol_snap  ENABLED  ACTIVE   16777216CONCAT    -        RW
sd flash_dg05-01f_vol_snap-01 flash_dg05 0    10404096 0        Disk_16  ENA
sd flash_dg06-01 f_vol_snap-01 flash_dg060    6373120  10404096  Disk_17  ENA
dcf_vol_snap_dco f_vol_snap f_vol_snap_dcl
v  f_vol_snap_dcl-          ENABLED  ACTIVE  1696     SELECT    -        gen
plf_vol_snap_dcl-01 f_vol_snap_dcl ENABLED ACTIVE 1696CONCAT    -        RW
sd flash_dg06-02f_vol_snap_dcl-01 flash_dg06 6373120 16960      Disk_17  ENA


==>> So we see that the snapshot Volume has been disassociated from the Primary Volume.

==========================================================================================================
16.] Now we split the diskgroup to another diskgroup which will contain the SnapshotVolume (The new diskgroup will be automatically created and can be deported from this system to another system for Backend Processing)
==========================================================================================================

sh-2.05#vxdg split flash_dg flash_snap_dg flash_snap_vol_snap

==>> Now we verify that a new diskgroup is automatically created after the diskgroup split operation.

sh-2.05# vxdisk list
DEVICE      TYPE            DISK        GROUP        STATUS
Disk_0      auto:cdsdisk    -            -            online
Disk_1      auto:cdsdisk    CLR1         rdg-evidenceonline
Disk_2      auto:cdsdisk    JBOD3510_1   rdg-evidenceonline
Disk_3      auto:cdsdisk    SENA01       rdg-evidenceonline
Disk_4      auto:cdsdisk    -            -            online
Disk_5      auto            -            -            error
Disk_6      auto:cdsdisk    -            -            online
Disk_7      auto:cdsdisk    -            -            online
Disk_8      auto:cdsdisk    CLR2         rdg-evidenceonline
Disk_9      auto:cdsdisk    -            -            online
Disk_10      auto:cdsdisk    -            -            online
Disk_11      auto:cdsdisk    flash_dg01  flash_dg    online
Disk_12      auto:cdsdisk    flash_dg02  flash_dg    online
Disk_13      auto:cdsdisk    flash_dg03  flash_dg    online
Disk_14      auto:cdsdisk    flash_dg04  flash_dg    online
Disk_15      auto:cdsdisk    -            -            online
Disk_16      auto:cdsdisk    flash_dg05  flash_snap_dgonline
Disk_17      auto:cdsdisk    flash_dg06  flash_snap_dgonline
Disk_18      auto:cdsdisk    -            -            online
Disk_19      auto:cdsdisk    -            -            online
Disk_20      auto:cdsdisk    -            -            online
Disk_21      auto:cdsdisk    -            -            online
Disk_22      auto:cdsdisk    -            -            online
Disk_23      auto:cdsdisk    -            -            online
Disk_24      auto:cdsdisk    -            -            online
Disk_25      auto:cdsdisk    -            -            online
Disk_26      auto:cdsdisk    -            -            online
Disk_27      auto:cdsdisk    -            -            online
Disk_29      auto:cdsdisk    -            -            online
Disk_30      auto:cdsdisk    -            -            online
Disk_31      auto:cdsdisk    -            -            online
c1t0d0s2    auto:sliced     rootdisk     rootdg      online
c1t1d0s2     auto:sliced     rootmirror  rootdg       online


==>> We can see that the Snapshot Volume is now in the Second Diskgroup which did not exist earlier.

sh-2.05# vxprint -htrg flash_snap_dg
DGNAME         NCONFIG      NLOG    MINORS   GROUP-ID
ST NAME        STATE        DM_CNT  SPARE_CNT         APPVOL_CNT
DMNAME         DEVICE       TYPE    PRIVLEN  PUBLEN   STATE
RV NAME        RLINK_CNT    KSTATE  STATE    PRIMARY  DATAVOLS  SRL
RLNAME        RVG          KSTATE   STATE    REM_HOSTREM_DG    REM_RLNK
CO NAME        CACHEVOL     KSTATE   STATE
VTNAME         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/]OFFAM/NM    MODE
SC NAME        PLEX         CACHE    DISKOFFS LENGTH  [COL/]OFF DEVICE   MODE
DC NAME        PARENTVOL    LOGVOL
SP NAME        SNAPVOL      DCO

dg flash_snap_dg default    default  14000    1182422207.52.punv240-d7g

dmflash_dg05   Disk_16      auto    2048     10404096 -
dm flash_dg06  Disk_17      auto     2048    8292096  -

v  f_vol_snap  -            DISABLED ACTIVE   16777216SELECT    -        fsgen
pl f_vol_snap-01f_vol_snap  DISABLED ACTIVE   16777216CONCAT    -        RW
sd flash_dg05-01f_vol_snap-01 flash_dg05 0    10404096 0        Disk_16  ENA
sd flash_dg06-01 f_vol_snap-01 flash_dg060    6373120  10404096  Disk_17  ENA
dcf_vol_snap_dco f_vol_snap f_vol_snap_dcl
v  f_vol_snap_dcl-          DISABLED ACTIVE   1696    SELECT    -        gen
pl f_vol_snap_dcl-01f_vol_snap_dcl DISABLED ACTIVE 1696 CONCAT  -        RW
sd flash_dg06-02 f_vol_snap_dcl-01 flash_dg066373120 16960      Disk_17  ENA


==========================================================================================================
17.] Now we can see that the Snapshot Volume is now a part of the new diskgroup flash_snap_dg but in DISABLED ACTIVE state.
So need to start all volumes in the new diskgroup to make them ENABLED ACTIVE
==========================================================================================================

sh-2.05#vxvol -g flash_snap_dg startall

==>> We verify the Volumes are now in ENABLED ACTIVE state

sh-2.05# vxprint -htrg flash_snap_dg
DGNAME         NCONFIG      NLOG    MINORS   GROUP-ID
ST NAME        STATE        DM_CNT  SPARE_CNT         APPVOL_CNT
DMNAME         DEVICE       TYPE    PRIVLEN  PUBLEN   STATE
RV NAME        RLINK_CNT    KSTATE  STATE    PRIMARY  DATAVOLS  SRL
RLNAME        RVG          KSTATE   STATE    REM_HOSTREM_DG    REM_RLNK
CO NAME        CACHEVOL     KSTATE   STATE
VTNAME         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/]OFFAM/NM    MODE
SC NAME        PLEX         CACHE    DISKOFFS LENGTH  [COL/]OFF DEVICE   MODE
DC NAME        PARENTVOL    LOGVOL
SP NAME        SNAPVOL      DCO

dg flash_snap_dg default    default  14000    1182422207.52.punv240-d7g

dmflash_dg05   Disk_16      auto    2048     10404096 -
dm flash_dg06  Disk_17      auto     2048    8292096  -

v  f_vol_snap  -            ENABLED  ACTIVE   16777216SELECT    -        fsgen
pl f_vol_snap-01f_vol_snap  ENABLED  ACTIVE   16777216CONCAT    -        RW
sd flash_dg05-01f_vol_snap-01 flash_dg05 0    10404096 0        Disk_16  ENA
sd flash_dg06-01 f_vol_snap-01 flash_dg060    6373120  10404096  Disk_17  ENA
dcf_vol_snap_dco f_vol_snap f_vol_snap_dcl
v  f_vol_snap_dcl-          ENABLED  ACTIVE  1696     SELECT    -        gen
plf_vol_snap_dcl-01 f_vol_snap_dcl ENABLED ACTIVE 1696CONCAT    -        RW
sd flash_dg06-02f_vol_snap_dcl-01 flash_dg06 6373120 16960      Disk_17  ENA


==========================================================================================================
18.] Now we may deport the diskgroup to enable us to import it on another system for Backend Processing
==========================================================================================================
==>> Onthe Primary System
sh-2.05# vxdg deport flash_snap_dg


==>> Now we create a directory to mount thesnapshot Volume on the Remote Backend Processing System
sh-2.05# mkdir/vobstore_snap

==>> We mount the Snapshot Volume on the Remotesystem for processing/backup
sh-2.05# mount -F vxfs/dev/vx/dsk/flash_snap_dg/f_vol_snap /vobstore_snap


==>> Verify the data
sh-2.05# cd /vobstore_snap/

sh-2.05#ls
etc         lost+found  opt

sh-2.05# df-h
Filesystem             size  used  avail capacity  Mountedon
/dev/vx/dsk/bootdg/rootvol
                       48G  6.1G    41G    13%    /
/proc                    0K    0K     0K    0%    /proc
mnttab                  0K     0K     0K    0%    /etc/mnttab
fd                      0K     0K     0K    0%    /dev/fd
swap                  8.0G    24K   8.0G    1%    /var/run
dmpfs                  8.0G    0K   8.0G    0%    /dev/vx/dmp
dmpfs                  8.0G    0K   8.0G    0%    /dev/vx/rdmp
swap                  8.0G     0K   8.0G    0%    /tmp
/dev/vx/dsk/bootdg/data
                     4.9G   602M  4.3G    13%    /data
linux.veritas.com:/h/re/osdist
                     734G  691G    41G    95%    /mnt
/dev/vx/dsk/flash_dg/f_vol
                     8.0G   1.3G  6.2G    18%    /vobstore
/dev/vx/dsk/flash_snap_dg/f_vol_snap
                     8.0G   1.3G  6.2G    18%    /vobstore_snap


==========================================================================================================
19.] Now the backup operation can be performed on the Snapshot Volume as required.
==========================================================================================================



==========================================================================================================
20.] After completing the operations on the snapshot volume, we may deport the diskgroup from the Backend Processing System and import it on the system with the PrimaryVolume and join the diskgroup back to the original diskgroup.
==========================================================================================================

==>> On the Remote System
sh-2.05# cd /
sh-2.05# umount/vobstore_snap/
sh-2.05# vxdg deport flash_snap_dg


==>> On the Primary System with the Primary Volume
sh-2.05# vxdg importflash_snap_dg

==>> Join the Snapshot Diskgroup back to the PrimaryDiskgroup
sh-2.05# vxdg join flash_snap_dg flash_dg

==>> Now we see that our flash_snap_dg is no longer there after the diskgroupjoin

sh-2.05# vxdisk list
DEVICE      TYPE            DISK        GROUP        STATUS
Disk_0      auto:cdsdisk    -            -            online
Disk_1      auto:cdsdisk    CLR1         rdg-evidenceonline
Disk_2      auto:cdsdisk    JBOD3510_1   rdg-evidenceonline
Disk_3      auto:cdsdisk    SENA01       rdg-evidenceonline
Disk_4      auto:cdsdisk    -            -            online
Disk_5      auto            -            -            error
Disk_6      auto:cdsdisk    -            -            online
Disk_7      auto:cdsdisk    -            -            online
Disk_8      auto:cdsdisk    CLR2         rdg-evidenceonline
Disk_9      auto:cdsdisk    -            -            online
Disk_10      auto:cdsdisk    -            -            online
Disk_11      auto:cdsdisk    flash_dg01  flash_dg    online
Disk_12      auto:cdsdisk    flash_dg02  flash_dg    online
Disk_13      auto:cdsdisk    flash_dg03  flash_dg    online
Disk_14      auto:cdsdisk    flash_dg04  flash_dg    online
Disk_15      auto:cdsdisk    -            -            online
Disk_16      auto:cdsdisk    flash_dg05  flash_dg    online
Disk_17      auto:cdsdisk    flash_dg06  flash_dg    online
Disk_18      auto:cdsdisk    -            -            online
Disk_19      auto:cdsdisk    -            -            online
Disk_20      auto:cdsdisk    -            -            online
Disk_21      auto:cdsdisk    -            -            online
Disk_22      auto:cdsdisk    -            -            online
Disk_23      auto:cdsdisk    -            -            online
Disk_24      auto:cdsdisk    -            -            online
Disk_25      auto:cdsdisk    -            -            online
Disk_26      auto:cdsdisk    -            -            online
Disk_27      auto:cdsdisk    -            -            online
Disk_29      auto:cdsdisk    -            -            online
Disk_30      auto:cdsdisk    -            -            online
Disk_31      auto:cdsdisk    -            -            online
c1t0d0s2    auto:sliced     rootdisk     rootdg      online
c1t1d0s2     auto:sliced     rootmirror  rootdg      online


==========================================================================================================
21.]        We need to start the Snapshot Volume again before any operations can be performed since the Snapshot Volumes will be in "DISABLED ACTIVE"state
==========================================================================================================
sh-2.05#vxprint -htrg flash_dg
DG NAME        NCONFIG      NLOG     MINORS   GROUP-ID
STNAME         STATE        DM_CNT  SPARE_CNT         APPVOL_CNT
DMNAME         DEVICE       TYPE    PRIVLEN  PUBLEN   STATE
RV NAME        RLINK_CNT    KSTATE  STATE    PRIMARY  DATAVOLS  SRL
RLNAME        RVG          KSTATE   STATE    REM_HOSTREM_DG    REM_RLNK
CO NAME        CACHEVOL     KSTATE   STATE
VTNAME         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/]OFFAM/NM    MODE
SC NAME        PLEX         CACHE    DISKOFFS LENGTH  [COL/]OFF DEVICE   MODE
DC NAME        PARENTVOL    LOGVOL
SP NAME        SNAPVOL      DCO

dg flash_dg    default      default  19000    1182420217.51.punv240-d7g

dmflash_dg01   Disk_11      auto    2048     8292096  -
dm flash_dg02  Disk_12      auto     2048    8292096  -
dm flash_dg03  Disk_13      auto     2048     10404096-
dm flash_dg04   Disk_14      auto    2048     10404096 -
dm flash_dg05  Disk_16      auto     2048     10404096-
dm flash_dg06   Disk_17      auto    2048    8292096  -

v  f_vol        -            ENABLED  ACTIVE  16777216 SELECT    -        fsgen
plf_vol-01    f_vol        ENABLED  ACTIVE   16777216CONCAT    -        RW
sd flash_dg01-01f_vol-01    flash_dg010      6373120  0        Disk_11  ENA
sd flash_dg03-01 f_vol-01    flash_dg030      10404096 6373120   Disk_13  ENA
plf_vol-02    f_vol        ENABLED  ACTIVE   16777216CONCAT    -        RW
sd flash_dg02-01f_vol-02    flash_dg020      6373120  0        Disk_12  ENA
sd flash_dg04-01 f_vol-02    flash_dg040      10404096 6373120   Disk_14  ENA
dcf_vol_dco    f_vol        f_vol_dcl  
v  f_vol_dcl    -            ENABLED  ACTIVE  1696     SELECT    -        gen
plf_vol_dcl-01 f_vol_dcl    ENABLED  ACTIVE  1696     CONCAT    -        RW
sdflash_dg01-02 f_vol_dcl-01 flash_dg01 6373120 1696  0         Disk_11  ENA
pl f_vol_dcl-02f_vol_dcl    ENABLED  ACTIVE   1696    CONCAT    -        RW
sd flash_dg02-02f_vol_dcl-02 flash_dg02 6373120 1696   0        Disk_12  ENA

v  f_vol_snap  -            DISABLED ACTIVE   16777216SELECT    -        fsgen
pl f_vol_snap-01f_vol_snap  DISABLED ACTIVE   16777216CONCAT    -        RW
sd flash_dg05-01f_vol_snap-01 flash_dg05 0    10404096 0        Disk_16  ENA
sd flash_dg06-01 f_vol_snap-01 flash_dg060    6373120  10404096  Disk_17  ENA
dcf_vol_snap_dco f_vol_snap f_vol_snap_dcl
v  f_vol_snap_dcl-          DISABLED ACTIVE   1696    SELECT    -        gen
pl f_vol_snap_dcl-01f_vol_snap_dcl DISABLED ACTIVE 1696 CONCAT  -        RW
sd flash_dg06-02 f_vol_snap_dcl-01 flash_dg066373120 1696 0      Disk_17  ENA


==>> We start all volumes to get them in "ENABLED ACTIVE" state
sh-2.05# vxvol -gflash_dg start f_vol_snap

sh-2.05# vxprint -htrg flash_dg
DGNAME         NCONFIG      NLOG    MINORS   GROUP-ID
ST NAME        STATE        DM_CNT  SPARE_CNT         APPVOL_CNT
DMNAME         DEVICE       TYPE    PRIVLEN  PUBLEN   STATE
RV NAME        RLINK_CNT    KSTATE  STATE    PRIMARY  DATAVOLS  SRL
RLNAME        RVG          KSTATE   STATE    REM_HOSTREM_DG    REM_RLNK
CO NAME        CACHEVOL     KSTATE   STATE
VTNAME         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/]OFFAM/NM    MODE
SC NAME        PLEX         CACHE    DISKOFFS LENGTH  [COL/]OFF DEVICE   MODE
DC NAME        PARENTVOL    LOGVOL
SP NAME        SNAPVOL      DCO

dg flash_dg    default      default  19000    1182420217.51.punv240-d7g

dmflash_dg01   Disk_11      auto    2048     8292096  -
dm flash_dg02  Disk_12      auto     2048    8292096  -
dm flash_dg03  Disk_13      auto     2048     10404096-
dm flash_dg04   Disk_14      auto    2048     10404096 -
dm flash_dg05  Disk_16      auto     2048     10404096-
dm flash_dg06   Disk_17      auto    2048    8292096  -

v  f_vol        -            ENABLED  ACTIVE  16777216 SELECT    -        fsgen
plf_vol-01    f_vol        ENABLED  ACTIVE   16777216CONCAT    -        RW
sd flash_dg01-01f_vol-01    flash_dg010      6373120  0        Disk_11  ENA
sd flash_dg03-01 f_vol-01    flash_dg030      10404096 6373120   Disk_13  ENA
plf_vol-02    f_vol        ENABLED  ACTIVE   16777216CONCAT    -        RW
sd flash_dg02-01f_vol-02    flash_dg020      6373120  0        Disk_12  ENA
sd flash_dg04-01 f_vol-02    flash_dg040      10404096 6373120   Disk_14  ENA
dcf_vol_dco    f_vol        f_vol_dcl  
v  f_vol_dcl    -            ENABLED  ACTIVE  1696     SELECT    -        gen
plf_vol_dcl-01 f_vol_dcl    ENABLED  ACTIVE  1696     CONCAT    -        RW
sdflash_dg01-02 f_vol_dcl-01 flash_dg01 6373120 1696  0         Disk_11  ENA
pl f_vol_dcl-02f_vol_dcl    ENABLED  ACTIVE   1696    CONCAT    -        RW
sd flash_dg02-02f_vol_dcl-02 flash_dg02 6373120 1696   0        Disk_12  ENA

v  f_vol_snap  -            ENABLED  ACTIVE   16777216SELECT    -        fsgen
pl f_vol_snap-01f_vol_snap  ENABLED  ACTIVE   16777216CONCAT    -        RW
sd flash_dg05-01f_vol_snap-01 flash_dg05 0    10404096 0        Disk_16  ENA
sd flash_dg06-01 f_vol_snap-01 flash_dg060    6373120  10404096  Disk_17  ENA
dcf_vol_snap_dco f_vol_snap f_vol_snap_dcl
v  f_vol_snap_dcl-          ENABLED  ACTIVE  1696     SELECT    -        gen
plf_vol_snap_dcl-01 f_vol_snap_dcl ENABLED ACTIVE 1696CONCAT    -        RW
sd flash_dg06-02f_vol_snap_dcl-01 flash_dg06 6373120 16960      Disk_17  ENA


==========================================================================================================
22.] We now have our Snapshot Volume back into the flash_dg diskgroup and we are back to the stage where we can just start making the snapshot fromstep(12)
==========================================================================================================
Sowe get our Instant Snapshot procedure completed

Now from here you may again start with Step (12)

bash-2.05# vxsnap -g flash_dg makesource=f_vol/snapvol=f_vol_snap

 
 

 

Issue/Introduction

How to create Instant Volume Snapshots in Veritas Volume Manager 4.0 onwards