How to recover and start a Veritas Volume DISABLED ACTIVE

How to recover and start a Veritas Volume Manager logical volume where the volume is DISABLED ACTIVE and has a plex that is DISABLED RECOVER

Article: TECH8501 | Created: 2007-01-08 | Updated: 2011-04-06 | Article URL http://www.symantec.com/docs/TECH8501
How to recover and start a Veritas Volume Manager logical volume where the volume is DISABLED ACTIVE and has a plex that is DISABLED RECOVER


Solution



When a system encounters a problem with a volume or a plex, or if Veritas Volume Manager (VxVM) has any reason to believe that the data is not synchronized, VxVM changes the kernel state, KSTATE and state, STATE, of the volume and its plexes accordingly. The plex state can be stale, empty, nodevice, etc. A particular plex state does not necessarily mean that the data is good or bad. The plex state is representative of VxVM's perception of the data in a plex.

The output from the vxprint utility using the switches "-h" and "-t" (for more information about these switches and all applicable switches, see the man page for vxprint) displays information from records in VxVM disk group configurations, including the KSTATE and STATE of a volume and plex as indicated in columns 4 and 5 respectively in the table below. When viewing the configuration records of a VxVM disk group using the vxprint utility and the KSTATE and STATE fields display DISABLED ACTIVE for the volume and DISABLED RECOVER for the plex, recovery steps need to be followed to bring the volume back to an ENABLED ACTIVE state so it can be mounted and make the file system accessible again.

From the below output, it can be seen that the KSTATE and STATE for the volume test is DISABLED ACTIVE and its plex test-01 is DISABLED RECOVER.

# vxprint -ht -g testdg
DGNAMENCONFIGNLOGMINORSGROUP-ID
DMNAMEDEVICETYPEPRIVLENPUBLENSTATE
RVNAMERLINK_CNTKSTATESTATEPRIMARYDATAVOLSSRL
RLNAMERVGKSTATESTATEREM_HOSTREM_DGREM_RLNK
VNAMERVGKSTATESTATELENGTHUSETYPEPREFPLEX RDPOL
PLNAMEVOLUMEKSTATESTATELENGTHLAYOUTNCOL/WID MODE
SDNAMEPLEXDISKDISKOFFSLENGTH[COL/]OFFDEVICE MODE
SVNAMEPLEXVOLNAMENVOLLAYRLENGTH[COL/]OFFAM/NM MODE

dgtestdgdefaultdefault84000970356463.1203.alu
dmtestdg01c1t4d0s2sliced21798920560-
dmtestdg02c1t6d0s2sliced21798920560-
vtest-DISABLEDACTIVE17840128fsgen-SELECT
pltest-01testDISABLEDRECOVER17841120CONCAT-RW
sdtestdg01-01test-01testdg01089205600c1t4d0ENA
sdtestdg02-01test-01testdg02089205608920560c1t6d0ENA


Follow these steps to change KSTATE and STATE of a plex that is DISABLED RECOVER to ENABLED ACTIVE so the volume can be recovered / started and the file system mounted:

1. Change the plex test-01 to the DISABLED STALE state:
# vxmend -g diskgroup fix stale <plex_name>

For example:
# vxmend -g testdg fix stale test-01

This output shows the plex test-01 as DISABLED STALE:
# vxprint -ht -g testdg
DGNAMENCONFIGNLOGMINORSGROUP-ID
DMNAMEDEVICETYPEPRIVLENPUBLENSTATE
RVNAMERLINK_CNTKSTATESTATEPRIMARYDATAVOLSSRL
RLNAMERVGKSTATESTATEREM_HOSTREM_DGREM_RLNK
VNAMERVGKSTATESTATELENGTHUSETYPEPREFPLEXRDPOL
PLNAMEVOLUMEKSTATESTATELENGTHLAYOUTNCOL/WIDMODE
SDNAMEPLEXDISKDISKOFFSLENGTH[COL/]OFFDEVICEMODE
SVNAMEPLEXVOLNAMENVOLLAYRLENGTH[COL/]OFFAM/NMMODE
dgtestdgdefaultdefault84000970356463.1203.alu
dmtestdg01c1t4d0s2sliced21798920560-
dmtestdg02c1t6d0s2sliced21798920560-
vtest-DISABLEDACTIVE17840128fsgen-SELECT
pltest-01testDISABLEDSTALE17841120CONCAT-RW
sdtestdg01-01test-01testdg01089205600c1t4d0ENA
sdtestdg02-01test-01testdg02089205608920560c1t6d0ENA


