What is the Oracle ASM Cluster Filesystem (ACFS) and How to Create ACFS

Hi,

I will explain What is the Oracle ASM Cluster Filesystem (ACFS) and How to Create ACSF.

 

Oracle ACFS ( ASM Cluster Filesystem )

Oracle Automatic Storage Management Cluster File System (Oracle ACFS) is introduced in Oracle 11g Release 2 version. If you don’t know what is the Automatic Storage Management ( ASM ), you should read following article before this.

Oracle Automatic Storage Management ( ASM ) -1 Add Disk and Drop Disk Operations in Oracle ASM

 

 

 

 

ACFS ( ASM Cluster Filesystem )

ACFS is a Cluster file system like Local file system that you can store Application files, including executables, database trace files, database alert logs, application reports, BFILEs, configuration files, video, audio, text, images, engineering drawings, and other general-purpose application file data.

 

 

Application can use ASM Disks and storage via ACFS as if it is local disk as shown above. ACFS behaves as shared disk between Oracle RAC nodes, so it is very advantageous.

 

Create ACFS File System

ACFS can be created via asmcmd,asmca and Enterprise manager tool.

You can create and mount ACFS disk via asmcmd like following.

 

Step-1: Login asmcmd tool and create ACFS volume like following.

[[email protected] .ssh]$ asmcmd

ASMCMD> volcreate -G RECO -s 10000G ACFS_VOL1
ASMCMD> 
ASMCMD>

 

Step 2: List and check it if it is created or not.

ASMCMD> volinfo --all
Diskgroup Name: RECO

Volume Name: ACFS_VOL1
Volume Device: /dev/asm/acfs_vol1-375
State: ENABLED
Size (MB): 10240000
Resize Unit (MB): 512
Redundancy: HIGH
Stripe Columns: 8
Stripe Width (K): 1024
Usage: 
Mountpath: 

ASMCMD> exit
[[email protected] .ssh]$

 

Step -3: Create a file system on the ACFS volume.

[[email protected] .ssh]$ 
[[email protected] .ssh]$ 
[[email protected] .ssh]$ /sbin/mkfs -t acfs /dev/asm/acfs_vol1-375
mkfs.acfs: version = 12.2.0.1.0
mkfs.acfs: on-disk version = 46.0
mkfs.acfs: volume = /dev/asm/acfs_vol1-375
mkfs.acfs: volume size = 10737418240000 ( 9.77 TB )
mkfs.acfs: Format complete.
[[email protected] .ssh]$ 
[[email protected] .ssh]$ 
[[email protected] .ssh]$ 
[[email protected] .ssh]$ exit
logout
[[email protected] ~]# 
[[email protected] ~]#

 

Step -4: Login with root user, set ASM profile, Add and register this filesystem to CRS.

[[email protected] ~]# . oraenv
ORACLE_SID = [root] ? +ASM1
The Oracle base has been set to /u01/app/grid
[[email protected] ~]# 
[[email protected] ~]# mkdir /backup
[[email protected] ~]# $ORACLE_HOME/bin/srvctl add filesystem -d /dev/asm/acfs_vol1-375 -m /backup -u grid -fstype ACFS -autostart ALWAYS
[[email protected] ~]# 
[[email protected] ~]#

 

 

Step -5: Check mount point before start and mount this file system. ACFS does not exist now.

[[email protected] ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VGExaDb-LVDbSys1
                       30G   22G  4.7G  84% /
tmpfs                 755G  617M  754G   1% /dev/shm
/dev/sda1             488M   28M  425M   7% /boot
/dev/mapper/VGExaDb-LVDbOra1
                       99G   74G   21G  79% /u01
/dev/sda2             254M   24M  231M  10% /boot/efi
[[email protected] ~]#

 

 

ASM file system ( ACFS )

Step 6: Start filesystem and Mount it like following.

[[email protected] ~]# 
[[email protected] ~]# $ORACLE_HOME/bin/srvctl start filesystem -d /dev/asm/acfs_vol1-375
[[email protected] ~]# 
[[email protected] ~]# 
[[email protected] ~]# 
[[email protected] ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VGExaDb-LVDbSys1
                       30G   22G  4.7G  84% /
tmpfs                 755G  617M  754G   1% /dev/shm
/dev/sda1             488M   28M  425M   7% /boot
/dev/mapper/VGExaDb-LVDbOra1
                       99G   74G   21G  79% /u01
/dev/sda2             254M   24M  231M  10% /boot/efi
/dev/asm/acfs_vol1-375
                      9.8T   22G  9.8T   1% /backup
[[email protected] ~]#

 

You can create ACFS volume and ACFS disk via asmca like following.

Run asmca tool and go to create new ACFS volume like following.

 

 

Then create ACFS disk from ACFS volume like following.

 

 

 

Do you want to learn Oracle Database for Beginners, then read the following articles.

Oracle Tutorial | Oracle Database Tutorials for Beginners ( Junior Oracle DBA )

 1,741 views last month,  2 views today

About Mehmet Salih Deveci

I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience.I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource.I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks.I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients.If you need Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email adress [email protected].-                                                                                                                                                                                                                                                 -Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  [email protected] a mail atabilirsiniz.

Leave a Reply

Do NOT follow this link or you will be banned from the site!