Create "A CRS Managed" ACFS Filesystem On a Cluster RAC Configuration Through the Command-Line


Environmental details:

Hosts: dbsrv01, dbsrv02 

Clusterware and database version :12.1.0.2 

Applied Patches: 30070257 


1. Create the ACFS volume from the existing DATA disk group as "grid" user:

 [root@dbsrv01 ~]# su - grid

Last login: Fri Aug 16 14:00:21 IST 2024 from gateway on pts/0

[grid@dbsrv01 ~]$ echo $ORACLE_SID

+ASM1

[grid@dbsrv01 ~]$ asmcmd volcreate -G DATA -s 8G OGGVOL


2. Verify the volume was created and obtain the new volume device name:

[grid@dbsrv01 ~]$ asmcmd volinfo --all

Diskgroup Name: DATA

         Volume Name: OGGVOL

         Volume Device: /dev/asm/oggvol-329

         State: ENABLED

         Size (MB): 8192

         Resize Unit (MB): 512

         Redundancy: UNPROT

         Stripe Columns: 8

         Stripe Width (K): 1024

         Usage:

         Mountpath:


[grid@dbsrv01 ~]$ /u01/app/12.1.0/grid/bin/crsctl stat res -w "TYPE = ora.volume.type"

NAME=ora.DATA.OGGVOL.advm

TYPE=ora.volume.type

TARGET=ONLINE           , ONLINE

STATE=ONLINE on dbsrv01, ONLINE on dbsrv02

 

3. From the first node, create the ACFS filesystem on the new volume device ("/dev/asm/oggvol-329") as "root" user:

[root@dbsrv01 ~]# /sbin/mkfs -t acfs /dev/asm/oggvol-329

mkfs.acfs: version                   = 12.1.0.2.0

mkfs.acfs: on-disk version           = 39.0

mkfs.acfs: volume                    = /dev/asm/oggvol-329

mkfs.acfs: volume size               = 8589934592  (   8.00 GB )

mkfs.acfs: Format complete.


4. Register the ACFS filesystem and new volume with the CRS as "root" user. 

[root@dbsrv01 ~]# /u01/app/12.1.0/grid/bin/srvctl add filesystem -d /dev/asm/oggvol-329 -g 'DATA' -v OGGVOL -m /ogg -u oracle

 

[root@dbsrv01 ~]# /u01/app/12.1.0/grid/bin/crsctl stat res -w "TYPE = ora.acfs.type"

NAME=ora.data.oggvol.acfs

TYPE=ora.acfs.type

TARGET=OFFLINE, OFFLINE

STATE=OFFLINE, OFFLINE

 

5. Start the new ACFS CRS resource as "root" user :

[root@dbsrv01 ~]# /u01/app/12.1.0/grid/bin/srvctl start filesystem -d /dev/asm/oggvol-329 

[root@dbsrv01 ~]# /u01/app/12.1.0/grid/bin/crsctl stat res -w "TYPE = ora.acfs.type"

NAME=ora.data.oggvol.acfs

TYPE=ora.acfs.type

TARGET=ONLINE           , ONLINE

STATE=ONLINE on dbsrv01, ONLINE on dbsrv02

 

[root@dbsrv01 ~]# df -h /ogg

Filesystem           Size  Used Avail Use% Mounted on

/dev/asm/oggvol-329  8.0G   93M  8.0G   2% /ogg

 

[root@dbsrv02 ~]# df -h /ogg

Filesystem           Size  Used Avail Use% Mounted on

/dev/asm/oggvol-329  8.0G   93M  8.0G   2% /ogg

 

6. Set the desired new ownership and permissions as "root" user.

[root@dbsrv01 ~]# chown oracle:oinstall /ogg

[root@dbsrv01 ~]# chmod 775 /ogg


Comments

Popular posts from this blog

How to Reposition Extract, Data Pump and Replicat in GoldenGate During Trail File Corruption

OEM 13cR5 Host IP Change and Repository Database 19c Migration to Another Datacenter via Data Guard Failover

How to Enable Monitoring for GoldenGate 23ai Microservices with Oracle Enterprise Manager 13cR5