Operating System - HP-UX
1833788 Members
2589 Online
110063 Solutions
New Discussion

pvcreate: writing LVM record: Permission denied

 
adwi66
New Member

pvcreate: writing LVM record: Permission denied

I allocated a lun from EMC array. When I am trying to use pvcreate on it it fails with the error pvcreate: writing LVM record: Permission denied

pvcreate -f /dev/rdsk/c24t9d0
pvcreate: writing LVM record: Permission denied

Also Tried to read the device and it seems to work fine.

dd if=/dev/rdsk/c24t9d0 of=/dev/null bs=64k count=160
45+0 records in
45+0 records out

Please provide any thoughts to resolve this issue. Thanks.
11 REPLIES 11
Patrick Wallek
Honored Contributor

Re: pvcreate: writing LVM record: Permission denied

The dd shows you can read from the disk, but can you write to it?

What if you do something like:

dd if=/dev/random of=/dev/rdsk/c24t9d0 count=100

Does it work or does it error?

The error message given by pvcreate seems to indicate you somehow don't have write permission to the device. Has it been set up correctly on the EMC side?
adwi66
New Member

Re: pvcreate: writing LVM record: Permission denied

I get the following error while writing using dd:

root> dd if=/dev/zero of=/dev/rdsk/c24t9d0 bs=64k count=160
I/O error
1+0 records in
0+1 records out
root> dd if=/dev/zero of=/dev/rdsk/c24t9d0 count=100
I/O error
1+0 records in
0+1 records out

It looks that dd is not able to write on the device. Checked on EMC device configuration and it looks fine to me. Opened case with EMC support as well
Michal Kapalka (mikap)
Honored Contributor

Re: pvcreate: writing LVM record: Permission denied

adwi66
New Member

Re: pvcreate: writing LVM record: Permission denied

Actually I saw that thread. It talks about HDS lun but since this is on EMC lun this time. Didn't find the solution there.
Michal Kapalka (mikap)
Honored Contributor

Re: pvcreate: writing LVM record: Permission denied

hi,

ok its EMC storage but what type / model ??

symmetrix / clariion

mikap
adwi66
New Member

Re: pvcreate: writing LVM record: Permission denied

Symmetrix (DMX4)
Michal Kapalka (mikap)
Honored Contributor

Re: pvcreate: writing LVM record: Permission denied

hi,

if you are EMC customer, you should have an account on powerlink.emc.com.

if i have some troubles, i always check the storage for some problems.

how did you assigned the lun to yor server ??

symcfg discover

symmaskdb -sid serial list database -dir 8d -p 0

symmask -sid serial add devs 01E4,01F8 -wwn WWN_of_server_HBA -dir 8d -p 0 -noprompt

symmaskdb -sid serial list database -dir 8d -p 0

symmask -sid serial refresh

i always do it this way without any problem.

mikap
Michal Kapalka (mikap)
Honored Contributor

Re: pvcreate: writing LVM record: Permission denied

hi,

i forgot to say :

symdev -sid serial rw_enable ($DEVICE)


mikap
rariasn
Honored Contributor

Re: pvcreate: writing LVM record: Permission denied

Hi,


symdev -sid show

Verify "device status":

Device Status : Ready (RW)
Device SA Status : Ready (RW)



symdev -sid xxx rw_enable

Rgs,
adwi66
New Member

Re: pvcreate: writing LVM record: Permission denied

Thanks for all of your help. I found the issue. HP-UX lun addressing only supports 0-7 at the unit place.

Let's say the lun is mapped to xyz where z is anything from 8-F, HPUX won't be able to understand it.

so the issue was, device was mapped to 088 lun of the FA port. the 8 at the unit's place was not being identified by HPUX so I had to re-map it to 090 (next available lun after 088) which could then be accepted.

I had to remap and re-mask the lun again with the new configuration.

To check more detail read "EMC Host Connectivity Guide for HP-UX" at page 82.
rsharma1
New Member

Re: pvcreate: writing LVM record: Permission denied

You'd get this error if  you have SCSI3 PGR keys  registered on the luns. In that case remove the pgr keys and retry the writes