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

Article: 100022929
Last Published: 2022-02-20
Ratings: 0 1
Product(s): InfoScale & Storage Foundation

Description

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

 

Solution

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 <diskgroup> -f start <volume> ---->(for non-redundant volumes)

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

 

 

Was this content helpful?