ACFS is an ASM-based clustered file system that is used to store all type of data types and is installed with Grid Infrastructure. There are different ways to create ACFS. The way how to create an ACFS file system using ASMCA utility.
Oracle Automatic Storage Management Cluster File System (Oracle ACFS) is a multi-platform, scalable file system, and storage management technology that extends Oracle Automatic Storage Management (Oracle ASM) functionality to support customer files maintained outside of Oracle Database. Oracle ACFS supports many database and application files, including executables, database trace files, database alert logs, application reports, BFILEs, and configuration files. Other supported files are video, audio, text, images, engineering drawings, and other general-purpose application file data.
Notice:



I failed this practice, because ACFS and Volumes tab are not shown on my test environment. I can't activate it despite updating the Linux kernel and I have no privilege to download Oracle GI's RELEASE UPDATE patch. So in this session, I'm going to concentrate the concepts about ACFS and codes.
ACFS is based on the volumes that are created in a disk group. First of all, an ASM diskgroup should be created. Then the volume will be created in an ASM diskgroup. This volume device will be used to create an ACFS.
/* First of all, create an ASM diskgroup */
CREATE DISKGROUP dg_acfs2 EXTERNAL REDUNDANCY DISK '/dev/newdisk2','/dev/newdisk3';
/* Adding volumes to diskgroup. */
ALTER DISKGROUP dg_acfs ADD VOLUME volume1 SIZE 200M;
/* Or you can create a volume from ASMCMD utility */
ASMCMD > volcreate -G data -s 200m volume1
ASMCMD > volinfo -G data volume1
/* Query GV$ASM_VOLUME, V$ASM_VOLUME views, you can get information */
SET LINESIZE 150
COL volume_name FORMAT a30
SELECT inst_id, volume_name, volume_device, size_mb, usage, state
FROM gv_asm_volume
ORDER BY inst_id, volume_name;
SELECT volume_name, volume_device
FROM V$ASM_VOLUME
WHERE volume_name ='volume1';
/* Create a file system with the Oracle ACFS mkfs command */
$ /sbin/mkfs -t acfs /dev/asm/volume1-123
/* Register the file system */
$ srvctl add filesystem -device /dev/asm/volume1-123 -path /acfsmounts/acfs1 -user user1,user2,user3 -mtowner sysowner -mtgroup sysgrp -mtperm 755
/* You can also register a file system with the acfsutil registery command */
$ /sbin/acfsutil registry -a /dev/asm/volume1-123 /acfsmounts/acfs1
/* Mount the file system with the Oracle ACFS mount command, if you have not previously registered the file system */
/bin/mount -t acfs /dev/asm/volume1-123 /acfsmounts/acf1
/* If you have previously registered the file system, then use this code */
$ srvctl start filesystem -device /dev/asm/volume1-123
/* Resize ACFS file system */
$ /sbin/acfsutil size +100m /acfsmounts/acf1
/* Creating ACFS Snapshots */
$ touch /acfsmounts/acf1/a
$ /sbin/acfsutil snap create test_snapshot /acfsmounts/acf1
/* You can check ACFS snapshots in this directory */
$ rm -rf /acfsmounts/acf1/a
$ cd /acfsmounts/acf1/.ACFS/snaps/test_snapshot/
/** Deregistering and Dismounting ACFS file system **/
/* Deregister the ACFS */
$ /sbin/acfsutil registery -d /acfsmounts/acf1
/* Dismount the ACFS */
$ /bin/umount /acfsmounts/acf1
/* Remove the file system */
$ /sbin/acfsutil rmfs /dev/asm/volume1-123
/* Disable the volume */
ASMCMD > voldisable -G data volume-1
/* Delete the volume */
ASMCMD > voldelete -G data volume-1
Q1. Create an ACFS file system using ASMCA utility (10min)
Q2. Create an ACFS file system manually (15min)
Q3. Deregister and Dismount an ACFS file system (7min)
References