Operating System - HP-UX
1833159 Members
3199 Online
110051 Solutions
New Discussion

How to create PV in vg version 2.x

 
SOLVED
Go to solution
sreekanthtm
Trusted Contributor

How to create PV in vg version 2.x

Hi,

I have to create PV of 2.8TB. Its documeted that, vg version 2.x support upto 16TB. But whats the command to create PV in vgversion 2. There is no -V option in creating PV.

# pvcreate -f /dev/rdsk/c40t0d0
pvcreate: Error: Couldn't read LVMREC for the physical volume "/dev/rdsk/c40t0d0".
[Error: -1]


Thanks in advance
Sreekanth
20 REPLIES 20
Ivan Krastev
Honored Contributor

Re: How to create PV in vg version 2.x

What is your OS version? 11.23 or 11.31 ?

regards,
ivan
sreekanthtm
Trusted Contributor

Re: How to create PV in vg version 2.x

Hi,

# uname -a
HP-UX HAZUXIA7 B.11.31 U ia64 3723915920 unlimited-user license


# swlist -l product | grep OE
OE B.11.31.0803 HP-UX OE control script product
PHKL_37361 1.0 Enable HPVM to use HP-UX 11.31 Sept 07 OE as the host
SOE B.11.31 SOE
SWMTRANS A.3.1.0.1327 HP-UX Software Manager (OE transition version)


Rgds
Sreekanth
Ivan Krastev
Honored Contributor
Solution

Re: How to create PV in vg version 2.x

Use the persistent DSF name for that LV:

ioscan -m dsf /dev/rdsk/c40t0d0


you should see new dsf name:
/dev/rdisk/disk10 (for example)
and use it in pvcreate.

regards,
ivan
sreekanthtm
Trusted Contributor

Re: How to create PV in vg version 2.x

Hi,

PV create giving the same error there also.

# pvcreate -f disk1346
pvcreate: Error: Couldn't read LVMREC for the physical volume "disk1346".
[Error: -1]


Rgds
Sreekanth
Ivan Krastev
Honored Contributor

Re: How to create PV in vg version 2.x

Are you sure that your LVM version is 2.0 ?

For 1.0 limits are 2.0TB pev PV.

See here - http://docs.hp.com/en/6054/LVM_Limits_White_Paper_V4.pdf
Beginning with the September 2008 update to HP-UX 11i v3 (11.31), LVM supports three different versions of volume groups:
â ¢
Version 2.1 volume group (supported on 11iv3 September 2008 update and later)
â ¢
Version 2.0 volume group (supported on 11iv3 March 2008 update and later)


regards,
ivan
sreekanthtm
Trusted Contributor

Re: How to create PV in vg version 2.x

Please look at the swlist

# swlist -l product | grep OE
OE B.11.31.0803 HP-UX OE control script product
PHKL_37361 1.0 Enable HPVM to use HP-UX 11.31 Sept 07 OE as the host
SOE B.11.31 SOE
SWMTRANS A.3.1.0.1327 HP-UX Software Manager (OE transition version)


It is HP-UX 11.31 Sept 07


# lvmadm -t
--- LVM Limits ---
VG Version 1.0
Max VG Size (Tbytes) 510
Max LV Size (Tbytes) 16
Max PV Size (Tbytes) 2
Max VGs 256
Max LVs 255
Max PVs 255
Max Mirrors 2
Max Stripes 255
Max Stripe Size (Kbytes) 32768
Max LXs per LV 65535
Max PXs per PV 65535
Max Extent Size (Mbytes) 256

VG Version 2.0
Max VG Size (Tbytes) 2048
Max LV Size (Tbytes) 256
Max PV Size (Tbytes) 16
Max VGs 512
Max LVs 511
Max PVs 511
Max Mirrors 5
Max Stripes 511
Max Stripe Size (Kbytes) 262144
Max LXs per LV 33554432
Max PXs per PV 16777216
Max Extent Size (Mbytes) 256

How can I specify the VG version while creating PV?
Ivan Krastev
Honored Contributor

Re: How to create PV in vg version 2.x

Check also your vesions and supported limits:

#lvmadm -t

regards,
ivan
sreekanthtm
Trusted Contributor

Re: How to create PV in vg version 2.x

Hi,

The o/p is already posted. My server support vg version 2.0

Rgds
Sreekanth
Torsten.
Acclaimed Contributor

Re: How to create PV in vg version 2.x

This is an example from the manual:

# vgcreate -V 2.0 -s 32 -S 1p /dev/vg01 /dev/disk/disk50

see man vgcreate

http://docs.hp.com/en/lvm-v2/L2_whitepaper_8.pdf

http://docs.hp.com/en/5992-4779/index.html

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
sreekanthtm
Trusted Contributor

Re: How to create PV in vg version 2.x

Hi,

# vgcreate -V 2.0 -s 4 -S 8t /dev/vg01 /dev/disk/disk1437
vgcreate: SIOC_INQUIRY: No such device or address
Verification of unique LVM disk id on each disk in the volume group
/dev/vg01 failed.


But the disk path is correct and from the storage side its verified that the Size is 2.87TB

Rgds
Sreekanth
Torsten.
Acclaimed Contributor

Re: How to create PV in vg version 2.x

>> No such device.

What array model is it? All settings correct for hp-ux?

Did you check
# ioscan -fn
# ioscan -m dsf

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
sreekanthtm
Trusted Contributor

Re: How to create PV in vg version 2.x

Hi,

