Oracle Database 11gR2: Building an ASM Clustered File System (ACFS) - Page 2
March 25, 2010
Installing ACFS: Creating a New ASM Disk Group
My next step is to configure ACFS, and to do that Ill first build a new ASM disk group just to contain this new file system. Instead of using the asmca utility to build this disk group in interactive mode as I did in my prior article, however, this time Ill invoke it in command line mode. I can view a brief listing of all the things that asmca can perform in this mode by invoking the asmca help command from the same terminal window, as shown in Listing 2.1.
To build a new disk group named ACFS, Ill invoke asmca with the creatediskGroup directive.
$> asmca -silent -createDiskGroup -diskString '/dev/oracleasm/disks/*' -diskGroupName ACFS -diskList /dev/oracleasm/disks/ACFDISK1 /dev/oracleasm/disks/ACFDISK2, /dev/oracleasm/disks/ACFDISK3 -redundancy EXTERNAL -au_size 1 -sysAsmPassword oracle
And heres the resulting entries from the +ASM instances alert log:
Sun Mar 07 22:46:59 2010 NOTE: updated gpnp profile ASM diskstring: /dev/oracleasm/disks/* ALTER SYSTEM SET asm_diskstring='/dev/oracleasm/disks/*' SCOPE=BOTH SID='*'; SQL> CREATE DISKGROUP ACFS EXTERNAL REDUNDANCY DISK '/dev/oracleasm/disks/ACFDISK1', '/dev/oracleasm/disks/ACFDISK2', '/dev/oracleasm/disks/ACFDISK3' ATTRIBUTE 'compatible.asm'='126.96.36.199.0','au_size'='1M' /* ASMCA */ NOTE: Assigning number (2,0) to disk (/dev/oracleasm/disks/ACFDISK1) NOTE: Assigning number (2,1) to disk (/dev/oracleasm/disks/ACFDISK2) NOTE: Assigning number (2,2) to disk (/dev/oracleasm/disks/ACFDISK3) NOTE: initializing header on grp 2 disk ACFS_0000 NOTE: initializing header on grp 2 disk ACFS_0001 NOTE: initializing header on grp 2 disk ACFS_0002 NOTE: initiating PST update: grp = 2 kfdp_update(): 13 Sun Mar 07 22:47:00 2010 kfdp_updateBg(): 13 NOTE: group ACFS: initial PST location: disk 0000 (PST copy 0) NOTE: PST update grp = 2 completed successfully NOTE: cache registered group ACFS number=2 incarn=0x17288ec8 NOTE: cache began mount (first) of group ACFS number=2 incarn=0x17288ec8 NOTE: cache opening disk 0 of grp 2: ACFS_0000 path:/dev/oracleasm/disks/ACFDISK1 NOTE: cache opening disk 1 of grp 2: ACFS_0001 path:/dev/oracleasm/disks/ACFDISK2 NOTE: cache opening disk 2 of grp 2: ACFS_0002 path:/dev/oracleasm/disks/ACFDISK3 < . . . some lines removed for sake of brevity . . .> NOTE: Instance updated compatible.asm to 188.8.131.52.0 for grp 2 SUCCESS: diskgroup ACFS was mounted SUCCESS: CREATE DISKGROUP ACFS EXTERNAL REDUNDANCY DISK '/dev/oracleasm/disks/ACFDISK1', '/dev/oracleasm/disks/ACFDISK2', '/dev/oracleasm/disks/ACFDISK3' ATTRIBUTE 'compatible.asm'='184.108.40.206.0', 'au_size'='1M' /* ASMCA */ Sun Mar 07 22:47:09 2010 NOTE: diskgroup resource ora.ACFS.dg is online
Ill use asmca to confirm that creation of the new ACFS ASM disk group has been successful and to modify any necessary ASM initialization parameters. As Figure 2.1 shows, ASM disk group ACFS was successfully created:
However, I also need to verify that the proper compatibility settings for the ACFS disk group are in place:
Figure 2.2. Verifying Compatibility Settings
Excellent! These settings are correct. So now, Ill create a new mount point within ACFS that will eventually host my new Oracle 11gR2 database home, as shown below:
Figure 2.3. Creating a New Oracle Database Home Within an ACFS Volume
For the location of the new ACFS mount point, Ill choose the new ACFS ASM disk group as the target for the ACFS volume created above
Figure 2.4. Selecting a Destination for New ACFS Volume
... and the end result is the successful volume assignment as shown in Figure 2.5 below.