I will explain How to Create Drop ( Remove ) or Resize ACFS File System in Oracle in this post.
Create Drop ( Remove ) or Resize ACFS File System
You can read the following post before this post to learn more details about What is the Oracle ASM Cluster file system.
What is the Oracle ASM Cluster Filesystem (ACFS) and How to Create ACFS
Create ACFS File System
ACFS can be created via asmcmd,asmca and Enterprise manager tool.
You can create and mount ACFS disk via asmcmd like following.
Step-1: Login asmcmd tool and create ACFS volume like following.
[grid@MehmetSalih01 .ssh]$ asmcmd ASMCMD> volcreate -G RECO -s 10000G ACFS_VOL1 ASMCMD> ASMCMD>
Step 2: List and check it if it is created or not.
ASMCMD> volinfo --all Diskgroup Name: RECO Volume Name: ACFS_VOL1 Volume Device: /dev/asm/acfs_vol1-375 State: ENABLED Size (MB): 10240000 Resize Unit (MB): 512 Redundancy: HIGH Stripe Columns: 8 Stripe Width (K): 1024 Usage: Mountpath: ASMCMD> exit [grid@MehmetSalih01 .ssh]$
Step -3: Create a file system on the ACFS volume.
[grid@MehmetSalih01 .ssh]$ [grid@MehmetSalih01 .ssh]$ [grid@MehmetSalih01 .ssh]$ /sbin/mkfs -t acfs /dev/asm/acfs_vol1-375 mkfs.acfs: version = 12.2.0.1.0 mkfs.acfs: on-disk version = 46.0 mkfs.acfs: volume = /dev/asm/acfs_vol1-375 mkfs.acfs: volume size = 10737418240000 ( 9.77 TB ) mkfs.acfs: Format complete. [grid@MehmetSalih01 .ssh]$ [grid@MehmetSalih01 .ssh]$ [grid@MehmetSalih01 .ssh]$ [grid@MehmetSalih01 .ssh]$ exit logout [root@MehmetSalih01 ~]# [root@MehmetSalih01 ~]#
Step -4: Login with root user, set ASM profile, Add and register this filesystem to CRS.
[root@MehmetSalih01 ~]# . oraenv ORACLE_SID = [root] ? +ASM1 The Oracle base has been set to /u01/app/grid [root@MehmetSalih01 ~]# [root@MehmetSalih01 ~]# mkdir /backup [root@MehmetSalih01 ~]# $ORACLE_HOME/bin/srvctl add filesystem -d /dev/asm/acfs_vol1-375 -m /backup -u grid -fstype ACFS -autostart ALWAYS [root@MehmetSalih01 ~]# [root@MehmetSalih01 ~]#
Step -5: Check mount point before start and mount this file system. ACFS does not exist now.
[root@MehmetSalih01 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VGExaDb-LVDbSys1 30G 22G 4.7G 84% / tmpfs 755G 617M 754G 1% /dev/shm /dev/sda1 488M 28M 425M 7% /boot /dev/mapper/VGExaDb-LVDbOra1 99G 74G 21G 79% /u01 /dev/sda2 254M 24M 231M 10% /boot/efi [root@MehmetSalih01 ~]#
Mount and Start ACFS
Step 6: Start filesystem and Mount it like following.
[root@MehmetSalih01 ~]# [root@MehmetSalih01 ~]# $ORACLE_HOME/bin/srvctl start filesystem -d /dev/asm/acfs_vol1-375 [root@MehmetSalih01 ~]# [root@MehmetSalih01 ~]# [root@MehmetSalih01 ~]# [root@MehmetSalih01 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VGExaDb-LVDbSys1 30G 22G 4.7G 84% / tmpfs 755G 617M 754G 1% /dev/shm /dev/sda1 488M 28M 425M 7% /boot /dev/mapper/VGExaDb-LVDbOra1 99G 74G 21G 79% /u01 /dev/sda2 254M 24M 231M 10% /boot/efi /dev/asm/acfs_vol1-375 9.8T 22G 9.8T 1% /backup [root@MehmetSalih01 ~]#
Resize ACFS File system
You can resize the ACFS File system using /sbin/acfsutil tool as follows.
[grid@MehmetSalih01 ~]$ /sbin/acfsutil size 35000G /backup acfsutil size: Resizing file system in steps acfsutil size: Resizing file system to 19.8906 TB acfsutil size: Resizing file system to 19.9063 TB -acfsutil size: Resizing file system to 19.9219 TB acfsutil size: Resizing file system to 19.9375 TB acfsutil size: Resizing file system to 19.9531 TB -acfsutil size: Resizing file system to 19.9688 TB acfsutil size: Resizing file system to 19.9844 TB acfsutil size: Resizing file system to 20.0000 TB acfsutil size: Resizing file system to 20.0156 TB
Start & Stop ACFS File system
You can start and stop ACFS as follows.
[root@MehmetSalih01 ~]# $ORACLE_HOME/bin/srvctl stop filesystem -d /dev/asm/acfs_vol1-375 [root@MehmetSalih01 ~]# [root@MehmetSalih01 ~]# $ORACLE_HOME/bin/srvctl start filesystem -d /dev/asm/acfs_vol1-375 [root@MehmetSalih01 ~]#
Disable ACFS
You can disable the ACFS as follows.
ASMCMD> voldisable -G RECO ACFS_VOL1
Mount & Umount ACFS File system
You can mount and umount ACFS file system as follows.
mount -t acfs /dev/asm/acfs_vol1-375 /backup umount /backup
Drop ( Remove ) ACFS File System
To drop or remove ACFS file system, you should stop it. You can Drop or Remove ACFS File system as follows.
[root@MehmetSalih01 ~]# $ORACLE_HOME/bin/srvctl stop filesystem -d /dev/asm/acfs_vol1-375 [root@MehmetSalih01 ~]#
Then delete the Volume group as follows.
ASMCMD> voldelete -G RECO ACFS_VOL1 Removing ACFS
If you want to learn What is the Oracle RAC and how to install Oracle RAC, you can read the following post.
Do you want to learn Oracle Database for Beginners, then Click and read the following articles.
Oracle Database Tutorials for Beginners ( Junior Oracle DBA )