1752565 Members
5359 Online
108788 Solutions
New Discussion юеВ

about Lvm and Vxvm

 
surendranath
Advisor

about Lvm and Vxvm

how to convert a veritas disk to LVM?
10 REPLIES 10
Analyst
Trusted Contributor

Re: about Lvm and Vxvm

Hi surendranath,

>:how to convert a veritas disk to LVM?

a) You mean to use the veritas used disk, trying to use in LVM right.

If it so, do the following

pvdisplay /dev/dsk/cXdXtX.,if this shows nothing
pvcreate /dev/rdsk/cXdXtX.

Pvdisplay /dev/dsk/cXdXtX

Else use -f option.

b) Trying to import the configuration/data from veritas.

Confirm that.
surendranath
Advisor

Re: about Lvm and Vxvm

I tried to doing that. Even after that when I do a vxdisk list. I get the following output.

hqorabu3:>vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t15d0 simple - - online invalid
c3t15d0 simple rootdisk01 rootdg online
c4t0d0 simple newerdg01 newdg online
hqorabu3:>

Disk c1t15d0 is still showing a online invalid whereas it should show status as LVM
Sagar Sirdesai
Trusted Contributor

Re: about Lvm and Vxvm

Hi surendranath

Remove the disk using vxdisk rm command

Sagar
surendranath
Advisor

Re: about Lvm and Vxvm

ok. It removes the disk from vxdisk list command. Could someone please tell me how to change status of disk to LVM when converted from Veritas to LVM.
Sagar Sirdesai
Trusted Contributor

Re: about Lvm and Vxvm

Hi

Once you've run an pvcreate on the desired disk.
It is under the control of LVM.
You can run a pvdisplay command to check the details of the disk.

Sagar
Analyst
Trusted Contributor

Re: about Lvm and Vxvm

Hi surendranath.

I tried to doing that. Even after that when I do a vxdisk list.

confirm that
# pvcreate /dev/rdsk/c1t15d0 was successful.
else
# pvcreate -f /dev/rdsk/c1t15d0.
# pvdisplay /dev/dsk/c1t15d0.

If this is not happening
# vxdisk list
# vxdisk rm c1t15d0.
# rmsf the device drivers also......
# vxdisk list---> should not show the disk.

# ioscan -fnC disk
# insf -eH hardware path

Now it should work....

Thanks,
Analyst.
surendranath
Advisor

Re: about Lvm and Vxvm

Hi Sagar,

when I run vxdiskunsetup command in veritas it comes out of veritas control and doing a pvcreate command writes lvm meta data on to that disk. I need to know how to change the status from online unused to LVM.
Johnson Punniyalingam
Honored Contributor

Re: about Lvm and Vxvm

Hi Surendranath,

Once you have sucesfully removed the disk from Veritas Volume Manager,

please use -f option

# pvcreate -f

when the -f option is not specified, the operation is denied if pv_path already belongs to another volume group, or the pv_path refers to a disk device under the control of the VERITAS Volume Manager


Thanks,
Johnson,
Problems are common to all, but attitude makes the difference
Analyst
Trusted Contributor

Re: about Lvm and Vxvm

Hi surendranath,

Hope you could have solved the problem.

If not get back to us with the errors to resolve it.


Thanks
Analyst.


If the information is useful.kindly assign points.