Use ASMACFS File System

Source: Internet
Author: User
ACFS is an ASM-based shared file system provided by oracle and can only be used on version 11.2. It can be used as a shared file system on the host where oracleasm software is installed to store archived logs and local rman backup. It is more intuitive than simply storing it in ASM, you can use commands on the OS to check and operate. The following is a simple example: 1. createdgsqlre

ACFS is an ASM-based shared file system provided by oracle and can only be used on version 11.2. It can be used as a shared file system on the host where oracle asm software is installed to store archived logs and local rman backup. It is more intuitive than simply storing it in ASM, you can use commands on the OS to check and operate. The following is a simple example: 1. create DG SQL CRER

ACFS is an ASM-based shared file system provided by oracle and can only be used on version 11.2. It can be used as a shared file system on the host where oracle asm software is installed to store archived logs and local rman backup. It is more intuitive than simply storing it in ASM, you can use commands on the OS to check and operate. The following is a simple usage:

1, create DG
SQL> CREATE DISKGROUP ACFSDG EXTERNAL REDUNDANCY DISK 'ORCL:ASMDISK8' SIZE 4157 M DISK 'ORCL:ASMDISK9' SIZE 4157 MATTRIBUTE 'compatible.asm' = '11.2', 'compatible.advm' = '11.2';

2. Modify the version. Sometimes, although the database installation version is 11.2, some parameter versions are not. Check whether
alter diskgroup FRA set attribute 'COMPATIBLE.ASM'='11.2';alter diskgroup FRA set attribute 'compatible.advm'='11.2'

3. If the DG already exists, it can be omitted.
SQL> ALTER DISKGROUP FRA ADD VOLUME ACFSARCVOL SIZE 100G;Diskgroup altered.ASMCMD> volinfo -aDiskgroup Name: FRA         Volume Name: ACFSARCVOL         Volume Device: /dev/asm/acfsarcvol-306         State: ENABLED         Size (MB): 102400         Resize Unit (MB): 256         Redundancy: UNPROT         Stripe Columns: 4         Stripe Width (K): 128         Usage:         Mountpath: 

4. Mount the File System
su - rootmkidr -p /archive chown oracle:oinstall /archive/sbin/mkfs -t acfs -b 4k /dev/asm/acfsarcvol-306[root@dtydb3 ~]# /sbin/mkfs -t acfs -b 4k /dev/asm/acfsarcvol-306mkfs.acfs: version                   = 11.2.0.2.0mkfs.acfs: on-disk version           = 39.0mkfs.acfs: volume                    = /dev/asm/acfsarcvol-306mkfs.acfs: volume size               = 107374182400mkfs.acfs: Format complete.[root@dtydb3 ~]# /sbin/acfsutil registry -f -a /dev/asm/acfsarcvol-306 /archiveacfsutil registry: mount point /archive successfully added to Oracle Registry[root@dtydb3 ~]#[root@dtydb3 ~]# /sbin/mount.acfs -o all[root@dtydb3 ~]# df -h/dev/asm/acfsarcvol-306                      100G  304M  100G   1% /archive

5. view the information again.

ASMCMD> volinfo -aDiskgroup Name: FRA         Volume Name: ACFSARCVOL         Volume Device: /dev/asm/acfsarcvol-306         State: ENABLED         Size (MB): 102400         Resize Unit (MB): 256         Redundancy: UNPROT         Stripe Columns: 4         Stripe Width (K): 128         Usage: ACFS         Mountpath: /archive 

If it is another rac host, you can see the file system.


6. resize acfs File System
su - grid[grid@dtydb4 ~]$ /sbin/acfsutil size 110G /archiveacfsutil size: new file system size: 118111600640 (112640MB)[grid@dtydb4 ~]$ df -h /archiveFilesystem            Size  Used Avail Use% Mounted on/dev/asm/acfsarcvol-306                      110G  3.5G  107G   4% /archive

7. Modify DB_RECOVERY_FILE_DEST_SIZE to acfs.
SQL> alter system set DB_RECOVERY_FILE_DEST_SIZE = 10g scope = both sid = '*'; SQL> ALTER SYSTEM SET DB_RECOVERY_FILE_DEST = '/backup/flash_recovery_area' SCOPE = BOTH SID = '*'; if acfs is not used, it is backed up to the ASM disk group FRA by default. Run the following command SQL> ALTER SYSTEM SET DB_RECOVERY_FILE_DEST = '+ fra' SCOPE = BOTH SID = '*';

References

How To Resize An ACFS Filesystem/ASM Volume (ADVM) [ID 1173978.1]
How To Create A New ACFS Volume & Filesystem And Set The ACFS Filesystem Ownership To A Non-Grid/Oracle OS User? [ID 1322383.1]
Http://docs.oracle.com/cd/E18283_01/server.112/e16102/asmfs_util001.htm#BABGBDFH

Appendix:

1) Delete acfs. For official documents, refer

To permanently remove a volume and Oracle ACFS file system, perform the following steps. These steps destroy the data in the file system.

Deregister the file system with acfsutil registry-d.

For example:

$/Sbin/acfsutil registry-d/oracle/acfsmounts/acfs1
Acfsutil registry: successfully removed ACFS mount point
/Oracle/acfsmounts/acfs1 from Oracle Registry

For information about running acfsutil registry, see "acfsutil registry ".

Dismount the file system.

For example:

#/Bin/umount/oracle/acfsmounts/acfs1

You must dismount the file system on all nodes of a cluster.

Use umount on Linux systems or acfsdismount on Windows systems. For information about running umount or acfsdismount, see "umount" or "acfsdismount ".

Remove the file system with acfsutil rmfs.

If you were not planning to remove the volume in a later step, this step is necessary to remove the file system. Otherwise, the file system is removed when the volume is deleted.

For example:

$/Sbin/acfsutil rmfs/dev/asm/volume1-123

For information about running acfsutil rmfs, see "acfsutil rmfs ".

Optionally you can disable the volume with the ASMCMD voldisable command.

For example:

ASMCMD> voldisable-G data volume1

For information about running voldisable, see "voldisable ".

Delete the volume with the ASMCMD voldelete command.

For example:

ASMCMD> voldelete-G data volume1

For information about running voldelete, see "voldelete ".

2) How to manually start acfs


In this Document
Symptoms
Changes
Cause
Solution
References

Applies:
Oracle Server-Enterprise Edition-Version 11.2.0.2 and later
Information in this document applies to any platform.
Symptoms

Ora. registry. acfs show offline and will not auto start

It is started on other node
Changes

Restart of cluster
Cause

ACFS driver did not start on this node


Solution

Manually start it using:

A) Start the ACFS driver manually

$ {GRID_HOME}/bin/acfsload start-s

B) Enable Volume in ASM instance.

Alter diskgroup enable volume;

(Which you have created for ACFS/third party file system)

C) Mount volume as root

Use your path in below example

Mount-t acfs-rw/dev/asm/acfs01_db1-432/oracle/bkup01

D) View filesystems as root

Acfsutil info fs

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.