Beruflich Dokumente
Kultur Dokumente
February 3, 2012
By Yogesh Raheja
A common problem which sometimes we use to see in vxvm is DGs in disabled state. I
n this post I will try to provide a solution to this problem.
1.) Check out the outputs of df, vxdisk and vxdg to identify the state of DGs and
filesystems.
yogesh-test# df -h
Filesystem
size used avail capacity Mounted on
/dev/md/dsk/d10
7.7G 3.9G 3.7G
52%
/
swap
14G 120K
14G
1%
/var/run
dmpfs
7G
0K 7G
0%
/dev/vx/dmp
dmpfs
7G
0K 7G
0%
/dev/vx/rdmp
df: cannot statvfs /myvol1: I/O error
df: cannot statvfs /yogvol: I/O error
yogesh-test#
DEVICE
c1t0d0s2
c1t1d0s2
c3t1d0s2
c3t1d1s2
c3t1d2s2
yogesh-test#
NAME
rootdg
mydg
yogdg
vxdg list
STATE
disabled
enabled
disabled
GROUP
rootdg
rootdg
mydg
mydg
yogdg
STATUS
online
online
online dgdisabled
online dgdisabled
online dgdisabled
ID
1090964640.15.yogesh-test
1090904042.16.yogesh-test
1197441805.17.yogesh-test
Note: DGs are showing in disabled state, but still the volumes are still mounted.
We need to umount the filesystems which are in staevfs state. Also you can check
the volume state by vxinfo -pg <DG>. I missed out to take the output of this co
mmand to present here. :-(
yogesh-test#
yogesh-test#
yogesh-test#
yogesh-test#
yogesh-test#
yogesh-test#
OR
yogesh-test# umount -f /myvol1
yogesh-test# umount -f /yogvol
2.) Now to get rid of the DGs from disabled state, we need to deport and import th
e DGs as shown below:
yogesh-test#
yogesh-test#
yogesh-test#
yogesh-test#
vxdg
vxdg
vxdg
vxdg
deport
deport
import
import
yogdg
mydg
yogdg
mydg
ID
rootdg
mydg
yogdg
enabled
enabled
enabled
1090964640.15.yogesh-test
1090904042.16.yogesh-test
1197441805.17.yogesh-test
yogesh-test#
DEVICE
c1t0d0s2
c1t1d0s2
c3t1d0s2
c3t1d1s2
c3t1d2s2
GROUP
rootdg
rootdg
mydg
mydg
yogdg
STATUS
online
online
online
online
online
Note: Sometime we have to use force option for importing & deporting DGs i.e vxdg
-f import <dg> & vxdg -f deport <dg>.
3.) Next step is to proceed with the volumes start and there mount using vxvol &
mount commands.
yogesh-test#
yogesh-test#
yogesh-test#
yogesh-test#
vxvol
vxvol
mount
mount
-g yogdg startall
-g mydg startall
/yogvol
/myvol1