During Oracle Database Appliance Deployment you can optionally configure CloudFS file system. The default mount point is /cloudfs and set to default size of 50GB. Oracle Database Appliance uses the Oracle Automatic Storage Management Cluster File System (Oracle ACFS) for database and virtual machine files storage. ACFS can only be used to configure shared storage file system on ODA. Oracle ACFS provides both servers with concurrent access to /cloudfs shared file system. The default size of 50GB may not sufficient and must be increased to store big files for business requirement.
In this article we will demonstrate how to resize the /cloudfs file system manually using ACFS commands.
Steps to resize the /cloudfs file system
Step 1: Login to node 1 as grid user the owner of Grid Infrastructure software
[grid@odanoden1 ~]$ id
uid=1000(grid) gid=1001(oinstall) groups=1001(oinstall),1003(racoper),1004(asmdba),1005(asmoper),1006(asmadmin)
Step 2: Verify the existing size of /cloudfs. Here is my case the /cloufs is 200GB and it was resized in the past from 50GB to 200GB
[grid@odanoden1 ~]$ df -h /cloudfs
Filesystem Size Used Avail Use% Mounted on
/dev/asm/acfsvol-23 200G 483M 200G 1% /cloudfs
Step 3: Set the ORACLE SID to +ASM1
[grid@odanoden1 ~]$ echo $ORACLE_SID
[grid@odanoden1 ~]$ . oraenv
ORACLE_SID = [grid] ? +ASM1
The Oracle base has been set to /u01/app/grid
[grid@odanoden1 ~]$ echo $ORACLE_SID
+ASM1
Step 4: List the ACFS Mounts. Here we can see that /cloudfs volume is /dev/asm/acfsvol-23
[grid@odanoden1 ~]$ mount |grep asm
/dev/asm/acfsvol-23 on /cloudfs type acfs (rw)
/dev/asm/datastore-272 on /u01/app/oracle/oradata/datastore type acfs (rw)
/dev/asm/datastore-97 on /u02/app/oracle/oradata/datastore type acfs (rw)
/dev/asm/datastore-23 on /u01/app/oracle/fast_recovery_area/datastore type acfs (rw)
Step 5: Get the size of the volume /dev/asm/acfsvol-23
[grid@odanoden1 ~]$ /sbin/advmutil volinfo /dev/asm/acfsvol-23
Device: /dev/asm/acfsvol-23
Interface Version: 1
Size (MB): 204800
Resize Increment (MB): 64
Redundancy: high
Stripe Columns: 8
Stripe Width (KB): 1024
Disk Group: RECO
Volume: ACFSVOL
Compatible.advm: 12.1.0.2.0
Step 6: Resize the /cloudfs as follows. Here we are increasing /cloudfs by 50GB
[grid@odanoden1 ~]$ /sbin/acfsutil size +50g /cloudfs
acfsutil size: new file system size: 268435456000 (256000MB)
Step 7: Verify the new size of the volume /dev/asm/acfsvol-23
[grid@odanoden1 ~]$ /sbin/advmutil volinfo /dev/asm/acfsvol-23
Device: /dev/asm/acfsvol-23
Interface Version: 1
Size (MB): 256000
Resize Increment (MB): 64
Redundancy: high
Stripe Columns: 8
Stripe Width (KB): 1024
Disk Group: RECO
Volume: ACFSVOL
Compatible.advm: 12.1.0.2.0
Step 8: Verify the new size of /cloudfs file system
[grid@odanoden1 ~]$ df -h /cloudfs
Filesystem Size Used Avail Use% Mounted on
/dev/asm/acfsvol-23 250G 585M 250G 1% /cloudfs
Conclusion
In this article we have learned how to resize/increase the size of /cloudfs shared file system on ODA. The cloudfs file system is configured during the ODA deployment and it is set to 50GB which is not sufficient for storing the big files. The cloudfs is build using ACFS and it can be resized easily using ACFS commands.
In this article we will demonstrate how to resize the /cloudfs file system manually using ACFS commands.
Steps to resize the /cloudfs file system
Step 1: Login to node 1 as grid user the owner of Grid Infrastructure software
[grid@odanoden1 ~]$ id
uid=1000(grid) gid=1001(oinstall) groups=1001(oinstall),1003(racoper),1004(asmdba),1005(asmoper),1006(asmadmin)
Step 2: Verify the existing size of /cloudfs. Here is my case the /cloufs is 200GB and it was resized in the past from 50GB to 200GB
[grid@odanoden1 ~]$ df -h /cloudfs
Filesystem Size Used Avail Use% Mounted on
/dev/asm/acfsvol-23 200G 483M 200G 1% /cloudfs
Step 3: Set the ORACLE SID to +ASM1
[grid@odanoden1 ~]$ echo $ORACLE_SID
[grid@odanoden1 ~]$ . oraenv
ORACLE_SID = [grid] ? +ASM1
The Oracle base has been set to /u01/app/grid
[grid@odanoden1 ~]$ echo $ORACLE_SID
+ASM1
Step 4: List the ACFS Mounts. Here we can see that /cloudfs volume is /dev/asm/acfsvol-23
[grid@odanoden1 ~]$ mount |grep asm
/dev/asm/acfsvol-23 on /cloudfs type acfs (rw)
/dev/asm/datastore-272 on /u01/app/oracle/oradata/datastore type acfs (rw)
/dev/asm/datastore-97 on /u02/app/oracle/oradata/datastore type acfs (rw)
/dev/asm/datastore-23 on /u01/app/oracle/fast_recovery_area/datastore type acfs (rw)
Step 5: Get the size of the volume /dev/asm/acfsvol-23
[grid@odanoden1 ~]$ /sbin/advmutil volinfo /dev/asm/acfsvol-23
Device: /dev/asm/acfsvol-23
Interface Version: 1
Size (MB): 204800
Resize Increment (MB): 64
Redundancy: high
Stripe Columns: 8
Stripe Width (KB): 1024
Disk Group: RECO
Volume: ACFSVOL
Compatible.advm: 12.1.0.2.0
Step 6: Resize the /cloudfs as follows. Here we are increasing /cloudfs by 50GB
[grid@odanoden1 ~]$ /sbin/acfsutil size +50g /cloudfs
acfsutil size: new file system size: 268435456000 (256000MB)
Step 7: Verify the new size of the volume /dev/asm/acfsvol-23
[grid@odanoden1 ~]$ /sbin/advmutil volinfo /dev/asm/acfsvol-23
Device: /dev/asm/acfsvol-23
Interface Version: 1
Size (MB): 256000
Resize Increment (MB): 64
Redundancy: high
Stripe Columns: 8
Stripe Width (KB): 1024
Disk Group: RECO
Volume: ACFSVOL
Compatible.advm: 12.1.0.2.0
Step 8: Verify the new size of /cloudfs file system
[grid@odanoden1 ~]$ df -h /cloudfs
Filesystem Size Used Avail Use% Mounted on
/dev/asm/acfsvol-23 250G 585M 250G 1% /cloudfs
Conclusion
In this article we have learned how to resize/increase the size of /cloudfs shared file system on ODA. The cloudfs file system is configured during the ODA deployment and it is set to 50GB which is not sufficient for storing the big files. The cloudfs is build using ACFS and it can be resized easily using ACFS commands.
No comments:
Post a Comment