How To Resize An ACFS Filesystem/ASM Volume (ADVM)


In this post I am sharing the steps for resizing an ACFS Filesystem/ASM Volume (ADVM) through command line


1) Create the DATA (8GB) diskgroup from ASM instance:


Replace DATA  with your DISKGROUP Name


SQL> CREATE DISKGROUP DATA EXTERNAL REDUNDANCY DISK 'ORCL:<DISK#>8' SIZE 4157 M DISK 'ORCL:<DISK#>9' SIZE 4157 M ATTRIBUTE 'compatible.asm' = '11.2', 'compatible.advm' = '11.2';


Diskgroup created.


SQL> Select name, state, total_mb, free_mb from v$asm_diskgroup where name like 'DATA';


NAME                           STATE       TOTAL_MB   FREE_MB

------------------------------ ----------- ---------- ----------

DATA                      MOUNTED     8314       8260



If you already have a diskgroup then we can skip step 1. Make sure it has free space to use for ACFS.

2) Create the next volume (5GB) in the DATA diskgroup: 


VOL1 is the Volume name. Please change as per your need.


SQL> ALTER DISKGROUP DATA ADD VOLUME VOL1 SIZE 5G ;


Diskgroup altered.




3) Create the new ACFS filesystem on the /dev/asm/VOL1-292 volume:


[root@funebs122 ~]# mkdir /backup --(as root user)


[grid@funebs122 ~]$ /sbin/mkfs -t acfs -b 4k /dev/asm/VOL1-292 -n "VOL1_LABEL" --(as grid user)




4) Register the /dev/asm/VOL1-292 volume on the /oracle_backup directory


[grid@funebs122 ~]$ /sbin/acfsutil registry -f -a /dev/asm/VOL1-292 /backup --(as grid user)



5) Mount the /oracle_backup directory on the /dev/asm/VOL1-292 volume:


[root@funebs122 ~]# /bin/mount -t acfs /dev/asm/VOL1-292 /backup --(as root user)



6) The /backup ACFS filesystem was created with a size of 5GB:


[grid@funebs122 ~]$ df -hBM /backup

Filesystem 1M-blocks Used Available Use% Mounted on

/dev/asm/VOL1-292

5120M 47M 5074M 1% /oracle_backup




7) Then resize the ACFS filesystem to 6 GB:


[grid@funebs122 ~]$ /sbin/acfsutil size 6G /backup

acfsutil size: new file system size: 6442450944 (6144MB)



We can use same command to increase or decrease the size.


8) Confirm that the ACFS filesystem was resized up to 6GB:


[grid@funebs122 ~]$ df -hBM /oracle_backup

Filesystem 1M-blocks Used Available Use% Mounted on

/dev/asm/<VOL_NAME>1-292

6144M 49M 6096M 1% /backup



9) The ASM volume (/dev/asm/VOL1-292) is implicitly resized as well (to 6GB) as result of the ACFS filesystem resize.


SQL> select FS_NAME, VOL_DEVICE, TOTAL_MB , FREE_MB from V$ASM_ACFSVOLUMES;


FS_NAME              VOL_DEVICE                     TOTAL_MB   FREE_MB

-------------------- ------------------------------ ---------- ----------

/backup       /dev/asm/VOL1-292       6144       6095.57031

 





If you like please follow and comment