April 06, 2016

Creating an Oracle ACFS File System

Hi Guys,


just want to take a note so i will not forget to do this
if you want to use acfs filesystem you can create by doing below step by step

1. Create an Oracle ASM volume in a mounted disk group with the ASMCMD volcreate command, by login to asmcmd command then do following
Command
ASMCMD [+] volcreate -G diskgroup -s size volume_name

Ex
ASMCMD [+] volcreate -G DG -s 10G VOL1


2 Determine the device name of the volume that was created
Command
ASMCMD [+]  volinfo -G diskgroup volume

Ex
ASMCMD [+]  volinfo -G DG VOL1

Diskgroup Name: DG

         Volume Name: VOLUME1
         Volume Device: /dev/asm/volume1-123
         State: ENABLE
         ..
         ..

       
3. Create a file system with the Oracle ACFS mkfs command
Command
$ /sbin/mkfs -t acfs Volume_Device

Ex
$ /sbin/mkfs -t acfs /dev/asm/volume1-123
mkfs.acfs: version                   = 11.2.0.1.0.0
mkfs.acfs: on-disk version           = 39.0
mkfs.acfs: volume                    = /dev/asm/volume1-123
mkfs.acfs: volume size               = 10737418240
mkfs.acfs: Format complete.


4. Optionally register the file system with the acfsutil registry command, Registering an Oracle ACFS file system also causes the file system to be mounted automatically whenever Oracle Clusterware or the system is restarted
Command
$ /sbin/acfsutil registry -a Volume_Device /mountpoint

Ex
$ /sbin/acfsutil registry -a /dev/asm/volume1-123 /u01/app/archivelogfs


5. Mount the file system with the Oracle ACFS mount command. You can mount a file system before or after registering the file system. If the file system has been registered, you can wait for the file system to be mounted automatically

Command
$ /bin/mount -t acfs Volume_Device /mountpoint

Ex
$ /bin/mount -t acfs /dev/asm/volume1-123 /u01/app/archivelogfs


6. Create a test file in the file system by creating file
Ex
$ touch /u01/app/archivelogfs/tes
$ ls -l /u01/app/archivelogfs
total 0
-rw-r--r-- 1 oracle dba 0 Apr  6 16:20 tes


yeah , we are done create acfs, cheers :)

No comments:

Post a Comment