login as: rootroot@10.25.3.11's password: ******
Last login: Tue Jan 27 01:14:04 2015
Check the disks availability and corresponding DG name:-
=======================================================
[root@server1 ~]# vxdisk -o alldgs list
DEVICE TYPE DISK GROUP STATUS
emc0_dd1 auto:cdsdisk dga01 dga online
emc0_dd2 auto:cdsdisk dga02 dga online
emc0_dd3 auto:cdsdisk dga03 dga online
emc0_dd4 auto:none - - online invalid
emc0_dd5 auto:none - - online invalid
emc0_dd6 auto:none - - online invalid
emc0_dd7 auto:none - - online invalid
emc0_dd8 auto:none - - online invalid
emc0_dd9 auto:none - - online invalid
emc0_d10 auto:none - - online invalid
emc0_d11 auto:none - - online invalid
emc0_d12 auto:none - - online invalid
sda auto:none - - online invalid
sdb auto:none - - online invalid
[root@server1 ~]#
Check the details of DG :- // Currently no volume exists.
========================
[root@server1 ~]# vxprint -g dga
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
dg dga dga - - - - - -
dm dga01 emc0_dd1 - 4120320 - - - -
dm dga02 emc0_dd2 - 4120320 - - - -
dm dga03 emc0_dd3 - 4120320 - - - -
[root@server1 ~]# vxprint -g dga -htu h
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_R LNK
CO NAME CACHEVOL KSTATE STATE
VT NAME RVG KSTATE STATE NVOLUME
V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFP LEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/ WID MODE
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVIC E MODE
SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE
SC NAME PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVIC E MODE
DC NAME PARENTVOL LOGVOL
SP NAME SNAPVOL DCO
EX NAME ASSOC VC PERMS MODE STATE
SR NAME KSTATE
dg dga default default 0 1422359166.56.sym1
dm dga01 emc0_dd1 auto 32.00m 1.96g -
dm dga02 emc0_dd2 auto 32.00m 1.96g -
dm dga03 emc0_dd3 auto 32.00m 1.96g -
[root@server1 ~]#
[root@server1 ~]#
Create a concatenated volume:-
============================
[root@server1 ~]#
[root@server1 ~]# vxassist -g dga make v1 983m
[root@server1 ~]#
[root@server1 ~]#
[root@server1 ~]# vxprint -g dga -htu h
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 dga default default 0 1422359166.56.sym1
dm dga01 emc0_dd1 auto 32.00m 1.96g -
dm dga02 emc0_dd2 auto 32.00m 1.96g -
dm dga03 emc0_dd3 auto 32.00m 1.96g -
v v1 - ENABLED ACTIVE 983.00m SELECT - fsgen
pl v1-01 v1 ENABLED ACTIVE 983.00m CONCAT - RW
sd dga01-01 v1-01 dga01 0.00 983.00m 0.00 emc0_dd1 ENA
Create a mirrored volume:-
=========================
[root@server1 ~]# vxassist -g dga make v2 1000m layout=mirror
[root@server1 ~]#
[root@server1 ~]# vxprint -g dga -htu h
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 dga default default 0 1422359166.56.sym1
dm dga01 emc0_dd1 auto 32.00m 1.96g -
dm dga02 emc0_dd2 auto 32.00m 1.96g -
dm dga03 emc0_dd3 auto 32.00m 1.96g -
v v1 - ENABLED ACTIVE 983.00m SELECT - fsgen
pl v1-01 v1 ENABLED ACTIVE 983.00m CONCAT - RW
sd dga01-01 v1-01 dga01 0.00 983.00m 0.00 emc0_dd1 ENA
v v2 - ENABLED ACTIVE 1000.00m SELECT - fsgen
pl v2-01 v2 ENABLED ACTIVE 1000.00m CONCAT - RW
sd dga02-01 v2-01 dga02 0.00 1000.00m 0.00 emc0_dd2 ENA
pl v2-02 v2 ENABLED ACTIVE 1000.00m CONCAT - RW
sd dga03-01 v2-02 dga03 0.00 1000.00m 0.00 emc0_dd3 ENA
[root@server1 ~]# vxprint -g dga -htu h v2
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 v2 - ENABLED ACTIVE 1000.00m SELECT - fsgen
pl v2-01 v2 ENABLED ACTIVE 1000.00m CONCAT - RW
sd dga02-01 v2-01 dga02 0.00 1000.00m 0.00 emc0_dd2 ENA
pl v2-02 v2 ENABLED ACTIVE 1000.00m CONCAT - RW
sd dga03-01 v2-02 dga03 0.00 1000.00m 0.00 emc0_dd3 ENA
[root@server1 ~]#
Check the free space in the DG:
==============================
[root@server1 ~]# vxdg free
GROUP DISK DEVICE TAG OFFSET LENGTH FLAGS
dga dga01 emc0_dd1 emc0_dd1 2013184 2107136 -
dga dga02 emc0_dd2 emc0_dd2 2048000 2072320 -
dga dga03 emc0_dd3 emc0_dd3 2048000 2072320 -
[root@server1 ~]#
[root@server1 ~]#
[root@server1 ~]#
[root@server1 ~]# vxprint -g dga -htu h
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 dga default default 0 1422359166.56.sym1
dm dga01 emc0_dd1 auto 32.00m 1.96g -
dm dga02 emc0_dd2 auto 32.00m 1.96g -
dm dga03 emc0_dd3 auto 32.00m 1.96g -
v v1 - ENABLED ACTIVE 983.00m SELECT - fsgen
pl v1-01 v1 ENABLED ACTIVE 983.00m CONCAT - RW
sd dga01-01 v1-01 dga01 0.00 983.00m 0.00 emc0_dd1 ENA
v v2 - ENABLED ACTIVE 1000.00m SELECT - fsgen
pl v2-01 v2 ENABLED ACTIVE 1000.00m CONCAT - RW
sd dga02-01 v2-01 dga02 0.00 1000.00m 0.00 emc0_dd2 ENA
pl v2-02 v2 ENABLED ACTIVE 1000.00m CONCAT - RW
sd dga03-01 v2-02 dga03 0.00 1000.00m 0.00 emc0_dd3 ENA
[root@server1 ~]#
[root@server1 ~]#
Create a striped volume:-
=======================
[root@server1 ~]# vxassist -g dga make v3 500m layout=stripe
[root@server1 ~]#
[root@server1 ~]#
[root@server1 ~]# vxprint -g dga -htu h v3
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 v3 - ENABLED ACTIVE 500.00m SELECT v3-01 fsgen
pl v3-01 v3 ENABLED ACTIVE 500.00m STRIPE 2/64.00k RW
sd dga01-02 v3-01 dga01 983.00m 250.00m 0/0.00 emc0_dd1 ENA
sd dga02-02 v3-01 dga02 1000.00m 250.00m 1/0.00 emc0_dd2 ENA
[root@server1 ~]#
[root@server1 ~]#
[root@server1 ~]#
[root@server1 ~]#
[root@server1 ~]#
Create a RAID-5 volume:-
=======================
[root@server1 ~]# vxassist -g dga make v4 800m layout=raid5,nolog
[root@server1 ~]#
[root@server1 ~]#
[root@server1 ~]# vxprint -g dga -htu h v4
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 v4 - ENABLED ACTIVE 800.00m RAID - raid5
pl v4-01 v4 ENABLED ACTIVE 800.00m RAID 3/16.00k RW
sd dga03-02 v4-01 dga03 1000.00m 400.00m 0/0.00 emc0_dd3 ENA
sd dga01-03 v4-01 dga01 1.20g 400.00m 1/0.00 emc0_dd1 ENA
sd dga02-03 v4-01 dga02 1.22g 400.00m 2/0.00 emc0_dd2 ENA
[root@server1 ~]#
[root@server1 ~]#
[root@server1 ~]#
[root@server1 ~]#
[root@server1 ~]#
[root@server1 ~]#
[root@server1 ~]# vxprint -g dga -htu h
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 dga default default 0 1422359166.56.sym1
dm dga01 emc0_dd1 auto 32.00m 1.96g -
dm dga02 emc0_dd2 auto 32.00m 1.96g -
dm dga03 emc0_dd3 auto 32.00m 1.96g -
v v1 - ENABLED ACTIVE 983.00m SELECT - fsgen
pl v1-01 v1 ENABLED ACTIVE 983.00m CONCAT - RW
sd dga01-01 v1-01 dga01 0.00 983.00m 0.00 emc0_dd1 ENA
v v2 - ENABLED ACTIVE 1000.00m SELECT - fsgen
pl v2-01 v2 ENABLED ACTIVE 1000.00m CONCAT - RW
sd dga02-01 v2-01 dga02 0.00 1000.00m 0.00 emc0_dd2 ENA
pl v2-02 v2 ENABLED ACTIVE 1000.00m CONCAT - RW
sd dga03-01 v2-02 dga03 0.00 1000.00m 0.00 emc0_dd3 ENA
v v3 - ENABLED ACTIVE 500.00m SELECT v3-01 fsgen
pl v3-01 v3 ENABLED ACTIVE 500.00m STRIPE 2/64.00k RW
sd dga01-02 v3-01 dga01 983.00m 250.00m 0/0.00 emc0_dd1 ENA
sd dga02-02 v3-01 dga02 1000.00m 250.00m 1/0.00 emc0_dd2 ENA
v v4 - ENABLED ACTIVE 800.00m RAID - raid5
pl v4-01 v4 ENABLED ACTIVE 800.00m RAID 3/16.00k RW
sd dga03-02 v4-01 dga03 1000.00m 400.00m 0/0.00 emc0_dd3 ENA
sd dga01-03 v4-01 dga01 1.20g 400.00m 1/0.00 emc0_dd1 ENA
sd dga02-03 v4-01 dga02 1.22g 400.00m 2/0.00 emc0_dd2 ENA
[root@server1 ~]#
[root@server1 ~]#
Create a stripe volume by specifying disks:
==========================================
Check current status of disks and DG:
------------------------------------
[root@server1 /]# vxdisk -o alldgs list
DEVICE TYPE DISK GROUP STATUS
emc0_dd1 auto:cdsdisk appdg01 appdg online
emc0_dd2 auto:cdsdisk appdg02 appdg online
emc0_dd3 auto:cdsdisk appdg03 appdg online
emc0_dd4 auto:cdsdisk appdg04 appdg online
emc0_dd5 auto:none - - online invalid
emc0_dd6 auto:none - - online invalid
emc0_dd7 auto:none - - online invalid
emc0_dd8 auto:none - - online invalid
emc0_dd9 auto:none - - online invalid
emc0_d10 auto:none - - online invalid
emc0_d11 auto:none - - online invalid
emc0_d12 auto:none - - online invalid
sda auto:none - - online invalid
sdb auto:none - - online invalid
[root@server1 /]# vxprint -g appdg -htu h
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 appdg default default 6000 1422446668.32.sym1
dm appdg01 emc0_dd1 auto 32.00m 1.96g -
dm appdg02 emc0_dd2 auto 32.00m 1.96g -
dm appdg03 emc0_dd3 auto 32.00m 1.96g -
dm appdg04 emc0_dd4 auto 32.00m 1.96g -
[root@server1 /]#
[root@server1 /]#
[root@server1 /]# vxassist -g appdg make stripevol 50m layout=stripe appdg01 appdg02
[root@server1 /]#
[root@server1 /]#
[root@server1 /]#
[root@server1 /]#
[root@server1 /]# vxprint -g appdg -htu h
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 appdg default default 6000 1422446668.32.sym1
dm appdg01 emc0_dd1 auto 32.00m 1.96g -
dm appdg02 emc0_dd2 auto 32.00m 1.96g -
dm appdg03 emc0_dd3 auto 32.00m 1.96g -
dm appdg04 emc0_dd4 auto 32.00m 1.96g -
v stripevol - ENABLED ACTIVE 50.00m SELECT stripevol-01 fsgen
pl stripevol-01 stripevol ENABLED ACTIVE 50.00m STRIPE 2/64.00k RW
sd appdg01-01 stripevol-01 appdg01 0.00 25.00m 0/0.00 emc0_dd1 ENA
sd appdg02-01 stripevol-01 appdg02 0.00 25.00m 1/0.00 emc0_dd2 ENA
[root@server1 /]#
[root@server1 /]#
[root@server1 /]#
[root@server1 /]#
[root@server1 /]#
[root@server1 /]# vxprint -g appdg -htu h stripevol
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 stripevol - ENABLED ACTIVE 50.00m SELECT stripevol-01 fsgen
pl stripevol-01 stripevol ENABLED ACTIVE 50.00m STRIPE 2/64.00k RW
sd appdg01-01 stripevol-01 appdg01 0.00 25.00m 0/0.00 emc0_dd1 ENA
sd appdg02-01 stripevol-01 appdg02 0.00 25.00m 1/0.00 emc0_dd2 ENA
[root@server1 /]#
Create a mirror-stripe volume:
==============================
[root@server1 /]# vxassist -g appdg make strmirvol 20m layout=mirror-stripe ncol=2 stripeunit=256k
[root@server1 /]#
[root@server1 /]#
[root@server1 /]# vxprint -g appdg -htu h
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 appdg default default 6000 1422446668.32.sym1
dm appdg01 emc0_dd1 auto 32.00m 1.96g -
dm appdg02 emc0_dd2 auto 32.00m 1.96g -
dm appdg03 emc0_dd3 auto 32.00m 1.96g -
dm appdg04 emc0_dd4 auto 32.00m 1.96g -
v stripevol - ENABLED ACTIVE 50.00m SELECT stripevol-01 fsgen
pl stripevol-01 stripevol ENABLED ACTIVE 50.00m STRIPE 2/64.00k RW
sd appdg01-01 stripevol-01 appdg01 0.00 25.00m 0/0.00 emc0_dd1 ENA
sd appdg02-01 stripevol-01 appdg02 0.00 25.00m 1/0.00 emc0_dd2 ENA
v strmirvol - ENABLED ACTIVE 20.00m SELECT - fsgen
pl strmirvol-01 strmirvol ENABLED ACTIVE 20.00m STRIPE 2/256.00k RW
sd appdg03-01 strmirvol-01 appdg03 0.00 10.00m 0/0.00 emc0_dd3 ENA
sd appdg04-01 strmirvol-01 appdg04 0.00 10.00m 1/0.00 emc0_dd4 ENA
pl strmirvol-02 strmirvol ENABLED ACTIVE 20.00m STRIPE 2/256.00k RW
sd appdg01-02 strmirvol-02 appdg01 25.00m 10.00m 0/0.00 emc0_dd1 ENA
sd appdg02-02 strmirvol-02 appdg02 25.00m 10.00m 1/0.00 emc0_dd2 ENA
[root@server1 /]#
[root@server1 /]#
[root@server1 /]#
[root@server1 /]# vxassist -g appdg make 2colstrvol 20m layout=mirror-stripe ncol=2 stripeunit=128k \!appdg03
VxVM vxassist ERROR V-5-1-15315 Cannot allocate space for 40960 block volume: Not enough HDD devices that meet specification.
[root@server1 /]#
[root@server1 /]#
[root@server1 /]#
[root@server1 /]# // This operation should fail because there are not enough disks available in the
[root@server1 /]# // disk group. A two-column striped mirror requires at least four disks.
[root@server1 /]#
[root@server1 /]#
[root@server1 /]#
[root@server1 /]# vxassist -g appdg make 3colstrvol 20m layout=mirror-stripe ncol=3 appdg01 appdg02 appdg03
VxVM vxassist ERROR V-5-1-15315 Cannot allocate space for 40960 block volume: Not enough HDD devices that meet specification.
[root@server1 /]#
[root@server1 /]#
[root@server1 /]#
[root@server1 /]# // Again, this operation should fail because there are not enough disks allocated
[root@server1 /]# // on the command line. At least six disks are required for this type of volume
[root@server1 /]# // configuration.
[root@server1 /]#
------------------------------------------------------------------------------------------
Create a max size stripe volume:
===============================
[root@server1 /]#
[root@server1 /]#
[root@server1 /]# vxassist -g appdg maxsize layout=stripe ncol=3 appdg01 appdg02 appdg03
Maximum volume size: 12144640 (5930Mb)
[root@server1 /]#
[root@server1 /]#
[root@server1 /]# vxprint -g appdg -htu h
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 appdg default default 6000 1422446668.32.sym1
dm appdg01 emc0_dd1 auto 32.00m 1.96g -
dm appdg02 emc0_dd2 auto 32.00m 1.96g -
dm appdg03 emc0_dd3 auto 32.00m 1.96g -
dm appdg04 emc0_dd4 auto 32.00m 1.96g -
v stripevol - ENABLED ACTIVE 50.00m SELECT stripevol-01 fsgen
pl stripevol-01 stripevol ENABLED ACTIVE 50.00m STRIPE 2/64.00k RW
sd appdg01-01 stripevol-01 appdg01 0.00 25.00m 0/0.00 emc0_dd1 ENA
sd appdg02-01 stripevol-01 appdg02 0.00 25.00m 1/0.00 emc0_dd2 ENA
v strmirvol - ENABLED ACTIVE 20.00m SELECT - fsgen
pl strmirvol-01 strmirvol ENABLED ACTIVE 20.00m STRIPE 2/256.00k RW
sd appdg03-01 strmirvol-01 appdg03 0.00 10.00m 0/0.00 emc0_dd3 ENA
sd appdg04-01 strmirvol-01 appdg04 0.00 10.00m 1/0.00 emc0_dd4 ENA
pl strmirvol-02 strmirvol ENABLED ACTIVE 20.00m STRIPE 2/256.00k RW
sd appdg01-02 strmirvol-02 appdg01 25.00m 10.00m 0/0.00 emc0_dd1 ENA
sd appdg02-02 strmirvol-02 appdg02 25.00m 10.00m 1/0.00 emc0_dd2 ENA
[root@server1 /]#
[root@server1 /]#
[root@server1 /]#
[root@server1 /]#
[root@server1 /]# vxassist -g appdg maxsize layout=stripe ncol=3 appdg01 appdg02 appdg03
Maximum volume size: 12144640 (5930Mb)
[root@server1 /]#
[root@server1 /]#
[root@server1 /]# vxassist -g appdg make 3colstrvol maxsize layout=stripe ncol=3 appdg01 appdg02 appdg03
[root@server1 /]#
[root@server1 /]#
[root@server1 /]#
[root@server1 /]#
[root@server1 /]# vxprint -g appdg -htu h
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 appdg default default 6000 1422446668.32.sym1
dm appdg01 emc0_dd1 auto 32.00m 1.96g -
dm appdg02 emc0_dd2 auto 32.00m 1.96g -
dm appdg03 emc0_dd3 auto 32.00m 1.96g -
dm appdg04 emc0_dd4 auto 32.00m 1.96g -
v stripevol - ENABLED ACTIVE 50.00m SELECT stripevol-01 fsgen
pl stripevol-01 stripevol ENABLED ACTIVE 50.00m STRIPE 2/64.00k RW
sd appdg01-01 stripevol-01 appdg01 0.00 25.00m 0/0.00 emc0_dd1 ENA
sd appdg02-01 stripevol-01 appdg02 0.00 25.00m 1/0.00 emc0_dd2 ENA
v strmirvol - ENABLED ACTIVE 20.00m SELECT - fsgen
pl strmirvol-01 strmirvol ENABLED ACTIVE 20.00m STRIPE 2/256.00k RW
sd appdg03-01 strmirvol-01 appdg03 0.00 10.00m 0/0.00 emc0_dd3 ENA
sd appdg04-01 strmirvol-01 appdg04 0.00 10.00m 1/0.00 emc0_dd4 ENA
pl strmirvol-02 strmirvol ENABLED ACTIVE 20.00m STRIPE 2/256.00k RW
sd appdg01-02 strmirvol-02 appdg01 25.00m 10.00m 0/0.00 emc0_dd1 ENA
sd appdg02-02 strmirvol-02 appdg02 25.00m 10.00m 1/0.00 emc0_dd2 ENA
v 3colstrvol - ENABLED ACTIVE 5.79g SELECT 3colstrvol-01 fsgen
pl 3colstrvol-01 3colstrvol ENABLED ACTIVE 5.79g STRIPE 3/64.00k RW
sd appdg03-02 3colstrvol-01 appdg03 10.00m 1.93g 0/0.00 emc0_dd3 ENA
sd appdg01-03 3colstrvol-01 appdg01 35.00m 1.93g 1/0.00 emc0_dd1 ENA
sd appdg02-03 3colstrvol-01 appdg02 35.00m 1.93g 2/0.00 emc0_dd2 ENA
[root@server1 /]#
[root@server1 /]#
[root@server1 /]#
----------------------------------------------------------------------------------
[root@server1 /]#
[root@server1 /]# vxassist -g appdg remove volume stripevol
[root@server1 /]# vxassist -g appdg remove volume strmirvol
[root@server1 /]# vxassist -g appdg remove volume 3colstrvol
[root@server1 /]#
[root@server1 /]#
[root@server1 /]# vxprint -g appdg -htu h
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 appdg default default 6000 1422446668.32.sym1
dm appdg01 emc0_dd1 auto 32.00m 1.96g -
dm appdg02 emc0_dd2 auto 32.00m 1.96g -
dm appdg03 emc0_dd3 auto 32.00m 1.96g -
dm appdg04 emc0_dd4 auto 32.00m 1.96g -
[root@server1 /]#
[root@server1 /]#
[root@server1 /]#
[root@server1 /]# vxdg destroy appdg
[root@server1 /]#
[root@server1 /]#
[root@server1 /]#
[root@server1 /]#
Create a stripe-mirror volume:
==============================
[root@server1 /]#
[root@server1 /]# vxdisk -o alldgs list
DEVICE TYPE DISK GROUP STATUS
emc0_dd1 auto:cdsdisk - - online
emc0_dd2 auto:cdsdisk - - online
emc0_dd3 auto:cdsdisk - - online
emc0_dd4 auto:cdsdisk - - online
emc0_dd5 auto:none - - online invalid
emc0_dd6 auto:none - - online invalid
emc0_dd7 auto:none - - online invalid
emc0_dd8 auto:none - - online invalid
emc0_dd9 auto:none - - online invalid
emc0_d10 auto:none - - online invalid
emc0_d11 auto:none - - online invalid
emc0_d12 auto:none - - online invalid
sda auto:none - - online invalid
sdb auto:none - - online invalid
[root@server1 /]#
[root@server1 /]#
[root@server1 /]#
[root@server1 /]#
[root@server1 /]#
[root@server1 /]#
[root@server1 /]# vxdg init appdg appdg01=emc0_dd1 appdg02=emc0_dd2 appdg03=emc0_dd3 appdg04=emc0_dd4
[root@server1 /]#
[root@server1 /]#
[root@server1 /]# vxdisk -o alldgs list
DEVICE TYPE DISK GROUP STATUS
emc0_dd1 auto:cdsdisk appdg01 appdg online
emc0_dd2 auto:cdsdisk appdg02 appdg online
emc0_dd3 auto:cdsdisk appdg03 appdg online
emc0_dd4 auto:cdsdisk appdg04 appdg online
emc0_dd5 auto:none - - online invalid
emc0_dd6 auto:none - - online invalid
emc0_dd7 auto:none - - online invalid
emc0_dd8 auto:none - - online invalid
emc0_dd9 auto:none - - online invalid
emc0_d10 auto:none - - online invalid
emc0_d11 auto:none - - online invalid
emc0_d12 auto:none - - online invalid
sda auto:none - - online invalid
sdb auto:none - - online invalid
[root@server1 /]#
[root@server1 /]#
[root@server1 /]# vxassist -g appdg make strmirvol 100m layout=stripe-mirror nmirror=2 ncol=2
[root@server1 /]#
[root@server1 /]#
[root@server1 /]# vxprint -g appdg -htu h
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 appdg default default 11000 1422448584.34.sym1
dm appdg01 emc0_dd1 auto 32.00m 1.96g -
dm appdg02 emc0_dd2 auto 32.00m 1.96g -
dm appdg03 emc0_dd3 auto 32.00m 1.96g -
dm appdg04 emc0_dd4 auto 32.00m 1.96g -
v strmirvol - ENABLED ACTIVE 100.00m SELECT strmirvol-03 fsgen
pl strmirvol-03 strmirvol ENABLED ACTIVE 100.00m STRIPE 2/64.00k RW
sv strmirvol-S01 strmirvol-03 strmirvol-L01 1 50.00m 0/0.00 2/2 ENA
sv strmirvol-S02 strmirvol-03 strmirvol-L02 1 50.00m 1/0.00 2/2 ENA
v strmirvol-L01 - ENABLED ACTIVE 50.00m SELECT - fsgen
pl strmirvol-P01 strmirvol-L01 ENABLED ACTIVE 50.00m CONCAT - RW
sd appdg01-02 strmirvol-P01 appdg01 0.00 50.00m 0.00 emc0_dd1 ENA
pl strmirvol-P02 strmirvol-L01 ENABLED ACTIVE 50.00m CONCAT - RW
sd appdg03-02 strmirvol-P02 appdg03 0.00 50.00m 0.00 emc0_dd3 ENA
v strmirvol-L02 - ENABLED ACTIVE 50.00m SELECT - fsgen
pl strmirvol-P03 strmirvol-L02 ENABLED ACTIVE 50.00m CONCAT - RW
sd appdg02-02 strmirvol-P03 appdg02 0.00 50.00m 0.00 emc0_dd2 ENA
pl strmirvol-P04 strmirvol-L02 ENABLED ACTIVE 50.00m CONCAT - RW
sd appdg04-02 strmirvol-P04 appdg04 0.00 50.00m 0.00 emc0_dd4 ENA
[root@server1 /]#
[root@server1 /]#
[root@server1 /]#
[root@server1 /]# vxassist -g appdg remove volume strmirvol
[root@server1 /]#
[root@server1 /]# vxprint -g appdg -htu h
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 appdg default default 11000 1422448584.34.sym1
dm appdg01 emc0_dd1 auto 32.00m 1.96g -
dm appdg02 emc0_dd2 auto 32.00m 1.96g -
dm appdg03 emc0_dd3 auto 32.00m 1.96g -
dm appdg04 emc0_dd4 auto 32.00m 1.96g -
[root@server1 /]#
[root@server1 /]#
[root@server1 /]#
[root@server1 /]# vxassist -g appdg make strmirvol 100m layout=stripe-mirror nmirror=2 ncol=2
[root@server1 /]#
[root@server1 /]#
[root@server1 /]# vxprint -g appdg -htu h
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 appdg default default 11000 1422448584.34.sym1
dm appdg01 emc0_dd1 auto 32.00m 1.96g -
dm appdg02 emc0_dd2 auto 32.00m 1.96g -
dm appdg03 emc0_dd3 auto 32.00m 1.96g -
dm appdg04 emc0_dd4 auto 32.00m 1.96g -
v strmirvol - ENABLED ACTIVE 100.00m SELECT strmirvol-03 fsgen
pl strmirvol-03 strmirvol ENABLED ACTIVE 100.00m STRIPE 2/64.00k RW
sv strmirvol-S01 strmirvol-03 strmirvol-L01 1 50.00m 0/0.00 2/2 ENA
sv strmirvol-S02 strmirvol-03 strmirvol-L02 1 50.00m 1/0.00 2/2 ENA
v strmirvol-L01 - ENABLED ACTIVE 50.00m SELECT - fsgen
pl strmirvol-P01 strmirvol-L01 ENABLED ACTIVE 50.00m CONCAT - RW
sd appdg01-02 strmirvol-P01 appdg01 0.00 50.00m 0.00 emc0_dd1 ENA
pl strmirvol-P02 strmirvol-L01 ENABLED ACTIVE 50.00m CONCAT - RW
sd appdg03-02 strmirvol-P02 appdg03 0.00 50.00m 0.00 emc0_dd3 ENA
v strmirvol-L02 - ENABLED ACTIVE 50.00m SELECT - fsgen
pl strmirvol-P03 strmirvol-L02 ENABLED ACTIVE 50.00m CONCAT - RW
sd appdg02-02 strmirvol-P03 appdg02 0.00 50.00m 0.00 emc0_dd2 ENA
pl strmirvol-P04 strmirvol-L02 ENABLED ACTIVE 50.00m CONCAT - RW
sd appdg04-02 strmirvol-P04 appdg04 0.00 50.00m 0.00 emc0_dd4 ENA
[root@server1 /]#
[root@server1 /]#
[root@server1 /]#
[root@server1 /]#
[root@server1 /]#
Create a concat-mirror volume:
=============================
[root@server1 /]# vxassist -g appdg make concatmirvol 3g layout=concat-mirror nmirror=2
[root@server1 /]#
[root@server1 /]#
[root@server1 /]#
[root@server1 /]#
[root@server1 /]# vxprint -g appdg -htu h
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 appdg default default 11000 1422448584.34.sym1
dm appdg01 emc0_dd1 auto 32.00m 1.96g -
dm appdg02 emc0_dd2 auto 32.00m 1.96g -
dm appdg03 emc0_dd3 auto 32.00m 1.96g -
dm appdg04 emc0_dd4 auto 32.00m 1.96g -
v concatmirvol - ENABLED ACTIVE 3.00g SELECT - fsgen
pl concatmirvol-03 concatmirvol ENABLED ACTIVE 3.00g CONCAT - RW
sv concatmirvol-S01 concatmirvol-03 concatmirvol-L01 1 1.91g 0.00 2/2 ENA
sv concatmirvol-S02 concatmirvol-03 concatmirvol-L02 1 1.08g 1.91g 2/2 ENA
v concatmirvol-L01 - ENABLED ACTIVE 1.91g SELECT - fsgen
pl concatmirvol-P01 concatmirvol-L01 ENABLED ACTIVE 1.91g CONCAT - RW
sd appdg01-03 concatmirvol-P01 appdg01 50.00m 1.91g 0.00 emc0_dd1 ENA
pl concatmirvol-P02 concatmirvol-L01 ENABLED ACTIVE 1.91g CONCAT - RW
sd appdg02-03 concatmirvol-P02 appdg02 50.00m 1.91g 0.00 emc0_dd2 ENA
v concatmirvol-L02 - ENABLED ACTIVE 1.08g SELECT - fsgen
pl concatmirvol-P03 concatmirvol-L02 ENABLED ACTIVE 1.08g CONCAT - RW
sd appdg03-03 concatmirvol-P03 appdg03 50.00m 1.08g 0.00 emc0_dd3 ENA
pl concatmirvol-P04 concatmirvol-L02 ENABLED ACTIVE 1.08g CONCAT - RW
sd appdg04-03 concatmirvol-P04 appdg04 50.00m 1.08g 0.00 emc0_dd4 ENA
v strmirvol - ENABLED ACTIVE 100.00m SELECT strmirvol-03 fsgen
pl strmirvol-03 strmirvol ENABLED ACTIVE 100.00m STRIPE 2/64.00k RW
sv strmirvol-S01 strmirvol-03 strmirvol-L01 1 50.00m 0/0.00 2/2 ENA
sv strmirvol-S02 strmirvol-03 strmirvol-L02 1 50.00m 1/0.00 2/2 ENA
v strmirvol-L01 - ENABLED ACTIVE 50.00m SELECT - fsgen
pl strmirvol-P01 strmirvol-L01 ENABLED ACTIVE 50.00m CONCAT - RW
sd appdg01-02 strmirvol-P01 appdg01 0.00 50.00m 0.00 emc0_dd1 ENA
pl strmirvol-P02 strmirvol-L01 ENABLED ACTIVE 50.00m CONCAT - RW
sd appdg03-02 strmirvol-P02 appdg03 0.00 50.00m 0.00 emc0_dd3 ENA
v strmirvol-L02 - ENABLED ACTIVE 50.00m SELECT - fsgen
pl strmirvol-P03 strmirvol-L02 ENABLED ACTIVE 50.00m CONCAT - RW
sd appdg02-02 strmirvol-P03 appdg02 0.00 50.00m 0.00 emc0_dd2 ENA
pl strmirvol-P04 strmirvol-L02 ENABLED ACTIVE 50.00m CONCAT - RW
sd appdg04-02 strmirvol-P04 appdg04 0.00 50.00m 0.00 emc0_dd4 ENA
[root@server1 /]#
[root@server1 /]#
[root@server1 /]#
============================
Examples to remove a volume:
============================
Remove a volume (First Method):-
============================
Check the current volumes:
==========================
[root@server1 /]# vxprint -g appdg -htu h
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 appdg default default 6000 1422446668.32.sym1
dm appdg01 emc0_dd1 auto 32.00m 1.96g -
dm appdg02 emc0_dd2 auto 32.00m 1.96g -
dm appdg03 emc0_dd3 auto 32.00m 1.96g -
dm appdg04 emc0_dd4 auto 32.00m 1.96g -
v appvol - ENABLED ACTIVE 50.00m SELECT - fsgen
pl appvol-01 appvol ENABLED ACTIVE 50.00m CONCAT - RW
sd appdg01-01 appvol-01 appdg01 0.00 50.00m 0.00 emc0_dd1 ENA
[root@server1 /]#
[root@server1 /]#
[root@server1 /]#
[root@server1 /]# vxassist -g appdg remove volume appvol
[root@server1 /]#
[root@server1 /]#
DG details after volume removal:
===============================
[root@server1 /]# vxprint -g appdg -htu h
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 appdg default default 6000 1422446668.32.sym1
dm appdg01 emc0_dd1 auto 32.00m 1.96g -
dm appdg02 emc0_dd2 auto 32.00m 1.96g -
dm appdg03 emc0_dd3 auto 32.00m 1.96g -
dm appdg04 emc0_dd4 auto 32.00m 1.96g -
===============================
Remove a volume (Second Method):-
===============================
Check the current volumes:
==========================
[root@server1 ~]# vxdisk -o alldgs list
DEVICE TYPE DISK GROUP STATUS
emc0_dd1 auto:cdsdisk dga01 dga online
emc0_dd2 auto:cdsdisk dga02 dga online
emc0_dd3 auto:cdsdisk dga03 dga online
emc0_dd4 auto:none - - online invalid
emc0_dd5 auto:none - - online invalid
emc0_dd6 auto:none - - online invalid
emc0_dd7 auto:none - - online invalid
emc0_dd8 auto:none - - online invalid
emc0_dd9 auto:none - - online invalid
emc0_d10 auto:none - - online invalid
emc0_d11 auto:none - - online invalid
emc0_d12 auto:none - - online invalid
sda auto:none - - online invalid
sdb auto:none - - online invalid
[root@server1 ~]#
[root@server1 ~]#
[root@server1 ~]#
[root@server1 ~]#
[root@server1 ~]# vxprint -g dga -htu h
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 dga default default 0 1422359166.56.sym1
dm dga01 emc0_dd1 auto 32.00m 1.96g -
dm dga02 emc0_dd2 auto 32.00m 1.96g -
dm dga03 emc0_dd3 auto 32.00m 1.96g -
v v1 - ENABLED ACTIVE 983.00m SELECT - fsgen
pl v1-01 v1 ENABLED ACTIVE 983.00m CONCAT - RW
sd dga01-01 v1-01 dga01 0.00 983.00m 0.00 emc0_dd1 ENA
v v2 - ENABLED ACTIVE 1000.00m SELECT - fsgen
pl v2-01 v2 ENABLED ACTIVE 1000.00m CONCAT - RW
sd dga02-01 v2-01 dga02 0.00 1000.00m 0.00 emc0_dd2 ENA
pl v2-02 v2 ENABLED ACTIVE 1000.00m CONCAT - RW
sd dga03-01 v2-02 dga03 0.00 1000.00m 0.00 emc0_dd3 ENA
v v3 - ENABLED ACTIVE 500.00m SELECT v3-01 fsgen
pl v3-01 v3 ENABLED ACTIVE 500.00m STRIPE 2/64.00k RW
sd dga01-02 v3-01 dga01 983.00m 250.00m 0/0.00 emc0_dd1 ENA
sd dga02-02 v3-01 dga02 1000.00m 250.00m 1/0.00 emc0_dd2 ENA
v v4 - ENABLED ACTIVE 800.00m RAID - raid5
pl v4-01 v4 ENABLED ACTIVE 800.00m RAID 3/16.00k RW
sd dga03-02 v4-01 dga03 1000.00m 400.00m 0/0.00 emc0_dd3 ENA
sd dga01-03 v4-01 dga01 1.20g 400.00m 1/0.00 emc0_dd1 ENA
sd dga02-03 v4-01 dga02 1.22g 400.00m 2/0.00 emc0_dd2 ENA
[root@server1 ~]#
[root@server1 ~]#
[root@server1 ~]#
Remove Volumes:
===============
[root@server1 ~]# vxedit -g dga -rf rm v1
[root@server1 ~]# vxedit -g dga -rf rm v2
[root@server1 ~]# vxedit -g dga -rf rm v3
[root@server1 ~]# vxedit -g dga -rf rm v4
[root@server1 ~]#
Check the DG details (i.e. no volumes exist now):
================================================
[root@server1 ~]# vxprint -g dga -htu h
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 dga default default 0 1422359166.56.sym1
dm dga01 emc0_dd1 auto 32.00m 1.96g -
dm dga02 emc0_dd2 auto 32.00m 1.96g -
dm dga03 emc0_dd3 auto 32.00m 1.96g -
[root@server1 ~]#
[root@server1 ~]#
No comments:
Post a Comment