1822001 Members
4078 Online
109639 Solutions
New Discussion

pvcreate error

 
Burak Topal
Frequent Advisor

pvcreate error

Hi,

 

i get the following message while pvcreate operation.


#pvcreate /dev/rdisk/disk100
pvcreate: IO error on Physical Volume device "/dev/rdisk/disk100"

 

#pvcreate -f /dev/rdisk/disk100
pvcreate: Error: Couldn't read LVMREC for the physical volume "/dev/rdisk/disk100"

 

Any help would be aprreciated..

15 REPLIES 15
Torsten.
Acclaimed Contributor

Re: pvcreate error

What device is providing the storage? Check from array side (permissions, hostmode, etc ...)

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!   
Hiren N Dave
Valued Contributor

Re: pvcreate error

Hi,

 

what is the size of this LUN?

Pls share "ioscan -kfnC disk" and "diskinfo -v /dev/rdisk/disk100" outputs.

 

Also check that the LUN is properly shared from the storage with write permissions. Do this to find out whether it is writtable or not..

#dd if=/stand/vmunix of=/dev/rdisk/disk100 bs=1024k count=100

 

Also, do

# ioscan -m dsf

To find out related legacy device file and try pvcreate on it, share output.

 

Cheers...

I am an HP Employee

Was this post useful? - You may click the KUDOS! star to say thank you.
Burak Topal
Frequent Advisor

Re: pvcreate error

Hi,

These are the outputs;

 

#ioscan -fuNC disk
Class     I  H/W Path  Driver         S/W State   H/W Type     Description
===========================================================================
disk      0  0/0/2/1.0x0.0x10  UsbScsiAdaptor   CLAIMED     LUN_PATH     USB SCSI Stack Adaptor
disk      3  64000/0xfa00/0x0  esdisk           CLAIMED     DEVICE       HP      IR Volume
disk      6  64000/0xfa00/0x4  esdisk           CLAIMED     DEVICE       IBM     1815      FAStT
disk      9  64000/0xfa00/0x5  esdisk           CLAIMED     DEVICE       IBM     1815      FAStT
disk     11  64000/0xfa00/0x6  esdisk           CLAIMED     DEVICE       IBM     1815      FAStT
disk    100  64000/0xfa00/0x7  esdisk           CLAIMED     DEVICE       IBM     1815      FAStT

 

#diskinfo -v /dev/rdisk/disk100
SCSI describe of /dev/rdisk/disk100:
             vendor: IBM    
         product id: 1815      FAStT
               type: direct access
               size: 6291456 Kbytes
   bytes per sector: 512
          rev level: 0914
    blocks per disk: 12582912
        ISO version: 0
       ECMA version: 0
       ANSI version: 5
    removable media: no
    response format: 2
   (Additional inquiry bytes: (32)30 (33)39 (34)31 (35)34 (36)0 (37)0 (38)0 (39)0 (40)0 (41)0 (42)0 (43)0 (44)0 (45)0 (46)0 (47)0 (48)0 (49)0 (50)0 (51)0 (52)0 (53)0 (54)0 (55)0 (56)0 (57)0 (58)0 (59)60 (60)3 (61)0 (62)3 (63)20 (64)9 (65)0 (66)0 (67)0 (68)0 )

 

 

#dd if=/stand/vmunix of=/dev/rdisk/disk100 bs=1024k count=100
I/O error
1+0 records in
0+1 records out

 

 

#ioscan -m dsf
Persistent DSF           Legacy DSF(s)
========================================
/dev/rdisk/disk100       /dev/rdsk/c1t0d2
                                        /dev/rdsk/c2t0d2

Hiren N Dave
Valued Contributor

Re: pvcreate error

>> I/O error

OS is not able to write on this LUN disk....you need to check LUN assignment property from storage end and confirm that read/write permission is given to this LUN.

 

Regards,

HD

I am an HP Employee

Was this post useful? - You may click the KUDOS! star to say thank you.
Torsten.
Acclaimed Contributor

Re: pvcreate error

Please do

 

# scsimgr get_info -D /dev/rdisk/disk100

 

and

 

# scsimgr get_info all_lpt -D /dev/rdisk/disk100

 

and post.


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!   
Burak Topal
Frequent Advisor

Re: pvcreate error

 

@Hiren

i could not find lun's read/write permissions but when i assign disk to another server i can pvcreate on it.

 

@Torsten

 

output of commonds;

 

#scsimgr get_info -D /dev/rdisk/disk100

        STATUS INFORMATION FOR LUN : /dev/rdisk/disk100

Generic Status Information

