Good answers, I'm going to try some this afternoon! (after I duplicate scsi/fc ids!)
I should tell you briefly the method to fix this stuff...
1 delete /etc/lvmtab
hpux -lm
vgscan
(but vgscan will not create it ideally)
(the lvmtab needs reworking)
2 Destroy the label file.
lvlnboot and restore
3 corrupt ISL
Boot from CD support and restore.
lifcp (man) to replace the way you want.
4 delete the kernel
Boot recovery CD and restore kernel
from backup.
5 move the boot disk to another HW path
Device file changes... thus need to update rootconf and lvm.. -lm vgexport vgimport vg00
6 create a file called -rf
Delete by inode number (usually they delete
all inodes in all filesystems with the same number! ... but
find . -xdev -inode # -exec rm -i {} \;
The -i is very important (ls -i to get #)
Thanks to the forums for that! I user to use
\ to whack out the specialness... I usually
create the file with loads of leading spaces too which makes the \ a little difficult)
7 resize /var
lvextend is kind of confusing in that the extend -L size is the new size not the extension. lvchange sometimes needs to be done if the lv is strict on contiguous allocation policy.
I use fsadm, to reduce (must defrag)
And extendfs in single user to extend... although fsadm can extend online.
8 fsadm and single user
and my favourite:
9 rename /dev to /Dev
You must boot off the CD, mount your boot disk then mv the directory back.. they never get it!
You really need to be lucky to see the /dev/ on the ls...
They usually reignite the server!
It works for me (tm)