1834813 Members
2638 Online
110070 Solutions
New Discussion

recover lvm disk

 
SOLVED
Go to solution
Thomas Elsaesser
New Member

recover lvm disk

Dear all,

I have one system hpux 10.20 with an broken root disk. I believe the disk is mirrored but on the mirrored disk i have not boot information. I have replaced the broken disk and have boot from this in single user mode.

How can access / mount the other disk with lvm
structur? I have an Ignite tape but it's not actuall. If I can make the disk bootable so i can boot from this disk.
Many Thanks
Thomas Elsaesser
9 REPLIES 9
Elmar P. Kolkman
Honored Contributor

Re: recover lvm disk

Depending on what you want:
I would go for the option to make your original mirror bootable with mkboot and lvlnboot. Then you can boot from that disk and you can then add your new disk to vg00.

To add the old disk to your new vg00, you only need lvlnboot to set it's root, swap and dump devices on your old disk, reboot and then add your new disk to vg00 and mirror the data again.
Every problem has at least one solution. Only some solutions are harder to find.
Denver Osborn
Honored Contributor
Solution

Re: recover lvm disk

Hopefully the mirror that you can't boot from was pvcreated with -B for the BDRA and someone forgot to run mkboot...

Since you've booted to single user from the replacement disk, use mkboot to see if you can make the non bootable mirror bootable.

mkboot /dev/rdsk/cXtXdX

If it returns a warning about a "non-boot lvol" on the disk, don't continue. If you get the command prompt back, you're good to go and run...

mkboot -a "hpux -lq" /dev/rdsk/cXtXdX

now bounce the box and try to boot from the mirror.


Hope this helps,
denver
Ashwani Kashyap
Honored Contributor
Lorenzo Facello
Valued Contributor

Re: recover lvm disk

I think you can't boot from mirrored disk.
So I suggest you to change direcytly the broken disk
put inside the new.
If system doesn't recognize the special file run (pvcreate -f -B /dev/dsk/cxtzdx)

or directly
vgcfgrestore -n /dev/vg00 /dev/rdsk/cxtxdx
mkboot /dev/rdsk/cxtxdx
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/cxtxdx
vgchange -a y /dev/vg00
vgsync /dev/vg00
Todd McDaniel_1
Honored Contributor

Re: recover lvm disk

I just got a great doc from our Platform specialist they compiled for vg00 root disk replacement and troubleshooting.

It has very detailed methods for repairing a faulty disk, they consulted with our HPUX folks to get it just right.

Unix, the other white meat.
Thomas Elsaesser
New Member

Re: recover lvm disk

Thanks all.
Ok. I have now a new boot disk on the system and have boot from this.
On the mirror is no Boot header (mkboot /dev/rdsk/c1t5d0 create a warning)
How can I access to the mirror disk without destroy the data on this. The best way is when I can mount this disk and copy all related information.
Have you any idea?
Thanks for your help.

Thomas
Todd McDaniel_1
Honored Contributor

Re: recover lvm disk

You need to blow it way and...

pvcreate -Bf

Then follow the instructions to add a mirror to the vg00 boot disk enclosed in my attachment.

If this old mirror is messed up as you say...that should solve it.
Unix, the other white meat.
Thomas Elsaesser
New Member

Re: recover lvm disk

Thanks all, but i believe this is not my problem.
Here the problem:
I have now istall new OS on new disks.
(two 4 GB disk in VG00 )from old Ignite backup.
The original mirror disks with my data is on two other disks. My question is now:
How can I access to my data on the other two disks with lvm structur. The disk have no Boot Area :-(
I must mount the disk, because i need the data on this (/etc/fstab etc)

Thank you,Thomas
Todd McDaniel_1
Honored Contributor

Re: recover lvm disk

1) I would try to reboot your system to the original disks and then make a ignite tape or merely tar the files you wish to copy to tape and then reboot back to your new OS disks.

2) A second option may be tricky, but you can vgimport those and change the VG name to somehting other than vg00...

that is if you have a saved vg00.mapfile somewhere.

Then change the mountpoint names... and mount the filesystems you need and extract the config data...then copy it to the new OS filesystems.
Unix, the other white meat.