The compatibility parameters
COMPATIBLE.ADVM must be set to
11.2 or higher for the disk group to contain an Oracle ADVM volume. To use Oracle ACFS encryption, replication, security, or tagging, the disk group on which the volume is created for the file system must have compatibility attributes for
ADVM set to
126.96.36.199 or higher. See "Disk Group Compatibility Attributes".
Start ASMCMD connected to the Oracle ASM instance. You must be a user in the OSASM operating system group. See "About Privileges for Oracle ASM".
When configuring Oracle ADVM volume devices within a disk group, Oracle recommends assigning the Oracle Grid Infrastructure user and Oracle ASM administrator roles to users who have root privileges.
ASMCMD [+] > volcreate -G data -s 10G volume1
When creating an Oracle ADVM volume, a volume device name is created that includes a unique Oracle ADVM persistent disk group number. The volume device file functions in the same manner as any other disk or logical volume to mount file systems or for applications to use directly.
The format of the volume name is platform-specific. For information about the syntax of the
volcreate command, see "ASMCMD Volume Management Commands".
ASMCMD [+] > volinfo -G data volume1 Diskgroup Name: DATA Volume Name: VOLUME1 Volume Device: /dev/asm/volume1-123 State: ENABLED ... SQL> SELECT volume_name, volume_device FROM V$ASM_VOLUME WHERE volume_name ='VOLUME1'; VOLUME_NAME VOLUME_DEVICE ----------------- -------------------------------------- VOLUME1 /dev/asm/volume1-123
For information about the
volinfo command, see Managing Oracle ADVM with ASMCMD .
Oracle Database Reference for information about the
$ /sbin/mkfs -t acfs /dev/asm/volume1-123 mkfs.acfs: version = 188.8.131.52.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.
$ /sbin/acfsutil registry -a /dev/asm/volume1-123 /acfsmounts/acfs1 acfsutil registry: mount point /acfsmounts/acfs1 successfully added to Oracle Registry
See "acfsutil registry". The
asmadmin privileges are required to modify the registry. The Windows
Administrator privilege is equivalent to the
root privilege on Linux.
Registering a file system is optional. After registering an Oracle ACFS file system in the cluster mount registry, the file system is mounted automatically on each cluster member listed in the registry entry during the next registry check action. This automatic process runs every 30 seconds and eliminates the requirement to manually mount the file system on each member of the cluster.
Registering an Oracle ACFS file system also causes the file system to be mounted automatically whenever Oracle Clusterware or the system is restarted.
In an Oracle Grid Infrastructure Clusterware configuration, you can run
filesystem to automount a file system; this method is required when an Oracle Database home is installed on an Oracle ACFS file system. However, that file system should not be added to the registry. For information about Server Control Utility (SRVCTL), see Oracle Real Application Clusters Administration and Deployment Guide.
For more information, see "About the Oracle ACFS Mount Registry".
Oracle ACFS registration (
registry) is not supported in an Oracle Restart (standalone) configuration, which is a single-instance (non-clustered) environment.
mountcommand. 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.
# /bin/mount -t acfs /dev/asm/volume1-123 /acfsmounts/acfs1
See "mount" (Linux environments) or "acfsmountvol" (Windows). The
root privilege is required to run the
mount command and the Windows
Administrator privilege is required to run the
After the file system has been mounted, ensure that the permissions are set to allow access to the file system for the appropriate users. For example:
# chown -R oracle:dba /acfsmounts/acfs1
The user that creates the test file should be a user that is intended to access the file system. This test ensures that the appropriate user can write to the file system.
$ echo "Oracle ACFS File System" > /acfsmounts/acfs1/myfile
$ cat /acfsmounts/acfs1/myfile Oracle ACFS File System