1833165 Members
3439 Online
110051 Solutions
New Discussion

VxVM strange

 
Kapil Jha
Honored Contributor

VxVM strange

Hello Gurus,
I have a lil issue....
I have a PA-RISC machine and vg00 is configured and when I am staring vxvm it is not allowing me to do that.
when m creating a newdg...
it says rootdg is disabled.
I ran vxinstall and finally put all othe disk except of LVM to rootdg.Still m not able to convert vg00 to vxvm.

SO what I did I removed all disks except one from rootdg and ran vxcp_lvmboot and changed LVM to vxvm.

My quiestion is why it was not allowing me to do anything before and saying rootdg is disabled.
Is it possible to have booth disk in vg00 and other in vxvm.
I think it should be ???

BR,
Kapil+
I am in this small bowl, I wane see the real world......
5 REPLIES 5
VK2COT
Honored Contributor

Re: VxVM strange

Hello,

Yes, you can do it. LVM and VxVM can
co-exist in HP-UX.

In releases prior to VxVM 3.5, the default
disk group was rootdg (the root disk group).
For VxVM 3.5 to function, the rootdg disk
group had to exist, and it had to contain at
least one disk. This is not required in VxVM
4.1 and above.

For VxVM to be initialized, the default disk
group rootdg must be set up and at least one
disk must be assigned to it. vxinstall sets
up rootdg.

You cannot use VxVM until rootdg is set up,
and at least one disk must remain in
rootdg at all times while VxVM is running.

rootdg will not be your root disk.

Cheers,

VK2COT
VK2COT - Dusan Baljevic
Kapil Jha
Honored Contributor

Re: VxVM strange

Thanks for the reply...
Now I got it....in my earlier machine 11.31 vxvm allowed LVM root disk and other VXVM dgs...which were not allowed in my current machine.11.11.
So in earlier version we have to have root disk as vxvm rootdg.???? right.

ANy other thing which I should know.

Thanks,
Kapil+
I am in this small bowl, I wane see the real world......
VK2COT
Honored Contributor

Re: VxVM strange

Hello,

Yes, you got it right now.

Setting LVM and/or VxVM is
a relatively simple process.

Note that VxVM is a licensed product and
many features cost money. You might
regret it (financially) if you do not
pay attention to what you really want to
achieve with VxVM.

Cheers,

VK2COT
VK2COT - Dusan Baljevic
chris huys_4
Honored Contributor

Re: VxVM strange

Hi,

I dont think you need to have the vxconfigd deamon running, to convert a lvm bootdisk to a vxvm bootdisk with vxvm 3.5.

This was a procedure, I used before.

>>>>>

HP-UX 11.11
VxVM 3.5

#ioscan -fnC disk|grep dsk
/dev/dsk/c2t0d0
/dev/dsk/c2t1d0

#lvlnboot -v
/dev/dsk/c2t0d0

#bdf
/dev/vg00/lvol1 ... /stand
..

>> CONCLUSION -- at this moment the LVM bootdisk is located on c2t0d0.

1. make from c2t1d0 the (primary) vxvm bootdisk.
1.a restart vxconfigd daemon
#vxconfigd -kr reset -m boot
#vxdctl -k stop
#vxdctl mode
mode : not-running

1.b. create the vxvmbootdisk c2t1d0

#/usr/lib/vxvm/bin/vxcp_lvmroot -v -b c2t1d0
[automatic reboot, (I think)]
2. check if system is booted from vxvm bootdisk
#bdf|grep rootdg
/dev/vx/rootdg/rootvol /stand
[..]
#vxdisk list
c2t0d0 LVM
c2t1d0 rootdg online

3. mirror the vxvmrootdisk to c2t0d0

3.a. overwrite the LVM header of c2t0d0
#dd if=/dev/zero of=/dev/rdsk/c2t0d0 bs=1024k count=100

3.b. rescan vxconfigd
#vxconfigd -km enable

3.c create vxvm mirror bootdisk.
#/etc/vx/bin/vxrootmir -v -b c2t0d0
>>>>>

Greetz,
Chris
Kapil Jha
Honored Contributor

Re: VxVM strange

thanks for the help
I am in this small bowl, I wane see the real world......