Oracle ASM Cluster File System (ACFS) is used to create a cluster file system via ASM. The created file system will use the space within the ASM disk groups. In this file system, the Grid Infrastructure home directory and the files in Oracle ASM should not be stored directly. ACFS can be used for all files except those files.
In order to use ACFS, a driver is required. This driver can be installed by following the steps below.
Installation on a rac database with two nodes:
All operations will be done with root user.
First let’s check if it was installed before.
1 2 |
root@dbnode1:/u01/app/11.2.0/grid/bin> ./acfsdriverstate -orahome /u01/app/11.2.0/grid installed ACFS-9203: false |
We check whether the operating system is within the supported operating systems.
1 2 |
root@dbnode1:/u01/app/11.2.0/grid/bin> ./acfsdriverstate -orahome /u01/app/11.2.0/grid supported ACFS-9200: Supported |
If we have the above results, we can start the installation.
On first node:
Installation Process:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
root@dbnode1:/u01/app/11.2.0/grid/bin> /u01/app/11.2.0/grid/bin/acfsroot install ACFS-9300: ADVM/ACFS distribution files found. ACFS-9307: Installing requested ADVM/ACFS software. ACFS-9308: Loading installed ADVM/ACFS drivers. ACFS-9321: Creating udev for ADVM/ACFS. ACFS-9323: Creating module dependencies - this may take some time. ACFS-9154: Loading 'oracleoks.ko' driver. ACFS-9154: Loading 'oracleadvm.ko' driver. ACFS-9154: Loading 'oracleacfs.ko' driver. ACFS-9327: Verifying ADVM/ACFS devices. ACFS-9156: Detecting control device '/dev/asm/.asm_ctl_spec'. ACFS-9156: Detecting control device '/dev/ofsctl'. ACFS-9309: ADVM/ACFS installation correctness verified. |
Installation of drivers after installation:
1 2 3 4 5 6 7 8 9 |
root@dbnode1:/u01/app/11.2.0/grid/bin> /u01/app/11.2.0/grid/bin/acfsload start ACFS-9391: Checking for existing ADVM/ACFS installation. ACFS-9392: Validating ADVM/ACFS installation files for operating system. ACFS-9393: Verifying ASM Administrator setup. ACFS-9308: Loading installed ADVM/ACFS drivers. ACFS-9327: Verifying ADVM/ACFS devices. ACFS-9156: Detecting control device '/dev/asm/.asm_ctl_spec'. ACFS-9156: Detecting control device '/dev/ofsctl'. ACFS-9322: completed |
Starting the acfs service on the CRS side:
1 2 3 |
root@dbnode1:/u01/app/11.2.0/grid/bin>./crsctl start res ora.registry.acfs -n dbnode1 CRS-2672: Attempting to start 'ora.registry.acfs' on 'dbnode1' CRS-2676: Start of 'ora.registry.acfs' on 'dbnode1' succeeded |
On second node:
Installation Process:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
root@dbnode2:/u01/app/11.2.0/grid/bin> /u01/app/11.2.0/grid/bin/acfsroot install ACFS-9300: ADVM/ACFS distribution files found. ACFS-9307: Installing requested ADVM/ACFS software. ACFS-9308: Loading installed ADVM/ACFS drivers. ACFS-9321: Creating udev for ADVM/ACFS. ACFS-9323: Creating module dependencies - this may take some time. ACFS-9154: Loading 'oracleoks.ko' driver. ACFS-9154: Loading 'oracleadvm.ko' driver. ACFS-9154: Loading 'oracleacfs.ko' driver. ACFS-9327: Verifying ADVM/ACFS devices. ACFS-9156: Detecting control device '/dev/asm/.asm_ctl_spec'. ACFS-9156: Detecting control device '/dev/ofsctl'. ACFS-9309: ADVM/ACFS installation correctness verified. |
Installation of drivers after installation:
1 2 3 4 5 6 7 8 9 |
root@dbnode2:/u01/app/11.2.0/grid/bin> /u01/app/11.2.0/grid/bin/acfsload start ACFS-9391: Checking for existing ADVM/ACFS installation. ACFS-9392: Validating ADVM/ACFS installation files for operating system. ACFS-9393: Verifying ASM Administrator setup. ACFS-9308: Loading installed ADVM/ACFS drivers. ACFS-9327: Verifying ADVM/ACFS devices. ACFS-9156: Detecting control device '/dev/asm/.asm_ctl_spec'. ACFS-9156: Detecting control device '/dev/ofsctl'. ACFS-9322: completed |
Starting the acfs service on the CRS side:
1 2 3 |
root@dbnode2:/u01/app/11.2.0/grid/bin>./crsctl start res ora.registry.acfs -n dbnode2 CRS-2672: Attempting to start 'ora.registry.acfs' on 'dbnode2' CRS-2676: Start of 'ora.registry.acfs' on 'dbnode2' succeeded |
On all nodes, the acfs resource on the CRS side should be as follows after the installation steps are completed.
1 2 3 4 5 |
root@dbnode2:/u01/app/11.2.0/grid/bin>./crsctl status res ora.registry.acfs NAME=ora.registry.acfs TYPE=ora.registry.acfs.type TARGET=ONLINE , ONLINE STATE=ONLINE on dbnode1, ONLINE on dbnode2 |
Finally, let’s check that the drivers are installed on all nodes.
1 2 3 4 5 |
root@dbnode1:/u01/app/11.2.0/grid/bin> ./acfsdriverstate -orahome /u01/app/11.2.0/grid loaded ACFS-9203: true root@dbnode2:/u01/app/11.2.0/grid/bin> ./acfsdriverstate -orahome /u01/app/11.2.0/grid loaded ACFS-9203: true |
After installation, the volume should be created with asmca and then the ACFS file system should be created on this volume and mounted to the corresponding directory.