Wednesday, April 12, 2017

Procedure to replace the VxVM disks on HP-Ux

There are several ways to remove the disk, but to make sure that rootdg is not affected by any action, I would recommend to remove the disk from rootdg first, by using

# vxdg -g rootdg rmdisk rootdg02

# vxdisk offline c4t8d0

# vxdisk list
c4t8d0  should have status "offline"

Now change the disk (physical HW). After adding the disk run

# vxdctl enable

# vxdisk list
if c4t8d0 is still "offline"

# vxdisk online c4t8d0

# vxdisk list
disk should be in status "online invalid"  if not "vxconfigd -k -m enable"

Now you have to add the disk to rootdg again

# /etc/vx/bin/vxdisksetup -i c4t8d0

# vxdg -g rootdg addisk rootdg02=c4t8d0