Professional Documents
Culture Documents
Introduction
LVM is used by default nowerdays, when installing HP/UX. But LVM still isn't mentioned in the
official Recovery Procedure (http://docs.hp.com/en/5992-6584/apes02.html). Here's the catch !
Note. using 11iv3 ioscan -fnkC (old school /dev/dsk, not /dev/disk, eventhough we're using
Integrity)
Boot with your HP/UX 11iv3 install DVD and preferably the exact same version you used for
system installation. Then choose,
Note. in case you need to get back to that menu, type "menu", not "exit"
ioscan -fnkCdisk
pvck /dev/dsk/c0t0d0s2
Note. you need to have access to all VG's the physical volumes to get Quorum and import the VG.
1
Note. /dev is a symlink to /RAMFS1/dev, but that doesn't matter
Note. if you forget to enable the VG, you'll get a "Cannot open /dev/vg00/rlvol3: No such device or
address" when trying to fsck it.
ls -l /dev/vg00/rlvol3 /dev/vg00/lvol3
/sbin/fs/vxfs/fsck -y /dev/vg00/rlvol3
mkdir /ROOT
/sbin/fs/vxfs/mount /dev/vg00/lvol3 /ROOT
loadfile chroot
chroot /ROOT /sbin/sh
cd /etc
cat fstab
fsck -y /dev/vg00/rlvol1
fsck -y /dev/vg00/rlvol4
fsck -y /dev/vg00/rlvol5
fsck -y /dev/vg00/rlvol6
fsck -y /dev/vg00/rlvol7
fsck -y /dev/vg00/rlvol8
mount it all,
mount -a
bdf
/usr/local/bin/bash
export HOME=/home/root
cd ~/
cd /etc
rm -f lvmtab
vgscan
2
Fix things on Integrity
ll /dev/rdsk
idisk -p /dev/rdsk/c0t0d0
/sbin/fs/fsdaemon -f 0 -w &
ps -ef | grep fsdaemon
mkboot -lcv /dev/dsk/c0t0d0
mkboot -el /dev/dsk/c0t0d0
mkboot -l /dev/rdsk/c0t0d0
configure autoboot,
check,
efi_ls -d /dev/dsk/c0t0d0s1
efi_ls -d /dev/dsk/c0t0d0s1 EFI/HPUX
efi_cp -u -d /dev/dsk/c0t0d0s1 EFI/HPUX/ AUTO /tmp
cat /tmp/AUTO
rm -f /tmp/AUTO
lifls -C /dev/dsk/c0t0d0s2
3
Define a primary boot device,
ioscan -fnkCdisk
setboot -p 0/0/0/0.0.0 -b on
check,
setboot
Update the BDRA (Boot Data Reserved Area) on bootable PVs, recover missing links to logical
volumes,
lvlnboot -R
lvlnboot -r /dev/vg00/lvol3
lvlnboot -b /dev/vg00/lvol1
lvlnboot -s /dev/vg00/lvol2
lvlnboot -d /dev/vg00/lvol2
check,
lvlnboot -v
note. carefull, only run lvlnboot -R before -b as the former removes the boot lv config.
lvlnboot -c
check,
ll /stand/rootconf
sync
cd /
reboot
Note. using "reboot" directly instead of "shutdown" since we're in recovery mode
References
http://sl-workstations.web.cern.ch/sl-workstations/documentation/SAGpart-4.html