We are using XP 10K

PLease see the details attached.

Rgds
Sreekanth
Torsten.
Acclaimed Contributor

Re: How to create PV in vg version 2.x

I cannot see any XP array, but several EVAs.

I noticed you have only a single path to the disks (1/0/6/1/0.1.4.0.0) - why not more?

Consider to check zoning, presentation and presentation mode!

Some devices are listed in the dsf, but not in the current ioscan (e.g. /dev/rdisk/disk1437) - IMHO this disk *was* visible, but is no longer.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
sreekanthtm
Trusted Contributor

Re: How to create PV in vg version 2.x


Hi,
I think you missed the line

ctl 30 1/0/2/1/0.1.8.255.0.0.0 sctl CLAIMED DEVICE HP OPEN-XP12000
/dev/rscsi/c39t0d0

And see the below o/p

# ioscan -fnH 1/0/2/1/0
Class I H/W Path Driver S/W State H/W Type Description
========================================================================
fc 4 1/0/2/1/0 fcd CLAIMED INTERFACE HP A6826-60001 2Gb Dual Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)
/dev/fcd4
fcp 6 1/0/2/1/0.1 fcd_fcp CLAIMED INTERFACE FCP Domain
ext_bus 40 1/0/2/1/0.1.8.0.0 fcd_vbus CLAIMED INTERFACE FCP Array Interface
target 12 1/0/2/1/0.1.8.0.0.0 tgt CLAIMED DEVICE
disk 1436 1/0/2/1/0.1.8.0.0.0.0 sdisk CLAIMED DEVICE HP OPEN-V*3
/dev/dsk/c40t0d0 /dev/rdsk/c40t0d0
ext_bus 39 1/0/2/1/0.1.8.255.0 fcd_vbus CLAIMED INTERFACE FCP Device Interface
target 11 1/0/2/1/0.1.8.255.0.0 tgt CLAIMED DEVICE
ctl 30 1/0/2/1/0.1.8.255.0.0.0 sctl CLAIMED DEVICE HP OPEN-XP12000
/dev/rscsi/c39t0d0


# ioscan -m dsf /dev/rdsk/c40t0d0
Persistent DSF Legacy DSF(s)
========================================
/dev/rdisk/disk1437 /dev/rdsk/c40t0d0


Rgds
Sreekanth
Torsten.
Acclaimed Contributor

Re: How to create PV in vg version 2.x

OK, found it.
Not sure why I overlooked this the first time.

I really wonder about the high Instance number 1436 - did you change the config so often?

Anyway, you still have only a single path to this device - not good.

What does "xpinfo" tell you (if you have this command)?


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
sreekanthtm
Trusted Contributor

Re: How to create PV in vg version 2.x

Yeah....

I think you are in the right track

# xpinfo -i /dev/rdsk/c40t0d0

Device File ALPA Tgt Lun Port CU:LDev Type Serial#
================================================================================
/dev/rdisk/disk1437 4d 00 00 CL6F 17:00 OPEN-V*3 00082502

# xpinfo /dev/rdsk/c40t0d0

Device File : /dev/rdisk/disk1437 Model : XP10000
Port : CL6F Serial # : 00082502
Host Target : 00 Code Rev : 5001
Array LUN : 00 Subsystem : 0021
CU:LDev : 17:00 CT Group : ---
Type : OPEN-V*3 CA Volume : SMPL
Size : MB BC0 (MU#0) : SMPL
ALPA : 4d BC1 (MU#1) : SMPL
Loop Id : 56 BC2 (MU#2) : SMPL
SCSI Id : ---
RAID Level : RAID5 RAID Type : ---
RAID Group : 3-3 ACP Pair : 1
Disk Mechs : HDD2002 HDD2102 HDD2202 HDD2302
FC-LUN : 0001424600001700 Port WWN : 50060e8014424655
HBA Node WWN: 50060b0000270399 HBA Port WWN: 50060b0000270398
Vol Group : --- Vol Manager : ---
Mount Points: ---
DMP Paths : --- CLPR : ---


Its not showing the disk Size :(

What could be the problem? Is there any thing specific to check in the XP side?
LUN size is 2.87TB as viewed through Command view XP.

Rgds
Sreekanth
Torsten.
Acclaimed Contributor

Re: How to create PV in vg version 2.x

I doubt a bit about the whole configuration.

You have plenty FC HBAs, but only single pathes to the EVA and XP LUNs - question is why?

You (or your storage team) should check the LUN presentation and the zoning configuration.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Ninad_1
Honored Contributor

Re: How to create PV in vg version 2.x

Hi,

What does diskinfo show for the disk ?

Regards,
Ninad
sreekanthtm
Trusted Contributor

Re: How to create PV in vg version 2.x

Hi,

>>You have plenty FC HBAs, but only single pathes to the EVA and XP LUNs - question is why?

We need to measure the perfomance details also. Thats why we using Single HBA.

# diskinfo /dev/rdsk/c40t0d0
SCSI describe of /dev/rdsk/c40t0d0:
vendor: HP
product id: OPEN-V*3
type: direct access
size: 2147483648 Kbytes
bytes per sector: 512


Shows the size as exact 2TB. But the actual LUN size is 2.74TB. See the attachement for more details.

Rgds
Sreekanth
Torsten.
Acclaimed Contributor

Re: How to create PV in vg version 2.x

Do you present this device to a hp-ux, linux and windows host at the same time?

And btw, consider to "zone away" all the unused array connections.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!