LVM and VxVM
cancel
Showing results for 
Search instead for 
Did you mean: 

pvcreate: writing LVM record: Permission denied

 
adwi66
Occasional Visitor

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

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

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

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,