How to resize an ACFS file system / ASM volume

In this Document
Applies to:
Oracle Database Cloud Service - Version N/A and later
Oracle Database - Enterprise Edition - Version 11.2.0.1.0 to 12.1.0.2 [Release 11.2 to 12.1]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Information in this document applies to any platform.
***Checked for relevance on 08-Oct-2013***
Goal
The present document provides an example about how to resize an ACFS Filesystem/ASM Volume (ADVM) through command line.
Solution
1) Create the <DG_NAME> (8GB) diskgroup from ASM instance:
SQL> CREATE DISKGROUP <DG_NAME> 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 '<DG_NAME>';
NAME STATE TOTAL_MB FREE_MB
------------------------------ ----------- ---------- ----------
<DG_NAME> MOUNTED 8314 8260
2) Create the next volume (5GB) in the <DG_NAME> diskgroup:
Diskgroup altered.
3) Create the new ACFS filesystem on the /dev/asm/<VOL_NAME>1-292 volume:
[grid@dbaasm ~]$ /sbin/mkfs -t acfs -b 4k /dev/asm/<VOL_NAME>1-292 -n "<VOL_NAME>1_LABEL" --(as grid user)
4) Register the /dev/asm/<VOL_NAME>1-292 volume on the /oracle_backup directory
5) Mount the /oracle_backup directory on the /dev/asm/<VOL_NAME>1-292 volume:
6) The /oracle_backup ACFS filesystem was created with a size of 5GB:
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/asm/<VOL_NAME>1-292
5120M 47M 5074M 1% /oracle_backup
7) Then resize the ACFS filesystem to 6 GB:
acfsutil size: new file system size: 6442450944 (6144MB)
8) Confirm that the ACFS filesystem was resized up to 6GB:
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/asm/<VOL_NAME>1-292
6144M 49M 6096M 1% /oracle_backup
9) The ASM volume (/dev/asm/<VOL_NAME>1-292) is
implicitly resized as well (to 6GB) as result of the ACFS filesystem
resize.
FS_NAME VOL_DEVICE TOTAL_MB FREE_MB
-------------------- ------------------------------ ---------- ----------
/oracle_backup /dev/asm/<VOL_NAME>1-292 6144 6095.57031
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 没有源码,如何修改代码逻辑?
· 一个奇形怪状的面试题:Bean中的CHM要不要加volatile?
· [.NET]调用本地 Deepseek 模型
· 一个费力不讨好的项目,让我损失了近一半的绩效!
· .NET Core 托管堆内存泄露/CPU异常的常见思路
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· 没有源码,如何修改代码逻辑?
· PowerShell开发游戏 · 打蜜蜂
· 在鹅厂做java开发是什么体验
· 凌晨三点救火实录:Java内存泄漏的七个神坑,你至少踩过三个!