Video Screencast Help

Veritas disk group disabled

Created: 10 Aug 2010 • Updated: 11 Sep 2010 | 16 comments
This issue has been solved. See solution.

hi all

After rebooting my host, disk group was disabled.it shows;


vxdg list
NAME         STATE           ID
dg1          disabled             1281004389.35.KS-SLES1
dg2          disabled             1281004425.37.KS-SLES1

How to enable it?

venkat

Comments 16 CommentsJump to latest comment

Silent Voices's picture

You can try deporting and importing the disk group.

Gaurav Sangamnerkar's picture

Hi Venkat,

First thing is, is these diskgroups configured under Cluster ? If yes, you need to freeze the service groups..

# vxdg deport
# vxdg import

Then you can unfreeze your service groups...

Once you import diskgroups manually... you might need to start volumes manually..

# vxvol -g startall

Gaurav

PS: If you are happy with the answer provided, please mark the post as solution. You can do so by clicking link "Mark as Solution" below the answer provided.
 

venkatmsys's picture

hi Gaurav 

I didnt configured cluster.

~ Venkat 

Gaurav Sangamnerkar's picture

typo in command... # vxvol -g <diskgroup> startall

PS: If you are happy with the answer provided, please mark the post as solution. You can do so by clicking link "Mark as Solution" below the answer provided.
 

venkatmsys's picture

hi ,

this Command not working 

KS-SLES1:~ # vxvol -g dg1 startall

VxVM vxvol ERROR V-5-1-607 Diskgroup dg1 not found
 

venkat

~ Venkat 

Silent Voices's picture

what does vxdg list show ?

if the above does not shoe DG1 the you will have to import it.

then run the vxvol command.

Regards.

Marianne's picture

All the advice given above is summarized in this TechNote:

http://seer.entsupport.symantec.com/docs/229701.htm

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

venkatmsys's picture
hi Gaurav i am getting following response:

vxdg deport dg1

VxVM vxdg ERROR V-5-1-584 Disk group dg1: Some volumes in the disk group are in use
KS-SLES1:~ # vxdg import dg1
VxVM vxdg ERROR V-5-1-10978 Disk group dg1: import failed: 
Disk group exists and is imported
KS-SLES1:~ # vxdg list
NAME         STATE           ID
dg1          disabled             1281004389.35.KS-SLES1
dg2          disabled             1281004425.37.KS-SLES1
KS-SLES1:~ # vxvol -g startall
VxVM vxvol ERROR V-5-1-693 Incorrect usage
VxVM vxvol INFO V-5-1-1443 
    Usage: vxvol [-g diskgroup] [-U usetype] [-f]  [-o useopt] [-t tasktag] [-Vq] keyword arg ...
For detailed help use: vxvol -H | help

~ Venkat 

Silent Voices's picture

You will need to check if the volumes from that DG are still mounted. If yes, then unmount them.

Deport the DG and then Import them.

vxdg deport dgname
vxdg import dgname

then do

vxvol -g dgname startall

Regards.

venkatmsys's picture

Hai it s working fine.

Thanks a lot

~ Venkat 

Gaurav Sangamnerkar's picture

Hi Venkat.....

Check your df -k  output, volumes from that DG would be mounted....

You will need to unmount all the filesystems from the diskgroup... then deport the diskgroup... import it back... start the volumes......  the start command is vxvol -g <diskgroup> startall...

Gaurav

PS: If you are happy with the answer provided, please mark the post as solution. You can do so by clicking link "Mark as Solution" below the answer provided.
 

SOLUTION
venkatmsys's picture

hi Gaurav , after unmounting i deported the dg1. then i tried to import.but it said no dg found.pls refer below:

KS-SLES1:~ # umount /mnt/vol1

KS-SLES1:~ # umount /mnt/vol2
KS-SLES1:~ # umount /mnt/vol3
KS-SLES1:~ # umount /mnt/vol4
KS-SLES1:~ # umount /mnt/vol5
KS-SLES1:~ # umount /mnt/vol6
KS-SLES1:~ # 
KS-SLES1:~ # df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda3             132G  9.4G  116G   8% /
udev                  8.0G  204K  8.0G   1% /dev
/dev/sda1              99M   40M   54M  43% /boot
tmpfs                 4.0K     0  4.0K   0% /dev/vx
KS-SLES1:~ # vxdg list
NAME         STATE           ID
dg1          disabled             1281004389.35.KS-SLES1
dg2          disabled             1281004425.37.KS-SLES1
KS-SLES1:~ # vxdg deport dg1
KS-SLES1:~ # vxdg import dg1
VxVM vxdg ERROR V-5-1-10978 Disk group dg1: import failed: 
No valid disk found containing disk group
KS-SLES1:~ # vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
ds32000_0    auto            -            -            error
ds32000_1    auto            -            -            error
ds32000_2    auto            -            -            error
ds32000_3    auto            -            -            error
ds32000_4    auto            -            -            error
ds32000_5    auto:cdsdisk    ds32000_5    dg2          online dgdisabled
ds32000_6    auto:cdsdisk    ds32000_6    dg2          online dgdisabled
ds32000_7    auto:cdsdisk    ds32000_7    dg2          online dgdisabled
ds32000_8    auto:cdsdisk    ds32000_8    dg2          online dgdisabled
ds32000_9    auto:cdsdisk    ds32000_9    dg2          online dgdisabled
sda          auto:none       -            -            online invalid
KS-SLES1:~ # vxdctl enable
KS-SLES1:~ # vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
ds32000_0    auto:cdsdisk    -            -            online
ds32000_1    auto:cdsdisk    -            -            online
ds32000_2    auto:cdsdisk    -            -            online
ds32000_3    auto:cdsdisk    -            -            online
ds32000_4    auto:cdsdisk    -            -            online
ds32000_5    auto:cdsdisk    ds32000_5    dg2          online dgdisabled
ds32000_6    auto:cdsdisk    ds32000_6    dg2          online dgdisabled
ds32000_7    auto:cdsdisk    ds32000_7    dg2          online dgdisabled
ds32000_8    auto:cdsdisk    ds32000_8    dg2          online dgdisabled
ds32000_9    auto:cdsdisk    ds32000_9    dg2          online dgdisabled
sda          auto:none       -            -            online invalid

