Operating System - HP-UX
1753797 Members
7317 Online
108799 Solutions
New Discussion юеВ

Re: pvcreate error on fc lun

 
SOLVED
Go to solution
Prokopets
Respected Contributor

pvcreate error on fc lun

Hi!
I'm trying to mount a lun from storage, but i've got an error when i run pvcreate:
=========
# pvcreate -f /dev/rdsk/c6t0d2
pvcreate: Error: Couldn't read LVMREC for the physical volume "/dev/rdsk/c6t0d2".
[Error: -1]
=========

i tried to do this via SMH - with same result. Here's the output of ioscan:

=========
# ioscan -C disk
H/W Path Class Description
=================================================================
1/0/0/3/1.2.0 disk Optiarc DVD RW AD-5200A
1/0/6/1/0.4.4.0.0.0.1 disk HP HSV300
1/0/6/1/0.4.5.0.0.0.1 disk HP HSV300
1/0/6/1/0.5.6.255.0.0.0 disk SUN LCSM100_F
1/0/6/1/0.5.6.255.0.0.2 disk SUN LCSM100_F
1/0/6/1/0.5.6.255.0.0.3 disk SUN LCSM100_F
1/0/6/1/0.5.6.255.0.0.4 disk SUN LCSM100_F
1/0/6/1/0.5.6.255.0.0.5 disk SUN LCSM100_F
1/0/12/1/0/4/0.0.0 disk HP LOGICAL VOLUME
1/0/14/1/0.5.6.255.0.0.0 disk SUN LCSM100_F
1/0/14/1/0.5.6.255.0.0.2 disk SUN LCSM100_F
1/0/14/1/0.5.6.255.0.0.3 disk SUN LCSM100_F
1/0/14/1/0.5.6.255.0.0.4 disk SUN LCSM100_F
1/0/14/1/0.5.6.255.0.0.5 disk SUN LCSM100_F
=========

and LUN properties from SMH:

=========
LUN H/W Path 64000/0xfa00/0xa
Persistent Device File /dev/disk/disk18
Legacy H/W Path(s) 1/0/6/1/0.5.6.255.0.0.2
1/0/14/1/0.5.6.255.0.0.2
Legacy Device File(s) /dev/dsk/c6t0d2
/dev/dsk/c5t0d2
Device Identifier
Alias "sun_st_400_1"
World Wide ID 0x600a0b8000389a62000007cc4bdf8347
Size 400.0 GB
Block Size (bytes) 512
Capacity (blocks) 838860800
Use unused
Device Health online
Device Type direct access
Instance Number 18
Total Path Count 2
Device Class disk
Driver esdisk
State UNOPEN
Vendor "SUN "
Product "LCSM100_F "
Serial Number "SX73102519 "
Firmware Revision "0670"
SCSI Protocol Revision 5
=========


What can be wrong here?
3 REPLIES 3
melvyn burnard
Honored Contributor
Solution

Re: pvcreate error on fc lun

Is the LUn writeable?
try doing:
dd if=/stand/vmunix of=/dev/rdsk/c6t0d2
bs=1024k count=100

If that fails, then there is a problem with the LUN.
If it works, try doing the pvcreate command again
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Robert-Jan Goossens
Honored Contributor

Re: pvcreate error on fc lun

Hi,

--
State UNOPEN
--

You need to have a look at the configuration of the lun on the Sun San.

Regards,
Robert-Jan
Prokopets
Respected Contributor

Re: pvcreate error on fc lun

melvyn burnard:
# dd if=/dev/zero of=/dev/rdsk/c6t0d2 bs=1024k count=100
I/O error
2+0 records in
1+1 records out
Robert-Jan Goossens:
I suspect the lun is presented to other port, that's not visible for OS:

=======
1/0/6/1/0.5.6.255.0.0.2
1/0/14/1/0.5.6.255.0.0.2 c6t0d2
c5t0d2 unused - 2 400.0 GB SUN LCSM100_F
=======

Only two paths are here, but should be four, i think. I'l try to look at the storage config and check the cables.

Thanks for answers!