SCSI services internal state                  = UNOPEN
Device type                                   = Direct_Access
EVPD page 0x83 description code               = 1
EVPD page 0x83 description association        = 0
EVPD page 0x83 description type               = 3
World Wide Identifier (WWID)                  = 0x600a0b800047683200001f824e30fdb3
Serial number                                 = "SP82882846      "
Vendor id                                     = "IBM     "
Product id                                    = "1815      FAStT "
Product revision                              = "0914"
Other properties                              = ""
SPC protocol revision                         = 5
Open count (includes chr/blk/pass-thru/class) = 0
Raw open count (includes class/pass-thru)     = 0
Pass-thru opens                               = 0
LUN path count                                = 2
Active LUN paths                              = 2
Standby LUN paths                             = 0
Failed LUN paths                              = 0
Maximum I/O size allowed                      = 2097152
Preferred I/O size                            = 2097152
Outstanding I/Os                              = 0
I/O load balance policy                       = round_robin
Path fail threshold time period               = 0
Transient time period                         = 120
Tracing buffer size                           = 1024
LUN Path used when policy is path_lockdown    = NA
LUN access type                               = NA
Asymmetric logical unit access supported      = No
Asymmetric states supported                   = NA
Preferred paths reported by device            = No
Preferred LUN paths                           = 0

Driver esdisk Status Information :

Capacity in number of blocks                      = 12582912
Block size in bytes                               = 512
Number of active IOs                              = 0
Special properties                                =
Maximum number of IO retries                      = 45
IO transfer timeout in secs                       = 30
FORMAT command timeout in secs                    = 86400
START UNIT command timeout in secs                = 60
Timeout in secs before starting failing IO        = 120
IO infinite retries                               = false
gulercan:/#scsimgr get_info all_lpt -D /dev/rdisk/disk100

        STATUS INFORMATION FOR LUN PATH : lunpath8

Generic Status Information

SCSI services internal state                  = UNOPEN
Open close state                              = ACTIVE
Protocol                                      = fibre_channel
EVPD page 0x83 description code               = 1
EVPD page 0x83 description association        = 0
EVPD page 0x83 description type               = 3
World Wide Identifier (WWID)                  = 0x600a0b800047683200001f824e30fdb3
Total number of Outstanding I/Os              = 0
Maximum I/O timeout in seconds                = 30
Maximum I/O size allowed                      = 2097152
Maximum number of active I/Os allowed         = 8
Maximum queue depth                           = 8
Queue full delay count                        = 0
Asymmetric state                              = NA
Device preferred path                         = No
Relative target port identifier               = 32772
Target port group identifier                  = NA

        STATUS INFORMATION FOR LUN PATH : lunpath10

Generic Status Information

SCSI services internal state                  = UNOPEN
Open close state                              = ACTIVE
Protocol                                      = fibre_channel
EVPD page 0x83 description code               = 1
EVPD page 0x83 description association        = 0
EVPD page 0x83 description type               = 3
World Wide Identifier (WWID)                  = 0x600a0b800047683200001f824e30fdb3
Total number of Outstanding I/Os              = 0
Maximum I/O timeout in seconds                = 30
Maximum I/O size allowed                      = 2097152
Maximum number of active I/Os allowed         = 8
Maximum queue depth                           = 8
Queue full delay count                        = 0
Asymmetric state                              = NA
Device preferred path                         = No
Relative target port identifier               = 1
Target port group identifier                  = NA

Torsten.
Acclaimed Contributor

Re: pvcreate error

Are you sure your array is active/active and the LUN is configured for HP-UX system???

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!   
Torsten.
Acclaimed Contributor

Re: pvcreate error

Try also this:

# scsimgr get_attr -C lunpath -I 8 -a lunid

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!   
Burak Topal
Frequent Advisor

Re: pvcreate error

#scsimgr get_attr -C lunpath -I 8 -a lunid

        SCSI ATTRIBUTES FOR LUN PATH : lunpath8

name = lunid
current =0x2000000000000 (LUN # 2, Peripheral Addressing)
default =
saved =

Torsten.
Acclaimed Contributor

Re: pvcreate error

I'm quite sure the array is not configured for access by HP-UX systems - ask your storage admins how to correct this on the array side!

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!   
RG07756
Occasional Visitor

Re: pvcreate error

try to type following command

 

insf -e

 

Try to create pvcreate

Torsten.
Acclaimed Contributor

Re: pvcreate error

The array has the wrong host mode configured, so you can do NOTHING from the host side to change this.


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!   
Steven E. Protter
Exalted Contributor

Re: pvcreate error

Shalom,

 

Based on an end to end read of this thread, my conclusion is that though the disk is visible to the system, it is not properly presented to the system

 

I agree with the conclusion that it is an array problem and can not be resolved on the OS level.

 

SEP

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
chris huys_4
Honored Contributor

Re: pvcreate error

what is the exact model of this diskarray ?

 

> i could not find lun's read/write permissions but when i assign disk to another server i can pvcreate on it.

Another server running hp-ux 11iv3 ?

Torsten.
Acclaimed Contributor

Re: pvcreate error

Do the same "scsimgr" commands on a working system and compare the output. Do you see "flat addressing" related to the LUN?

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!