Replacing PA-RISC mirrored boot disk

PA-RISC (LVM only) mirrored root disk,
HP-UX versions 11.11, 11.23, 11.31

  • Use pvchange –a N /dev/dsk/cxtxdx before removing the disk.
    -a N will remove all the paths to the PV.
    If this doesn`t work use pvchange –a n /dev/dsk/cxtxdx to stop I/Os to the PV.
    Note that for 11.31, the agile (DSF) names are used,
    /dev/disk/diskx
  • Replace disk
    ioscan –fnC disk
    Make sure disk cxtxdx is visible & CLAIMED
  • Check the raw disk for communication and size:
    diskinfo /dev/rdsk/cxtxdx
    Then:
    dd if=/dev/rdsk/cxtxdx of=/dev/null bs=1024k count=100
  • Use command
    pvcreate –B /dev/rdsk/cxtxdx
    to make the raw disk bootable.
  • Place boot utilities and set the AUTO file in the boot area (raw device):
    mkboot –l /dev/rdsk/cxtxdx
    mkboot –a “hpux –lq” /dev/rdsk/cxtxdx
  • Verify the AUTO file contents:
    lifcp /dev/rdsk/cxtxdx:AUTO – 
  • Check the primary and alternate paths:
    setboot –v
  • Restore the VG configuration on to the (raw) disk:
    vgcfgrestore –n vg00 /dev/rdsk/cxtxdx
  • Re-activate the VG00
    vgchange –a y vg00
  • Verify mirroring by syncing lvol1:
    lvsync /dev/vg00/lvol1
    Then mirror the rest of the lvols:
    vgsync vg00
  • Update the BDRA:
    lvlnboot –RThen list the results:
    lvlnboot –v
    (both disks/PVs should be shown)
  • Verify the bootconf file:
    # vi /stand/bootconf
    l /dev/dsk/c2t15d0
    l /dev/rdsk/c1t15d0

    Both paths to the boot disks should be listed.
  • Verify that the system can be boot from either disk.

– See more at: http://serviceitdirect.com/blog/replacing-pa-risc-mirrored-boot-disk#sthash.Zbx7V5Wh.dpuf


Tags: