Create ASM Clustered File System (ACFS)
Great question! Here's a clear and practical guide on how to create an ACFS (ASM
Cluster File System) step by step in Oracle ASM (19c, 21c) environments like RAC or single
instance.
✅ How to Create ACFS (ASM Cluster File System)
Step-by-step process:
1️⃣ Make sure ASM is running and you have a disk group with compatible
attributes.
Check your ASM disk groups:
sqlplus / as sysasm
SQL> SELECT name, type, state FROM v$asm_diskgroup;
2️⃣ Verify compatibility attributes of the disk group (must support ACFS):
SELECT name, compatible_asm, compatible_advm
FROM v$asm_diskgroup;
If compatible_asm and compatible_advm are at least '11.2' or higher, you’re good.
Otherwise, set them:
ALTER DISKGROUP DATA SET ATTRIBUTE 'compatible.asm' = '19.0';
ALTER DISKGROUP DATA SET ATTRIBUTE 'compatible.advm' = '19.0';
3️⃣ Create an ASM volume using asmcmd or asmca.
Example (command line):
asmcmd volcreate -G DATA -s 50G ACFSVOL1
• DATA → your disk group.
• 50G → size.
• ACFSVOL1 → volume name.
Check volumes:
asmcmd volinfo -G DATA ACFSVOL1
4️⃣ Start the volume device:
sudo /etc/init.d/oracleadvm start
Or in newer systems:
sudo systemctl start oracleadvm
Check the device path:
ls /dev/asm/acfsvol1-*
5️⃣ Format the volume with ACFS:
sudo mkfs.acfs -n ACFS1 /dev/asm/acfsvol1-123
• ACFS1 → your filesystem name.
• /dev/asm/acfsvol1-123 → your actual device.
6️⃣ Mount the filesystem:
First, create a mount point:
sudo mkdir /acfs_filesystem
Then mount:
sudo mount -t acfs /dev/asm/acfsvol1-123 /acfs_filesystem
7️⃣ Make the mount permanent (optional):
Add this line to /etc/fstab:
/dev/asm/acfsvol1-123 /acfs_filesystem acfs defaults 0 0
8️⃣ Check if it's mounted:
df -h | grep acfs
Real-world example:
Let's say you have:
• Disk group: DATA
• Volume: ACFSVOL1
• Size: 100G
• Mount point: /backup
You will:
asmcmd volcreate -G DATA -s 100G ACFSVOL1
mkfs.acfs -n BACKUPFS /dev/asm/acfsvol1-123
mkdir /backup
mount -t acfs /dev/asm/acfsvol1-123 /backup
Now /backup is ready to use just like a regular filesystem, but it's powered by ASM!
✅ Why use ACFS?
• Store backup files.
• Hold application files.
• Share files across RAC nodes.
• Support for snapshots, encryption, replication, and more.
Would you like me to prepare a bash script for automated ACFS creation or a diagram to
visualize the process?