Sie sind auf Seite 1von 2

Disk Groups in VXVM are in Disabled State.

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

vxdisk -o alldgs list


TYPE
DISK
auto:sliced
disk01
auto:sliced
disk02
auto:sliced
mydg02
auto:sliced
mydg01
auto:sliced
yogdg01

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#

fuser -cu /myvol1


fuser -cu /yogvol
fuser -ck /myvol1
fuser -ck /yogvol
umount /myvol1
umount /yogvol

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

yogesh-test# vxdg list


NAME
STATE

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

vxdisk -o alldgs list


TYPE
DISK
auto:sliced
disk01
auto:sliced
disk02
auto:sliced
mydg02
auto:sliced
mydg01
auto:sliced
yogdg01

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

yogesh-test# df -h /yogvol /myvol1


Filesystem
size used avail capacity Mounted on
/dev/vx/dsk/yogdg//yogvol
134G 975M
44G
3%
/yogvol
/dev/vx/dsk/mydg//myvol1
124G
83G
41G
68%
/myvol1
Note: Some times you may encounter problem during mounts, at that time kindly pr
oceed with the fcsk to clean the bad blocks in the FS and then try to mount the
FS again.

Das könnte Ihnen auch gefallen