ORACLE ACFS 文件系统的扩容 oracle 官方文档

How To Resize An ACFS Filesystem/ASM Volume (ADVM) (文档 ID 1173978.1)


In this Document
Goal
Solution
  Community Discussions
References
APPLIES TO:


Oracle Database - Enterprise Edition - Version 11.2.0.1.0 to 12.1.0.2 [Release 11.2 to 12.1]
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 ACFSDG (8GB) diskgroup from ASM instance:






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


[root@dbaasm ~]# mkdir /oracle_backup --(as root user)


[grid@dbaasm ~]$ /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


[grid@dbaasm ~]$ /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:


[root@dbaasm ~]# /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:


[grid@dbaasm ~]$ 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:


[grid@dbaasm ~]$ /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:


[grid@dbaasm ~]$ df -hBM /oracle_backup 
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/asm/acfsvolume1-292
6144M 49M 6096M 1% /oracle_backup




10) 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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值