To create a volume:

ASMCMD [+] > volcreate -G data -s 10G volume1

Determine the device name of the volume that was created.

 

 

 

 

 

 

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

Create a file system with the Oracle ACFS

 

 

 

mkfs command.


 

 

 

$ /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.

 

 

 

 

Register the file system with the

 

 

 

acfsutil registry command.

For example:

 

 

$ /sbin/acfsutil registry -a /dev/asm/volume1-123 /u01/app/acfsmounts/myacfs

acfsutil registry: mount point /u01/app/acfsmounts/myacfs successfully added

to Oracle Registry

 

 

 

 

 

Mount the file system with the Oracle ACFS

 

 

 

mount command.

# /bin/mount -t acfs /dev/asm/volume1-123 /u01/app/acfsmounts/myacfs

 

 

 

 

# chown -R oracle:dba /u01/app/acfsmounts/myacfs

 

 

 

 

Create a test file in the file system.

 

$ echo “Oracle ACFS File System” > /u01/app/acfsmounts/myacfs/myfile

 

 

 

 

List the contents of the test file that was created in the file system.

 

 

$ cat /u01/app/acfsmounts/myacfs/myfile

 

 

 

 

Accessing an Oracle ACFS File System on a Different Node in the Cluster

 

 

 

ASMCMD [+] > volinfo -G data volume1

 

 

 

# /bin/mount -t acfs /dev/asm/volume1-123 /u01/app/acfsmounts/myacfs

 

After the file system has been mounted, ensure that the permissions are set to

allow access for the appropriate users.

 

 

 

$ cat /u01/app/acfsmounts/myacfs/myfile

 

 

 

Managing Oracle ACFS Snapshots


 

 

 

 

 

 


 

 

 

 

 

 

 

To create and verify a snapshot on node 1:

1.

 

 

Create snapshot of the new file system created on node 1.

For example:

 

$ /sbin/acfsutil snap create mysnapshot_20090725 /u01/app/acfsmounts/myacfs

See

 

 

“acfsutil snap create”

on page 13-30.

2.

 

 

Update the test file in the file system so that it is different than the snapshot.

For example:

 

$ echo “Modifying a file in Oracle ACFS File System” >

/u01/app/acfsmounts/myacfs/myfile

3.

 

 

List the contents of the test file and the snapshot view of the test file.

For example:

 

$ cat /u01/app/acfsmounts/myacfs/myfile

$ cat /u01/app/acfsmounts/myacfs/.ACFS/snaps/mysnapshot_20090725/myfile

The contents of the test file and snapshot should be different. If node 1 is in a

cluster, then you can perform the same list operation on node 2.

 

 

 

Deregistering, Dismounting, and Disabling Volumes and Oracle ACFS File Systems

You can deregister an Oracle ACFS file system if you do not want the file system to be

automatically mounted.

$ /sbin/acfsutil registry -d /u01/app/acfsmounts/myacfs

 

 

 

You can dismount a file system without deregistering the file system or disabling the

volume on which the file system is mounted.

 

# /bin/umount /u01/app/acfsmounts/myacfs

# /sbin/fsck -a -v -y -t acfs /dev/asm/volume1-123

 

 

 

To disable a volume, you must first dismount the file system on which the volume is

mounted.

 

# /bin/umount /u01/app/acfsmounts/myacfs

After a file system is dismounted, you can disable the volume and remove the volume

device file.

ASMCMD> voldisable -G data volume1

 

 

 

Removing an Oracle ACFS File System and a Volume

$ /sbin/acfsutil registry -d /oracle/acfsmounts/acfs1

acfsutil registry: successfully removed ACFS mount point

/oracle/acfsmounts/acfs1 from Oracle Registry

 

 

 

# /bin/umount /oracle/acfsmounts/acfs1

 

 

 

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

 

 

 

ASMCMD> voldisable -G data volume1

 

 

 

 

ASMCMD> voldelete -G data volume1

 

 

 

 

 

 

 

 

 

acfsdbg

 

 

 

Debugs an Oracle ACFS file system.

 

 

 

 

 

 

 

 

 

 

acfsutil info

 

 

Displays various Oracle ACFS file system information.

acfsutil registry

 

 

Registers an Oracle ACFS file system with the Oracle ACFS mount

registry.

 

acfsutil rmfs

 

 

Removes an Oracle ACFS file system.

acfsutil size

 

 

Resizes an Oracle ACFS file system.

acfsutil snap create

 

 

Creates a read-only snapshot of an Oracle ACFS file system.

acfsutil snap delete

 

 

Deletes a read-only snapshot of an Oracle ACFS file system.

acfsutil tune

 

 

Modifies or displays Oracle ACFS tuneables.

advmutil tune

 

 

Modifies or displays Oracle ADVM parameters.

advmutil volinfo

 

 

Displays information about Oracle ADVM volumes.