Disk Groups in VXVM are in Disabled State.

A common problem which sometimes we use to see in vxvm is DG’s in disabled state. In 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 DG’s 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# vxdisk -o alldgs list
DEVICE       TYPE            DISK         GROUP        STATUS
c1t0d0s2     auto:sliced     disk01       rootdg       online
c1t1d0s2     auto:sliced     disk02       rootdg       online
c3t1d0s2     auto:sliced     mydg02       mydg         online dgdisabled
c3t1d1s2     auto:sliced     mydg01       mydg         online dgdisabled
c3t1d2s2     auto:sliced     yogdg01      yogdg        online dgdisabled

yogesh-test# vxdg list
NAME         STATE           ID
rootdg       disabled        1090964640.15.yogesh-test
mydg         enabled         1090904042.16.yogesh-test
yogdg        disabled        1197441805.17.yogesh-test

Note: DG’s 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 command to present here. :-(

yogesh-test# fuser -cu /myvol1
yogesh-test# fuser -cu /yogvol
yogesh-test# fuser -ck /myvol1
yogesh-test# fuser -ck /yogvol
yogesh-test# umount /myvol1
yogesh-test# umount /yogvol

OR

yogesh-test# umount -f /myvol1
yogesh-test# umount -f /yogvol

2.) Now to get rid of the DG’s from disabled state, we need to deport and import the DG’s as shown below:

yogesh-test# vxdg deport yogdg
yogesh-test# vxdg deport mydg
yogesh-test# vxdg import yogdg
yogesh-test# vxdg import mydg

yogesh-test# vxdg list
NAME         STATE           ID
rootdg       enabled         1090964640.15.yogesh-test
mydg         enabled         1090904042.16.yogesh-test
yogdg        enabled         1197441805.17.yogesh-test

yogesh-test# vxdisk -o alldgs list
DEVICE       TYPE            DISK         GROUP        STATUS
c1t0d0s2     auto:sliced     disk01       rootdg       online
c1t1d0s2     auto:sliced     disk02       rootdg       online
c3t1d0s2     auto:sliced     mydg02       mydg         online
c3t1d1s2     auto:sliced     mydg01       mydg         online
c3t1d2s2     auto:sliced     yogdg01      yogdg        online
        

Note: Sometime we have to use force option for importing & deporting DG’s 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# vxvol -g yogdg startall
yogesh-test# vxvol -g mydg startall
yogesh-test# mount /yogvol
yogesh-test# mount /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 proceed with the fcsk to clean the bad blocks in the FS and then try to mount the FS again.
     

Yogesh Raheja

Yogesh working as a Consultant in Unix Engineering by profession. And he has multiple years experience in Solaris, Linux , AIX and Veritas Administration. He has been certified for SCSA9, SCSA10, SCNA10, VXVM, VCS, ITILv3. He is very much passionate about sharing his knowledge with others. Specialties: Expertize in Unix/Solaris Server, Linux (RHEL), AIX, Veritas Volume Manager, ZFS, Liveupgrades, Storage Migrations, Cluster deployment (VCS and HACMP) and administration and upgrade on Banking, Telecom, IT Infrastructure, and Hosting Services.

9 Responses

  1. MS says:

    Thanks Yogesh

  2. Gowtham says:

    @Yogesh: Thanks Yogesh.

    I faced this Question in an interview. Now it was cleared.

  3. Yogesh Raheja says:

    @MS, Gawtham, you are most welcome!!!..

  4. shiva says:

    thank you Yogesh..

  5. Ragupathy Mani says:

    Yogesh bro…..Rocking..Following you here…Nice articles

  6. Harish says:

    Really nice

  7. Ramdev Ramdev says:

    Harish, thank you.

  8. deepak says:

    superb

  9. manohar says:

    Thank you yogesh

Leave a Reply to Gowtham Cancel reply

Close
  Our next learning article is ready, subscribe it in your email

What is your Learning Goal for Next Six Months ? Talk to us