Operating System - HP-UX
1834640 Members
3154 Online
110069 Solutions
New Discussion

Re: How to LVM mirror vg00 on PV used for VXVM rootdg ?

 
Matt Powell
Occasional Advisor

How to LVM mirror vg00 on PV used for VXVM rootdg ?

 
3 REPLIES 3
Michael Tully
Honored Contributor

Re: How to LVM mirror vg00 on PV used for VXVM rootdg ?

How did you use 'pvcreate'?

try
# pvcreate -Bf /dev/rdsk/c2t6d0
if successful, then you can continue
# vgextend /dev/vg00 /dev/dsk/c2t6d0
# mkboot /dev/rdsk/cxtydz
# mkboot -a "hpux -lq(;0)/stand/vmunix" /dev/rdsk/cxtydz
# lvlnboot -R
# for LVOL in /dev/vg00/lv*
> do
> echo $LVOL
> lvextend -m 1 $LVOL
> done

HTH
Michael
Anyone for a Mutiny ?
Michael Tully
Honored Contributor

Re: How to LVM mirror vg00 on PV used for VXVM rootdg ?

I've read some more information on this. You may have to have your VxVm down whilst you do this. The below is from an older posting I read. It fixed that persons problem.

try
# dd if=/stand/vmunix of=/dev/rdsk/c2t6d0 bs=64k
the pvcreate is detecting the presence of a VxVM private region on the disk
the dd should stomp on the header & allow you to pvcreate. I chose /stand/vmunix
because it is a fairly large file, any large file will do.
Anyone for a Mutiny ?
melvyn burnard
Honored Contributor

Re: How to LVM mirror vg00 on PV used for VXVM rootdg ?

Simple answer is no they cannot exist on the same disk.
You would need to have another disk set up as the rootdg for Vxvm, otherwise you lose that functionality and will find you cannot activate the other VxVm disk groups.
I am afraid you either get another disk, or set up another rootdg
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!