Starting ACFS (ORA-15477)

Categories: Oracle Database · Storage · High availability · ACFS · ASM

Translated from Portuguese. Read the original

Hi everyone, here I bring a very quick tip on how to start ACFS in case it is not enabled.

First I’ll switch my session to the grid user:

[root@exadb01 ~]# su - grid

I set the environment variables to point to ASM:

[grid@exadb01 ~]$ . oraenv
ORACLE_SID = [grid] ? +ASM
The Oracle base has been set to /u01/app/grid

I open asmcmd to list the diskgroups present in my configuration:

[grid@exadb01 ~]$ asmcmd
ASMCMD> lsdg
State    Type    Rebal  Sector  Block       AU  Total_MB  Free_MB  Req_mir_free_MB  Usable_file_MB  Offline_disks  Voting_files  Name
MOUNTED  NORMAL  N         512   4096  4194304     17280    10392              720            4836              0             N  DATA/
MOUNTED  NORMAL  N         512   4096  2097152      1152      940               48             446              0             N  DBFS/
MOUNTED  NORMAL  N         512   4096  2097152      4224     2744              176            1284              0             N  RECO/

I try to create a volume to use with ACFS:

ASMCMD> volcreate -G DBFS -s 100M acfsvol01
ORA-15032: not all alterations performed
ORA-15477: cannot communicate with the volume driver (DBD ERROR: OCIStmtExecute)

The error is reported because the ACFS module is not loaded.

Again as root, see that the module isn’t even listed:

[root@exadb01 ~]# lsmod |grep -i acfs

[root@exadb01 ~]# lsmod |grep -i oracle

So I need to load the ACFS and ADVM modules, and to do that, if it succeeds, I run:

[root@exadb01 ~]# 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-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-9322: completed

Now I can list the modules:

[root@exadb01 ~]# lsmod |grep acfs
oracleacfs           1933804  0
oracleoks             420760  2 oracleacfs,oracleadvm

[root@exadb01 ~]# lsmod |grep oracle
oracleacfs           1933804  0
oracleadvm            243697  1
oracleoks             420760  2 oracleacfs,oracleadvm

I switch to the grid user again and set the environment variables for ASM:

[root@exadb01 ~]# su - grid

[grid@exadb01 ~]$ . oraenv
ORACLE_SID = [grid] ? +ASM
The Oracle base has been set to /u01/app/grid

I open asmcmd:

[grid@exadb01 ~]$ asmcmd

I create the desired volume:

ASMCMD> volcreate -G DBFS -s 100M acfsvol01

I list the volume that was created:

ASMCMD> volinfo -a
Diskgroup Name: DBFS

         Volume Name: ACFSVOL01
         Volume Device: /dev/asm/acfsvol01-41
         State: ENABLED
         Size (MB): 128
         Resize Unit (MB): 32
         Redundancy: MIRROR
         Stripe Columns: 4
         Stripe Width (K): 128
         Usage:
         Mountpath:

Done. Now all that’s left is to create the directory, format the volume and mount it as ACFS.

Hugs and see you next time,

Franky

Other articles about ACFS: Getting started with the Automatic Storage Management Cluster FileSystem (ACFS) and ACFS for Databases and Flex ASM.

Comments