Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

oracleasm createdisk fails - permission denied

dazzerNov 24 2011 — edited Oct 2 2013
I've got a fresh install of Oracle Linux 6.1, I'm trying to configure the disks ready to use with ASM.

# oracleasm configure
ORACLEASM_ENABLED=true
ORACLEASM_UID=oracle
ORACLEASM_GID=dba
ORACLEASM_SCANBOOT=true
ORACLEASM_SCANORDER=""
ORACLEASM_SCANEXCLUDE=""

# oracleasm status
Checking if ASM is loaded: yes
Checking if /dev/oracleasm is mounted: yes

I'm testing withthe following mulipath device :-
mpathd (360060160d9b12200c4640ab38416e111) dm-2 DGC,RAID 5
size=1.0G features='1 queue_if_no_path' hwhandler='1 emc' wp=rw
|-+- policy='round-robin 0' prio=-1 status=active
| |- 0:0:2:0 sdg 8:96 active undef running
| |- 0:0:3:0 sdi 8:128 active undef running
| |- 1:0:2:0 sdo 8:224 active undef running
| `- 1:0:3:0 sdq 65:0 active undef running
`-+- policy='round-robin 0' prio=-1 status=enabled
|- 0:0:0:0 sdc 8:32 active undef running
|- 0:0:1:0 sde 8:64 active undef running
|- 1:0:0:0 sdk 8:160 active undef running
`- 1:0:1:0 sdm 8:192 active undef running

I've partioned this device and mounted it as a file system(just to check I can access it):-

ll /dev/mapper/mpath*
lrwxrwxrwx. 1 root root 7 Nov 24 11:01 /dev/mapper/mpathd -> ../dm-2
lrwxrwxrwx. 1 root root 7 Nov 24 11:31 /dev/mapper/mpathdp1 -> ../dm-5
lrwxrwxrwx. 1 root root 7 Nov 24 11:01 /dev/mapper/mpathe -> ../dm-3

But when I try and create an asm disk it fails :-

# /etc/init.d/oracleasm createdisk TEST1 /dev/mapper/mpathdp1
Marking disk "TEST1" as an ASM disk: [FAILED]
# tail /var/log/oracleasm
Disk "TEST1" does not exist or is not instantiated
Writing disk header: done
Instantiating disk: oracleasm-instantiate-disk: Unable to create ASM disk "TEST1": Permission denied
failed
Clearing disk header: done

I don't know and can't find what permissions I'm missing - any help appreciated.

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 30 2013
Added on Nov 24 2011
22 comments
29,355 views