Professional Documents
Culture Documents
ORACLE-BASE - Oracle ASM Cluster File Systems (ACFS) in Oracle Database 11g Release 2
ORACLE-BASE - Oracle ASM Cluster File Systems (ACFS) in Oracle Database 11g Release 2
php
Home Articles Scripts Forums Blog Certification Misc About Printer Friendly
Oracle 8i | Oracle 9i | Oracle 10g | Oracle 11g | Oracle 12c | Miscellaneous | PL/SQL | SQL | Oracle RAC | Oracle Apps | Linux
This article describes three ways to create an ASM Cluster File System in an Oracle 11G
Release 2 RAC database. It is assumed the RAC database is already present. For these
examples I used the VMware RAC installation described here.
When the ASM configuration assistant starts you are presented with the "ASM Instances" tab.
Click on the "ASM Cluster File Systems" tab, then click the "Create" button.
Translate
1 of 8 7/24/2014 1:00 PM
ORACLE-BASE - Oracle ASM Cluster File Systems (ACFS) in Oracle D... http://www.oracle-base.com/articles/11g/acfs-11gr2.php
Enter the Volume Name and Size and click the "OK" button. Wait for the volume to be created, then click the "OK" button on the subsequent message
dialog.
The newly created volume will now be selected in the Volume list. Select the "General Purpose File System" option, enter a previously created mount point
directory (or leave the suggested mount point), select the "Yes" option for Register MountPoint and click the "OK" button.
2 of 8 7/24/2014 1:00 PM
ORACLE-BASE - Oracle ASM Cluster File Systems (ACFS) in Oracle D... http://www.oracle-base.com/articles/11g/acfs-11gr2.php
The newly created cluster file system is now listed under the "ASM Cluster File Systems" tab.
At the command line on the first RAC node, navigate to the ACFS mount point and create a test file.
3 of 8 7/24/2014 1:00 PM
ORACLE-BASE - Oracle ASM Cluster File Systems (ACFS) in Oracle D... http://www.oracle-base.com/articles/11g/acfs-11gr2.php
First we need to create mount points on the file system of each node for the new volume.
# mkdir -p /u01/app/oracle/acfsmounts/data_acfsvol2
# chown oracle:oinstall /u01/app/oracle/acfsmounts/data_acfsvol2
Log in to OEM, scroll to the bottom of the home page, then click on one of the ASM instances listed. On the resulting ASM screen, click on the "ASM
Cluster File System" tab. You are then presented with the following screen. Click the "Create" button.
4 of 8 7/24/2014 1:00 PM
ORACLE-BASE - Oracle ASM Cluster File Systems (ACFS) in Oracle D... http://www.oracle-base.com/articles/11g/acfs-11gr2.php
Enter the Volume Name and Size and click the "OK" button. Wait for the volume to be created.
The newly created volume will now be entered in the Volume Device field. Enter a Volume Label and the previously created mount point directory, then
click the "OK" button.
The newly created volume is listed as "Dismounted". Select it and click the "Mount" button.
5 of 8 7/24/2014 1:00 PM
ORACLE-BASE - Oracle ASM Cluster File Systems (ACFS) in Oracle D... http://www.oracle-base.com/articles/11g/acfs-11gr2.php
Enter the Mount Point and click the "Generate Command" button.
Run the suggested command as the "root" user on all nodes, then click the "Return" button on this and the previous screen.
Command Line
First we need to create mount points on the file system of each node for the new volume.
# mkdir -p /u01/app/oracle/acfsmounts/data_acfsvol3
6 of 8 7/24/2014 1:00 PM
ORACLE-BASE - Oracle ASM Cluster File Systems (ACFS) in Oracle D... http://www.oracle-base.com/articles/11g/acfs-11gr2.php
As the "oracle" user, switch to the ASM environment on node 1 of the RAC, then connect to the ASM instance using SQL*Plus.
Diskgroup altered.
SQL>
Exit the SQL*Plus session, then create a file system on the volume.
The ASM Cluster File System should now be mounted on all RAC nodes. If it not, then issue the following command on each node to mount it.
General Points
You can unmount and mount all the ACFS locations using the following commands from the "root" user on each RAC node.
# /bin/umount -t acfs -a
# /sbin/mount.acfs -o all
Registering mount points, means these file systems will automatically be mounted and unmounted and startup and shutdown respectively.
Probably the easiest interface to use is the ASM Configuration Assistant (ASMCA), but Enterprise Manager does allow you to see all the commands being
run to perform each task. The easiest way to learn how to use the command line utilities is to use Enterprise Manager and click the "Show Command"
button each step of the way.
1 Like 5 Tweet 0 7
7 of 8 7/24/2014 1:00 PM
ORACLE-BASE - Oracle ASM Cluster File Systems (ACFS) in Oracle D... http://www.oracle-base.com/articles/11g/acfs-11gr2.php
8 of 8 7/24/2014 1:00 PM