setting up acfs

16
Setting up ACFS In 11GR2.3 ( an implementation ) Mathijs Bruggink.

Upload: hadar

Post on 11-Jan-2016

44 views

Category:

Documents


0 download

DESCRIPTION

Setting up ACFS. In 11GR2.3 ( an implementation ) Mathijs Bruggink. General. Purpose : Central/ Shared Logging . Shared Location for Exports ( Dumps ). REQUIREMENTS. Setting up standards: One ACFS Disk Group per Database. (_ACFS01). - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Setting  up  ACFS

Setting up ACFSIn 11GR2.3 ( an implementation )

Mathijs Bruggink.

Page 2: Setting  up  ACFS

Purpose:

Central/Shared Logging.

Shared Location for Exports (Dumps)

General

Page 3: Setting  up  ACFS

Setting up standards:◦ One ACFS Disk Group per Database. (<Database>_ACFS01).◦ ACFS Disk Group set up: NORMAL redundancy. ◦ Set up a volume. The volume name: <Database>_ACFS. ◦ In ASMCA:

create ACFS as a Database Home File system. Cluster File system:/opt/oracle/<DATABASE>.

In Grid Infra: ◦ Create dependency between Database and ACFS FS.◦ Create dependency between Listener and the ACFS

FS. Otherwise your Db and Listener will NOT start

auto via Cluster at cluster reboot/ node reboot.

REQUIREMENTS

Page 4: Setting  up  ACFS

Diskgroup

Page 5: Setting  up  ACFS

Volume

Page 6: Setting  up  ACFS

Volume

•Showing VolumeName entered, •The volume device on Linux and •the Asm Disk group you have selected.

Page 7: Setting  up  ACFS

ASM Cluster File System

Note: even though the acfs is used for Logging only. I only got it to work when selecting database home file systems. Cause that way it was registerd properly as resource in the clusterware.

Page 8: Setting  up  ACFS

ASM Cluster File System

Node64r

Page 9: Setting  up  ACFS

ASM Cluster File System

RUN the script as ROOT user on only One Node. The prompt will return with info similar to below:

cd /opt/oracle/cfgtoollogs/asmca/scripts ./ACFS_script.sh

ACFS file system is running on Node64r, Node65r, Node66r

Page 10: Setting  up  ACFS

diagnostic_dest: add dependency similar to this:

Removed current db resource in Grid Infra:srvctl remove database -d DBNAME

Registered the database again:srvctl add database -d DBNAME -o /opt/oracle/product/11203_ee_64/db -c RAC -m test.nl -p +DATA01/dbname/spfiledbname.ora -t IMMEDIATE -a “DBNAME_ACFS01, DBNAME_DATA01, DBNAME_FRA01" -j "/opt/oracle/DBNAME"

Dependency for the DB:

Page 11: Setting  up  ACFS

Dependency for listener:

Dependency for the (local) Listener.

• Modify the ACFS resource:crsctl modify resource ora.dbname_ACFS01.dbname_ACFS1.ACFS -attr "START_DEPENDENCIES=hard(ora.DBNAME_ACFS01.dg) pullup(ora.DBNAME_ACFS01.dg) pullup:always(ora.asm)"

• Modify the listener:crsctl modify resource ora.LISTENER_DBNAME.lsnr -attr "START_DEPENDENCIES='hard(type:ora.cluster_vip_net1.type,ora.dbname_ACFS01.dbname_ACFS1.ACFS) pullup(type:ora.cluster_vip_net1.type,ora.dbname_ACFS01.dbname_ACFS1.ACFS)'"

!!!!Note there is single quote just after = and another one just before  last."

Page 12: Setting  up  ACFS

Removing ACFS file System:!!!! Tip: You need to do a dismount on each node of the cluster as root User:

/bin/umount -t ACFS -a !!!! Note if you you cannot do this cause the device is busy as root use: lsof |grep <SID>  (most likely you still have running listener(s) writing into ACFS or database activity (audit files etc.) or you still have a session in that mount point which you should leave.)

!!!! Tip: as root /opt/crs/product/112_ee_64/crs/bin/srvctl remove filesystem -d /dev/asm/ACFS_dbname-378 f.e.

Page 13: Setting  up  ACFS

Unregister Mont point:

1

2

Page 14: Setting  up  ACFS

Delete the ACFS:1

Page 15: Setting  up  ACFS

Disable / Delete the volume

1

2

123

1. Remove the ACFS (unregister and Delete)2. Diable an delete the Volume3. Drop Diskgroup (which will drop disks too)

Page 16: Setting  up  ACFS