Operating System - HP-UX
1846570 Members
2578 Online
110256 Solutions
New Discussion

I forgot to "pvcreate -B" my root mirror before I mirrored.

 
SOLVED
Go to solution
Stuart Abramson_2
Honored Contributor

I forgot to "pvcreate -B" my root mirror before I mirrored.

Can I do it now, after I mirrored the root LVs?

Or is it too late and I'll have to mirror all over again?

I have it all mirrored, but it's not bootable:

# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
......../dev/dsk/c0t6d0 (0/0/0/3/0.6.0) -- Boot Disk
......../dev/dsk/c4t6d0 (1/0/0/3/0.6.0)
Boot: lvol1.... on:.... /dev/dsk/c0t6d0
......................../dev/dsk/c4t6d0
Root: lvol3.... on:.... /dev/dsk/c0t6d0
......................../dev/dsk/c4t6d0
Swap: lvol2.... on:.... /dev/dsk/c0t6d0
......................../dev/dsk/c4t6d0
Dump: lvol2.... on:.... /dev/dsk/c0t6d0, 0
6 REPLIES 6
Jeff Schussele
Honored Contributor
Solution

Re: I forgot to "pvcreate -B" my root mirror before I mirrored.

Hi Stuart,

I'm afraid you're going to have to start over.
The pvcreate -B reserves the space for the LIF at the proper location.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Todd McDaniel_1
Honored Contributor

Re: I forgot to "pvcreate -B" my root mirror before I mirrored.

You might be able to vgcfgrestore the info from the primary to the alternate..

vgcfgrestore -n /dev/vg00 /dev/dsk/c0t6d0 /dev/dsk/c4t6d0

Otherwise, you will have to lvremove -m 1 the mirror and redo it again...

Look at it this way, more practice is always good...
Unix, the other white meat.
Patrick Wallek
Honored Contributor

Re: I forgot to "pvcreate -B" my root mirror before I mirrored.

Jeff is correct. You'll have to start all over. You should reduce your mirrors, reduce the PV out of the VG. Then start again with the pvcreate -B
Sanjay_6
Honored Contributor

Re: I forgot to "pvcreate -B" my root mirror before I mirrored.

Hi,

Since pvcreate -B needs more header space than pvcreate without bootability, you may have to start all over again.

Good Luck.

Regards
Sanjay
Helen French
Honored Contributor

Re: I forgot to "pvcreate -B" my root mirror before I mirrored.

Yes, the best option available is to restart the process. You first need to reduce the mirror from all LVs and check the output of lvlnboot -v to make sure that only one disk is listed there.

This is a good cook book to follow when mirror the root TKB #LVMKBRC00005103:

http://www2.itrc.hp.com/service/cki/search.do?category=c0&mode=id&searchString=LVMKBRC00005103&searchCrit=allwords&docType=Security&docType=Patch&docType=EngineerNotes&docType=BugReports&docType=Hardware&docType=ReferenceMaterials&docType=ThirdParty&search.x=15&search.y=8
Life is a promise, fulfill it!
Steven E. Protter
Exalted Contributor

Re: I forgot to "pvcreate -B" my root mirror before I mirrored.

That -B stands for make bootable.

Game over, reset and play again. You won't be able to boot off it until you do it all again.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com