Tuesday, December 31, 2013

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

Note: An error may be generated stating that the file system needs to be checked for consistency. If this occurs, run the VxFS specific fsck utility (/usr/lib/fs/vxfs/fsck) where the default is to replay the intent log, instead of performing a full structural file system check which is usually sufficient to set the file system to CLEAN and allow the volume to be mounted.



0. Stop the volume test:

# vxvol -g diskgroup stop  <volume>

For example:

# vxvol -g diskgroup stop test


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


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


3. Start the volume test:

# vxvol -g diskgroup start  <volume>

For example:

# vxvol -g diskgroup start test


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

No comments:

Post a Comment