• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

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

by admin

The post provides an example of how to resize an ACFS Filesystem/ASM Volume (ADVM) through the command line.

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

SQL> CREATE DISKGROUP ACFSDG EXTERNAL REDUNDANCY DISK 'ORCL:ASMDISK8' SIZE 4157 M DISK 'ORCL:ASMDISK9' SIZE 4157M 
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 'ACFSDG';

NAME                           STATE       TOTAL_MB   FREE_MB
------------------------------ ----------- ---------- ----------
ACFSDG                         MOUNTED     8314       8260

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

SQL> ALTER DISKGROUP ACFSDG ADD VOLUME ACFSVOLUME1 SIZE 5G ;

Diskgroup altered.

3. Create the new ACFS filesystem on the /dev/asm/acfsvolume1-292 volume:

# mkdir /oracle_backup     ###(as root user)
$ /sbin/mkfs -t acfs -b 4k /dev/asm/acfsvolume1-292 -n "ACFSVOLUME1_LABEL"   ###(as grid user)

4. Register the /dev/asm/acfsvolume1-292 volume on the /oracle_backup directory.

$ /sbin/acfsutil registry -f -a /dev/asm/acfsvolume1-292 /oracle_backup    ###(as grid user)

5. Mount the /oracle_backup directory on the /dev/asm/acfsvolume1-292 volume:

# /bin/mount -t acfs /dev/asm/acfsvolume1-292 /oracle_backup    ###(as root user)

6. The /oracle_backup ACFS filesystem was created with a size of 5GB:

$ df -hBM /oracle_backup 
Filesystem                 1M-blocks Used Available Use% Mounted on
/dev/asm/acfsvolume1-292   5120M     47M  5074M     1%   /oracle_backup

7. Then resize the ACFS filesystem to 6 GB:

$ /sbin/acfsutil size 6G /oracle_backup
acfsutil size: new file system size: 6442450944 (6144MB)

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

$ df -hBM /oracle_backup 
Filesystem                 1M-blocks Used Available Use% Mounted on
/dev/asm/acfsvolume1-292   6144M     49M  6096M     1%   /oracle_backup

9. The ASM volume (/dev/asm/acfsvolume1-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
-------------------- ------------------------------ ---------- ----------
/oracle_backup       /dev/asm/acfsvolume1-292       6144       6095.57031

Filed Under: ASM, oracle

Some more articles you might also be interested in …

  1. How to Rename the Default JSESSIONID in WebLogic
  2. How to start up the ASM instance when the spfile is misconstrued or lost
  3. New Background Processes In Oracle Database 12c
  4. How to Export and Import Data Guard Broker Configuration in Oracle 19c
  5. Oracle Database – How to Recover from a Lost or Deleted Datafile with Different Scenarios
  6. How to Backup and Restore Java Classes and Privileges only in Oracle Database
  7. Which SPFILE Parameter File is Impacted when Issuing an ALTER SYSTEM Command
  8. ORA-1031 When Connecting Remotely AS SYSDBA
  9. Connecting PDB in Oracle 12c and 19c
  10. How to Start and Stop Oracle RAC Instances (CDB/PDB)

You May Also Like

Primary Sidebar

Recent Posts

  • vgextend Command Examples in Linux
  • setpci command – configure PCI device
  • db_load command – generate db database
  • bsdtar command – Read and write tape archive files

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright