LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-23-2012, 01:17 AM   #1
kt1d
LQ Newbie
 
Registered: Jun 2012
Posts: 1

Rep: Reputation: Disabled
Unhappy How to Configure the ASM disks with single instance Database


I tried to configure the ASM disks on my linux box with these steps:

Stage 1
--From the main Terminal, switch user to root

[****@localhost Desktop]$ su root
Password:

Stage 2
-- From The Root user, make directory for ASM Disk

[root@localhost Desktop]# mkdir /asmdisk

Stage 3
-- Allocate 4 Disk Spaces to the ASM Disk with the Directory as shown

[root@localhost Desktop]# dd if=/dev/zero of=/asmdisk/disk1 bs=1024k count=500
500+0 records in
500+0 records out
524288000 bytes (524 MB) copied, 14.7428 s, 35.6 MB/s
[root@localhost Desktop]# dd if=/dev/zero of=/asmdisk/disk2 bs=1024k count=500
500+0 records in
500+0 records out
524288000 bytes (524 MB) copied, 14.1399 s, 37.1 MB/s
[root@localhost Desktop]# dd if=/dev/zero of=/asmdisk/disk3 bs=1024k count=500
500+0 records in
500+0 records out
524288000 bytes (524 MB) copied, 14.1355 s, 37.1 MB/s
[root@localhost Desktop]# dd if=/dev/zero of=/asmdisk/disk4 bs=1024k count=500
500+0 records in
500+0 records out
524288000 bytes (524 MB) copied, 14.2123 s, 36.9 MB/s


Stage 4
-- Allocate 4 loops Spaces in the ASM Disks earlier created with the Directory as shown


[root@localhost Desktop]# /sbin/losetup dev/loop1 /asmdisk/disk1
dev/loop1: No such file or directory
[root@localhost Desktop]# /sbin/losetup /dev/loop1 /asmdisk/disk1
[root@localhost Desktop]# /sbin/losetup /dev/loop2 /asmdisk/disk2
[root@localhost Desktop]# /sbin/losetup /dev/loop3 /asmdisk/disk3
[root@localhost Desktop]# /sbin/losetup /dev/loop4 /asmdisk/disk4


Stage 5
-- Allocate 4 raw Spaces in the 4 loop spaces in the ASM Disks earlier created with the Directory as shown

[root@localhost Desktop]# raw /dev/raw/raw1 /dev/loop1
/dev/raw/raw1: bound to major 7, minor 1
[root@localhost Desktop]# raw /dev/raw/raw2 /dev/loop2
/dev/raw/raw2: bound to major 7, minor 2
[root@localhost Desktop]# raw /dev/raw/raw3 /dev/loop3
/dev/raw/raw3: bound to major 7, minor 3
[root@localhost Desktop]# raw /dev/raw/raw4 /dev/loop4
/dev/raw/raw4: bound to major 7, minor 4


Stage 6
-- cd the Dev/raw Directory earlier created as shown below:

[root@localhost Desktop]# cd /dev/raw


Stage 7
-- List as shown below:

[root@localhost raw]# ls -ltr
total 0
crw-rw----. 1 root disk 162, 0 Jun 21 12:45 rawctl
crw-rw----. 1 root disk 162, 1 Jun 21 18:58 raw1
crw-rw----. 1 root disk 162, 2 Jun 21 18:58 raw2
crw-rw----. 1 root disk 162, 3 Jun 21 18:58 raw3
crw-rw----. 1 root disk 162, 4 Jun 21 18:59 raw4

Step 8

I did the chown oracleinstall command for the /dev/raw/raw1 for the 4 parts

Step 9

I did the chmod 660 for the 4 raw disks created

At this stage, it gave me the "permission error" that i don't have the permission to create the disks.

I called the DBCA anyway, but could not find the ASM disks i configured earlier, though the database was created with non-asm files.

Please what can i do at this stage?

Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Single instance of application AMA Linux - Newbie 2 10-05-2011 10:44 AM
How to migrate ASM disks from solaris10 (X86) to linux OS. mbenz04 Linux - General 4 08-10-2011 01:34 PM
Single Instance of Bash Script binbash Programming 19 10-06-2010 08:37 AM
Oracle Database Connected to an idle instance. RMLinux Linux - Newbie 1 11-25-2008 12:58 PM
Creating Single Instance linux application praj_linux Programming 2 11-19-2004 04:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration