How to replace a failing disk for Veritas Volume Manager (VxVM)

book

Article ID: 100022929

calendar_today

Updated On:

Description

Description

This article explains the steps to replace a failing disk for Veritas Volume Manager (VxVM)

Resolution

If a disk is marked as failing, firstly check in the /var/adm/messages log for any messages about the failing disk.
 
These messages will commonly show up as scsi errors in the messages log.
 
After the failure has been determined to be a permanent failure perform below steps
 
1)  First remove the disk using the vxdiskadm options list. and select option 4 - Remove a disk for replacement.
 
Once this option has been picked, follow the prompts to remove the disk.
 
2) When the disk has been removed, select option 5  - Replace a failed or removed disk.  
 
Follow the prompts for disk replacement.
 
3) Once the disk has been successfully replaced, quit the vxdiskadm menu.
 
4) To bring the new disk under VxVM control, firstly run "vxdctl enable"
 
5) Once VxVM has control of the disk, perform the following commands:
  • #vxreattach
  • #vxrecover ---->(for redundant volumes)
  • #vxvol-g -f start ---->(for non-redundant volumes)

  • #fsck -F vxfs/dev/vx/rdsk/diskgroup/volume ----> (checks for data consistency)

 

 

Issue/Introduction

This article explains the steps to replace a failing disk for Veritas Volume Manager (VxVM)