The above acfs_script.sh mounts the ACFS filesystem with correct ownership and permissions.
7. Make sure /snapclones is accessible on both nodes as shown below:-
#df –h /snapclones
8. Create full copy of production database as gold image to take snapshots
SQL> alter session set db_create_file_dest=’/snapclones’;
SQL>set time on
12:01:41 SQL> set timing on
12:01:48 SQL> create pluggable database gold_image from prod_db;
9. Review the database size
SQL> @Size
Database size in "GB"
---------------------------------
1568.68
10. Review the database files from dba_data_files.
SQL> select file_name from dba_data_files;
11. Check the ACFS file system usage.
df –h /snapclones
Filesystem Size Used Avail Use% Mounted on
-------- ---- ----- ---- ---- -------
12. Review the ACFS /snapclones file system from acfsutil as an Oracle user.
$ acfsutil info fs /snapclones
ACFS Version: 12.1.0.2.0
On disk version: 39.0
flags: MountPoint,Available
mount time: Fri Apr 11 17:56:51 2014
allocation unit: 4096
volumes: 1
total size: 1099511627776 ( 1.5 TB )
total free: 1097290489856 ( 500GB )
file entry table allocation: 32768
primary volume: /dev/asm/snapclones-248
label:
state: Available
major, minor: 250, 126977
size: 1099511627776 ( 1.00 TB )
free: 1097290489856 ( 1021.93 GB )
ADVM diskgroup DATA
ADVM resize increment: 67108864
ADVM redundancy: unprotected
ADVM stripe columns: 8
ADVM stripe width: 1048576
number of snapshots: 0
Snapshot space usage: 0 ( 0.00)
13. Create snapshots on ACFS from gold copy.
SQL> create pluggable database snap1 from gold_image snapshot copy;
14. Review the Database size.
SQL> @ size
15. Check acfsutil again
$acfsutil info fs /snapclones
ACFS Version: 12.1.0.2.0
on-disk version: 43.0
flags: MountPoint,Available
mount time: Fri Apr 11 17:56:51 2014
allocation unit: 4096
volumes: 1
total size: 1099511627776 ( 1.00 TB )
total free: 758131781632 ( 706.06 GB )
file entry table allocation: 2129920
Primary volume: /dev/asm/snapclones-248
label:
state: Available
major, minor: 250, 126977
size: 1099511627776 ( 1.50 TB )
free: 758131781632 ( 486 GB )
ADVM diskgroup DATA
ADVM resize increment: 67108864
ADVM redundancy: unprotected
ADVM stripe columns: 8
ADVM stripe width: 1048576
number of snapshots: 1
snapshot space usage: 184889344 ( 14 GB ) à 14GB space is consumed for snapshot of 1.5TB Goldcopy
replication status: DISABLED