venkat

~ Venkat 

venkatmsys's picture

hi Gaurav,

it s working fine.but it takes some time.

KS-SLES1:~ # vxdg list

NAME         STATE           ID
dg2          disabled             1281004425.37.KS-SLES1
KS-SLES1:~ # vxdg deport dg2
KS-SLES1:~ # vxdg list
NAME         STATE           ID
KS-SLES1:~ # vxdg import dg1
KS-SLES1:~ # vxdg import dg2
KS-SLES1:~ # vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
ds32000_0    auto:cdsdisk    ds32000_0    dg1          online
ds32000_1    auto:cdsdisk    ds32000_1    dg1          online
ds32000_2    auto:cdsdisk    ds32000_2    dg1          online
ds32000_3    auto:cdsdisk    ds32000_3    dg1          online
ds32000_4    auto:cdsdisk    ds32000_4    dg1          online
ds32000_5    auto:cdsdisk    ds32000_5    dg2          online
ds32000_6    auto:cdsdisk    ds32000_6    dg2          online
ds32000_7    auto:cdsdisk    ds32000_7    dg2          online
ds32000_8    auto:cdsdisk    ds32000_8    dg2          online
ds32000_9    auto:cdsdisk    ds32000_9    dg2          online
sda          auto:none       -            -            online invalid
KS-SLES1:~ # vxdg list
NAME         STATE           ID
dg1          enabled,cds          1281004389.35.KS-SLES1
dg2          enabled,cds          1281004425.37.KS-SLES1

Thanks a lot

~ Venkat 

venkatmsys's picture

Hi Gauav,

I tried it in another host,

It s working fine.

please find:


KS-SLES2:~ # vxdg list
NAME         STATE           ID
dg1          disabled             1281004782.46.KS-SLES2
dg2          disabled             1281004819.48.KS-SLES2
KS-SLES2:~ # umount /mnt/vol*
KS-SLES2:~ # df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda3             132G  9.1G  117G   8% /
udev                  8.0G  204K  8.0G   1% /dev
/dev/sda1              99M   40M   54M  43% /boot
tmpfs                 4.0K     0  4.0K   0% /dev/vx
KS-SLES2:~ # vxdg deport dg1
KS-SLES2:~ # vxdg deport dg2
KS-SLES2:~ # vxdctl enable
KS-SLES2:~ # vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
ds32000_0    auto:cdsdisk    -            -            online
ds32000_1    auto:cdsdisk    -            -            online
ds32000_2    auto:cdsdisk    -            -            online
ds32000_3    auto:cdsdisk    -            -            online
ds32000_4    auto:cdsdisk    -            -            online
ds32000_5    auto:cdsdisk    -            -            online
ds32000_6    auto:cdsdisk    -            -            online
ds32000_7    auto:cdsdisk    -            -            online
ds32000_8    auto:cdsdisk    -            -            online
ds32000_9    auto:cdsdisk    -            -            online
sda          auto:none       -            -            online invalid
KS-SLES2:~ # vxdg import dg1
KS-SLES2:~ # vxdg import dg2
KS-SLES2:~ # vxdg list
NAME         STATE           ID
dg1          enabled,cds          1281004782.46.KS-SLES2
dg2          enabled,cds          1281004819.48.KS-SLES2
KS-SLES2:~ # vxvol -g dg1 startall
KS-SLES2:~ # vxvol -g dg2 startall
KS-SLES2:~ # vxdg list
NAME         STATE           ID
dg1          enabled,cds          1281004782.46.KS-SLES2
dg2          enabled,cds          1281004819.48.KS-SLES2

Thanks a lot
 

~ Venkat 

g_lee's picture

Venkat,

Is there a delay with the host detecting the storage when it is rebooted eg: were there any SAN issues occurring at the time? the vxdisk list output showed the disks in error, which suggests there were problems accessing the disk -- this would be why the dg went to dgdisabled state as it couldn't see the underlying disk

This was fixed / the disks came online when vxdctl enable was run so that implies the disk became available again / access was restored.

I would recommend looking at why the disks weren't online to ensure the underlying problem is resolved so this won't be recurring situation.

regards,
Grace

If this post has helped you, please vote or mark as solution