Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

probelm with vgimport

Status
Not open for further replies.

llingf

Technical User
Oct 3, 2002
25
US
hi:
I am new to hp unix, and its my first time using logical volume on a diskdrive.
I had a disk failure yester, and I used vgexport /dev/vg00 before the system is reboot.
After I install the new disk, I did the following:
mkdir vg01
mknode /dev/vg01/group c 64 0x100000
vgimport /dev/vg01 /dev/dsk/c0t1d0

then I got this message:
cannot lock "/etc/lvmconf//lvm_lock" still trying......

I'm desperate for help.
Please help me.

Wayne


 
Wayne,

If you replaced the drive and still able to boot, I assume you booted off a mirrored copy of your boot volume. If you are running on the mirrored copy then you shouldn't have a problem restoring. First do the command:
vgdisplay -v vg00

Any disk problems? Any stale extents?

You can restore your LVM vol definitions by:

vgcfgrestore -n vg00 /dev/rdsk/c0t1d0
mkboot /dev/rdsk/c0t1d0
mkboot -a "hpux" /dev/rdsk/c0t1d0
vgsync vg00 (This should sync your mirrors)

If you can't boot and you are not mirrored, hope you created a make_recovery tape.
 
Wayne,

Most HP systems have c0t1d0 as the primary boot and c0t2d0 as secondary and mirrored. Did you truely replace one of these drives. I should have found out more before I responded. Don't do the above commands until you are sure you lost a mirrored copy of your boot volume. If you lost another disk then vgcfrestore that volume and restore the data.


 
hi :
thanks for the help, I did what mainframmer said and
the probelm solved.

Thanks again.


Wayne
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top