VxVM : Recovering an unstartable mirrored volume

Step1 : Collect the information about Unstartable Volumes:

i)      List the Unstartable volumes

#    vxinfo –g mydg

home      fsgen      Started

vol      fsgen      Unstartable

src      fsgen      Started

rootvol    root Started

swapvol    swap Started

ii)      Displaying volume and plex states.

#    vxprint -g mydg -hvt vol

Disk group: mydg

V    NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE

PL   NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE

SD   NAME PLEX DISK DISKOFFSLENGTH [COL/]OFF DEVICE MODE

SV   NAME PLEX VOLNAME NVOLLAYRLENGTH [COL/]OFF AM/NM MODE

SC   NAME PLEX CACHE DISKOFFSLENGTH [COL/]OFF DEVICE MODE

DC   NAME PARENTVOL LOGVOL

SP   NAME SNAPVOL DCO

v    vol        –    DISABLED ACTIVE 212880 SELECT – fsgen

pl   vol-01     vol DISABLED OFFLINE 212880 CONCAT – RW

sd   mydg11-01 vol-01 mydg11 0 212880 0 c1t0d0 ENA

pl   vol-02     vol DISABLED OFFLINE 212880 CONCAT – RW

sd   mydg12-01 vol-02 mydg12 0 212880 0 c1t1d0 ENA

Check that the Volume is Disabled State and both the Plexes are in Disabled + IOFAIL states.

Reference –  Plex State Cycle

Step 2: Recovering Unstartable mirrored Volume

A System crash or an I/O error can corrupt one or more Plexes of a mirrored volume and leave no Plex Clean or Active.You can mark one of the Plexes CLEAN and instruct the ystem to use that plex as the source for reviving the other.

i)      Place the desired plex in the CLEAN state using the following command:

# vxmend [-g diskgroup] fix clean plex

Example:

# vxmend -g mydg fix clean vol01-02 à to place the plex Vol01-02 in CLEAN State

ii)     To recover the other plexes in a volume from the CLEAN pleax, the volume must be disabled and the other plexes must be STALE.

# vxmend -g mydg fix STALE vol01-01 -> to place the plex vol01-01 in STALE State

iii)   To enable the CLEAN plex and to recover the STALE plexes from it, use the below commands

# vxvol [-g diskgroup] start volume

Example

# vxvol -g mydg start vol01 à to recover volume vol01

Ramdev

Ramdev

I have started unixadminschool.com ( aka gurkulindia.com) in 2009 as my own personal reference blog, and later sometime i have realized that my leanings might be helpful for other unixadmins if I manage my knowledge-base in more user friendly format. And the result is today's' unixadminschool.com. You can connect me at - https://www.linkedin.com/in/unixadminschool/

3 Responses

  1. Kiran M.S says:

    Hi Ram, 
    What is the diff b/w fsgen and gen ? Is it possible for us to convert them from one to other?

  2. Ramdev Ramdev says:

    fsgen – is type used for the volumes that needs filesystem
    gen – is type used  for the voumes which doesn’t need filesystem to be created. eg. raw volumes for sybase or oracle databases.

    There is no direct veritas command and procedure to do the conversion, but still there are some   risky and un-supported workarounds procedures to covert the volume.
    — One of them is volume relayout
    –  Second one is dump current volume configuration, and modify the use_type parameter from configuration file, delete the volume and rebuild it.

  1. September 18, 2015

    […] VXVM are in Disabled State. Read – Veritas VxVM : Fails to start after rebooting the system Read – Recovering an unstartable mirrored volume Read – Replacing a failed boot disk Read […]

What is in your mind, about this post ? Leave a 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