Operating System - HP-UX
1820872 Members
3810 Online
109628 Solutions
New Discussion юеВ

need LVM disks on what appear to be VxVM disks

 
Eric Parson
Occasional Contributor

need LVM disks on what appear to be VxVM disks

Have a N-class running HPUX 11 (not 11i) with LVM, which does NOT have VxVM installed. I've just been presented with a set of 8 disks from our SAN, and for some reason those disks are seen as VxVM disks. How do I convert the VxVM disks to LVM disks to get them included in the VG's I need to create?


"just pvcreating" the disks gives :
usgleuxfn01# pvcreate /dev/rdsk/c7t4d0
pvcreate: Could not perform LVM operation on VxVM disk "/dev/rdsk/c7t4d0".
usgleuxfn01# pvcreate -f /dev/rdsk/c7t4d0
pvcreate: Could not perform LVM operation on VxVM disk "/dev/rdsk/c7t4d0".

Another user suggested:

dd if=/dev/zero of=/dev/rdsk/cXtYdZ bs=1024 count=10

I created /dev/zero with : mknod /dev/zero c 3 4

but this still left тАЬVxVMтАЭ fingerprints:

usgleuxfn01# pvcreate /dev/rdsk/c7t4d0
pvcreate: Could not perform LVM operation on VxVM disk "/dev/rdsk/c7t4d0".
usgleuxfn01# pvcreate -f /dev/rdsk/c7t4d0
pvcreate: Could not perform LVM operation on VxVM disk "/dev/rdsk/c7t4d0".



any thought
8 REPLIES 8
Enrico P.
Honored Contributor

Re: need LVM disks on what appear to be VxVM disks

You can try with
format /dev/rdsk/c7t4d0
and then
pvcreate -f /dev/rdsk/c7t4d0

Enrico
Marvin Strong
Honored Contributor

Re: need LVM disks on what appear to be VxVM disks


just a thought having never tried it myself.
from the vxdisksetup manpage.


Force deconfiguration of a VxVM-initialized disk, c0f4d0:

/etc/vx/bin/vxdiskunsetup -C c0t4d0

also the format command might work.

but I would try the above vx command first.


Eric Parson
Occasional Contributor

Re: need LVM disks on what appear to be VxVM disks

usgleuxfn01# find /usr -name format -print
/usr/sbin/hpC2400/format
usgleuxfn01# /usr/sbin/hpC2400/format /dev/rdsk/c7t4d0
format: initdev - internal error: Can't locate device mapping file. Run "arrayscan".

which format do you have?

for vxdisksetup, I don't have vxvm installed. no vxvm, no /etc/vx/....

any other thoughts folks?
Patrick Wallek
Honored Contributor

Re: need LVM disks on what appear to be VxVM disks

Alzhy
Honored Contributor

Re: need LVM disks on what appear to be VxVM disks

Your /dev/zero device obviously either does not work or your LUNs are "mysterious".. from what array subsystem are your luns?

You can try:

prealloc /somewhere_u_have_1G/file 102400000

dd if=/somewhere_u_have_1G/file of=/dev/rdsk/cXtYdZ

And try again...
Hakuna Matata.
melvyn burnard
Honored Contributor

Re: need LVM disks on what appear to be VxVM disks

I would suggest you try
dd if=/stand/vmunix of=/dev/rdsk/c7t4d0 bs=1024k
Then use the pvcreate -f command
pvcreate -f /dev/rdsk/c7t4d0

My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Senthil Kumar .A_1
Honored Contributor

Re: need LVM disks on what appear to be VxVM disks

Please perform the following...

assuming that the device file is "/dev/rdsk/c3t15d0".

If the machine you are operating doesnot have vxvm installed, first check
"swlist -l product | grep -i vxvm"..
if its indeed not installed, I'm sure all the
latest versions of HPUX OS is shiped with
basic vxvm product, you could install vxvm
and perform the below steps...


# pvcreate /dev/rdsk/c3t15d0
pvcreate: Could not perform LVM operation on VxVM disk
"c3t15d0".
# /etc/vx/bin/vxdiskunsetup c3t15d0
# pvcreate -f /dev/rdsk/c3t15d0
Physical volume "c3t15d0" has been successfully created.

regards.
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Suraj Singh_1
Trusted Contributor

Re: need LVM disks on what appear to be VxVM disks

Hi,

# pvcreate -f /dev/rdsk/c?t?d? should work in your case (I've tried it without any problems).
In case that doesn't work, perform the following steps:

1. # swlist|grep -i vxvm ; check if VxVM is installed or not, if not installed, then install it using the core hp os CD/DVD.
2. After installing VxVM,
# vxconfigd -m disable
# vxdctl init `uname -n`
# vxconfigd -k -m enable
# vxdisk -o alldgs list ; see the STATUS of the disk in question: LVM => lvm disk, online => VxVM disk
If the status is online, then:
# vxdisk rm diskaccess_name

For eg:
# vxdisk -o alldgs list
DEVICE TYPE DISK GROUP STATUS
c2t0d0 auto:LVM - - LVM
c5t1d0 auto:cdsdisk gp1disk02 group1 online

Here status of c5t1d0 is online. to remove this disk from VM control, use:
# vxdisk rm gp1disk02

Hope this helps,
Regards
What we cannot speak about we must pass over in silence.