The Oracle Blog in Spanish

Oracle ASM File System (ACFS) – Oracle Restart

In this post step by step how to implement ORACLE ACFS in an Oracle RAC architecture.
https://bdconraul.com/acfs/

Ahora, vamos a implementar la configuración de Oracle ASM Cluster File system (ACFS) en Oracle Restart. Aunque los pasos son muy parecidos a los detallados en el enlace anterior, la configuración sobre arquitectura Oracle Restart tiene algunas caracterícticas que te detallamos aquí.

Además, Oracle ACF en Oracle Restart tiene algunas restricciones, chequea las mismas en el siguiente enlace antes de aplicarlo:
https://docs.oracle.com/en/database/oracle/oracle-database/19/ladbi/restrictions-and-guidelines-for-oracle-acfs.html

This document describes how to create an ACFS in Oracle restart and use it as a backup.

Hemos creado un nuevo diskgroup para crear el fichero ACFS, al que hemos llamado ORACLEADFS.

Aquí puedes ver cómo hacerlo.
https://bdconraul.com/anadir-discos-a-asm/

We will create the file system within the "ORACLEADFS" disk group.

To create an ACFS file system in an Oracle Restart environment, you must first enable access to ACFS.

1 – Enable access to ACF

To do this, you need to do the following.

Go to the main directory of Grid infrastructure and run the following (root user).

cd $GRID_HOME/crs/install
./roothas.sh —lockacfs

Script output

2 –Crear un volumen Oracle ADVM en un grupo de discos montado con ASM.

Utilizaremos el comando volcreate para crear un volumen en el diskgroup de ASM, en nuestro caso ORACLEADFS.

ASMCMD> volcreate -G ORACLEADFS -s 5G volume1
ASMCMD>

3 – Display information about Oracle ADVM volumes.

 ASMCMD> volinfo -G ORACLEADFS volume1
 Diskgroup Name: ORACLEADFS
 
 Volume Name: VOLUME1
 Volume Device: /dev/asm/volume1-429
 State: ENABLED
 Size (MB): 5120
 Resize Unit (MB): 64
 Redundancy: UNPROT
 Stripe Columns: 8
 Stripe Width (K): 1024
 Usage: 
 Mountpath: 

Importante verificar el volumen del disco en este caso: /dev/asm/volume1-429.
Puedes verifcarlo también a través del sistema operativo.

You can also verify this with this query:

 SQL > SELECT VOLUME_NAME, VOLUME_DEVICE FROM V$ASM_VOLUME WHERE VOLUME_NAME='VOLUME1';

VOLUME_NAME   VOLUME_DEVICE
------------- ---------------
VOLUME1       /dev/asm/volume1-429

We will use it as a parameter in the next step.

4- We create the ACFS file system

Create the ACFS file system using the volume device we just created.

 oracle@oracle21dg> mkfs.acfs /dev/asm/volume1-429
mkfs.acfs: version = 21.0.0.0.0
mkfs.acfs: on-disk version = 50.0
mkfs.acfs: volume = /dev/asm/volume1-429
mkfs.acfs: volume size = 5368709120 ( 5.00 GB )
mkfs.acfs: file system size = 5368709120 ( 5.00 GB )
mkfs.acfs: Format complete.
oracle@oracle21dg>

5- Montar el ASM Cluster file System.

root@localhost ~]# mkdir /backup
[root@localhost ~]# chown oracle:oracle /backup/
[root@localhost ~]# /bin/mount -t acfs /dev/asm/volume1-429 /backup

6- Add it post the post /etc/fstab so that it can be mounted on the machine's starter.

vi /etc/fstab

Add the following line to the /etc/fstab file.

/dev/asm/volume1-429 /backup acfs defaults 0 0

7- We verify the ACFS

Ya podemos usar el acfs creado, en este caso vamos a usarlo cómo backup, igual que hicimos en el ejemplo de creación ACFS en RAC y que puedes ver en este enlace:
https://bdconraul.com/acfs/

SQL> create or replace directory EXPORT as '/backup';

Directory created.

oracle@oracle21dg> expdp system/oracleconraul@test schemas=system directory=EXPORT dumpfile=exp_system.dmp logfile=exp_system.log
Export: Release 21.0.0.0.0 – Production on Mon Dec 1 16:16:23 2025
Version 21.3.0.0.0
Copyright (c) 1982, 2021, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 21c Standard Edition 2 Release 21.0.0.0.0 – Production
Starting «SYSTEM».»SYS_EXPORT_SCHEMA_01″: system/@test schemas=system directory=EXPORT dumpfile=exp_system.dmp logfile=exp_system.log
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA

Oracle ACE Associate