Oracle ACFS Snapshot
Feature to backup/restore
ASM:
Oracle ASM is a volume
manager and a file system for Oracle
database files that supports single-instance Oracle Database and Oracle Real
Application Clusters (Oracle RAC) configurations. Oracle ASM is Oracle's
recommended storage management solution that provides an alternative to
conventional volume managers, file systems, and raw devices.
Oracle ASM uses disk
groups to store data files; an Oracle ASM disk group is a collection of
disks that Oracle ASM manages as a unit. Within a disk group, Oracle ASM
exposes a file system interface for Oracle database files. The content of files
that are stored in a disk group is evenly distributed to eliminate hot spots
and to provide uniform performance across the disks. The performance is
comparable to the performance of raw devices.
ACFS:
Oracle Automatic
Storage Management Cluster File System (Oracle ACFS) is a multi-platform,
scalable file system, and storage management technology that extends Oracle
Automatic Storage Management (Oracle ASM) functionality to support files
maintained outside of the Oracle Database. Oracle ACFS supports
many database and application files, including executables, database trace
files, database alert logs, application reports, BFILEs, and configuration
files. Other supported files are video, audio, text,
images, engineering drawings, and other general-purpose application file data.
ACFS
– Advantages
- cluster file system on top of ASM
and ADVM
- as available as ASM is (inherits
storage from ASM disk group and ADVM volume)
- Supports storage of files which
cannot be directly stored in ASM, i.e.
- executables
- trace files
- log files
- …
- Supports even oracle database
binary installations
- On ACFS read-only Snapshots can be
created
- dynamically resize able Usable
across platforms
ADVM:
ADVM
– Advantages
- Integrated in ASM.
- Inherits storage from ASM hence
enables host-based mirroring (either 2- or 3-way-mirroring)
- Multiple volumes within a disk
group can be created with an file system such as
ext3, ext4, etc. It will support
storage of any file type as the file system normally would – EXCEPT files
which can be place in ASM directly
- ADVM volume dynamically resize able
ADVM
– Disadvantages
- ADVM volumes may be resized
online; but the used file system must support it as well (ext3 on OEL 5
does support online resizing but does not support online shrinking)
- Storing files which can be stored
in ASM directly in ADVM + file system is not supported
- NFS on top of ADVM is also not
supported
- ASM configuration assistant (asmca) only supports following and thus command line
is required.
- Creation of volumes
- Creation of file system
- Delete of volumes
- Delete of file systems.
To create a Disk Group for use with
ADVM and ACFS
1.
Get LUNs presented
(run fdisk
,etc) , partition disk (one on each LUN),
label the disk with oracleasm createdisk.
2.
create disk in ASM
(connect / as sysasm)
CREATE
DISKGROUP data2 NORMAL REDUNDANCY FAILGROU CONTROLLER1 DISK ‘ORCL:DISK005’ FAILGROUP CONTROLLER2 DISK ‘ORCL:DISK006’
ATTRIBUTE ‘au_size’=’4M’
‘compatible.asm’=’11.2’,’compatible.rdbms’=’11.2’,’compatible.advm’=’11.2’;
3.
logon as grid, set
the environment and run the asm command shell (asmcmd) and run
ASMCMD> volcreate –G data2 –s 10g volume1
To see the
information about the created volumne
ASMCMD> volinfo –G data2 volume1
4.
Create ACFS file
system from Operating system
mkfs –t acfs /dev/asm/volume1-390
5.
Register the ACFS
with acfsutil
acfsutil
registry –a /dev/asm/volumn1-390
/u01/app/acfsmounts/test
df-h
6.
You can have upto 63 snapshots of the same file system. They can be deleted or created on the
fly. ACFS snapshots provide a point in
time consistent view of the file system which can be used for instance for
backups. To create a snapshot named “backups1”
on /backups
acfsutil
snap create backups1 /backups
7.
Once created the
snapshot is available under /backups/.ACFS directory
To see information
about already created snapshots
acfsutil
info fs /backups
8.
To delete a snapshot
Acfsutil
snap delete backups1 /backups

No comments:
Post a Comment