ACFS – ASM Clustered File System
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.
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Discussion ¬