Manual Creation of ACFS filesystem
Create the directory for the acfs in each node.
================================
# mkdir -p /oracle/app/oracle/acfsmounts/data_acfsvol3
Change the permission:
=================
# chown oracle:oinstall /oracle/app/oracle/acfsmounts/data_acfsvol3
Create the Volume for acfs:
====================
[oracle@rac1 ~]$ grid
[oracle@rac1 ~]$ cd $ORACLE_HOME
/oracle/app/12.1.0/grid
[oracle@rac1 ~]$ sqlplus / as sysasm
SQL> ALTER DISKGROUP DATA ADD VOLUME ACFSVOL3 SIZE 10G;
Diskgroup altered.
SQL>
Create the filesystem:
================
[oracle@rac1 ~]$ /sbin/mkfs -t acfs -b 4k /dev/asm/acfsvo13-301 -n "ASMVOL3"
mkfs.acfs: version = 11.2.0.1.0.0
mkfs.acfs: on-disk version = 39.0
mkfs.acfs: volume = /dev/asm/acfsvol3-301
mkfs.acfs: volume size = 10737418240
mkfs.acfs: Format complete.
[oracle@rac1 ~]$
Register the filesystem.
=================
[oracle@rac1 ~]$ /sbin/acfsutil registry -f -a /dev/asm/acfsvol3-301 /oracle/app/oracle/acfsmounts/data_acfsvol3
acfsutil registry: mount point /oracle/app/oracle/acfsmounts/data_acfsvol3 successfully added to Oracle Registry
[oracle@rac1 ~]$
/bin/mount -t acfs /dev/asm/acfsvol3-301 /oracle/app/oracle/acfsmounts/data_acfsvol3
Check the acfs filesystem by creating a file
================================
Node1:
--------
[oracle@rac1 ~]$cd /oracle/app/oracle/acfsmounts/data_acfsvol1
[oracle@rac1 data_acfsvol1]$ echo "This is a test"> test.txt
[oracle@rac1 data_acfsvol1]$ ls -al
total 80
drwxrwx--- 4 root dba 4096 Dec 29 12:39 .
drwxr-xr-x 3 root root 4096 Dec 29 12:24 ..
drwx------ 2 root root 65536 Dec 29 12:24 lost+found
-rw-r--r-- 1 oracle oinstall 15 Dec 29 12:39 test.txt
[oracle@rac1 data_acfsvol1]$
Node2:
--------
[oracle@rac2 ~]$cd /oracle/app/oracle/acfsmounts/data_acfsvol1
[oracle@rac2 data_acfsvol1]$ echo "This is a test"> test.txt
[oracle@rac2 data_acfsvol1]$ ls -al
total 80
drwxrwx--- 4 root dba 4096 Dec 29 12:39 .
drwxr-xr-x 3 root root 4096 Dec 29 12:24 ..
drwx------ 2 root root 65536 Dec 29 12:24 lost+found
-rw-r--r-- 1 oracle oinstall 15 Dec 29 12:39 test.txt
[oracle@rac2 data_acfsvol1]$
To mount and unmount acfs filesystem:
============================
To mount:
------------
# /sbin/mount.acfs -o all
To unmount:
---------------
# /bin/umount -t acfs -a
Create the directory for the acfs in each node.
================================
# mkdir -p /oracle/app/oracle/acfsmounts/data_acfsvol3
Change the permission:
=================
# chown oracle:oinstall /oracle/app/oracle/acfsmounts/data_acfsvol3
Create the Volume for acfs:
====================
[oracle@rac1 ~]$ grid
[oracle@rac1 ~]$ cd $ORACLE_HOME
/oracle/app/12.1.0/grid
[oracle@rac1 ~]$ sqlplus / as sysasm
SQL> ALTER DISKGROUP DATA ADD VOLUME ACFSVOL3 SIZE 10G;
Diskgroup altered.
SQL>
Create the filesystem:
================
[oracle@rac1 ~]$ /sbin/mkfs -t acfs -b 4k /dev/asm/acfsvo13-301 -n "ASMVOL3"
mkfs.acfs: version = 11.2.0.1.0.0
mkfs.acfs: on-disk version = 39.0
mkfs.acfs: volume = /dev/asm/acfsvol3-301
mkfs.acfs: volume size = 10737418240
mkfs.acfs: Format complete.
[oracle@rac1 ~]$
Register the filesystem.
=================
[oracle@rac1 ~]$ /sbin/acfsutil registry -f -a /dev/asm/acfsvol3-301 /oracle/app/oracle/acfsmounts/data_acfsvol3
acfsutil registry: mount point /oracle/app/oracle/acfsmounts/data_acfsvol3 successfully added to Oracle Registry
[oracle@rac1 ~]$
/bin/mount -t acfs /dev/asm/acfsvol3-301 /oracle/app/oracle/acfsmounts/data_acfsvol3
Check the acfs filesystem by creating a file
================================
Node1:
--------
[oracle@rac1 ~]$cd /oracle/app/oracle/acfsmounts/data_acfsvol1
[oracle@rac1 data_acfsvol1]$ echo "This is a test"> test.txt
[oracle@rac1 data_acfsvol1]$ ls -al
total 80
drwxrwx--- 4 root dba 4096 Dec 29 12:39 .
drwxr-xr-x 3 root root 4096 Dec 29 12:24 ..
drwx------ 2 root root 65536 Dec 29 12:24 lost+found
-rw-r--r-- 1 oracle oinstall 15 Dec 29 12:39 test.txt
[oracle@rac1 data_acfsvol1]$
Node2:
--------
[oracle@rac2 ~]$cd /oracle/app/oracle/acfsmounts/data_acfsvol1
[oracle@rac2 data_acfsvol1]$ echo "This is a test"> test.txt
[oracle@rac2 data_acfsvol1]$ ls -al
total 80
drwxrwx--- 4 root dba 4096 Dec 29 12:39 .
drwxr-xr-x 3 root root 4096 Dec 29 12:24 ..
drwx------ 2 root root 65536 Dec 29 12:24 lost+found
-rw-r--r-- 1 oracle oinstall 15 Dec 29 12:39 test.txt
[oracle@rac2 data_acfsvol1]$
To mount and unmount acfs filesystem:
============================
To mount:
------------
# /sbin/mount.acfs -o all
To unmount:
---------------
# /bin/umount -t acfs -a