(Based on How To Resize An ACFS Filesystem/ASM Volume (ADVM) (Doc ID 1173978.1 , https://docs.oracle.com/database/121/OSTMG/GUID-4C98CF06-8CCC-45F1-9316-C40FB3EFF268.htm#OSTMG94787
1) Create/Check the ACFSDG diskgroup from ASM instance:
I’m using DATA DG here as is just a test, but ideally create separate DG for ACFS:
SQL> select name, total_mb, free_mb from v$asm_diskgroup;
NAME TOTAL_MB FREE_MB
FRA 102398 81574
DATA 204797 180412 —> use this for test
GRID 15342 5926
2) Create/Resize the next volume (100MB) in the ACFSDG diskgroup:
sqlplus / as sysasm (had permissions issue using sysdba)
ALTER DISKGROUP DATA ADD VOLUME ACFSVOLUME1 SIZE 100M;
Diskgroup altered.
— needs to be min 200M for an f/s.
ALTER DISKGROUP DATA RESIZE VOLUME ACFSVOLUME1 SIZE 500M;
Diskgroup altered.
3) get Volume information for ACFSVOLUME1 created above in ‘data’
ASMCMD> volinfo -G data ACFSVOLUME1
Diskgroup Name: DATA
Volume Name: ACFSVOLUME1 Volume Device: /dev/asm/acfsvolume1-1 ------> device name, note this for use State: ENABLED Size (MB): 128 Resize Unit (MB): 64 Redundancy: UNPROT Stripe Columns: 8 Stripe Width (K): 1024 Usage: Mountpath:
3) Create the new ACFS filesystem on the /dev/asm/acfsvolume1-1 volume:
su –
mkdir /oracle_backup
as grid owner:
/sbin/mkfs -t acfs /dev/asm/acfsvolume1-1
output :
$ /sbin/mkfs -t acfs /dev/asm/acfsvolume1-1
mkfs.acfs: version = 12.1.0.2.0
mkfs.acfs: on-disk version = 39.0
mkfs.acfs: volume = /dev/asm/acfsvolume1-1
mkfs.acfs: volume size = 536870912 ( 512.00 MB )
mkfs.acfs: Format complete.
4) Register the /dev/asm/acfsvolume1-1 volume on the /oracle_backup directory to automount run as grid owner:
/sbin/acfsutil registry -f -a /dev/asm/acfsvolume1-1 /oracle_backup
try as root: tough documentation says as grid owner
/sbin/acfsutil registry -f -a /dev/asm/acfsvolume1-1 /oracle_backup
PRCN-2018 : Current user oracle is not a privileged user <——-
acfsutil registry: ACFS-03111: unable to add ACFS mount /oracle_backup within Oracle Registry
su –
# /sbin/acfsutil registry -f -a /dev/asm/acfsvolume1-1 /oracle_backup
acfsutil registry: mount point /oracle_backup successfully added to Oracle Registry
5) Mount the /oracle_backup directory on the /dev/asm/acfsvolume1-1 volume as root:
/bin/mount -t acfs /dev/asm/acfsvolume1-1 /oracle_backup
6) The /oracle_backup ACFS filesystem was created with a size of 500M:
df -h /oracle_backup
Filesystem Size Used Avail Use% Mounted on
/dev/asm/acfsvolume1-1 512M 40M 473M 8% /oracle_backup
7) Then resize the ACFS filesystem to 2G as grid owner:
$ /sbin/acfsutil size 2G /oracle_backup
acfsutil size: new file system size: 2147483648 (2048MB)
8) Confirm that the ACFS filesystem was resized up to 6GB:
df -h /oracle_backup
$ df -h /oracle_backup
Filesystem Size Used Avail Use% Mounted on
/dev/asm/acfsvolume1-1 2.0G 43M 2.0G 3% /oracle_backup
9) The ASM volume (/dev/asm/acfsvolume1-1) is implicitly resized as well (to 2GB) as result of the ACFS filesystem resize.
sqlplus / as sysasm
select FS_NAME, VOL_DEVICE, TOTAL_MB , FREE_MB from V$ASM_ACFSVOLUMES;
SQL> col VOL_DEVICE for a30
SQL> col FS_NAME for a20
SQL> select FS_NAME, VOL_DEVICE, TOTAL_MB , FREE_MB from V$ASM_ACFSVOLUMES;
FS_NAME VOL_DEVICE TOTAL_MB FREE_MB
/oracle_backup /dev/asm/acfsvolume1-1 2048 2005.69531
10) change f/s ownership as root:
chown oracle:oinstall /oracle_backup
11) f/s should appear on other node in cluster as its registered with ACFS registry (step4)