2. Change the plex test-01 to the DISABLED CLEAN state:
# vxmend -g diskgroup fix clean <plex_name>

For example:
# vxmend -g testdg fix clean test-01

This output shows the plex test-01 as DISABLED CLEAN:
# vxprint -ht -g testdg
DGNAMENCONFIGNLOGMINORSGROUP-ID
DMNAMEDEVICETYPEPRIVLENPUBLENSTATE
RVNAMERLINK_CNTKSTATESTATEPRIMARYDATAVOLSSRL
RLNAMERVGKSTATESTATEREM_HOSTREM_DGREM_RLNK
VNAMERVGKSTATESTATELENGTHUSETYPEPREFPLEXRDPOL
PLNAMEVOLUMEKSTATESTATELENGTHLAYOUTNCOL/WIDMODE
SDNAMEPLEXDISKDISKOFFSLENGTH[COL/]OFFDEVICEMODE
SVNAMEPLEXVOLNAMENVOLLAYRLENGTH[COL/]OFFAM/NMMODE
dgtestdgdefaultdefault84000970356463.1203.alu
dmtestdg01c1t4d0s2sliced21798920560-
dmtestdg02c1t6d0s2sliced21798920560-
vtest-DISABLEDACTIVE17840128fsgen-SELECT
pltest-01testDISABLEDCLEAN17841120CONCAT-RW
sdtestdg01-01test-01testdg01089205600c1t4d0ENA
sdtestdg02-01test-01testdg02089205608920560c1t6d0ENA


3. Start the volume test:
# vxvol -g diskgroup start <volume>

For example:
# vxvol -g diskgroup start test

This output shows that the volume test and its plex test-01 are both ENABLED ACTIVE:
# vxprint -ht -g testdg
DGNAMENCONFIGNLOGMINORSGROUP-ID
DMNAMEDEVICETYPEPRIVLENPUBLENSTATE
RVNAMERLINK_CNTKSTATESTATEPRIMARYDATAVOLSSRL
RLNAMERVGKSTATESTATEREM_HOSTREM_DGREM_RLNK
VNAMERVGKSTATESTATELENGTHUSETYPEPREFPLEXRDPOL
PLNAMEVOLUMEKSTATESTATELENGTHLAYOUTNCOL/WIDMODE
SDNAMEPLEXDISKDISKOFFSLENGTH[COL/]OFFDEVICEMODE
SVNAMEPLEXVOLNAMENVOLLAYRLENGTH[COL/]OFFAM/NMMODE
dgtestdgdefaultdefault84000970356463.1203.alu
dmtestdg01c1t4d0s2sliced21798920560-
dmtestdg02c1t6d0s2sliced21798920560-
vtest-ENABLEDACTIVE17840128fsgen-SELECT
pltest-01testENABLEDACTIVE17841120CONCAT-RW
sdtestdg01-01test-01testdg01089205600c1t4d0ENA
sdtestdg02-01test-01testdg02089205608920560c1t6d0ENA


4. Mount the volume to its associated mount point (refer to the /etc/vfstab file if the mount point location is not known) if the file system is a Veritas File System (VxFS) file system:
# mount -F vxfs /dev/vx/dsk/diskgroup/volume /mount point

For example:
# mount -F vxfs /dev/vx/dsk/testdg/test /testvol

 

Comments