• How to resize an ACFS file system / ASM volume



    In this Document

      Goal
      Solution
      Community Discussions
      References

    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: 

    SQL> ALTER DISKGROUP <DG_NAME> ADD VOLUME <VOL_NAME>1 SIZE 5G ;

    Diskgroup altered.




    3) Create the new ACFS filesystem on the /dev/asm/<VOL_NAME>1-292 volume:

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

    [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

    [grid@dbaasm ~]$ /sbin/acfsutil registry -f -a /dev/asm/<VOL_NAME>1-292 /oracle_backup --(as grid user)





    5) Mount the /oracle_backup directory on the /dev/asm/<VOL_NAME>1-292 volume:

    [root@dbaasm ~]# /bin/mount -t acfs /dev/asm/<VOL_NAME>1-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/<VOL_NAME>1-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/<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.

    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/<VOL_NAME>1-292       6144       6095.57031

    To BottomTo Bottom
  • 相关阅读:
    移动端滑动效果
    使用Bash时的几点总结
    docker-It's possible that too few managers are online. Make sure more than half of the managers are online.
    基于elk 实现nginx日志收集与数据分析。
    python-num18 - django进阶一
    文成小盆友python-num17 - django基础
    文成小盆友python-num15 - JavaScript基础
    文成小盆友python-num14 - web 前端基础 html ,css, JavaScript
    文成小盆友python-num13 整个堡垒机
    install pip3 for python 3.x
  • 原文地址:https://www.cnblogs.com/yaoyangding/p/13177587.html
Copyright © 2020-2023  润新知