Skip to Main Content

Database 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!

asm disk permission

842803Mar 21 2011 — edited Apr 15 2011
Hi ,
I have created a virtual machine of around 50gb and on that i have added 4 harddisk of around 3gb after that i have mount those disk and created folders accordingly i have installed OLE 5.5 and oracle 10g relaease 2 above things i have done for ASM for asm configuration . now the above are copy and paste from virtual machine
I have added 4 machines mount them created folders on them naming asm1,asm2,asm3,asm4 and created raw devices in them with the help of dd command of 3 gb files each .....after that i relate them losteup devices and raw devices and later on as chage the owner and permissions related to oracle .......... at the time the owner changed to oracle so i created my asm instance with one diskgroup and normal redundancy ......but when i reboot my machine started the following asm instance I got the following error .........

ASM Cache 25165824 bytes
ORA-15032: not all alterations performed
ORA-15063: ASM discovered an insufficient number of disks for diskgroup "DATA"

later on i came to know that it is not able to getthe disk which i created and the cause is the owner has become root so that 's the major cause i was not able to get my diskgroup so i changed the owner and permssions granted to oracle and at that time it has changed but when reboot of machine makes it root user so iam not able to configure it becasue when surfing these are the commands

chown oracle:dba /dev/raw/raw1
# chown oracle:dba /dev/raw/raw2
# chown oracle:dba /dev/raw/raw3
# chown oracle:dba /dev/raw/raw4

# chmod 660 /dev/raw/raw1
# chmod 660 /dev/raw/raw2
# chmod 660 /dev/raw/raw3
# chmod 660 /dev/raw/raw4

but after reboot owner becomes root and coz of this iam not able to access my diskgroup iam pasting output of certain things

fdisk -l

Disk /dev/sda: 53.6 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 4614 36957532+ 83 Linux
/dev/sda3 4615 5889 10241437+ 83 Linux
/dev/sda4 5890 6527 5124735 5 Extended
/dev/sda5 5890 6271 3068383+ 82 Linux swap / Solaris
/dev/sda6 6272 6526 2048256 83 Linux

Disk /dev/sdb: 3221 MB, 3221225472 bytes
255 heads, 63 sectors/track, 391 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 391 3140676 83 Linux

Disk /dev/sdc: 3221 MB, 3221225472 bytes
255 heads, 63 sectors/track, 391 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 1 391 3140676 83 Linux

Disk /dev/sdd: 3221 MB, 3221225472 bytes
255 heads, 63 sectors/track, 391 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdd1 1 391 3140676 83 Linux

Disk /dev/sde: 3221 MB, 3221225472 bytes
255 heads, 63 sectors/track, 391 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sde1 1 391 3140676 83 Linux
[root@oracle10 ~]#

df -h

[root@oracle10 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 9.5G 8.5G 546M 95% /
/dev/sda6 1.9G 46M 1.8G 3% /tmp
/dev/sda2 35G 2.6G 30G 8% /u01
/dev/sda1 99M 30M 65M 32% /boot
tmpfs 252M 0 252M 0% /dev/shm
/dev/sdb1 3.0G 2.6G 235M 92% /asm1
/dev/sdc1 3.0G 2.6G 235M 92% /asm2
/dev/sdd1 3.0G 2.6G 235M 92% /asm3
/dev/sde1 3.0G 2.6G 235M 92% /asm4
/dev/hdc 639M 639M 0 100% /media/My Disc

the content of /etc/rc.local

#!/bin/sh
#
# This script will be executed after all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local

/sbin/losetup /dev/loop1 /asm1/disk1
/sbin/losetup /dev/loop2 /asm2/disk2
/sbin/losetup /dev/loop3 /asm3/disk3
/sbin/losetup /dev/loop4 /asm4/disk4
raw /dev/raw/raw1 /dev/loop1
raw /dev/raw/raw2 /dev/loop2
raw /dev/raw/raw3 /dev/loop3
raw /dev/raw/raw4 /dev/loop4

the content of /etc/fstab

LABEL=/ / ext3 defaults 1 1
LABEL=/tmp /tmp ext3 defaults 1 2
LABEL=/u01 /u01 ext3 defaults 1 2
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda5 swap swap defaults 0 0
/dev/sdb1 /asm1 ext3 defaults 0 2
/dev/sdc1 /asm2 ext3 defaults 0 2
/dev/sdd1 /asm3 ext3 defaults 0 2
/dev/sde1 /asm4 ext3 defaults 0 2

Iam struggling with these for 3 days pls help was trying to paste the contents of alert file but that exceed the max length

Thanks in Advance

Regards
Kavita
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 13 2011
Added on Mar 21 2011
3 comments
4,278 views