Oracle12c ASM Administration
Oracle12c ASM Administration
Oracle12c ASM Administration
Administrator's Guide
12c Release 1 (12.1)
E41058-12
July 2017
Oracle Automatic Storage Management Administrator's Guide, 12c Release 1 (12.1)
E41058-12
Copyright © 2007, 2017, Oracle and/or its affiliates. All rights reserved.
Contributing Authors: Jerry Abraham, Prasad Bagal, Mark Bauer, Bill Bridge, Chan Chan, Xiaobin Chen,
Hanlin Chien, Jonathan Creighton, Steve Fogel, Dave Friedman, Barb Glover, Fred Glover, Allan Graves,
Shie-rei Huang, Rekha Iyer, Diane Lebel, Rich Long, Colin McGregor, Gregory Mengel, Harendra Mishra,
Valarie Moore, Nitin Munjal, Darshan Nagarajappa, Harish Nandyala, Bob Nelson, Balaji Pagadala, Satish
Panchumarthy, Soma Prasad, Kathy Rich, Harshavardhan Sabbineni, Francisco Sanchez, Santhosh Selvaraj,
Ara Shakian, Duane Smith, Joshua Smith, Malai Stalin, Amar Subba, Yaser Suleiman, Elisabeth Thibault,
Michael Timpanaro-Perrotta, Samarjeet Tomar, Brian Tsao, Nitin Vengurlekar, P Venkatraman, Anton
Verhulst, Radek Vingralek, Ron Weiss, Ric Werme, Rajiv Wickremesinghe, Jim A. Williams, Sivakumar
Yarlagadda, Song Ye, Krishnan Yegnashankaran, Jon Zolla
This software and related documentation are provided under a license agreement containing restrictions on
use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your
license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license,
transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse
engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is
prohibited.
The information contained herein is subject to change without notice and is not warranted to be error-free. If
you find any errors, please report them to us in writing.
If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on
behalf of the U.S. Government, then the following notice is applicable:
U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software,
any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users are
"commercial computer software" pursuant to the applicable Federal Acquisition Regulation and agency-
specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the
programs, including any operating system, integrated software, any programs installed on the hardware,
and/or documentation, shall be subject to license terms and license restrictions applicable to the programs.
No other rights are granted to the U.S. Government.
This software or hardware is developed for general use in a variety of information management applications.
It is not developed or intended for use in any inherently dangerous applications, including applications that
may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you
shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its
safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this
software or hardware in dangerous applications.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of
their respective owners.
Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are
used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Opteron,
the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro
Devices. UNIX is a registered trademark of The Open Group.
This software or hardware and documentation may provide access to or information about content, products,
and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly
disclaim all warranties of any kind with respect to third-party content, products, and services unless
otherwise set forth in an applicable agreement between you and Oracle. Oracle Corporation and its affiliates
will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party
content, products, or services, except as set forth in an applicable agreement between you and Oracle.
Contents
Part I Introduction
iii
Understanding Oracle ASM Disk Group Administration................................................................ 1-11
About Discovering Disks .............................................................................................................. 1-11
About Mounting and Dismounting Disk Groups ..................................................................... 1-11
About Adding and Dropping Disks ............................................................................................ 1-12
About Online Storage Reconfigurations and Dynamic Rebalancing ..................................... 1-12
iv
Updating the Oracle ASM Filter Driver AFD_DISKSTRING Parameter............................... 3-42
Updating the Oracle ASM ASM_DISKSTRING Parameter for Oracle ASM Filter Driver
Disks ........................................................................................................................................... 3-42
Setting, Clearing, and Scanning Oracle ASM Filter Driver Labels ......................................... 3-43
Deconfiguring Oracle ASM Filter Driver.................................................................................... 3-44
Authentication for Accessing Oracle ASM Instances ........................................................................ 3-46
About Privileges for Oracle ASM................................................................................................. 3-47
Creating Users with the SYSASM Privilege ............................................................................... 3-50
Operating System Authentication for Oracle ASM .................................................................. 3-51
Password File Authentication for Oracle ASM ......................................................................... 3-52
Managing a Shared Password File in a Disk Group ................................................................. 3-52
Migration of a Database to Use Oracle ASM ...................................................................................... 3-55
About Using Oracle Recovery Manager to Migrate Databases to Oracle ASM.................... 3-56
Best Practices White Papers on Migrating to Oracle ASM....................................................... 3-56
v
Negative Values of USABLE_FILE_MB...................................................................................... 4-30
Oracle ASM Mirroring and Disk Group Redundancy ...................................................................... 4-30
Mirroring, Redundancy, and Failure Group Options............................................................... 4-30
Oracle ASM Recovery from Read and Write I/O Errors ......................................................... 4-33
Oracle ASM Fast Mirror Resync................................................................................................... 4-34
Even Read for Disk Groups .......................................................................................................... 4-37
Preferred Read Failure Groups .................................................................................................... 4-37
Performance and Scalability Considerations for Disk Groups ........................................................ 4-39
Determining the Number of Disk Groups.................................................................................. 4-39
Performance Characteristics When Grouping Disks ................................................................ 4-39
Oracle ASM Storage Limits........................................................................................................... 4-39
Disk Group Compatibility..................................................................................................................... 4-41
Overview of Disk Group Compatibility ..................................................................................... 4-41
Disk Group Compatibility Attributes ......................................................................................... 4-42
Setting Disk Group Compatibility Attributes ............................................................................ 4-43
Features Enabled By Disk Group Compatibility Attribute Settings....................................... 4-47
Considerations When Setting Disk Group Compatibility in Replicated Environments ..... 4-49
Managing Oracle ASM File Access Control for Disk Groups .......................................................... 4-50
About Oracle ASM File Access Control ...................................................................................... 4-50
Setting Disk Group Attributes for Oracle ASM File Access Control ...................................... 4-51
Using SQL Statements to Manage Oracle ASM File Access Control ...................................... 4-52
Maintaining Disk Groups ...................................................................................................................... 4-55
Mounting and Dismounting Disk Groups ................................................................................. 4-55
Mounting Disk Groups Using the FORCE Option.................................................................... 4-56
Checking the Internal Consistency of Disk Group Metadata .................................................. 4-56
Dropping Disk Groups .................................................................................................................. 4-57
Renaming Disks Groups................................................................................................................ 4-58
vi
Oracle Database File Mapping for Oracle ASM Files ............................................................... 5-11
Managing Alias Names for Oracle ASM File Names ........................................................................ 5-13
Adding an Alias Name for an Oracle ASM File Name............................................................. 5-14
Renaming an Alias Name for an Oracle ASM File Name ........................................................ 5-14
Dropping an Alias Name for an Oracle ASM File Name ......................................................... 5-14
Dropping Files and Associated Aliases from a Disk Group .................................................... 5-14
Managing Disk Group Directories ....................................................................................................... 5-15
Creating a Directory....................................................................................................................... 5-15
Renaming a Directory .................................................................................................................... 5-16
Dropping a Directory..................................................................................................................... 5-16
Accessing Oracle ASM Files with the XML DB Virtual Folder........................................................ 5-16
Inside /sys/asm ............................................................................................................................. 5-17
Using DBMS_FILE Transfer Utility for Oracle ASM......................................................................... 5-18
Managing Disk Group Templates ........................................................................................................ 5-19
Template Attributes ....................................................................................................................... 5-20
Adding Templates to a Disk Group............................................................................................. 5-21
Modifying a Disk Group Template.............................................................................................. 5-22
Dropping Templates from a Disk Group.................................................................................... 5-22
Creating Tablespaces in Oracle ASM: Specifying Attributes with Templates ...................... 5-23
vii
Viewing Rebalance Process Related Data................................................................................... 7-19
Setting and Modifying the Thin Provisioned Disk Group Attribute...................................... 7-20
Running the On Demand Scrubbing Process............................................................................. 7-20
Determining Whether Scrubbing Process Is Running .............................................................. 7-21
Managing Oracle ASM File Access Control with Oracle Enterprise Manager.............................. 7-21
Managing Directories, Files, and Aliases with Oracle Enterprise Manager .................................. 7-22
Managing Disk Group Templates with Oracle Enterprise Manager .............................................. 7-23
Managing Oracle ASM Filter Driver With Oracle Enterprise Manager ......................................... 7-24
Discovering ASM Filter Driver Disks.......................................................................................... 7-24
Provisioning ASM Filter Driver Disks ........................................................................................ 7-24
Releasing ASM Filter Driver Disks .............................................................................................. 7-25
Monitoring Oracle ASM Performance With Oracle Enterprise Manager ...................................... 7-25
Monitoring General Oracle ASM Performance.......................................................................... 7-25
Checking Disk Group Integrity.................................................................................................... 7-26
Backing Up Oracle ASM Files with Oracle Enterprise Manager ..................................................... 7-27
Performing Bad Block Recovery with Oracle Enterprise Manager ................................................. 7-27
Migrating to Oracle ASM with Oracle Enterprise Manager............................................................. 7-28
Monitoring Alerts and Incidents With Oracle ASM Support Workbench..................................... 7-29
Monitoring Oracle Flex ASM ................................................................................................................ 7-31
viii
About Oracle ASM Files, File Names, Directories, and Aliases .............................................. 10-2
Preparing to Run ASMCMD......................................................................................................... 10-6
Running ASMCMD in Interactive Mode .................................................................................... 10-7
Running ASMCMD in Noninteractive Mode ............................................................................ 10-9
Getting Help.................................................................................................................................. 10-11
ASMCMD Instance Management Commands ................................................................................. 10-11
dsget ............................................................................................................................................... 10-12
dsset................................................................................................................................................ 10-13
lsct ................................................................................................................................................... 10-14
lsop ................................................................................................................................................. 10-15
lspwusr........................................................................................................................................... 10-15
orapwusr........................................................................................................................................ 10-16
pwcopy........................................................................................................................................... 10-17
pwcreate......................................................................................................................................... 10-18
pwdelete......................................................................................................................................... 10-18
pwget.............................................................................................................................................. 10-19
pwmove ......................................................................................................................................... 10-20
pwset .............................................................................................................................................. 10-21
showclustermode ......................................................................................................................... 10-21
showclusterstate ........................................................................................................................... 10-22
showpatches .................................................................................................................................. 10-22
showversion .................................................................................................................................. 10-22
shutdown....................................................................................................................................... 10-23
spbackup........................................................................................................................................ 10-24
spcopy ............................................................................................................................................ 10-25
spget ............................................................................................................................................... 10-26
spmove ........................................................................................................................................... 10-27
spset................................................................................................................................................ 10-28
startup ............................................................................................................................................ 10-28
ASMCMD Oracle ASM Filter Driver Management Commands ................................................... 10-29
afd_configure ................................................................................................................................ 10-29
afd_deconfigure............................................................................................................................ 10-30
afd_dsget........................................................................................................................................ 10-31
afd_dsset ........................................................................................................................................ 10-31
afd_filter......................................................................................................................................... 10-32
afd_label......................................................................................................................................... 10-32
afd_lsdsk........................................................................................................................................ 10-33
afd_scan ......................................................................................................................................... 10-33
afd_state ......................................................................................................................................... 10-34
afd_unlabel .................................................................................................................................... 10-34
ASMCMD File Management Commands ......................................................................................... 10-35
amdu_extract................................................................................................................................. 10-36
cd..................................................................................................................................................... 10-36
ix
cp..................................................................................................................................................... 10-37
du .................................................................................................................................................... 10-38
find.................................................................................................................................................. 10-39
ls ...................................................................................................................................................... 10-40
lsof................................................................................................................................................... 10-42
mkalias ........................................................................................................................................... 10-43
mkdir .............................................................................................................................................. 10-44
pwd................................................................................................................................................. 10-44
rm.................................................................................................................................................... 10-45
rmalias............................................................................................................................................ 10-46
ASMCMD Disk Group Management Commands........................................................................... 10-46
chdg ................................................................................................................................................ 10-47
chkdg .............................................................................................................................................. 10-49
dropdg............................................................................................................................................ 10-50
iostat ............................................................................................................................................... 10-51
lsattr................................................................................................................................................ 10-53
lsdg ................................................................................................................................................. 10-54
lsdsk................................................................................................................................................ 10-56
lsod ................................................................................................................................................. 10-58
md_backup.................................................................................................................................... 10-59
md_restore..................................................................................................................................... 10-60
mkdg .............................................................................................................................................. 10-61
mount ............................................................................................................................................. 10-63
offline ............................................................................................................................................. 10-63
online.............................................................................................................................................. 10-64
rebal ................................................................................................................................................ 10-65
remap ............................................................................................................................................. 10-66
setattr.............................................................................................................................................. 10-67
umount........................................................................................................................................... 10-67
ASMCMD Template Management Commands ............................................................................... 10-68
chtmpl ............................................................................................................................................ 10-68
lstmpl.............................................................................................................................................. 10-69
mktmpl........................................................................................................................................... 10-70
rmtmpl ........................................................................................................................................... 10-71
ASMCMD File Access Control Commands ...................................................................................... 10-72
chgrp............................................................................................................................................... 10-72
chmod............................................................................................................................................. 10-73
chown ............................................................................................................................................. 10-75
groups ............................................................................................................................................ 10-75
grpmod........................................................................................................................................... 10-76
lsgrp................................................................................................................................................ 10-77
lsusr ................................................................................................................................................ 10-77
mkgrp ............................................................................................................................................. 10-78
x
mkusr ............................................................................................................................................. 10-79
passwd ........................................................................................................................................... 10-79
rmgrp.............................................................................................................................................. 10-80
rmusr .............................................................................................................................................. 10-81
rpusr ............................................................................................................................................... 10-81
xi
13 Administering Oracle ACFS with Oracle Enterprise Manager
Managing Oracle ACFS File Systems and Volumes with Oracle Enterprise Manager ................ 13-1
Creating Oracle ACFS File Systems and Volumes .................................................................... 13-2
Viewing and Modifying Oracle ACFS Volumes and File Systems ......................................... 13-4
Managing Oracle ACFS Snapshots with Oracle Enterprise Manager ............................................ 13-5
Creating, Modifying, and Viewing Snapshots........................................................................... 13-6
Converting Snapshots Between Read-Only and Read-Write .................................................. 13-7
Creating Child Snapshots from Existing Snapshots.................................................................. 13-7
Managing Security Features with Oracle Enterprise Manager........................................................ 13-8
Initializing Oracle ACFS Security ................................................................................................ 13-9
Preparing an Oracle ACFS For Security.................................................................................... 13-10
Undoing Oracle ACFS Security.................................................................................................. 13-10
Enabling Security on Oracle ACFS ............................................................................................ 13-11
Disabling Security on Oracle ACFS ........................................................................................... 13-11
Viewing Security Status............................................................................................................... 13-11
Adding an Oracle ACFS Security Administrator .................................................................... 13-12
Changing an Oracle ACFS Security Administrator Password .............................................. 13-12
Deleting an Oracle ACFS Security Administrator................................................................... 13-12
Viewing Oracle ACFS Security Administrators ...................................................................... 13-12
Creating a Rule ............................................................................................................................. 13-13
Cloning a Rule............................................................................................................................... 13-13
Editing a Rule................................................................................................................................ 13-14
Deleting a Rule.............................................................................................................................. 13-14
Searching For and Viewing Rules.............................................................................................. 13-14
Creating a Ruleset ........................................................................................................................ 13-15
Cloning a Ruleset.......................................................................................................................... 13-16
Editing a Ruleset........................................................................................................................... 13-16
Deleting a Ruleset......................................................................................................................... 13-16
Searching For and Viewing Rulesets ......................................................................................... 13-17
Creating a Realm .......................................................................................................................... 13-18
Cloning a Realm ........................................................................................................................... 13-18
Adding Objects to a Realm ......................................................................................................... 13-19
Deleting Objects from a Realm................................................................................................... 13-19
Deleting a Realm........................................................................................................................... 13-20
Viewing Realms............................................................................................................................ 13-20
Managing Encryption Features with Oracle Enterprise Manager................................................. 13-21
Initializing Oracle ACFS Encryption ......................................................................................... 13-21
Enabling, Disabling, and Setting Parameters for Encryption On an Oracle ACFS ............ 13-22
Viewing Encryption Status ......................................................................................................... 13-22
Managing Tagging Features with Oracle Enterprise Manager...................................................... 13-22
Adding a Tag in Oracle ACFS .................................................................................................... 13-23
Removing a Tag in Oracle ACFS................................................................................................ 13-23
xii
Searching for Tags in Oracle ACFS............................................................................................ 13-24
xiii
Oracle ACFS Command-line Tools for the AIX Environment....................................................... 16-36
fsck.................................................................................................................................................. 16-37
mkfs ................................................................................................................................................ 16-39
mount ............................................................................................................................................. 16-41
umount/umountall...................................................................................................................... 16-43
Oracle ACFS Command-line Tools for Windows Environments.................................................. 16-44
acfschkdsk ..................................................................................................................................... 16-44
acfsdismount ................................................................................................................................. 16-46
acfsformat ...................................................................................................................................... 16-47
acfsmountvol................................................................................................................................. 16-48
acfsutil detach ............................................................................................................................... 16-50
advmutil dismount....................................................................................................................... 16-50
advmutil list .................................................................................................................................. 16-52
advmutil mount............................................................................................................................ 16-52
Oracle ACFS Command-Line Tools for Tagging ............................................................................. 16-54
acfsutil tag info.............................................................................................................................. 16-54
acfsutil tag set................................................................................................................................ 16-55
acfsutil tag unset........................................................................................................................... 16-57
Oracle ACFS Command-Line Tools for Replication........................................................................ 16-58
acfsutil repl bg............................................................................................................................... 16-58
acfsutil repl compare.................................................................................................................... 16-60
acfsutil repl info ............................................................................................................................ 16-61
acfsutil repl init ............................................................................................................................. 16-63
acfsutil repl pause......................................................................................................................... 16-65
acfsutil repl resume ...................................................................................................................... 16-66
acfsutil repl sync ........................................................................................................................... 16-67
acfsutil repl terminate .................................................................................................................. 16-68
acfsutil repl trace .......................................................................................................................... 16-69
acfsutil repl update....................................................................................................................... 16-69
Oracle ACFS Command-Line Tools for Auditing ........................................................................... 16-70
acfsutil audit archive.................................................................................................................... 16-71
acfsutil audit disable .................................................................................................................... 16-72
acfsutil audit enable ..................................................................................................................... 16-72
acfsutil audit info.......................................................................................................................... 16-73
acfsutil audit init........................................................................................................................... 16-74
acfsutil audit purge ...................................................................................................................... 16-75
acfsutil audit read......................................................................................................................... 16-75
Oracle ACFS Command-Line Tools for Security ............................................................................. 16-76
acfsutil sec admin add ................................................................................................................. 16-77
acfsutil sec admin password....................................................................................................... 16-78
acfsutil sec admin remove........................................................................................................... 16-79
acfsutil sec batch ........................................................................................................................... 16-79
acfsutil sec disable ........................................................................................................................ 16-80
xiv
acfsutil sec enable ......................................................................................................................... 16-81
acfsutil sec info.............................................................................................................................. 16-82
acfsutil sec info file ....................................................................................................................... 16-83
acfsutil sec init............................................................................................................................... 16-83
acfsutil sec load............................................................................................................................. 16-85
acfsutil sec prepare....................................................................................................................... 16-86
acfsutil sec realm add................................................................................................................... 16-88
acfsutil sec realm audit disable................................................................................................... 16-92
acfsutil sec realm audit enable.................................................................................................... 16-93
acfsutil sec realm audit info ........................................................................................................ 16-95
acfsutil sec realm clone ................................................................................................................ 16-95
acfsutil sec realm create ............................................................................................................... 16-97
acfsutil sec realm delete............................................................................................................... 16-98
acfsutil sec realm destroy ............................................................................................................ 16-99
acfsutil sec rule clone ................................................................................................................... 16-99
acfsutil sec rule create ................................................................................................................ 16-100
acfsutil sec rule destroy ............................................................................................................. 16-102
acfsutil sec rule edit.................................................................................................................... 16-102
acfsutil sec ruleset clone ............................................................................................................ 16-103
acfsutil sec ruleset create ........................................................................................................... 16-104
acfsutil sec ruleset destroy ........................................................................................................ 16-105
acfsutil sec ruleset edit............................................................................................................... 16-106
acfsutil sec save........................................................................................................................... 16-106
Oracle ACFS Command-Line Tools for Encryption...................................................................... 16-107
acfsutil encr info ......................................................................................................................... 16-108
acfsutil encr init .......................................................................................................................... 16-109
acfsutil encr off............................................................................................................................ 16-110
acfsutil encr on ............................................................................................................................ 16-111
acfsutil encr rekey....................................................................................................................... 16-112
acfsutil encr set............................................................................................................................ 16-113
acfsutil keystore migrate ........................................................................................................... 16-115
Oracle ACFS Command-Line Utilities ............................................................................................ 16-115
acfsdbg ......................................................................................................................................... 16-116
acfsutil info file ........................................................................................................................... 16-120
acfsutil info fs .............................................................................................................................. 16-120
acfsutil info id ............................................................................................................................. 16-125
acfsutil plugin disable................................................................................................................ 16-125
acfsutil plugin enable................................................................................................................. 16-126
acfsutil plugin info ..................................................................................................................... 16-128
acfsutil registry ........................................................................................................................... 16-129
acfsutil rmfs ................................................................................................................................. 16-131
acfsutil size .................................................................................................................................. 16-132
acfsutil snap convert .................................................................................................................. 16-134
xv
acfsutil snap create ..................................................................................................................... 16-135
acfsutil snap delete ..................................................................................................................... 16-137
acfsutil snap info......................................................................................................................... 16-138
acfsutil tune ................................................................................................................................. 16-139
advmutil canonical..................................................................................................................... 16-140
advmutil tune.............................................................................................................................. 16-141
advmutil volinfo ......................................................................................................................... 16-142
xvi
Glossary
Index
xvii
xviii
List of Examples
xix
10-2 Running ASMCMD commands in noninteractive mode.................................................. 10-10
10-3 Displaying a return code when running ASMCMD in noninteractive mode................ 10-10
10-4 Running ASMCMD commands in a script.......................................................................... 10-10
10-5 Displaying ASMCMD help text............................................................................................ 10-11
10-6 Using the ASMCMD dsget command.................................................................................. 10-13
10-7 Using the ASMCMD dsset command.................................................................................. 10-14
10-8 Using the ASMCMD lsct command..................................................................................... 10-15
10-9 Using the ASMCMD lsop command.................................................................................... 10-15
10-10 Using the ASMCMD lspwusr command............................................................................. 10-16
10-11 Using the ASMCMD orapwusr command.......................................................................... 10-17
10-12 Using the ASMCMD pwcopy command............................................................................. 10-18
10-13 Using the ASMCMD pwcreate command........................................................................... 10-18
10-14 Using the ASMCMD pwdelete command........................................................................... 10-19
10-15 Using the ASMCMD pwget command................................................................................ 10-20
10-16 Using the ASMCMD pwmove command........................................................................... 10-21
10-17 Using the ASMCMD pwset command................................................................................ 10-21
10-18 Using the ASMCMD showclustermode command............................................................ 10-22
10-19 Using the ASMCMD showclusterstate command............................................................. 10-22
10-20 Using the ASMCMD showpatches command.................................................................... 10-22
10-21 Using the ASMCMD showversion command.................................................................... 10-23
10-22 Using the ASMCMD shutdown command......................................................................... 10-24
10-23 Using the ASMCMD spbackup command.......................................................................... 10-25
10-24 Using the ASMCMD spcopy command.............................................................................. 10-26
10-25 Using the ASMCMD spget command.................................................................................. 10-27
10-26 Using the ASMCMD spmove command............................................................................. 10-27
10-27 Using the ASMCMD spset command.................................................................................. 10-28
10-28 Using the ASMCMD startup command.............................................................................. 10-29
10-29 Using the afd_configure command...................................................................................... 10-30
10-30 Using the afd_deconfigure command.................................................................................. 10-31
10-31 Using the afd_dsget command............................................................................................. 10-31
10-32 Using the afd_dsset command.............................................................................................. 10-31
10-33 Using the afd_filter command............................................................................................... 10-32
10-34 Using the afd_label command............................................................................................... 10-33
10-35 Using the afd_lsdsk commmand.......................................................................................... 10-33
10-36 Using the afd_scan command............................................................................................... 10-34
10-37 Using the afd_state command............................................................................................... 10-34
10-38 Using the afd_unlabel command.......................................................................................... 10-35
10-39 Using the ASMCMD amdu_extract command................................................................... 10-36
10-40 Using the ASMCMD cd command....................................................................................... 10-37
10-41 Using the ASMCMD cp command....................................................................................... 10-38
10-42 Using the ASMCMD du command...................................................................................... 10-39
10-43 Using the ASMCMD find command.................................................................................... 10-40
10-44 Using the ASMCMD ls command........................................................................................ 10-41
10-45 Using the ASMCMD lsof command..................................................................................... 10-43
10-46 Using the ASMCMD mkalias command............................................................................. 10-43
10-47 Using the ASMCMD mkdir command................................................................................ 10-44
10-48 Using the ASMCMD pwd command................................................................................... 10-45
10-49 Using the ASMCMD rm command...................................................................................... 10-46
10-50 Using the ASMCMD rmalias command.............................................................................. 10-46
10-51 Tags for the chdg XML configuration template................................................................. 10-48
10-52 chdg sample XML configuration file ................................................................................... 10-49
10-53 Using the ASMCMD chdg command.................................................................................. 10-49
10-54 Using the ASMCMD chkdg command................................................................................ 10-50
10-55 Using the ASMCMD dropdg command.............................................................................. 10-50
xx
10-56 Using the ASMCMD iostat command................................................................................. 10-52
10-57 Using the ASMCMD lsattr command.................................................................................. 10-53
10-58 Using the ASMCMD lsdg command.................................................................................... 10-55
10-59 Using the ASMCMD lsdsk command.................................................................................. 10-57
10-60 Using the ASMCMD lsod command.................................................................................... 10-58
10-61 Using the ASMCMD md_backup command...................................................................... 10-59
10-62 Using the ASMCMD md_restore command....................................................................... 10-61
10-63 Tags for mkdg XML configuration file................................................................................ 10-62
10-64 mkdg sample XML configuration file.................................................................................. 10-62
10-65 Using the ASMCMD mkdg command................................................................................. 10-63
10-66 Using the ASMCMD mount command............................................................................... 10-63
10-67 Using the ASMCMD offline command................................................................................ 10-64
10-68 Using the ASMCMD online command................................................................................ 10-65
10-69 Using the ASMCMD rebal command.................................................................................. 10-66
10-70 Using the ASMCMD remap command................................................................................ 10-67
10-71 Using the ASMCMD setattr command................................................................................ 10-67
10-72 Using the ASMCMD umount command............................................................................. 10-68
10-73 Using the ASMCMD chtmpl command............................................................................... 10-69
10-74 Using the ASMCMD lstmpl command................................................................................ 10-70
10-75 Using the ASMCMD mktmpl command............................................................................. 10-71
10-76 Using the ASMCMD rmtmpl command.............................................................................. 10-71
10-77 Using the ASMCMD chgrp command................................................................................. 10-73
10-78 Using the ASMCMD chmod command............................................................................... 10-74
10-79 Using the ASMCMD chown command............................................................................... 10-75
10-80 Using the ASMCMD groups command............................................................................... 10-76
10-81 Using the ASMCMD grpmod command............................................................................. 10-77
10-82 Using the ASMCMD lsgrp command.................................................................................. 10-77
10-83 Using the ASMCMD lsusr command................................................................................... 10-78
10-84 Using the ASMCMD mkgrp command............................................................................... 10-79
10-85 Using the ASMCMD mkusr command................................................................................ 10-79
10-86 Using the ASMCMD passwd command.............................................................................. 10-80
10-87 Using the ASMCMD rmgrp command................................................................................ 10-80
10-88 Using the ASMCMD rmusr command................................................................................ 10-81
10-89 Using the ASMCMD rpusr command................................................................................. 10-82
11-1 Sample audit trail file............................................................................................................. 11-27
12-1 Viewing encryption information in V$ASM_ACFS_ENCRYPTION_INFO.................... 12-4
12-2 Viewing security information in V$ASM_ACFS_SECURITY_INFO................................ 12-4
12-3 Viewing security rules information in V$ASM_ACFS_SEC_RULE.................................. 12-5
12-4 Viewing security ruleset information in V$ASM_ACFS_SEC_RULESET........................ 12-5
12-5 Viewing security ruleset information in V$ASM_ACFS_SEC_RULESET_RULE........... 12-5
12-6 Viewing snapshot information in V$ASM_ACFSSNAPSHOTS........................................ 12-5
12-7 Viewing volume information with V$ASM_ACFSVOLUMES.......................................... 12-6
12-8 Viewing volume information with V$ASM_FILESYSTEM................................................ 12-6
12-9 Viewing volume information with V$ASM_VOLUME...................................................... 12-6
12-10 Viewing volume information with V$ASM_VOLUME_STAT.......................................... 12-6
12-11 Viewing tag name information with V$ASM_ACFSTAG................................................... 12-6
12-12 Viewing Oracle ASM information with V$MAP_ELEMENT............................................. 12-8
12-13 Viewing Oracle ACFS Data File Information with V$MAP_FILE..................................... 12-8
12-14 Viewing Element and File Offset Information with V$MAP_FILE_EXTENT................. 12-8
12-15 Viewing Extent Information With V$MAP_FILE_IO_STACK........................................... 12-8
14-1 Using asmca -silent -createVolume...................................................................................... 14-10
14-2 Using asmca -silent -createACFS.......................................................................................... 14-11
15-1 Using the ASMCMD volcreate command............................................................................. 15-3
15-2 Using the ASMCMD voldelete command............................................................................. 15-4
xxi
15-3 Using the ASMCMD voldisable command........................................................................... 15-5
15-4 Using the ASMCMD volenable command............................................................................ 15-6
15-5 Using the ASMCMD volinfo command................................................................................. 15-6
15-6 Using the ASMCMD volresize command............................................................................. 15-8
15-7 Using the ASMCMD volset command................................................................................... 15-8
15-8 Using the ASMCMD volstat command................................................................................. 15-9
16-1 Using the fsck command........................................................................................................ 16-24
16-2 Using the mkfs command...................................................................................................... 16-26
16-3 Using the mount command................................................................................................... 16-28
16-4 Using the umount command................................................................................................. 16-29
16-5 Using the fsck command........................................................................................................ 16-31
16-6 Using the mkfs command...................................................................................................... 16-33
16-7 Using the mount command................................................................................................... 16-35
16-8 Using the umount command................................................................................................. 16-36
16-9 Using the fsck command........................................................................................................ 16-39
16-10 Using the mkfs command...................................................................................................... 16-40
16-11 Using the mount command................................................................................................... 16-43
16-12 Using the umount command................................................................................................. 16-44
16-13 Using the acfschkdsk command........................................................................................... 16-46
16-14 Using the acfsdismount command....................................................................................... 16-47
16-15 Using the acfsformat command............................................................................................ 16-48
16-16 Using the acfsmountvol command....................................................................................... 16-49
16-17 Using the acfsutil detach command..................................................................................... 16-50
16-18 Using the advmutil dismount command............................................................................ 16-51
16-19 Using the advmutil list command........................................................................................ 16-52
16-20 Using the advmutil mount command.................................................................................. 16-53
16-21 Using the acfsutil tag info command................................................................................... 16-55
16-22 Using the acfsutil tag set command...................................................................................... 16-56
16-23 Using the acfsutil tag unset command................................................................................. 16-57
16-24 Using the acfsutil repl bg command.................................................................................... 16-59
16-25 Using the acfsutil repl compare command.......................................................................... 16-61
16-26 Using the acfsutil repl info command.................................................................................. 16-62
16-27 Using the acfsutil repl init command................................................................................... 16-65
16-28 Using the acfsutil repl pause command.............................................................................. 16-66
16-29 Using the acfsutil repl resume command............................................................................ 16-67
16-30 Using the acfsutil repl sync command................................................................................. 16-68
16-31 Using the acfsutil repl terminate command........................................................................ 16-69
16-32 Using the acfsutil repl trace command................................................................................ 16-69
16-33 Using the acfsutil repl update command............................................................................ 16-70
16-34 Using the acfsutil audit archive command.......................................................................... 16-72
16-35 Using the acfsutil audit disable command.......................................................................... 16-72
16-36 Using the acfsutil audit enable command........................................................................... 16-73
16-37 Using the acfsutil audit info command................................................................................ 16-73
16-38 Using the acfsutil audit init command................................................................................. 16-74
16-39 Using the acfsutil audit purge command............................................................................ 16-75
16-40 Using the acfsutil audit read command............................................................................... 16-76
16-41 Using the acfsutil sec admin add command....................................................................... 16-78
16-42 Using the acfsutil sec admin password command............................................................. 16-79
16-43 Using the acfsutil sec admin remove command................................................................. 16-79
16-44 Using the acfsutil sec batch command................................................................................. 16-80
16-45 Using the acfsutil sec disable command.............................................................................. 16-81
16-46 Using the acfsutil sec enable command............................................................................... 16-82
16-47 Using the acfsutil sec info command.................................................................................... 16-83
16-48 Using the acfsutil sec info file command............................................................................. 16-83
xxii
16-49 Using the acfsutil sec init command..................................................................................... 16-85
16-50 Using the acfsutil sec load command................................................................................... 16-86
16-51 Using the acfsutil sec prepare command............................................................................. 16-88
16-52 Using the acfsutil sec realm add command........................................................................ 16-91
16-53 Using the acfsutil sec realm audit disable command........................................................ 16-92
16-54 Auditing Oracle ACFS security backup operators............................................................. 16-94
16-55 Auditing only security realm users...................................................................................... 16-94
16-56 Running acfsutil sec realm audit enable multiple times................................................... 16-94
16-57 Running acfsutil sec realm audit info.................................................................................. 16-95
16-58 Using the acfsutil sec realm clone command...................................................................... 16-96
16-59 Using the acfsutil sec realm create command..................................................................... 16-98
16-60 Using the acfsutil sec realm delete command..................................................................... 16-99
16-61 Using the acfsutil sec realm destroy command.................................................................. 16-99
16-62 Using the acfsutil sec rule clone command....................................................................... 16-100
16-63 Using the acfsutil sec rule create command...................................................................... 16-101
16-64 Using the acfsutil sec rule destroy command................................................................... 16-102
16-65 Using the acfsutil sec rule edit command......................................................................... 16-103
16-66 Using the acfsutil sec ruleset clone command.................................................................. 16-104
16-67 Using the acfsutil sec ruleset create command................................................................. 16-105
16-68 Using the acfsutil sec ruleset destroy command.............................................................. 16-106
16-69 Using the acfsutil sec ruleset edit command..................................................................... 16-106
16-70 Using the acfsutil sec save command................................................................................ 16-107
16-71 Using the acfsutil encr info command............................................................................... 16-109
16-72 Using the acfsutil encr init command................................................................................ 16-110
16-73 Using the acfsutil encr off command................................................................................. 16-111
16-74 Using the acfsutil encr on command.................................................................................. 16-112
16-75 Using the acfsutil encr rekey command............................................................................ 16-113
16-76 Using the acfsutil encr set command................................................................................. 16-115
16-77 Using the acfsutil keystore migrate command................................................................. 16-115
16-78 Using the acfsdbg command............................................................................................... 16-119
16-79 Using the acfsutil info file command................................................................................. 16-120
16-80 Using the acfsutil info fs command on Linux................................................................... 16-123
16-81 Using the acfsutil info fs command on Windows............................................................ 16-124
16-82 Using the acfsutil info fs command with the -s option................................................... 16-124
16-83 Using the acfsutil info id command................................................................................... 16-125
16-84 Disabling the Oracle ACFS driver...................................................................................... 16-126
16-85 Enabling the Oracle ACFS driver for storage visibility: poll model.............................. 16-127
16-86 Enabling the Oracle ACFS driver for storage visibility: post on interval model......... 16-128
16-87 Displaying information about the Oracle ACFS driver.................................................. 16-129
16-88 Using the acfsutil registry command................................................................................. 16-131
16-89 Using the acfsutil rmfs command....................................................................................... 16-132
16-90 Using the acfsutil size command........................................................................................ 16-134
16-91 Using the acfsutil snap convert command........................................................................ 16-135
16-92 Using the acfsutil snap create command on Linux.......................................................... 16-136
16-93 Using the acfsutil snap create command on Windows................................................... 16-137
16-94 Using the acfsutil snap delete command........................................................................... 16-138
16-95 Using the acfsutil snap info command on Linux............................................................. 16-139
16-96 Using the acfsutil snap info command on Windows....................................................... 16-139
16-97 Using the acfsutil tune command....................................................................................... 16-140
16-98 Using advmutil canonical.................................................................................................... 16-141
16-99 Using advmutil tune............................................................................................................. 16-142
16-100 Using advmutil volinfo........................................................................................................ 16-143
17-1 Creating control files in Oracle ASM using NORESETLOGS............................................. 17-3
17-2 Creating control files in Oracle ASM using RESETLOGS................................................... 17-4
xxiii
17-3 Archived log files in an Oracle ASM disk group.................................................................. 17-5
18-1 Application Plug-in for Storage Visibility: Poll Model........................................................ 18-9
18-2 Application Plug-in for File Content: Post Model................................................................ 18-9
18-3 Retrieving a file tag value...................................................................................................... 18-12
18-4 Listing file tags......................................................................................................................... 18-14
18-5 Removing file tags................................................................................................................... 18-15
18-6 Setting file tags......................................................................................................................... 18-16
xxiv
List of Figures
xxv
14-5 Oracle ASM Configuration Assistant Configure Security and Encryption Dialog......... 14-6
14-6 Oracle ASM Configuration Assistant Oracle ACFS Security Menu Options................... 14-7
14-7 Oracle ASM Configuration Assistant Create Oracle ACFS for Database Use Dialog..... 14-9
xxvi
List of Tables
3-1 One operating system group and one set of privileges for all Oracle ASM users........... 3-48
3-2 Separated operating system groups and privileges for Oracle ASM users...................... 3-49
4-1 Mirroring options for Oracle ASM disk group types.......................................................... 4-30
4-2 Examples of disk group compatibility attribute settings.................................................... 4-44
4-3 Oracle ASM features enabled by disk group compatibility attribute settings................. 4-47
4-4 Oracle ACFS features enabled by disk group compatibility attribute settings................ 4-48
4-5 Maximum Oracle ASM file sizes for disk groups with AU_SIZE equal to 1 MB............ 4-49
5-1 File types supported by Oracle ASM........................................................................................ 5-1
5-2 Valid usage for Oracle ASM file name forms.......................................................................... 5-4
5-3 Oracle file types and Oracle ASM file type tags..................................................................... 5-5
5-4 Permitted values for Oracle ASM template striping attribute............................................ 5-20
5-5 Permitted values for Oracle ASM template redundancy attribute.................................... 5-20
5-6 Oracle ASM system default templates attribute settings.................................................... 5-20
5-7 Permitted values for Oracle ASM template primary and mirror region attribute.......... 5-21
6-1 Oracle ASM dynamic views for disk group information...................................................... 6-1
9-1 Options for the ASMCA command-line tool........................................................................... 9-8
9-2 Options for the -convertToFlexASM command.................................................................... 9-10
9-3 Options for the -configureASM command............................................................................ 9-11
9-4 Options for the -configureParameter command................................................................... 9-12
9-5 Options for the -deleteASM command.................................................................................. 9-13
9-6 Options for the -createDiskGroup command........................................................................ 9-14
9-7 Options for the -addDisk command....................................................................................... 9-15
10-1 Types of ASMCMD commands.............................................................................................. 10-2
10-2 ASMCMD interactive options................................................................................................. 10-8
10-3 ASMCMD return codes.......................................................................................................... 10-10
10-4 Summary of ASMCMD instance management commands.............................................. 10-11
10-5 Options for the dsget command........................................................................................... 10-13
10-6 Options for the dsset command............................................................................................ 10-13
10-7 Options for the lsct command............................................................................................... 10-14
10-8 Options for the lspwusr command ...................................................................................... 10-16
10-9 Options for the orapwusr command ................................................................................... 10-16
10-10 Options for the pwcopy command....................................................................................... 10-17
10-11 Options for the pwcreate command..................................................................................... 10-18
10-12 Options for the pwdelete command..................................................................................... 10-19
10-13 Options for the pwget command.......................................................................................... 10-19
10-14 Options for the pwmove command..................................................................................... 10-20
10-15 Options for the pwset command.......................................................................................... 10-21
10-16 Options for the showversion command.............................................................................. 10-23
10-17 Options for the shutdown command................................................................................... 10-23
10-18 Options for the spbackup command.................................................................................... 10-24
10-19 Options for the spcopy command........................................................................................ 10-25
10-20 Options for the spmove command....................................................................................... 10-27
10-21 Options for the spset command............................................................................................ 10-28
10-22 Options for the startup command........................................................................................ 10-28
10-23 Summary of ASMCMD Oracle ASM Filter Driver management commands................ 10-29
10-24 Options for the afd_dsset command.................................................................................... 10-31
10-25 Options for the afd_filter command..................................................................................... 10-32
10-26 Options for the afd_label command..................................................................................... 10-32
10-27 Options for the afd_scan command..................................................................................... 10-34
10-28 Options for the afd_unlabel command................................................................................ 10-35
10-29 Summary of ASMCMD file management commands....................................................... 10-35
xxvii
10-30 Options for the amdu_extract command ............................................................................ 10-36
10-31 Options for the cd command ................................................................................................ 10-36
10-32 Options for the cp command ................................................................................................ 10-37
10-33 Options for the du command................................................................................................ 10-39
10-34 Options for the find command ............................................................................................. 10-39
10-35 Options for the ls command.................................................................................................. 10-40
10-36 Options for the lsof command............................................................................................... 10-42
10-37 Options for the mkalias command....................................................................................... 10-43
10-38 Options for the mkdir command.......................................................................................... 10-44
10-39 Options for the rm command................................................................................................ 10-45
10-40 Options for the rmalias command........................................................................................ 10-46
10-41 Summary of ASMCMD Disk group management commands......................................... 10-47
10-42 Options for the chdg command ........................................................................................... 10-48
10-43 Options for the chkdg command ......................................................................................... 10-49
10-44 Options for the dropdg command ....................................................................................... 10-50
10-45 Options for the iostat command........................................................................................... 10-51
10-46 Attribute descriptions for iostat command output............................................................ 10-51
10-47 Options for the lsattr command............................................................................................ 10-53
10-48 Options for the lsdg command............................................................................................. 10-54
10-49 Attribute descriptions for lsdg command output.............................................................. 10-55
10-50 Options for the lsdsk command............................................................................................ 10-56
10-51 Options for the lsod command.............................................................................................. 10-58
10-52 Options for the md_backup command................................................................................ 10-59
10-53 Options for the md_restore command................................................................................. 10-60
10-54 Options for the mkdg command .......................................................................................... 10-61
10-55 Options for the mount command ........................................................................................ 10-63
10-56 Options for the offline command.......................................................................................... 10-64
10-57 Options for the online command.......................................................................................... 10-64
10-58 Options for the rebal command............................................................................................ 10-65
10-59 Options for the remap command.......................................................................................... 10-66
10-60 Options for the setattr command.......................................................................................... 10-67
10-61 Options for the umount command ...................................................................................... 10-68
10-62 Summary of ASMCMD template management commands............................................. 10-68
10-63 Options for the chtmpl command ....................................................................................... 10-69
10-64 Options for the lstmpl command.......................................................................................... 10-69
10-65 Options for the mktmpl command ...................................................................................... 10-70
10-66 Options for the rmtmpl command ...................................................................................... 10-71
10-67 Summary of ASMCMD file access control commands...................................................... 10-72
10-68 Options for the chgrp command .......................................................................................... 10-73
10-69 Options for the chmod command ........................................................................................ 10-74
10-70 Options for the chown command ........................................................................................ 10-75
10-71 Options for the groups command ........................................................................................ 10-76
10-72 Options for the grpmod command ...................................................................................... 10-76
10-73 Options for the lsgrp command............................................................................................ 10-77
10-74 Options for the lsusr command............................................................................................ 10-78
10-75 Options for the mkgrp command ........................................................................................ 10-78
10-76 Options for the mkusr command.......................................................................................... 10-79
10-77 Options for the passwd command....................................................................................... 10-80
10-78 Options for the rmgrp command ......................................................................................... 10-80
10-79 Options for the rmusr command.......................................................................................... 10-81
10-80 Options for the rpusr command........................................................................................... 10-81
12-1 Oracle ASM dynamic views for Oracle ACFS information................................................ 12-1
14-1 Options for the -createVolume command........................................................................... 14-10
14-2 Options for the -createACFS command............................................................................... 14-11
xxviii
15-1 Summary of ASMCMD volume management commands................................................. 15-1
15-2 Options for the volcreate command....................................................................................... 15-2
15-3 Options for the voldelete command....................................................................................... 15-4
15-4 Options for the voldisable command..................................................................................... 15-4
15-5 Options for the volenable command...................................................................................... 15-5
15-6 Options for the volinfo command........................................................................................... 15-6
15-7 Options for the volresize command....................................................................................... 15-7
15-8 Options for the volset command............................................................................................. 15-8
15-9 Options for the volstat command........................................................................................... 15-9
16-1 Summary of Oracle ACFS commands for Linux environments...................................... 16-23
16-2 Options for the Linux fsck command................................................................................... 16-23
16-3 Options for the Linux mkfs command................................................................................. 16-25
16-4 Options for the Linux mount command.............................................................................. 16-27
16-5 Options for the Linux umount command........................................................................... 16-28
16-6 Summary of Oracle ACFS commands for Solaris.............................................................. 16-29
16-7 Options for the Solaris fsck command................................................................................. 16-30
16-8 Options for the Solaris mkfs command............................................................................... 16-32
16-9 Options for the Solaris mount command............................................................................ 16-33
16-10 Options for the Solaris umount command.......................................................................... 16-36
16-11 Summary of Oracle ACFS commands for AIX................................................................... 16-37
16-12 Options for the AIX fsck command...................................................................................... 16-38
16-13 Options for the AIX mkfs command.................................................................................... 16-39
16-14 Options for the AIX mount command................................................................................. 16-41
16-15 Options for the AIX umount command............................................................................... 16-43
16-16 Summary of Oracle ACFS file system commands for Windows..................................... 16-44
16-17 Summary of Non-Oracle ACFS file system commands for Windows............................ 16-44
16-18 Options for the acfschkdsk command.................................................................................. 16-45
16-19 Options for the acfsdismount command............................................................................. 16-47
16-20 Options for the acfsformat command.................................................................................. 16-48
16-21 Options for the acfsmountvol command............................................................................. 16-49
16-22 Options for the advmutil dismount command................................................................... 16-50
16-23 Options for the advmutil list command.............................................................................. 16-52
16-24 Options for the advmutil mount command........................................................................ 16-53
16-25 Summary of commands for Oracle ACFS tagging............................................................. 16-54
16-26 Options for the acfsutil tag info command.......................................................................... 16-55
16-27 Options for the acfsutil tag set command............................................................................ 16-56
16-28 Options for the acfsutil tag unset command....................................................................... 16-57
16-29 Summary of commands for Oracle ACFS replication....................................................... 16-58
16-30 Options for the acfsutil repl bg command........................................................................... 16-59
16-31 Options for the acfsutil repl compare command................................................................ 16-60
16-32 Options for the acfsutil repl info command........................................................................ 16-61
16-33 Options for the acfsutil repl init command......................................................................... 16-63
16-34 Options for the acfsutil repl pause command..................................................................... 16-65
16-35 Options for the acfsutil repl resume command.................................................................. 16-66
16-36 Options for the acfsutil repl sync command....................................................................... 16-67
16-37 Options for the acfsutil repl terminate command.............................................................. 16-68
16-38 Options for the acfsutil repl trace command....................................................................... 16-69
16-39 Options for the acfsutil repl update command................................................................... 16-70
16-40 Summary of commands for Oracle ACFS auditing........................................................... 16-71
16-41 Options for the acfsutil audit archive command................................................................ 16-71
16-42 Options for the acfsutil audit disable command................................................................ 16-72
16-43 Options for the acfsutil audit enable command................................................................. 16-73
16-44 Options for the acfsutil audit info command...................................................................... 16-73
16-45 Options for the acfsutil audit init command....................................................................... 16-74
xxix
16-46 Options for the acfsutil audit purge command.................................................................. 16-75
16-47 Options for the acfsutil audit read command..................................................................... 16-75
16-48 Summary of commands for Oracle ACFS security............................................................ 16-76
16-49 Options for the acfsutil sec admin add command............................................................. 16-78
16-50 Options for the acfsutil sec admin remove command....................................................... 16-79
16-51 Options for the acfsutil sec batch command....................................................................... 16-80
16-52 Options for the acfsutil sec disable command.................................................................... 16-81
16-53 Options for the acfsutil sec enable command..................................................................... 16-81
16-54 Options for the acfsutil sec info command.......................................................................... 16-82
16-55 Options for the acfsutil sec info file command................................................................... 16-83
16-56 Options for the acfsutil sec init command........................................................................... 16-84
16-57 Options for the acfsutil sec load command......................................................................... 16-85
16-58 Options for the acfsutil sec prepare command................................................................... 16-86
16-59 Options for the acfsutil sec realm add command............................................................... 16-88
16-60 Command Rules...................................................................................................................... 16-90
16-61 Options for the acfsutil sec realm audit disable command............................................... 16-92
16-62 Options for the acfsutil sec realm audit enable command................................................ 16-93
16-63 Options for the acfsutil sec realm audit info command.................................................... 16-95
16-64 Options for the acfsutil sec realm clone command............................................................ 16-96
16-65 Options for the acfsutil sec realm create command........................................................... 16-97
16-66 Options for the acfsutil sec realm delete command........................................................... 16-98
16-67 Options for the acfsutil sec realm destroy command........................................................ 16-99
16-68 Options for the acfsutil sec rule clone command............................................................. 16-100
16-69 Options for the acfsutil sec rule create command............................................................ 16-101
16-70 Options for the acfsutil sec rule destroy command......................................................... 16-102
16-71 Options for the acfsutil sec rule edit command................................................................ 16-103
16-72 Options for the acfsutil sec ruleset clone command........................................................ 16-103
16-73 Options for the acfsutil sec ruleset create command....................................................... 16-104
16-74 Options for the acfsutil sec ruleset destroy command.................................................... 16-105
16-75 Options for the acfsutil sec ruleset edit command........................................................... 16-106
16-76 Options for the acfsutil sec save command....................................................................... 16-107
16-77 Summary of commands for Oracle ACFS encryption..................................................... 16-108
16-78 Options for the acfsutil encr info command..................................................................... 16-108
16-79 Options for the acfsutil encr init command...................................................................... 16-109
16-80 Options for the acfsutil encr off command....................................................................... 16-110
16-81 Options for the acfsutil encr on command........................................................................ 16-111
16-82 Options for the acfsutil encr rekey command.................................................................. 16-112
16-83 Options for the acfsutil encr set command....................................................................... 16-113
16-84 Options for the acfsutil keystore migrate command....................................................... 16-115
16-85 Summary of Oracle ACFS command-line utilities........................................................... 16-116
16-86 Options for the acfsdbg command..................................................................................... 16-117
16-87 Subcommands for acfsdbg.................................................................................................. 16-117
16-88 Options for the acfsutil info file command....................................................................... 16-120
16-89 Options for the acfsutil info fs command.......................................................................... 16-121
16-90 Options for the acfsutil info id command......................................................................... 16-125
16-91 Options for the acfsutil plugin disable command............................................................ 16-126
16-92 Options for the acfsutil plugin enable command............................................................. 16-126
16-93 Options for the acfsutil plugin info command................................................................. 16-128
16-94 Options for the acfsutil registry command....................................................................... 16-130
16-95 Options for the acfsutil rmfs command............................................................................. 16-132
16-96 Options for the acfsutil size command.............................................................................. 16-133
16-97 Options for the acfsutil snap convert command.............................................................. 16-134
16-98 Options for the acfsutil snap create command................................................................. 16-135
16-99 Options for the acfsutil snap delete command................................................................. 16-137
xxx
16-100 Options for the acfsutil snap info command..................................................................... 16-138
16-101 Options for the acfsutil tune command............................................................................. 16-140
16-102 Options for the advmutil canonical command................................................................. 16-141
16-103 Options for the advmutil tune command.......................................................................... 16-142
16-104 Options for the advmutil volinfo command..................................................................... 16-142
18-1 Options for the acfsload command......................................................................................... 18-6
18-2 Options for the acfsdriverstate command............................................................................. 18-6
18-3 Options for the acfsgettag command................................................................................... 18-12
18-4 Options for the acfslisttags command.................................................................................. 18-13
18-5 Options for the acfsremovetag command........................................................................... 18-14
18-6 Options for the acfssettag command.................................................................................... 18-15
xxxi
xxxii
Preface
Audience
The audience for this book includes system administrators, database administrators,
and storage administrators. The Oracle Automatic Storage Management Administrator's
Guide is intended for database and storage administrators who perform the following
tasks:
Documentation Accessibility
For information about Oracle's commitment to accessibility, visit the Oracle
Accessibility Program website at http://www.oracle.com/pls/topic/lookup?
ctx=acc&id=docacc.
xxxiii
Related Documents
For more information, refer to the following Oracle resources:
Conventions
The following text conventions are used in this document:
Convention Meaning
boldface Boldface type indicates graphical user interface elements associated
with an action, or terms defined in text or the glossary.
italic Italic type indicates book titles, emphasis, or placeholder variables for
which you supply particular values.
xxxiv
Changes in This Release for Oracle
Automatic Storage Management
Administrator's Guide
• Changes in Oracle ACFS and Oracle ADVM for Oracle ASM 12c Release 1
(12.1.0.2) (page xl)
• Changes in Oracle ACFS and Oracle ADVM for Oracle ASM 12c Release 1
(12.1.0.1) (page xlii)
See Also:
Oracle Database New Features Guide for a complete description of the new
features in Oracle Database 12c Release 1 (12.1)
New Features
The following are new features for Oracle ASM 12c Release 1 (12.1.0.2):
xxxv
Oracle ASM Filter Driver
Note:
This feature is available on Linux systems starting with Oracle Database 12c
Release 1 (12.1.0.2).
Oracle ASM Filter Driver (Oracle ASMFD) is a kernel module that resides in the I/O
path of the Oracle ASM disks. Oracle ASM uses the filter driver to validate write I/O
requests to Oracle ASM disks.
The Oracle ASM Filter Driver rejects any I/O requests that are invalid. This action
eliminates accidental overwrites of Oracle ASM disks that would cause corruption in
the disks and files within the disk group. For example, the Oracle ASM Filter Driver
filters out all non-Oracle I/Os which could cause accidental overwrites.
For more information about Oracle ASMFD, refer to "Oracle ASM Filter Driver
(page 3-34)".
New Features
The following are new features for Oracle ASM 12c Release 1 (12.1.0.1):
• Rolling Migration Framework for Oracle ASM One-off Patches (page xxxix)
xxxvi
General Oracle ASM Enhancements
This feature provides general enhancements to Oracle ASM, including:
• The ALTER DISKGROUP statement has been updated with a REPLACE clause.
For more information about replacing disks in a disk group, refer to "Replacing
Disks in Disk Groups (page 4-18)".
xxxvii
instance failures by enabling the resync to resume from the point at which the process
was interrupted or stopped, instead of starting from the beginning.
For more information about disk resync, refer to "Oracle ASM Fast Mirror Resync
(page 4-34)".
See Also:
xxxviii
Oracle Database now supports the use of an Oracle home user, which can be specified
at installation time. The Oracle home user is associated with an Oracle home and it
cannot be changed after installation. Different Oracle homes on a system can share the
same Oracle home user or use different Oracle home user names. For more
information, refer to "About Oracle Home User on Windows (page 3-28)".
You can now use access control to separate roles in Windows environments. With
Oracle Database services running as users rather than Local System, the Oracle ASM
access control feature is enabled to support role separation on Windows. In previous
releases, this feature was disabled on Windows because all Oracle services run as
Local System.
You can change the identity of an Oracle ASM user from one operating system (OS)
user to another OS user without having to drop and re-create the user, which requires
dropping all the files a user owns, which improves the manageability of Oracle ASM
users and the files they own.
You can modify Windows file access controls while files are open using ASMCMD file
access control commands, such as chgrp, chmod, and chown.
For more information about Oracle ASM File Access Control, refer to "Managing
Oracle ASM File Access Control for Disk Groups (page 4-50)". For information about
Oracle ASM File Access Control ASMCMD commands, refer to "ASMCMD File Access
Control Commands (page 10-72)".
See Also:
Oracle Database Platform Guide for Microsoft Windows for information about
running Oracle services on Windows platforms, different types of Windows
user accounts, and access control on Windows platforms
See Also:
Oracle Grid Infrastructure Installation Guide for information about rolling
migration of Oracle ASM and Oracle Grid Infrastructure homes
xxxix
This feature adds a new capability to store a credential file (wallet) in Oracle ASM disk
groups. For information about file types supported by Oracle ASM, refer to "What
Types of Files Does Oracle ASM Support? (page 5-1)".
See Also:
Oracle Database Advanced Security Guide for information about the Oracle key
management framework
Deprecated Features
The following are the Oracle ASM 12c Release 1 (12.1.0.1) deprecated features.
Desupported Features
The following are the Oracle ASM 12c Release 1 (12.1.0.1) desupported features.
Desupport of RAW (Block) Storage Devices for Oracle Database and Related
Technologies
Oracle Database 12c and related technologies, such as Oracle Clusterware 12c, no
longer support the use of raw (block) storage devices. This means that files must be
moved to Oracle ASM before upgrading to Oracle Clusterware 12c.
Changes in Oracle ACFS and Oracle ADVM for Oracle ASM 12c Release 1
(12.1.0.2)
This section describes changes to Oracle Automatic Storage Management Cluster File
System (Oracle ACFS) and Oracle ASM Dynamic Volume Manager (Oracle ADVM)
for Oracle ASM 12c Release 1 (12.1.0.2).
This section contains the following topic:
New Features
The following are Oracle ACFS and Oracle ADVM new features in Oracle ASM 12c
Release 1 (12.1.0.2):
xl
• Oracle ACFS Support For Database Data Files on Windows (page xli)
• Oracle Exadata Support for Oracle ACFS and Oracle ACFS Support for General
Purpose Files (page xli)
• Oracle ACFS Support for Oracle Database File Mapping Views (page xlii)
• Oracle ACFS Encryption Support for Oracle Key Vault (page xlii)
Note:
This feature is available starting with Oracle Database 12c Release 1 (12.1.0.2).
Oracle ACFS in Oracle Grid 12c Release 1 (12.1.0.2) on Windows supports all database
files, except for data files and redo logs in an Oracle Restart (standalone server)
configuration. For support of database files on Windows, the COMPATIBLE.ADVM
attribute must be set to 12.1.0.2.
For more information about database files on Oracle ACFS, refer to "About Oracle
ACFS and Database Data Files (page 11-5)".
Oracle Exadata Support for Oracle ACFS and Oracle ACFS Support for General
Purpose Files
Note:
This feature is available starting with Oracle Database 12c Release 1 (12.1.0.2).
Oracle Exadata on Linux supports Oracle ACFS in Oracle Grid 12c Release 1 (12.1.0.2).
Oracle ACFS supports general purpose files as well as database files; however, Oracle
ASM is the best practice for support of database files.
Oracle ACFS can be configured for use with the database, particularly to leverage
Oracle ACFS snapshots for database testing and development. However, Oracle ACFS
does not currently have the ability to push database operations directly into storage.
For more information about database files on Oracle ACFS, refer to "About Oracle
ACFS and Database Data Files (page 11-5)".
Note:
This feature is available starting with Oracle Database 12c Release 1 (12.1.0.2).
xli
Oracle ACFS Support for Oracle Database File Mapping Views
Note:
This feature is available starting with Oracle Database 12c Release 1 (12.1.0.2).
Oracle ACFS supports Oracle Database file mapping views to the Oracle ASM device
level. For information about file mapping views related to Oracle ACFS, refer to
"Oracle ACFS Support for Oracle Database File Mapping Views (page 12-7)".
Note:
This feature is available starting with Oracle Database 12c Release 1 (12.1.0.2).
Oracle ACFS encryption supports Oracle Key Vault as a key store. For information
about using this feature with Oracle ACFS encryption, refer to "Oracle ACFS
Encryption (page 11-22)".
See Also:
Oracle Key Vault Administrator's Guide for information about Oracle Key Vault
Changes in Oracle ACFS and Oracle ADVM for Oracle ASM 12c Release 1
(12.1.0.1)
This section describes changes to Oracle Automatic Storage Management Cluster File
System (Oracle ACFS) and Oracle ASM Dynamic Volume Manager (Oracle ADVM)
for Oracle ASM 12c Release 1 (12.1.0.1).
This section contains the following topic:
New Features
The following are Oracle ACFS and Oracle ADVM new features in Oracle ASM 12c
Release 1 (12.1.0.1):
• Oracle ACFS Enhancements Supporting Network File Storage (NFS) (page xliv)
xlii
• Integration of Oracle ACFS Replication With Auditing_ Encryption_ and Security
(page xlv)
• Oracle ACFS Auditing and Support for Importing Auditing Data into Audit Vault
Server (page xlv)
• Support for Oracle ACFS Replication and Tagging on Solaris (page xlvi)
• Support for Oracle ACFS Replication and Tagging on AIX (page xlvi)
• Support for Oracle ACFS Security and Encryption on Solaris (page xlvi)
• Oracle ACFS in Oracle Grid 12c Release 1 (12.1) supports all database files for
Oracle Database 11g Release 2 (11.2.0.4) or later, except for data files and redo logs
in an Oracle Restart (standalone server) configuration. For this feature, the
COMPATIBLE.ADVM attribute must be set to 12.1 or later for the disk group that
contains the Oracle ACFS file system.
Using Oracle ACFS replication or encryption with database files on Oracle ACFS
is not supported. For information about other replication options for database files
on Oracle ACFS, refer to Oracle Data Guard Concepts and Administration and Oracle
GoldenGate documentation. Oracle GoldenGate is an Oracle product sold
independently of the Oracle Database. To encrypt database data files on Oracle
ACFS, Oracle recommends Oracle Advanced Security. Oracle Advanced Security
provides Transparent Data Encryption (TDE) to encrypt data files for entire
tablespaces. For information about Transparent Data Encryption (TDE), refer to
Oracle Database Advanced Security Guide.
• Oracle ACFS supports clusterwide, file granular fcntl advisory file locking
while byte range locks continue to operate in node local mode.
• Oracle ACFS supports end-to-end storage visibility for files with the -d option of
acfsutil info file. The -d option displays details about a file extent location,
from the Oracle ACFS extent to the Oracle ASM devices in the disk group. For
information, refer to "acfsutil info file (page 16-120)".
• Oracle ACFS ASMCMD commands have enhanced syntax. For information about
ASMCMD commands for Oracle ACFS, refer to "ASMCMD Volume Management
Commands (page 15-1)".
• Oracle ACFS supports unlimited expansions when resizing a file system in a disk
group with ADVM compatibility set to 11.2.0.4 or higher.
xliii
Oracle ACFS Enhancements Supporting Network File Storage (NFS)
Note:
High Availability NFS for Oracle Grid Infrastructure provides uninterrupted service
of NFS V2/V3/V4 exported paths by exposing NFS exports on Highly Available
Virtual IPs (HAVIP) and using Oracle Clusterware agents to ensure that the HAVIPs
and NFS exports are always online. While base NFS supports file locking, HANFS
does not support NFS file locking.
Oracle ACFS file system exports (using NFS) include Golden Images and patch
updates applied to Oracle ACFS snapshots. Note that NFS is deployed with Oracle
Grid Infrastructure servers in support of Oracle Grid Infrastructure client systems.
Application VIP and NFS export resources are employed for Oracle ACFS and highly
available NFS.
High Availability NFS can also be used as a general high availability solution for
Oracle ACFS exported file systems.
For information about High Availability NFS for Oracle Grid Infrastructure homes,
refer to "High Availability Network File Storage for Oracle Grid Infrastructure
(page 11-37)".
See Also:
xliv
Oracle Clusterware Resources Supporting Oracle ACFS
Note:
Oracle ACFS and Oracle ADVM resource support is enhanced for both performance
and coverage. Oracle Clusterware (CRS) managed resource support is extended to
include enhancements for Oracle ACFS Oracle homes, Oracle ACFS General Purpose
file systems, and Oracle ADVM volumes in supporting Oracle Grid Infrastructure
Server Oracle ACFS export (using NFS) configurations. SRVCTL has updates to
commands for managing Oracle ACFS and Oracle ADVM resources.
For information about Oracle Clusterware resources and Oracle ACFS, refer to "Oracle
Clusterware Resources and Oracle ACFS Administration (page 11-15)".
See Also:
Oracle ACFS Auditing and Support for Importing Auditing Data into Audit Vault
Server
This feature provides auditing for Oracle ACFS security and encryption. In addition,
this feature also generates an XML file containing Oracle ACFS audit trail data which
can be imported by Audit Vault Server.
xlv
For more information, refer to "Oracle ACFS Auditing (page 11-24)". For information
about Oracle ACFS commands for auditing, refer to "Oracle ACFS Command-Line
Tools for Auditing (page 16-70)" and the acfsutil sec realm enable and
acfsutil sec realm disable commands described in "Oracle ACFS Command-
Line Tools for Security (page 16-76)".
xlvi
Part I
Introduction
This chapter describes Oracle Automatic Storage Management (Oracle ASM) concepts
and provides an overview of Oracle ASM features. This chapter contains the following
topics:
• About Oracle Automatic Storage Management Cluster File System (page 1-2)
See Also:
downtime when redistributing the content. For information about administering disk
groups, see Administering Oracle ASM Disk Groups (page 4-1).
The Oracle ASM volume manager functionality provides flexible server-based
mirroring options. The Oracle ASM normal and high redundancy disk groups enable
two-way and three-way mirroring respectively. You can use external redundancy to
enable a Redundant Array of Independent Disks (RAID) storage subsystem to perform
the mirroring protection function.
Oracle ASM also uses the Oracle Managed Files (OMF) feature to simplify database
file management. OMF automatically creates files in designated locations. OMF also
names files and removes them while relinquishing space when tablespaces or files are
deleted.
Oracle ASM reduces the administrative overhead for managing database storage by
consolidating data storage into a small number of disk groups. The smaller number of
disk groups consolidates the storage for multiple databases and provides for
improved I/O performance.
Oracle ASM files can coexist with other storage management options such as raw
disks and third-party file systems. This capability simplifies the integration of Oracle
ASM into pre-existing environments.
Oracle ASM has easy to use management interfaces such as SQL*Plus, the Oracle ASM
Command Line Utility (ASMCMD) command-line interface, and Oracle ASM
Configuration Assistant (ASMCA). For information about Oracle ASM Configuration
Assistant, see Managing Oracle ASM With ASMCA (page 9-1). For information
about the ASMCMD command-line interface, see Managing Oracle ASM with
ASMCMD (page 10-1).
See Also:
• A redo log that records information about atomically changing metadata blocks
instance creates or opens an Oracle ASM file, it communicates those requests to the
Oracle ASM instance. In response, the Oracle ASM instance provides file extent map
information to the database instance.
In Figure 1-1 (page 1-4), there are two disk groups: one disk group has four disks
and the other has two disks. The database can access both disk groups. The
configuration in Figure 1-1 (page 1-4) shows multiple database instances, but only
one Oracle ASM instance is needed to serve the multiple database instances.
Figure 1-2 (page 1-5) shows an Oracle ASM cluster in an Oracle RAC environment
where Oracle ASM provides a clustered pool of storage. There is one Oracle ASM
instance for each node serving multiple Oracle RAC or single-instance databases in the
cluster. All of the databases are consolidated and share the same two Oracle ASM disk
groups.
Oracle RAC
For information about Oracle Flex ASM configurations, refer to "Managing Oracle Flex
ASM (page 3-16)".
• External to not use Oracle ASM mirroring, such as when you configure hardware
RAID for redundancy
The redundancy level controls how many disk failures are tolerated without
dismounting the disk group or losing data. The disk group type determines the
mirroring levels with which Oracle creates files in a disk group. For information about
disk group types and templates, see "Managing Disk Group Templates (page 5-19)".
Oracle ASM mirroring is more flexible than traditional RAID mirroring. For a disk
group specified as NORMAL redundancy, you can specify the redundancy level for each
file. For example, two files can share the same disk group with one file being mirrored
while the other is not.
When Oracle ASM allocates an extent for a mirrored file, Oracle ASM allocates a
primary copy and a mirror copy. Oracle ASM chooses the disk on which to store the
mirror copy in a different failure group than the primary copy. Failure groups are
used to place mirrored copies of data so that each copy is on a disk in a different
failure group. The simultaneous failure of all disks in a failure group does not result in
data loss.
You define the failure groups for a disk group when you create an Oracle ASM disk
group. After a disk group is created, you cannot alter the redundancy level of the disk
group. If you omit the failure group specification, then Oracle ASM automatically
places each disk into its own failure group, except for disk groups containing disks on
Oracle Exadata cells. Normal redundancy disk groups require at least two failure
groups. High redundancy disk groups require at least three failure groups. Disk
groups with external redundancy do not use failure groups.
For more information about mirroring and failure groups, see "Mirroring_
Redundancy_ and Failure Group Options (page 4-30)".
• Logical volumes
See Also:
Articles at My Oracle Support (https://support.oracle.com) for
additional information about allocation units and Oracle ASM
• Control files
• SPFILEs
• RMAN backups
• Extent size always equals the disk group AU size for the first 20000 extent sets (0 -
19999).
• Extent size equals 4*AU size for the next 20000 extent sets (20000 - 39999).
• Extent size equals 16*AU size for the next 20000 and higher extent sets (40000+).
For disk groups with AU size greater than or equal to 4 MB and the disk group
RDBMS compatibility greater than or equal to 11.2.0.4, the counts for extents of
sizes (the disk group AU size, 4*AU size, or 16*AU size) are calculated using the
application block size to support maximum file size.
The extent sizing feature is automatic for newly created and resized data files when
specific disk group compatibility attributes are set to 11.1 or higher. For information
about compatibility attributes, see "Disk Group Compatibility (page 4-41)".
Figure 1-4 (page 1-9) shows the Oracle ASM file extent relationship with allocation
units. The first eight extents (0 to 7) are distributed on four Oracle ASM disks and are
equal to the AU size. After the first 20000 extent sets, the extent size becomes 4*AU for
the next 20000 extent sets (20000 - 39999). This is shown as bold rectangles labeled with
the extent set numbers 20000 to 20007, and so on. The next increment for an Oracle
ASM extent is 16*AU (not shown in Figure 1-4 (page 1-9)).
0 1 2
4 6
5 3
7
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
first fill up the first extent of each disk, then the second extent of each disk, and so on
until the entire file has been striped.
A B C D E F G H I J K L M N O P Q R S T U V W X A B C D E . . . A B C D E . . .
1 2 3 4 8
...
A I QA B J RB CKSC D L TD HPX
...
...
...
. . . . .
. . . . ... .
. . . . .
In Figure 1-6 (page 1-10), the file is striped in 1 M chunks (labeled A..X) with each 1
M chunk stored uniquely in an extent, starting at the first extent in disk 1, then the first
extent in disk 2, and then continuing in a round-robin pattern through all the disks
until the entire file has been striped. For the first 20,000 extents where the AU equals
the extent size (1 M), the stripe equals the extent size and allocation unit size.For the
variable extents, where an extent is composed of multiple allocation units, the file
stripe is located in an AU of the extent. The striping chunks are placed in the allocation
units of the first extents of all the disks before the striping continues to the next extent.
A B C D E F G H I J K L M N O P Q R S T U V W X A B C D E . . . A B C D E . . .
1 2 3 4 8
...
A B C D H
I J K L P
Q R S T ... X
... ... ... ... ...
A B C D ... H
I J K L
...
. . . . .
. . . . ... .
. . . . .
For more information about disk groups, see "Mounting and Dismounting Disk
Groups (page 4-55)".
This chapter discusses issues to consider about the storage subsystem before you
configure Oracle Automatic Storage Management (Oracle ASM). When preparing
your storage to use Oracle ASM, first determine the storage option for your system
and then prepare the disk storage for your specific operating system environment.
When configuring your system's storage, you must consider the initial capacity of the
system and your plans for future growth. Oracle ASM simplifies the task of
accommodating growth. However, your growth plans can affect choices, such as the
size of the Oracle ASM disks. You must also consider that I/O performance depends
on the interconnect between the storage and host, not just the storage disks. As you
scale up the number of nodes in a cluster, you must also scale up the storage
subsystem.
This chapter contains the following topics:
• Disk Partition
A disk partition can be the entire disk drive or a section of a disk drive. However,
the Oracle ASM disk cannot be in a partition that includes the partition table
because the partition table would be overwritten.
• Logical Volume
A logical volume is supported in less complicated configurations where a logical
volume is mapped to a LUN, or a logical volume uses disks or raw partitions.
Logical volume configurations are not recommended by Oracle because they
See Also:
Oracle Grid Infrastructure Installation Guide for your operating system for
information about Oracle Direct NFS
Note:
• Mounting loopback file systems over Oracle ACFS files is not supported.
The procedures for preparing storage resources for Oracle ASM are:
• Identify or create the storage devices for Oracle ASM by identifying all of the
storage resource device names that you can use to create an Oracle ASM disk
group. For example, on Linux systems device names are typically presented from
the /dev directory with the /dev/device_name_identifier name syntax.
Note:
To ensure that ownership and permission settings are persistent, you can use
udev to ensure that the disks do not revert to root ownership when the
systems restart.
After you have configured Oracle ASM, ensure that disk discovery has been
configured correctly by setting the ASM_DISKSTRING initialization parameter. For
information about the ASM_DISKSTRING parameter, see "ASM_DISKSTRING
(page 3-9)".
Note:
For detailed information about preparing disks for an Oracle ASM installation, refer to
your platform-specific installation guide for Oracle Database, Oracle Clusterware, and
Oracle Real Application Clusters (Oracle RAC).
See Also:
See Also:
With Oracle ASM, you can ensure the discovery of a multipath disk by setting the
value of the ASM_DISKSTRING initialization parameter to a pattern that matches the
pseudo devices that represents the multipath disk. When I/O is sent to the pseudo
device, the multipath driver intercepts it and provides load balancing to the
underlying subpaths.
If Oracle ASM discovers multiple paths to the same disk device, Oracle ASM then
raises an error. Because a single disk can appear multiple times in a multipath
configuration, you must configure Oracle ASM to discover only the multipath disk.
For information about disk discovery, see "Oracle ASM Disk Discovery (page 4-25)".
See Also:
• Configure two disk groups, one for data and the other for the fast recovery area.
See Also:
– Oracle Database Backup and Recovery User's Guide for information about
configuring the fast recovery area
• The number of LUNs (Oracle ASM disks) for each disk group should be at least
equal to four times the number of active I/O paths. For example, if a disk group
has two active I/O paths, then minimum of eight LUNs should be used. The
LUNs should be of equal size and performance for each disk group.
An I/O path is a distinct channel or connection between storage presenting LUNs
and the server. An active I/O path is an I/O path in which the I/O load on a LUN
is multiplexed through multipathing software.
• Ensure that all Oracle ASM disks in a disk group have similar storage
performance and availability characteristics. In storage configurations with mixed
speed drives, such as flash memory and hard disk drives (HDD), I/O
performance is constrained by the slowest speed drive.
• Oracle ASM data distribution policy is capacity-based. Ensure that Oracle ASM
disks in a disk group have the same capacity to maintain balance.
• Configure a minimum of three failure groups for normal redundancy disk groups
and five failure groups for high redundancy disk groups to maintain the
necessary number of copies of the Partner Status Table (PST) to ensure robustness
with respect to storage hardware failures. For more information, refer to "Oracle
ASM Failure Groups (page 4-31)".
• Create external redundancy disk groups when using high-end storage arrays.
High-end storage arrays generally provide hardware RAID protection. Use Oracle
ASM mirroring redundancy when not using hardware RAID, or when you need
host-based volume management functionality, such as mirroring across storage
systems. You can use Oracle ASM mirroring in configurations when mirroring
between geographically-separated sites (extended clusters).
• Minimize I/O contention between Oracle ASM disks and other applications by
dedicating disks in Oracle ASM disk groups.
• Choose a hardware RAID stripe size that is a power of 2 and less than or equal to
the size of the Oracle ASM allocation unit.
• Use the Oracle ASM Filter Driver feature to provide consistent device naming and
permission persistency.
See Also:
– Information about Oracle ASM Filter Driver at "Oracle ASM Filter Driver
(page 3-34)"
See Also:
Oracle Grid Infrastructure Installation Guide for your operating system for more
information about configuring storage devices for path and permission
persistence.
Part II discusses the administration of Oracle ASM instances and disk groups in the
following chapters:
Note:
There are additional compatibility considerations when using disk groups with
different releases of Oracle ASM and database instances. For information about disk
group compatibility attributes settings, see "Disk Group Compatibility (page 4-41)".
When using different software versions, the database instance supports Oracle ASM
functionality of the earliest release in use. For example, an Oracle Database 10g Release
1 (10.1) database instance operating with an Oracle ASM 11g Release 2 (11.2) instance
supports only Oracle ASM 10g Release 1 (10.1) features.
The V$ASM_CLIENT view contains the SOFTWARE_VERSION and
COMPATIBLE_VERSION columns with information about the software version
number and instance compatibility level.
See Also:
The Oracle Cloud Storage page on the Oracle Technology Network website at
http://www.oracle.com/technetwork/database/cloud-storage/
index.html for more information about Oracle ASM best practices
• About Initialization Parameter Files for an Oracle ASM Instance (page 3-3)
• About Setting Database Initialization Parameters for Use with Oracle ASM
(page 3-14)
See Also:
1. The location of the initialization parameter file specified in the Grid Plug and Play
(GPnP) profile
2. If the location has not been set in the GPnP profile, then the search order changes
to:
Note:
A PFILE or SPFILE is required if your configuration uses nondefault
initialization parameters for the Oracle ASM instance.
You can administer Oracle ASM initialization parameter files with SQL*Plus, ASMCA,
and ASMCMD commands. For information about the ASMCA GUI and command-
line interfaces, see Managing Oracle ASM With ASMCA (page 9-1). For information
about ASMCMD commands for managing an Oracle ASM SPFILE; such as spbackup,
spcopy, and spmove; see "ASMCMD Instance Management Commands
(page 10-11)".
See Also:
About Backing Up, Copying, and Moving an Oracle ASM Initialization Parameter File
You can back up, copy, or move an Oracle ASM SPFILE with the ASMCMD
spbackup, spcopy, or spmove commands. In addition, you can use the SQL CREATE
SPFILE to create an Oracle ASM SPFILE when connected to the Oracle ASM instance.
You can also copy and move an Oracle ASM PFILE with the commands available on
the specific platform, such as cp for Linux.
After copying or moving an SPFILE or PFILE, you must restart the instance with the
SPFILE or PFILE in the new location to use that SPFILE or PFILE.
This section contains the following topics:
• Creating_ Copying_ and Moving an SPFILE Into a Disk Group (page 3-5)
• Making a Back Up Copy of an Oracle ASM SPFILE in a Disk Group (page 3-5)
For information about ASMCMD commands for managing an SPFILE, see "spbackup
(page 10-24)", "spcopy (page 10-25)", and "spmove (page 10-27)".
See Also:
For example:
$ sqlplus / as sysasm
2. Create an SPFILE in a disk group that has COMPATIBLE.ASM set to 11.2 with the
SQL CREATE SPFILE statement.
For example, create an Oracle ASM SPFILE from the existing PFILE.
SQL> CREATE SPFILE = '+DATA/asmspfile.ora'
FROM PFILE = '$ORACLE_HOME/dbs/asmpfile.ora';
The CREATE SPFILE statement also updates the Grid Plug and Play (GPnP)
profile. You can check the location of the Oracle ASM SPFILE in the GPnP profile
with the ASMCMD spget command. See "spget (page 10-26)".
3. Restart the Oracle ASM instance so that the instance reads the SPFILE in the new
location.
For information on shutting down and starting up an Oracle ASM instance, see
"About Starting Up an Oracle ASM Instance (page 3-22)" and "About Shutting
Down an Oracle ASM Instance (page 3-25)".
The source and target disk groups must have the disk group attribute
COMPATIBLE.ASM set to 11.2 or higher.
To make a copy of the Oracle ASM SPFILE in another disk group with the spcopy
command perform the following steps:
1. Locate the Oracle ASM SPFILE using the ASMCMD spget command.
For example:
ASMCMD [+] > spget
+DATA/ASM/ASMPARAMETERFILE/registry.253.849343867
2. Copy the Oracle ASM SPFILE to another disk group with spcopy command.
For example:
ASMCMD [+] > spcopy +DATA/ASM/ASMPARAMETERFILE/registry.253.849343867 +FRA/spfileCopyASM.ora
Running spcopy without the -u option does not update the location of the Oracle
ASM SPFILE. You can use spset to set the location of the Oracle ASM SPFILE in
the Grid Plug and Play (GPnP) profile.
3. List all the copies of the Oracle ASM SPFILE file contained in the FRA disk group
using the ASMCMD ls command.
For example:
ASMCMD [+] > ls -l --absolutepath FRA/ASM/ASMPARAMETERFILE
Type Redund Striped Time Sys Name
ASMPARAMETERFILE MIRROR COARSE JUN 06 13:00:00 Y +FRA/spfileCopyASM.ora => REGISTRY.
253.849533009
4. Verify the current location of the Oracle ASM SPFILE file with the spget
command.
For example:
ASMCMD [+] > spget
+DATA/ASM/ASMPARAMETERFILE/registry.253.849343867
In the event that the current Oracle ASM SPFILE file in a disk group has been
corrupted or that disk group is not accessible, you can use spset or spcopy with the
-u option to restore the Oracle ASM SPFILE file using the backup copy that you have
previously created.
For example:
ASMCMD [+] > spcopy -u +FRA/spfileCopyASM.ora +DATA2/ASM/spfileASM.ora
Note:
See Also:
See Also:
Oracle Database Administrator's Guide for more information about creating and
maintaining an initialization parameter file
ASM_DISKGROUPS
The ASM_DISKGROUPS initialization parameter specifies a list of disk group names
that an Oracle ASM instance mounts at startup when the SQL ALTER DISKGROUP ALL
MOUNT statement is issued. The Oracle ASM instance startup process executes ALTER
DISKGROUP ALL MOUNT unless the NOMOUNT startup option is specified.
The default value of the ASM_DISKGROUPS parameter is a NULL string. For
information about disk groups that are mounted at startup time, see "About Mounting
Disk Groups at Startup (page 3-25)".
The ASM_DISKGROUPS parameter is dynamic. If you are using a server parameter file
(SPFILE), then you do not have to manually alter the value of ASM_DISKGROUPS.
Oracle ASM automatically adds a disk group to the parameter when the disk group is
successfully created or mounted. Oracle ASM also automatically removes a disk group
from the parameter when the disk group is dropped or dismounted.
The following is an example of setting the ASM_DISKGROUPS parameter dynamically:
SQL> ALTER SYSTEM SET ASM_DISKGROUPS = DATA, FRA;
When using a text initialization parameter file (PFILE), you may edit the initialization
parameter file to add the name of any disk group so that it is mounted automatically
at instance startup. You must remove the name of any disk group that you no longer
want automatically mounted.
Note:
Issuing the ALTER DISKGROUP...ALL MOUNT or ALTER DISKGROUP...ALL
DISMOUNT commands does not affect the value of ASM_DISKGROUPS.
For additional information about mounting Oracle ASM disk groups, see "Mounting
and Dismounting Disk Groups (page 4-55)".
For Oracle Database 12c Release 1 or later, Oracle ASM configurations support up to
511 disk groups. Oracle ASM configurations with Oracle Database releases before 12c
Release 1 can only support up to 63 disk groups.
See Also:
ASM_DISKSTRING
The ASM_DISKSTRING initialization parameter specifies a comma-delimited list of
strings that limits the set of disks that an Oracle ASM instance discovers. The
discovery strings can include wildcard characters. Only disks that match one of the
strings are discovered. The same disk cannot be discovered twice.
The discovery string format depends on the Oracle ASM library and the operating
system that are in use. Pattern matching is supported. Refer to your operating system-
specific installation guide for information about the default pattern matching.
For example on a Linux server, to limit the discovery process to only include disks that
are in the /dev/rdsk/mydisks directory for an Oracle ASM instance that does not
use Oracle ASM Filter Driver (Oracle ASMFD) or ASMLIB, set the ASM_DISKSTRING
initialization parameter to:
/dev/rdsk/mydisks/*
The asterisk is required.
To limit the discovery process to only include disks that have a name that ends in
disk3 or disk4, you could set ASM_DISKSTRING as follows on a Linux system:
ASM_DISKSTRING = '/dev/rdsk/*disk3', '/dev/rdsk/*disk4'
The ? character, when used as the first character of a path, expands to the Oracle home
directory. Depending on the operating system, when you use the ? character
elsewhere in the path, it is a wildcard for one character.
The default value of the ASM_DISKSTRING parameter is a NULL string. A NULL value
causes Oracle ASM to search a default path for all disks in the system to which the
Oracle ASM instance has read and write access. The default search path is platform-
specific. Refer to your operating system-specific installation guide for more
information about the default search path.
Oracle ASM cannot use a disk unless all of the Oracle ASM instances in the cluster can
discover the disk through one of their own discovery strings. The names do not have
to be the same on every node, but all disks must be discoverable by all of the nodes in
the cluster. This may require dynamically changing the initialization parameter to
enable adding new storage.
For additional information about discovering disks, see "Oracle ASM Disk Discovery
(page 4-25)".
See Also:
ASM_POWER_LIMIT
The ASM_POWER_LIMIT initialization parameter specifies the default power for disk
rebalancing in a disk group. The range of values is 0 to 1024. The default value is 1. A
value of 0 disables rebalancing. Higher numeric values enable the rebalancing
operation to complete more quickly, but might result in higher I/O overhead and
more rebalancing processes.
• For disk groups that have the disk group ASM compatibility set to 11.2.0.2 or
higher (for example, COMPATIBLE.ASM = 11.2.0.2), the operational range of
values is 0 to 1024 for the rebalance power.
• For disk groups that have the disk group ASM compatibility set to less than
11.2.0.2, the operational range of values is 0 to 11 inclusive. If the value for
ASM_POWER_LIMIT is larger than 11, a value of 11 is used for these disk groups.
You can also specify the power of the rebalancing operation in a disk group with the
POWER clause of the SQL ALTER DISKGROUP .. REBALANCE statement. The range of
allowable values for the POWER clause is the same for the ASM_POWER_LIMIT
initialization parameter. If the value of the POWER clause is specified larger than 11 for
a disk group with ASM compatibility set to less than 11.2.0.2, then a warning is
displayed and a POWER value equal to 11 is used for rebalancing.
The specification of the power of the rebalancing operation in a disk group only affects
rebalance operations, not new allocations to a disk group.
For information about the ASM_POWER_LIMIT initialization parameter, and the
POWER clause, refer to "Manually Rebalancing Disk Groups (page 4-21)" and "Tuning
Rebalance Operations (page 4-23)". For information about disk group compatibility,
see "Disk Group Compatibility (page 4-41)".
See Also:
• Oracle Database SQL Language Reference for more information about the
POWER clause of the SQL ALTER DISKGROUP REBALANCE statement
ASM_PREFERRED_READ_FAILURE_GROUPS
The ASM_PREFERRED_READ_FAILURE_GROUPS initialization parameter value is a
comma-delimited list of strings that specifies the failure groups that should be
preferentially read by the given instance. The
ASM_PREFERRED_READ_FAILURE_GROUPS parameter setting is instance specific.
The default value is NULL. This parameter is generally used for clustered Oracle ASM
instances and its value can be different on different nodes.
For example:
diskgroup_name1.failure_group_name1, ...
For more information about ASM_PREFERRED_READ_FAILURE_GROUPS, refer to
"Preferred Read Failure Groups (page 4-37)".
See Also:
DB_CACHE_SIZE
You do not have to set a value for the DB_CACHE_SIZE initialization parameter if you
use automatic memory management. The setting for the DB_CACHE_SIZE parameter
determines the size of the buffer cache. This buffer cache stores metadata blocks. The
default value for this parameter is suitable for most environments.
See Also:
DIAGNOSTIC_DEST
The DIAGNOSTIC_DEST initialization parameter specifies the directory where
diagnostics for an instance are located. The default value for an Oracle ASM instance is
the $ORACLE_BASE directory for the Oracle Grid Infrastructure installation.
Example 3-1 (page 3-12) shows an example of the diagnostic directory for an Oracle
ASM instance.
See Also:
INSTANCE_TYPE
See Also:
LARGE_POOL_SIZE
You do not have to set a value for the LARGE_POOL_SIZE initialization parameter if
you use automatic memory management.
The setting for the LARGE_POOL_SIZE parameter is used for large allocations. The
default value for this parameter is suitable for most environments.
See Also:
PROCESSES
The PROCESSES initialization parameter affects Oracle ASM, but the default value is
usually suitable. However, if multiple database instances are connected to an Oracle
ASM instance, then you can use the following formulas, where n is the number of
database instances connecting to the Oracle ASM instance.
In a non-Exadata environment, the recommended settings are:
See Also:
REMOTE_LOGIN_PASSWORDFILE
The REMOTE_LOGIN_PASSWORDFILE initialization parameter specifies whether the
Oracle ASM instance checks for a password file. This parameter operates the same for
Oracle ASM and database instances.
See Also:
SHARED_POOL_SIZE
You do not have to set a value for the SHARED_POOL_SIZE initialization parameter if
you use automatic memory management. The setting for the SHARED_POOL_SIZE
parameter determines the amount of memory required to manage the instance. The
setting for this parameter is also used to determine the amount of space that is
allocated for extent storage. The default value for this parameter is suitable for most
environments.
See Also:
About Setting Database Initialization Parameters for Use with Oracle ASM
When you do not use automatic memory management in a database instance, the SGA
parameter settings for a database instance may require minor modifications to support
Oracle ASM. When you use automatic memory management, the sizing data
discussed in this section can be treated as informational only or as supplemental
information to help determine the appropriate values that you should use for the SGA.
Oracle highly recommends using automatic memory management.
See Also:
The following are configuration guidelines for SGA sizing on the database instance:
– For disk groups using external redundancy, every 100 GB of space needs 1
MB of extra shared pool plus 2 MB
See Also:
• About Active Session History Sampling for Oracle ASM (page 3-28)
See Also:
Oracle Flex ASM enables an Oracle ASM instance to run on a separate physical server
from the database servers. With this deployment, larger clusters of Oracle ASM
instances can support more database clients while reducing the Oracle ASM footprint
for the overall system.
When using Oracle Flex ASM, Oracle ASM clients are configured with direct access to
storage.
With Oracle Flex ASM, you can consolidate all the storage requirements into a single
set of disk groups. All these disk groups are mounted by and managed by a small set
of Oracle ASM instances running in a single cluster. You can specify the number of
Oracle ASM instances with a cardinality setting. The default is three instances.
A cluster is a set of nodes that provide group membership services. Each cluster has a
name that is globally unique. Every cluster has one or more Hub nodes. The Hub
nodes have access to Oracle ASM disks. Every cluster has at least one private network
and one public network. If the cluster is going to use Oracle ASM for storage, it has at
least one Oracle ASM network. A single network can be used as both a private and an
Oracle ASM network. For security reasons, an Oracle ASM network should never be
public. There can be only one Oracle Flex ASM configuration running within a cluster.
The configurations of Oracle ASM in Oracle Flex ASM are:
• Local Oracle ASM clients with direct access to Oracle ASM disks
With this mode (Standard Oracle ASM cluster), Oracle ASM continues to support
existing standard architecture in which database clients are running with an
Oracle ASM instance on the same host computer. The local client architecture is
only supported on a Hub node. This mode is labeled A in Figure 3-1 (page 3-16).
In this configuration, the database instances are on the same Hub node as the
Oracle ASM instance and are referred to as local Oracle ASM client instances.
Oracle ASM metadata moves between Oracle ASM and the database instances.
This client has direct I/O access to Oracle ASM disks.
Local mode does not use Oracle Flex ASM, so clusters configured with local
Oracle ASM do not require an Oracle ASM network, nor do they contain other
Oracle Flex ASM services.
• Oracle Flex ASM clients with direct access to Oracle ASM disks
With this mode, database clients that are running on Hub nodes of the Oracle
ASM cluster access Oracle ASM remotely for metadata, but perform block I/O
operations directly to Oracle ASM disks. The hosts running the Oracle ASM
server and the remote database client must both be Hub nodes. A Hub node is a
node in an Oracle ASM cluster that is tightly connected with other servers and has
direct access to a shared disk. This mode is labeled B in Figure 3-1 (page 3-16).
In this configuration, the database instances are on different host computers than
the nearby Oracle ASM instance and are referred to as Oracle ASM client
instances. This Oracle ASM instance is shown on the node labeled C in Figure 3-1
(page 3-16). The databases are in the same Oracle ASM cluster as the Oracle ASM
instance and the database instances are located on a Hub node. Oracle ASM
metadata moves between Oracle ASM and the database instance. This client has
direct I/O access to Oracle ASM disks.
Depending on the distribution of database instances and Oracle ASM instances, a
database client may access Oracle ASM locally on the same node or remotely over
the Oracle ASM network. This mode of operation is used by database clients on
Hub nodes in the Oracle ASM cluster. Direct access mode is also the only Oracle
Flex ASM configuration supported by Oracle ASM cluster file system.
An Oracle ASM proxy instance is an Oracle instance running on a Hub node with
a direct Oracle ASM client. Oracle Automatic Storage Management Cluster File
System (Oracle ACFS) and Oracle ASM Dynamic Volume Manager (Oracle
ADVM) are supported with an Oracle ASM proxy instance. This configuration is
shown in Figure 3-2 (page 3-18).
The INSTANCE_TYPE initialization parameter is set to ASMPROXY for Oracle ASM
proxy instances.
Figure 3-2 (page 3-18) shows the configuration of Oracle ACFS and Oracle ADVM in
Oracle Flex ASM.
Figure 3-2 Oracle ACFS and Oracle ADVM in Oracle Flex ASM
Hub Node Hub Node
ASM Pr
Proxy
DB
Instance ADVM &
ACFS
ADVM &
ACFS
Oracle ASM Disk Storage
Note:
• If you choose to install an Oracle Flex Cluster, Oracle Flex ASM is enabled
by default because an Oracle Flex Cluster requires Oracle Flex ASM.
• Oracle does not support changing Oracle Flex ASM to a standard Oracle
ASM configuration.
• Categorize the networks and choose the list of networks for use as Oracle ASM
networks.
If you choose Oracle Flex ASM during a new installation, OUI requires you to
choose the Oracle ASM networks.
The Oracle ASM listener resource is automatically created for each Oracle ASM
network and then started on all nodes.
See Also:
Oracle Grid Infrastructure Installation Guide for information about Oracle
Clusterware installation
You can also use SRVCTL to determine whether Oracle Flex ASM is enabled. If
enabled, then srvctl config asm displays the number of Oracle ASM instances that
has been specified for use with the Oracle Flex ASM configuration. For example:
$ srvctl config asm
ASM instance count: 3
You can modify the Oracle ASM instance count, or cardinality, with the SRVCTL
modify asm command. For example:
$ srvctl modify asm -count 4
You can view Oracle Flex ASM connections with SQL*Plus and ASMCMD commands.
Fore example:
SQL> SELECT instance_name, db_name, status FROM V$ASM_CLIENT;
INSTANCE_NAME DB_NAME STATUS
--------------- -------- ------------
+ASM1 +ASM CONNECTED
orcl1 orcl CONNECTED
orcl2 orcl CONNECTED
Clients are automatically relocated to another instance if an Oracle ASM instance fails.
If necessary, clients can be manually relocated using the ALTER SYSTEM RELOCATE
CLIENT command. For example:
SQL> ALTER SYSTEM RELOCATE CLIENT 'client-id';
Every database user must have a wallet with credentials to connect to Oracle ASM.
CRSCTL commands can be used by the database user to manage this wallet. All Oracle
ASM user names and passwords are system generated.
There are no new initialization parameters specifically for instances in an Oracle Flex
ASM configuration; however, the settings of existing parameters should be reviewed
and possibly adjusted for the Oracle Flex ASM environment. Refer to "Recommended
Settings for Oracle ASM Initialization Parameters (page 3-8)".
See Also:
• Oracle Database SQL Language Reference for information about the ALTER
SYSTEM statement
See Also:
• Starting Up an Oracle ASM instance with an Incorrect SPFILE Path (page 3-24)
• To connect to a local Oracle ASM instance with SQL*Plus, set the ORACLE_SID
environment variable to the Oracle ASM system identifier (SID).
The default Oracle ASM SID for a single-instance database is +ASM, and the
default SID for Oracle ASM for an Oracle RAC node is +ASMnode_number where
node_number is the number of the node. The ORACLE_HOME environment
variable must be set to the Grid Infrastructure home where Oracle ASM was
installed.
Note:
Oracle recommends that you do not change the default Oracle ASM SID
name.
• When you run the STARTUP command, rather than trying to mount and open a
database, this command attempts to mount Oracle ASM disk groups.
For information about disk groups that are mounted at startup time, see "About
Mounting Disk Groups at Startup (page 3-25)".
After the Oracle ASM instance has started, you can mount disk groups with the
ALTER DISKGROUP...MOUNT command. See "Mounting and Dismounting Disk
Groups (page 4-55)" for more information.
• The associated Oracle Database instance does not have to be running when you
start the associated Oracle ASM instance.
The following list describes how Oracle ASM interprets SQL*Plus STARTUP command
parameters.
• FORCE Parameter
Issues a SHUTDOWN ABORT to the Oracle ASM instance before restarting it.
If an Oracle Automatic Storage Management Cluster File System (Oracle ACFS)
file system is currently mounted on Oracle ADVM volumes, the file system
should first be dismounted. Otherwise, applications encounter I/O errors and
Oracle ACFS user data and metadata may not be written to storage before the
Oracle ASM storage is fenced. For information about dismounting an Oracle
ACFS file system, see "Deregistering_ Dismounting_ and Disabling Volumes and
Oracle ACFS File Systems (page 16-20)".
• NOMOUNT Parameter
Starts up the Oracle ASM instance without mounting any disk groups.
• RESTRICT Parameter
Starts up an instance in restricted mode that enables access only to users with both
the CREATE SESSION and RESTRICTED SESSION system privileges. You can use
the RESTRICT clause in combination with the MOUNT, NOMOUNT, and OPEN
clauses.
See Also:
In restricted mode, database instances cannot use the disk groups. In other words,
databases cannot open files that are in that disk group. Also, the disk group
cannot be mounted by any other instance in the cluster. Mounting the disk group
in restricted mode enables only one Oracle ASM instance to mount the disk
group. This mode is useful to mount the disk group for repairing configuration
issues.
The following is a sample SQL*Plus session for starting an Oracle ASM instance.
SQLPLUS /NOLOG
SQL> CONNECT SYS AS SYSASM
Enter password: sys_password
Connected to an idle instance.
SQL> STARTUP
ASM instance started
For more information about user authentication, see "Authentication for Accessing
Oracle ASM Instances (page 3-46)".
See Also:
1. Create a PFILE with one line in it that identifies the path to the SPFILE.
For example:
Create the /oracle/dbs/spfileasm_init.ora file that contains:
SPFILE='+DATA/asm/asmparameterfile/asmspfile.ora'
For example:
SQL> STARTUP PFILE=/oracle/dbs/spfileasm_init.ora
3. After the instance is running, use the ASMCMD spset command to update the
SPFILE path in the GPnP profile. See "spset (page 10-28)".
For example:
ASMCMD> spset +DATA/asm/asmparameterfile/asmspfile.ora
See Also:
• Disk group used by Cluster Synchronization Services (CSS) for voting files
• Disk groups used by Oracle Clusterware for Oracle Cluster Registry (OCR)
• Disk group used by the Oracle ASM instance to store the ASM server parameter
file (SPFILE)
If no disk groups are found in the previous list, then the Oracle ASM instance does not
mount any disk groups at startup. After the Oracle ASM instance has started, you can
mount disk groups with the ALTER DISKGROUP...MOUNT command. For more
information, see "Mounting and Dismounting Disk Groups (page 4-55)".
If you are not using Oracle Flex ASM, Oracle strongly recommends that you shut
down all database instances that use the Oracle ASM instance and dismount all file
systems mounted on Oracle ASM Dynamic Volume Manager (Oracle ADVM)
volumes before attempting to shut down the Oracle ASM instance. If you are using
Oracle Flex ASM, Oracle Flex ASM clients move to other running Oracle ASM
instances if an Oracle ASM instance is shut down.
If Oracle Cluster Registry (OCR) or voting files are stored in a disk group, the disk
group can only be dismounted by shutting down the Oracle ASM instance as part of
shutting down the clusterware on a node. To shut down the clusterware, run crsctl
stop crs.
See Also:
For more information about user authentication, see "Authentication for Accessing
Oracle ASM Instances (page 3-46)".
The following list describes the SHUTDOWN modes and the behavior of the Oracle ASM
instance in each mode.
• NORMAL Clause
Oracle ASM waits for any in-progress SQL to complete before performing an
orderly dismount of all of the disk groups and shutting down the Oracle ASM
instance. Before the instance is shut down, Oracle ASM waits for all of the
currently connected users to disconnect from the instance. If any database
instances are connected to the Oracle ASM instance, then the SHUTDOWN
command returns an error and leaves the Oracle ASM instance running. NORMAL
is the default shutdown mode.
• ABORT Clause
The Oracle ASM instance immediately shuts down without the orderly dismount
of disk groups. This causes recovery to occur upon the next Oracle ASM startup.
If any database instance is connected to the Oracle ASM instance, then the
database instance aborts.
If any Oracle Automatic Storage Management Cluster File System (Oracle ACFS)
file systems are currently mounted on Oracle ADVM volumes, those file systems
should first be dismounted. Otherwise, applications encounter I/O errors and
Oracle ACFS user data and metadata may not be written to storage before the
Oracle ASM storage is fenced. For information about dismounting an Oracle
ACFS file system, see "Deregistering_ Dismounting_ and Disabling Volumes and
Oracle ACFS File Systems (page 16-20)". For more information about user
authentication on Oracle ASM instance, see "Authentication for Accessing Oracle
ASM Instances (page 3-46)".
• Add and remove the Oracle ASM Oracle Clusterware (CRS) resource in Oracle
Cluster Registry (OCR)
See Also:
The Oracle Real Application Clusters Administration and Deployment Guide for
information about administering Oracle ASM instances with SRVCTL
See Also:
Oracle Grid Infrastructure Installation Guide for information about installing
Oracle Grid Infrastructure, out of place upgrades, and performing rolling
upgrades of Oracle Grid Infrastructure and Oracle ASM
configuration wizard accepts your input, validates the input, and populates the
configuration data into the CRSCONFIG_PARAMS file. If additional scripts must be run,
the configuration wizard directs you to run those scripts.
See Also:
Oracle Clusterware Administration and Deployment Guide for information about
the Oracle Grid Infrastructure configuration wizard.
See Also:
See Also:
Oracle Database Platform Guide for Microsoft Windows for information about
running Oracle services on Windows platforms and different types of
Windows user accounts
Note:
• You must apply the patch to the Oracle Grid Infrastructure home before
you apply it to the Oracle Database home.
Note:
• Rolling upgrades only apply to clustered Oracle ASM instances, and you
can only perform rolling upgrades on environments with Oracle Database
11g or later. You cannot use this feature to upgrade from Oracle Database
10g to Oracle Database 11g.
See Also:
• Oracle Database SQL Language Reference for information about the rolling
migration clause of the ALTER SYSTEM command
You can determine if the cluster is in rolling patch mode by executing a SYS_CONTEXT
SQL query for Cluster State. A new state (In Rolling Patch) is added to informing the
user that the cluster is in rolling patch mode.
The queries in Example 3-2 (page 3-31) display information about rolling patches. To
run these queries, you must be connected to the Oracle ASM instance in the Grid
home, and the Grid Infrastructure home must be configured with the Oracle
Clusterware option for an Oracle RAC environment.
You can view all the patch Ids applied on the node and cluster by querying the V
$PATCHES view.
ASMCMD commands for rolling patches include:
• showclusterstate
• showpatches
• showversion
For information about ASMCMD commands to monitor upgrade operations on an
Oracle ASM instance, refer to "ASMCMD Instance Management Commands
(page 10-11)".
See Also:
• Oracle Database SQL Language Reference for information about the rolling
patch clause of the ALTER SYSTEM command
Note:
Before you convert an Oracle ASM configuration to an Oracle Flex ASM, you must
ensure the following:
• Oracle Cluster Registry (OCR) is stored in a disk group. For information about
storing OCR in a disk group, refer to "Storing Oracle Cluster Registry and Voting
Files in Oracle ASM Disk Groups (page 4-13)".
See Also:
• The server parameter file (SPFILE) is stored in a disk group. For information
about storing an SPFILE file in a disk group, refer to "About Backing Up_
Copying_ and Moving an Oracle ASM Initialization Parameter File (page 3-4)".
• The password file (ORAPWD file) is stored in a disk group. For information about
storing an ORAPWD file in a disk group, refer to "Managing a Shared Password
File in a Disk Group (page 3-52)".
• The disk group where the OCR, SPFILE, and ORAPWD files are stored has Oracle
ASM compatibility (COMPATIBLE.ASM) set to 12.1 or higher. For information
about disk group compatibility, refer to "Disk Group Compatibility (page 4-41)".
ASMCA informs you if any requirement, such as storing an ORAPWD file in a disk
group, has not been met before starting the conversion.
Figure 3-3 (page 3-32) shows the Configure ASM: ASM Instances page that enables
you to perform operations on selected Oracle ASM instances.
Figure 3-3 Oracle ASM Configuration Assistant Configure ASM Instances Page
Figure 3-4 (page 3-33) shows the Convert to Oracle Flex ASM dialog box that enables
you to specify the listener port and network interface for the conversion to Oracle Flex
ASM.
Figure 3-4 Oracle ASM Configuration Assistant Convert to Oracle Flex ASM Dialog Box
Figure 3-5 Oracle ASM Configuration Assistant ASM Conversion Dialog Box
For information about the ASMCA command-line option for converting to Oracle Flex
ASM, refer to "Convert to Oracle Flex ASM (page 9-10)".
For information about Oracle Flex ASM, refer to "Managing Oracle Flex ASM
(page 3-16)".
See Also:
Oracle Grid Infrastructure Installation Guide for information about installing and
upgrading Oracle Grid Infrastructure
Note:
This feature is available on Linux systems starting with Oracle Database 12c
Release 1 (12.1.0.2).
Oracle ASM Filter Driver (Oracle ASMFD) is a kernel module that resides in the I/O
path of the Oracle ASM disks. After installation of Oracle Grid Infrastructure, you can
optionally configure Oracle ASMFD for your system. If ASMLIB is configured for an
existing Oracle ASM installation, then you must explicitly migrate the existing
ASMLIB configuration to Oracle ASMFD.
Note:
• Deciding Between Oracle ASMLIB and Oracle ASM Filter Driver (page 3-35)
• About Migrating to Oracle ASM Filter Driver From ASMLIB (page 3-39)
• Updating the Oracle ASM ASM_DISKSTRING Parameter for Oracle ASM Filter
Driver Disks (page 3-42)
• Setting_ Clearing_ and Scanning Oracle ASM Filter Driver Labels (page 3-43)
See Also:
Oracle Grid Infrastructure Installation Guide for your operating system for
information about installing and configuring Oracle Grid Infrastructure
• If you use Oracle ASMLIB to manage your Oracle ASM devices and you want to
continue to use Oracle ASMLIB, then upgrade to Oracle Grid Infrastructure 12c
Release 1 (12.1.0.2).
Although Oracle ASMFD is installed, Oracle ASMLIB continues to be used for
device persistence.
• If you use Oracle ASMLIB to manage your Oracle ASM devices and you want to
migrate to Oracle ASMFD, then perform the following steps:
• If Oracle ASMLIB is installed, but you do not use Oracle ASM because Oracle
Grid Infrastructure is not installed, and want to use Oracle ASMFD, then follow
these steps:
See Also:
Oracle Grid Infrastructure Installation Guide for your operating system for
information about installing and deinstalling Oracle ASMLIB
3. Configure your Oracle ASM devices to use Oracle ASMFD for device
persistence.
Refer to "Configuring Oracle ASM Filter Driver (page 3-36)".
4. Create disk labels to enable migration of Oracle ASM disk groups to Oracle
ASMFD.
Refer to "About Migrating to Oracle ASM Filter Driver From ASMLIB
(page 3-39)".
You can also set udev rules, in addition to or instead of Oracle ASMFD and Oracle
ASMLIB, for device persistence.
See Also:
Oracle Clusterware Administration and Deployment Guide for information about
using CRSCTL commands
1. As the Oracle Grid Infrastructure owner update the Oracle ASM disk discovery
string to enable Oracle ASMFD to discover devices in the future.
For example, check the current value of the Oracle ASM disk discovery string and
then update the value.
$ $ORACLE_HOME/bin/asmcmd dsget
The value of old_diskstring is the current Oracle ASM disk discovery string
value.
For information about updating the Oracle ASM discovery string, refer to
"Updating the Oracle ASM ASM_DISKSTRING Parameter for Oracle ASM Filter
Driver Disks (page 3-42)".
2. As the Oracle Grid Infrastructure owner list the nodes and node roles in your
cluster:
$ $ORACLE_HOME/bin/olsnodes -a
If the command returns an error, then stop Oracle Grid Infrastructure forcibly
as follows:
# $ORACLE_HOME/bin/crsctl stop crs -f
c. As the Oracle Grid Infrastructure owner verify the status of Oracle ASMFD:
$ $ORACLE_HOME/bin/asmcmd afd_state
ASMCMD-9526: The AFD state is 'LOADED' and filtering is 'ENABLED' on host
'myhost'
For information about checking on the state of the Oracle ASM Filter Driver,
refer to "Determining Whether Oracle ASM Filter Driver Has Been
Configured (page 3-41)".
e. As the Oracle Grid Infrastructure owner set the Oracle ASMFD discovery
disk string to the original Oracle ASM disk discovery string value that was
retrieved in Step 1:
$ $ORACLE_HOME/bin/asmcmd afd_dsset old_diskstring
The value of old_diskstring is the old disk discovery string value without
the AFD: (Oracle ASMFD) path.
For information about updating the Oracle ASM Filter Driver discovery disk
discovery string, refer to "Updating the Oracle ASM Filter Driver
AFD_DISKSTRING Parameter (page 3-42)".
For information about updating the Oracle ASM discovery disk discovery
string, refer to "Updating the Oracle ASM ASM_DISKSTRING Parameter for
Oracle ASM Filter Driver Disks (page 3-42)".
Oracle ASM Filter Driver should identify and start managing disks previously
managed by Oracle ASMLIB.
1. As the Oracle Grid Infrastructure standalone server owner update the Oracle ASM
disk discovery string to enable Oracle ASMFD to discover disk devices.
For example, check the current value of the Oracle ASM disk discovery string and
then update the value.
$ $ORACLE_HOME/bin/asmcmd dsget
2. Log in as the root user and stop Oracle Grid Infrastructure for a standalone server
using the following command:
# $ORACLE_HOME/bin/asmcmd afd_configure
4. As the Oracle Grid Infrastructure standalone server owner verify the Oracle
ASMFD status:
$ $ORACLE_HOME/bin/asmcmd afd_state
ASMCMD-9526: The AFD state is 'LOADED' and filtering is 'ENABLED' on host 'myhost'
For information about checking on the state of the Oracle ASM Filter Driver, refer
to "Determining Whether Oracle ASM Filter Driver Has Been Configured
(page 3-41)".
6. As the Oracle Grid Infrastructure standalone server owner set the Oracle ASMFD
disk discovery string to the original value of the Oracle ASM disk discovery string
that was retrieved in Step 1:
Oracle ASM Filter Driver should identify and start managing disks previously
managed by Oracle ASMLIB.
• "Migrating Oracle ASM Disk Groups without Oracle Cluster Registry or Voting
Files (page 3-39)"
• "Migrating Oracle ASM Disk Groups with Oracle Cluster Registry or Voting Files
(page 3-40)"
See Also:
Migrating Oracle ASM Disk Groups without Oracle Cluster Registry or Voting Files
To migrate Oracle ASM disk groups without Oracle Cluster Registry (OCR) or voting
files to Oracle ASMFD:
1. Log in as the Oracle Grid Infrastructure owner on any node to run the commands
in this procedure.
$ $ORACLE_HOME/bin/asmcmd lsdg
5. Stop the databases and dismount the disk group on all nodes:
6. Label all existing disks in the disk group by running the following command for
each disk on a Hub node:
$ $ORACLE_HOME/bin/asmcmd afd_scan
8. Start the databases and mount the disk group on all nodes:
Migrating Oracle ASM Disk Groups with Oracle Cluster Registry or Voting Files
To migrate Oracle ASM disk groups with Oracle Cluster Registry (OCR) or voting files
to Oracle ASM Filter Driver (Oracle ASMFD):
1. Log in as the root user and list the disk groups with OCR and voting files by
running the following commands on one node:
# $ORACLE_HOME/bin/ocrcheck -config
2. As the Oracle Grid Infrastructure owner list the disks associated with the disk
groups:
4. As the Oracle Grid Infrastructure owner label all existing disks in the disk group by
running the following command for each disk on a Hub node:
5. As the Oracle Grid Infrastructure owner rescan the disks on all Hub nodes by
running the following command on all of the Hub nodes:
$ $ORACLE_HOME/bin/asmcmd afd_scan
6. As root, start the Oracle Clusterware stack on all nodes and mount the OCR and
voting files disk groups and databases:
1. Log in as the Oracle Grid Infrastructure standalone server owner to run the steps in
this procedure.
$ $ORACLE_HOME/bin/asmcmd lsdg
5. Stop all the databases and dismount all disk groups. For each database, run the
following commands:
6. Label all existing disks in the disk group by running the following command for
each disk:
$ $ORACLE_HOME/bin/asmcmd afd_scan
For information about using the ASMCMD afd_state command to determine the
state of Oracle ASMFD, refer to "afd_state (page 10-34)".
To determine if Oracles ASMFD is present on the host, you can also display the value
of AFD_STATE from SYS_CONTEXT. You must run the query on the Oracle ASM
instance.
If the value of AFD_STATE is equal to NOT AVAILABLE, then Oracle ASMFD is not
configured.
SQL> SELECT SYS_CONTEXT('SYS_ASMFD_PROPERTIES', 'AFD_STATE') FROM DUAL;
SYS_CONTEXT('SYS_ASMFD_PROPERTIES','AFD_STATE')
--------------------------------------------------------------------------------
NOT AVAILABLE
A value of CONFIGURED means that Oracle ASMFD is completely set up and the
Oracle ASM instance can register with the driver.
SQL> SELECT SYS_CONTEXT('SYS_ASMFD_PROPERTIES', 'AFD_STATE') FROM DUAL;
SYS_CONTEXT('SYS_ASMFD_PROPERTIES','AFD_STATE')
--------------------------------------------------------------------------------
CONFIGURED
$ $ORACLE_HOME/bin/asmcmd afd_dsget
AFD discovery string: /dev/rdsk/mydisks/*
For information about ASMCMD commands to display and set the Oracle ASMFD
disk discovery string, refer to "afd_dsget (page 10-31)" and "afd_dsset (page 10-31)".
You can also set the AFD_DISKSTRING with the ALTER SYSTEM SQL statement. A
label is created in the disk header of those disks identified by the Oracle ASMFD disk
discovery string.
SQL> ALTER SYSTEM AFD_DISKSTRING SET '/dev/disk0','/dev/disk1','/devices/dsk/*';
System altered.
You can retrieve the value of AFD_DISKSTRING parameter with the following query.
SQL> SELECT SYS_CONTEXT('SYS_ASMFD_PROPERTIES', 'AFD_DISKSTRING') FROM DUAL;
SYS_CONTEXT('SYS_ASMFD_PROPERTIES','AFD_DISKSTRING')
--------------------------------------------------------------------------------
'/dev/disk0','/dev/disk1','/devices/dsk/*'
Updating the Oracle ASM ASM_DISKSTRING Parameter for Oracle ASM Filter Driver
Disks
You can update the Oracle ASM disk discovery string to add or remove Oracle
ASMFD disk label names to and from the ASM_DIKSTRING initialization parameter.
For example, you can add the Oracle ASMFD disks to the ASM_DIKSTRING
initialization parameter as follows:
ASM_DISKSTRING = 'AFD:DISK0', 'AFD:DISK1', '/dev/rdsk/mydisks/*'
You can display and set the Oracle ASM disk discovery string with the ASMCMD
dsget and dsset commands. For example, you can set the Oracle ASM disk
discovery string to add Oracle ASMFD disks as follows:
$ $ORACLE_HOME/bin/asmcmd dsset 'AFD:*','/dev/rdsk/mydisks/*'
For information about ASMCMD commands to display and set the Oracle ASM disk
discovery string, refer to "dsget (page 10-12)" and "dsset (page 10-13)".
For information about the ASM_DISKSTRING initialization parameter, refer to
"ASM_DISKSTRING (page 3-9)".
For information about ASMCMD commands to add and remove labels on Oracle
ASMFD disks, refer to "afd_label (page 10-32)", "afd_unlabel (page 10-34)", and
"afd_scan (page 10-33)". In addition, ASMCA provides support for adding and
removing labels on Oracle ASMFD disks. For information about using ASMCA to
administer disk groups, refer to "Managing Disk Groups with ASMCA (page 9-5)".
You can also manage labels with SQL statements. You can set a label with the ALTER
SYSTEM LABEL SET SQL statement. For example:
SQL> ALTER SYSTEM LABEL SET 'disk0' TO '/dev/disk0';
System altered.
When you run the statement, you can use the optional RENAME or MIGRATE option. If
a disk was previously provisioned for Oracle ASMFD, you can rename the label with
the RENAME option. Note that the device should not be managed with Oracle ASMFD
when the command is run. If a disk was previously used for an Oracle ASM disk
group and the disk group has been dismounted, then you can label this disk using the
MIGRATE option.
You can use ALTER SYSTEM LABEL CLEAR to remove the label from a device and stop
Oracle ASMFD from managing the device. For example:
SQL> ALTER SYSTEM LABEL CLEAR 'disk0';
System altered.
You can use ALTER SYSTEM LABEL SCAN on remote nodes after the ALTER SYSTEM
LABEL SET command is run on the local node.
Because ALTER SYSTEM LABEL SET statement writes the label on the disk header and
the disk is shared across nodes, the same statement is not run on other nodes of the
cluster.
If the device-path is not specified, then the statement uses the AFD_DISKSTRING
parameter value to perform the scan operation.
SQL> ALTER SYSTEM LABEL SCAN
See Also:
1. Update the Oracle ASM disk discovery string to enable Oracle ASM to discover
disk devices after Oracle ASMFD is deconfigured.
For information about updating the Oracle ASM disk discovery string, refer to
"Updating the Oracle ASM ASM_DISKSTRING Parameter for Oracle ASM Filter
Driver Disks (page 3-42)".
2. As the Oracle Grid Infrastructure owner list the nodes and node roles in your
cluster by running the following command on any node:
$ $ORACLE_HOME/bin/olsnodes -a
If the command returns any error, then stop Oracle Grid Infrastructure
forcibly as follows:
# $ORACLE_HOME/bin/crsctl stop crs -f
b. As root, stop Oracle ACFS kernel modules to ensure the most reliable
shutdown:
# $ORACLE_HOME/bin/acfsload stop
# $ORACLE_HOME/bin/asmcmd afd_deconfigure
f. As the Oracle Grid Infrastructure owner verify the status of Oracle ASMFD:
$ $ORACLE_HOME/bin/asmcmd afd_state
For information about checking on the state of the Oracle ASM Filter Driver,
refer to "Determining Whether Oracle ASM Filter Driver Has Been
Configured (page 3-41)".
4. As the Oracle Grid Infrastructure owner update the Oracle ASM discovery string
to remove the Oracle ASMFD path:
$ $ORACLE_HOME/bin/asmcmd dsget
Check the current value of the Oracle ASM disk discovery string before updating
the value. The old_diskstring value is the old disk discovery string value
before updating with the AFD: (Oracle ASMFD) paths.
For information about updating the Oracle ASM discovery string, refer to
"Updating the Oracle ASM ASM_DISKSTRING Parameter for Oracle ASM Filter
Driver Disks (page 3-42)".
For information about updating the Oracle ASM Filter Driver discovery disk
discovery string, refer to "Updating the Oracle ASM Filter Driver
AFD_DISKSTRING Parameter (page 3-42)".
1. Update the Oracle ASM disk discovery string to enable Oracle ASM to discover
disk devices after Oracle ASMFD is deconfigured.
For information about updating the Oracle ASM disk discovery string, refer to
"Updating the Oracle ASM ASM_DISKSTRING Parameter for Oracle ASM Filter
Driver Disks (page 3-42)".
2. Log in as the root user and stop Oracle Grid Infrastructure for a standalone server
using the following command:
If the previous command returns an error, then use the following command:
# $ORACLE_HOME/bin/crsctl stop has -f
3. As root, stop Oracle ACFS kernel modules to ensure the most reliable shutdown:
# $ORACLE_HOME/bin/acfsload stop
For information about the acfsload command, refer to "acfsload (page 18-5)".
# $ORACLE_HOME/bin/asmcmd afd_deconfigure
# $ORACLE_HOME/bin/acfsload start
For information about the acfsload command, refer to "acfsload (page 18-5)".
7. As the Oracle Grid Infrastructure standalone server owner verify the Oracle
ASMFD status:
$ $ORACLE_HOME/bin/asmcmd afd_state
For information about checking on the state of the Oracle ASM Filter Driver, refer
to "Determining Whether Oracle ASM Filter Driver Has Been Configured
(page 3-41)".
8. As the Oracle Grid Infrastructure standalone server owner update the Oracle ASM
disk discovery string to remove the Oracle ASMFD paths:
$ $ORACLE_HOME/bin/asmcmd dsget
Check the current value of the Oracle ASM disk discovery string before updating
the value. The old_diskstring value is the old disk discovery string value
before updating with the AFD: (Oracle ASMFD) paths.
For information about updating the Oracle ASM discovery string, refer to
"Updating the Oracle ASM ASM_DISKSTRING Parameter for Oracle ASM Filter
Driver Disks (page 3-42)".
For information about updating the Oracle ASM Filter Driver discovery disk
discovery string, refer to "Updating the Oracle ASM Filter Driver
AFD_DISKSTRING Parameter (page 3-42)".
See Also:
See Also:
Oracle Database Security Guide for information about maintaining database
security, including assigning passwords
• Using One Operating System Group for Oracle ASM Users (page 3-48)
• Using Separate Operating System Groups for Oracle ASM Users (page 3-48)
• The SYSDBA Privilege for Managing Oracle ASM Components (page 3-50)
For information about privileges and Oracle ACFS, see "Oracle ACFS and File Access
and Administration Security (page 11-13)".
Table 3-1 One operating system group and one set of privileges for all Oracle ASM users
• OSASM group
This group is granted the SYSASM privilege, which provides full administrative
privileges for the Oracle ASM instance. For example, the group could be
asmadmin.
This group is granted the SYSOPER privilege on the Oracle ASM instance, which
provides operations such as startup, shutdown, mount, dismount, and check disk
group. This group has a subset of the privileges of the OSASM group. For
example, the group could be asmoper.
When you implement separate Oracle ASM and database administrator duties, this
configuration requires different group and different software owners. Implicitly this
implementation requires that the OSASM and OSDBA are different groups. For this
configuration, you must create an OSDBA for Oracle ASM group and a database
instance must be a member of that group to access the Oracle ASM instance.
In an installation that has been configured as Oracle Grid Infrastructure, the Oracle
ASM user, such as grid, does not have to be a member of the Oracle Database
OSDBA group, such as dba1 or dba2, because the Oracle Clusterware database agent
runs as the database owner and can use SYSDBA to connect to the database.
However, in an Oracle Restart configuration, the Oracle ASM user (grid) must be a
member of the OSDBA group (dba1, dba2, ...) of every database. This requirement is
necessary because Oracle Restart software runs as the Oracle ASM user (grid) and
this user must be able to start and stop the databases using the CONNECT / AS SYSDBA
authentication.
Additionally, the owner of the operating system disk devices should be the same as
the owner of the Oracle ASM software.
Table 3-2 (page 3-49) shows an example of a Linux deployment using separate
operating system privilege groups for Oracle ASM users.
Table 3-2 Separated operating system groups and privileges for Oracle ASM users
You can also grant the SYSASM privilege with password file authentication, as
discussed in "Password File Authentication for Oracle ASM (page 3-52)".
To connect locally as SYSASM using password authentication with SQL*Plus, use the
following statement:
sqlplus SYS AS SYSASM
...
Enter password:
In the previous example, +ASM is the service name of the Oracle ASM instance.
To connect locally as SYSASM to an Oracle ASM instance using operating system
authentication with SQL*Plus, use the following statement:
sqlplus / AS SYSASM
• Operate on files that were created by this user or only access files to which
another user had explicitly granted access
Note:
• These commands update the password file for the local Oracle ASM
instance only.
• Oracle ASM does not support the creation of external and global users.
The following example describes how to perform these SQL operations for the user
identified as new_user:
REM create a new user, then grant the SYSASM privilege
SQL> CREATE USER new_user IDENTIFIED by new_user_passwd;
SQL> GRANT SYSASM TO new_user;
When you revoke the last privilege of a user in an Oracle ASM password file, the user
is not automatically deleted as is done in the Oracle Database password file. You must
run DROP USER to delete a user with no privileges in an Oracle ASM password file.
For information about creating a user with Oracle ASM command-line utility
(ASMCMD), see "orapwusr (page 10-16)".
See Also:
• Oracle Database SQL Language Reference for information about the CREATE
USER and GRANT commands
See Also:
• Oracle Database Installation Guide for your specific operating system for
information about default operating system groups
See Also:
• Oracle Database SQL Language Reference for information about the CREATE
USER and GRANT commands
See Also:
The asm switch specifies that orapwd create an Oracle ASM password file rather than
a database password file.
For example:
$ orapwd file='+data/ASM/orapwasm' asm=y
You can create a new password file in a disk group using a password file from a
previous release.
For example:
$ orapwd input_file='/oraclegrid/dbs/orapwasm' file='+data/ASM/orapwasm' asm=y
For example:
ASMCMD [+] > pwget --asm
+DATA/orapwasm
2. Back up the password file to another disk group with the pwcopy command.
For example:
ASMCMD [+] > pwcopy +DATA/orapwasm +FRA/my_pwfile_backup
Using pwcopy without the --asm or --dbuniquename option does not change
the current location of the password file. If necessary after the copy is made, you
can set the current password file location with the pwset command.
3. Verify which password file is in the current location after making a backup with
the pwcopy command.
For example:
For example:
ASMCMD [+] > ls +fra/my_pwfile_backup
my_pwfile_backup
5. To restore the Oracle ASM password file, you can use pwset or pwcopy.
To restore the Oracle ASM password file from the backup and use the existing
location, use the pwset command with the --asm option.
For example:
ASMCMD [+] > pwset --asm +FRA/my_pwfile_backup
To restore the Oracle ASM password file from the backup to another disk group,
use the pwcopy command with the --asm option.
For example:
ASMCMD [+] > pwcopy --asm +FRA/my_pwfile_backup +DATA2/my_orapwasm
The --asm option with the pwset and pwcopy command sets the password
location for the Oracle ASM instance.
6. Verify the location of the current password file with the pwget command if you
have changed the location.
For example:
ASMCMD [+] > pwget --asm
+DATA2/my_orapwasm
Note:
You must upgrade to at least Oracle Database 10g before migrating your
database to Oracle ASM.
See Also:
For information about Oracle ASM best practices for migrating to Oracle ASM
from environments that do not use Oracle ASM, refer to the documentation at
the MAA link on Oracle Technology Network:
http://www.oracle.com/technetwork/database/features/
availability/maa-096107.html
• Managing Oracle ASM File Access Control for Disk Groups (page 4-50)
See Also:
The Oracle Cloud Storage page on the Oracle Technology Network website at
http://www.oracle.com/technetwork/database/cloud-storage/
index.html for more information about Oracle ASM
ACCESS_CONTROL.ENABLED
This attribute configures Oracle ASM File Access Control and can only be set when
altering a disk group.
For information about the ACCESS_CONTROL.ENABLED attribute, see "Setting Disk
Group Attributes for Oracle ASM File Access Control (page 4-51)".
ACCESS_CONTROL.UMASK
This attribute configures Oracle ASM File Access Control and can only be set when
altering a disk group.
For information about the ACCESS_CONTROL.UMASK attribute, see "Setting Disk
Group Attributes for Oracle ASM File Access Control (page 4-51)".
AU_SIZE
This attribute specifies allocation unit (AU) size and can only be set when creating a
disk group. Example 4-1 (page 4-10) shows how the AU_SIZE is specified with the
CREATE DISKGROUP SQL statement.
For information about allocation units, refer to "About Oracle ASM Allocation Units
(page 1-7)".
CELL.SMART_SCAN_CAPABLE
This attribute is only applicable to the configuration of Oracle Exadata storage.
See Also:
CELL.SPARSE_DG
This attribute is only applicable to the configuration of Oracle Exadata storage.
See Also:
Oracle Exadata documentation
COMPATIBLE.ASM
This attribute specifies the Oracle ASM compatibility level of a disk group.
Compatibility attributes can be set when the disk group is created and advanced when
a disk group is altered, but compatibility attributes cannot be reversed. For
COMPATIBLE.RDBMS
This attribute specifies the database compatibility level of a disk group. Compatibility
attributes can be set when the disk group is created and advanced when a disk group
is altered, but compatibility attributes cannot be reversed. For information about the
COMPATIBLE.RDBMS attribute, see "COMPATIBLE.RDBMS (page 4-42)".
COMPATIBLE.ADVM
This attribute specifies the Oracle Automatic Storage Management Cluster File System
(Oracle ACFS) and Oracle ASM Dynamic Volume Manager (Oracle ADVM)
compatibility level of a disk group. Compatibility attributes can be set when the disk
group is created and advanced when a disk group is altered, but compatibility
attributes cannot be reversed. For information about the COMPATIBLE.ADVM attribute,
see "COMPATIBLE.ADVM (page 4-43)" and "Overview of Oracle ASM Dynamic
Volume Manager (page 11-39)".
CONTENT.CHECK
This attributes enables or disables content checking when performing data copy
operations for rebalancing a disk group. The attribute value can be set to true or
false.
The content checking can include Hardware Assisted Resilient Data (HARD) checks
on user data, validation of file types from the file directory against the block contents
and file directory information, and mirror side comparison.
When the attribute is set to true, logical content checking is enabled for all rebalance
operations.
For information about disk group rebalancing, refer to "Manually Rebalancing Disk
Groups (page 4-21)" and "Tuning Rebalance Operations (page 4-23)".
CONTENT.TYPE
This attribute identifies the disk group type: data, recovery, or system. The type
value determines where Oracle ASM places the nearest neighbor disk in the failure
group where Oracle ASM mirrors copies of the data. Oracle ASM uses this attribute
value to make it less likely that a double failure in the storage medium causes disk
groups of different content types to become unavailable. Specifying this attribute
enables Oracle ASM to better deploy all disk groups in the available storage.
The default value is data which specifies a distance of 1 to the nearest neighbor disk.
A value of recovery specifies a distance of 3 to the nearest neighbor disk and a value
of system specifies a distance of 5.
The attribute can be specified when creating or altering a disk group. If
CONTENT.TYPE attribute is set or changed using ALTER DISKGROUP, then the new
configuration does not take effect until a disk group rebalance is explicitly run.
The CONTENT.TYPE attribute is only valid for disk groups that are set to normal or
high redundancy. The COMPATIBLE.ASM attribute must be set to 11.2.0.3 or higher
to enable the CONTENT.TYPE attribute for the disk group.
This attribute can be set with ASMCMD mkdg or SQL CREATE and ALTER
DISKGROUP statements.
For example:
This attribute is primarily intended for use with Oracle Exadata storage.
For information about disk resync, see "Oracle ASM Fast Mirror Resync (page 4-34)".
See Also:
DISK_REPAIR_TIME
This attribute specifies the time interval to repair a disk and bring it back online.
before initiating the drop operation. This attribute can only be set when altering a disk
group and is only applicable to normal and high redundancy disk groups.
For information about disk repair time, see "Oracle ASM Fast Mirror Resync
(page 4-34)".
FAILGROUP_REPAIR_TIME
This attribute specifies a default repair time for the failure groups in the disk group.
The failure group repair time is used if Oracle ASM determines that an entire failure
group has failed. The default value is 24 hours (24h). If there is a repair time specified
for a disk, such as with the DROP AFTER clause of the SQL ALTER DISKGROUP
OFFLINE DISK statement, that disk repair time overrides the failure group repair
time.
This attribute can only be set when altering a disk group and is only applicable to
normal and high redundancy disk groups.
For information about failure group repair time, see "Oracle ASM Fast Mirror Resync
(page 4-34)".
See Also:
Oracle Exadata documentation
PHYS_META_REPLICATED
This disk group attribute tracks the replication status of a disk group. When the Oracle
ASM compatibility of a disk group is advanced to 12.1 or higher, the physical
metadata of each disk is replicated. This metadata includes the disk header, free space
table blocks, and allocation table blocks. The replication is performed online
asynchronously. This attribute value is set to true by Oracle ASM if the physical
metadata of every disk in the disk group has been replicated.
This disk group attribute is only defined in a disk group with the Oracle ASM disk
group compatibility (COMPATIBLE.ASM) set to 12.1 and higher. This attribute is
read-only and is intended for information only. A user cannot set or change its value.
The values are either true or false.
SECTOR_SIZE
This attribute specifies the sector size for disks in a disk group and can only be set
when creating a disk group.
For information about the SECTOR_SIZE attribute, see "Specifying the Sector Size for
Drives (page 4-11)".
STORAGE.TYPE
This disk group attribute specifies the type of the disks in the disk group. The possible
values are AXIOM, ZFSSA, and OTHER. If the attribute is set to AXIOM or ZFSSA, then
all disks in the disk group must be of that type. If the attribute is set to OTHER, then
any types of disks can be in the disk group.
If the STORAGE.TYPE disk group attribute is set to AXIOM or ZFSSA, then
functionality for Hybrid Columnar Compression (HCC) can be enabled for Pillar
Axiom or ZFS storage.
Note:
See Also:
Oracle Database Concepts for more information about Hybrid Columnar
Compression. Hybrid Columnar Compression is a feature of certain Oracle
storage systems.
THIN_PROVISIONED
This attribute enables or disables the functionality to discard unused storage space
after a disk group rebalance is completed. The attribute value can be true or false.
The default value is false.
Storage vendor products that support thin provisioning have the capability to reuse
the discarded storage space for a more efficient overall physical storage utilization.
Note:
For information about disk group rebalancing, refer to "Tuning Rebalance Operations
(page 4-23)".
• Creating Disk Groups for Data and Fast Recovery Area (page 4-9)
• Storing Oracle Cluster Registry and Voting Files in Oracle ASM Disk Groups
(page 4-13)
Note:
Oracle does not recommend using identifiers for database object names that
must be quoted. While these quoted identifiers may be valid as names in the
SQL CREATE statement, such as CREATE DISKGROUP "1DATA", the names
may not be valid when using other tools that manage the database object. For
more information about naming database objects, refer to Oracle Database SQL
Language Reference.
For Oracle ASM to mirror files, specify the redundancy level as NORMAL
REDUNDANCY (2-way mirroring by default for most file types) or HIGH
REDUNDANCY (3-way mirroring for all files). Specify EXTERNAL REDUNDANCY if
you do not want mirroring by Oracle ASM. For example, you might choose
EXTERNAL REDUNDANCY to use storage array protection features.
After a disk group is created, you cannot alter the redundancy level of the disk
group. To change the redundancy level, you must create another disk group with
the appropriate redundancy and then move the files to the new disk group.
Oracle recommends that you create failure groups of equal size to maintain space
balance and even distribution of mirror data.
For more information about redundancy levels, refer to "Mirroring_ Redundancy_
and Failure Group Options (page 4-30)".
• Specify the disks that are to be formatted as Oracle ASM disks belonging to the
disk group.
The disks can be specified using operating system dependent wildcard characters
in search strings that Oracle ASM then uses to find the disks. You can specify
names for the disks with the NAME clause or use the system-generated names.
Note:
A disk cannot belong to multiple disk groups.
The Oracle ASM instance ensures that any disk in a newly created disk group is
addressable and is not currently a member of another disk group. You must use
FORCE only when adding a disk that was dropped with FORCE. If a disk is dropped
with NOFORCE, then you can add it with NOFORCE. For example, a disk might have
failed and was dropped from its disk group. After the disk is repaired, it is no longer
part of any disk group, but Oracle ASM still recognizes that the disk had been a
member of a disk group. You must use the FORCE flag to include the disk in a new
disk group. In addition, the disk must be addressable, and the original disk group
must not be mounted. Otherwise, the operation fails.
Note:
Use caution when using the FORCE option to add a previously used disk to a
disk group; you might cause another disk group to become unusable.
The CREATE DISKGROUP statement mounts the disk group for the first time, and
adds the disk group name to the ASM_DISKGROUPS initialization parameter if a server
parameter file is being used. If a text initialization parameter file is being used and you
want the disk group to be automatically mounted at instance startup, then you must
remember to add the disk group name to the ASM_DISKGROUPS initialization
parameter before you shut down and restart the Oracle ASM instance. You can also
create disk groups with Oracle ASM Configuration Assistant (ASMCA). Refer to
"Managing Disk Groups with ASMCA (page 9-5)".
See Also:
The CREATE DISKGROUP SQL statement in the Oracle Database SQL Language
Reference
• AU_SIZE
Specifies the size of the allocation unit for the disk group. For information about
allocation units, see "About Oracle ASM Allocation Units (page 1-7)".
You can view the value of the AU_SIZE disk group attribute in the
ALLOCATION_UNIT_SIZE column of the V$ASM_DISKGROUP view.
• COMPATIBLE.ASM
Determines the minimum software version for any Oracle ASM instance that uses
a disk group. For information about the COMPATIBLE.ASM attribute, see
"COMPATIBLE.ASM (page 4-42)".
• COMPATIBLE.RDBMS
Determines the minimum software version for any database instance that uses a
disk group. For information about the COMPATIBLE.RDBMS attribute, see
"COMPATIBLE.RDBMS (page 4-42)".
• COMPATIBLE.ADVM
Determines whether the disk group can contain Oracle ADVM volumes. For
information about the COMPATIBLE.ADVM attribute, see "COMPATIBLE.ADVM
(page 4-43)".
In Example 4-2 (page 4-10), the fra disk group (typically created for the fast recovery
area) is created with the default disk group attribute values. Names are not specified
for the Oracle ASM disks and failure groups are not explicitly specified. This example
assumes that diskc1 through diskc9 are present in the /devices directory.
Example 4-1 Creating the DATA disk group
CREATE DISKGROUP data NORMAL REDUNDANCY
FAILGROUP controller1 DISK
'/devices/diska1' NAME diska1,
'/devices/diska2' NAME diska2,
'/devices/diska3' NAME diska3,
'/devices/diska4' NAME diska4
FAILGROUP controller2 DISK
'/devices/diskb1' NAME diskb1,
'/devices/diskb2' NAME diskb2,
'/devices/diskb3' NAME diskb3,
'/devices/diskb4' NAME diskb4
ATTRIBUTE 'au_size'='4M',
'compatible.asm' = '11.2',
'compatible.rdbms' = '11.2',
'compatible.advm' = '11.2';
Oracle Cluster Registry and Voting Files in Oracle ASM Disk Groups
(page 4-13)"
2. After Oracle Restart is installed, use ASMCA to create the fra disk group for
storing the fast recovery area files.
Create the fra disk group to hold the fast recovery area files.
At this time, you can also update the data disk group if necessary. For
information about using ASMCA to create or alter disk groups, see "Managing
Disk Groups with ASMCA (page 9-5)".
You can also create the fra disk group with SQL*Plus or ASMCMD commands
run from the Oracle Restart home. For information, see "Using the CREATE
DISKGROUP SQL Statement (page 4-7)" and "mkdg (page 10-61)".
See Also:
• Oracle Database Backup and Recovery User's Guide for information about
configuring the fast recovery area
3. Install the Oracle Database software with OUI, following the screen prompts.
4. After the database software has been installed, run DBCA to create a database,
following the screen prompts.
During the creation of the database, make the appropriate selections to use Oracle
ASM for storage of data files and fast recovery area files. When prompted:
See Also:
• Oracle Grid Infrastructure Installation Guide for your operating system for
detailed information about installation of Oracle Grid Infrastructure and
Oracle Restart
• Oracle Database Installation Guide for your operating system for detailed
information about installation of an Oracle Database
COMPATIBLE.RDBMS disk group attributes must be set to 11.2 or higher to set the
sector size to a value other than the default value.
Note:
The following validations apply to the sector size disk group attribute.
• Oracle ASM prevents disks of different sector sizes from being added to the same
disk group. This validation occurs during CREATE DISKGROUP, ALTER
DISKGROUP ADD DISK, and ALTER DISKGROUP MOUNT operations.
• If the SECTOR_SIZE attribute is not specified when creating a disk group and
Oracle ASM can verify that all discovered disks have the same sector value, then
that value is assumed for the disk group sector size that is created. If the disks
have different sector sizes, the create operation fails.
• When new disks are added to an existing disk group using the ALTER
DISKGROUP .. ADD DISK SQL statement, you must ensure that the new disks to be
added have the same value as the SECTOR_SIZE disk group attribute. If the new
disks have different sector sizes, the alter operation fails.
• You can determine the sector size value that has either been assumed or explicitly
set for a successful disk group creation by querying the V$ASM_ATTRIBUTE view
or run the ASMCMD lsattr command. You can also query the SECTOR_SIZE
column in the V$ASM_DISKGROUP view.
SQL> SELECT name, value FROM V$ASM_ATTRIBUTE
WHERE name = 'sector_size' AND group_number = 1;
NAME VALUE
--------------------------- -----------------------
sector_size 512
GROUP_NUMBER SECTOR_SIZE
------------ -----------
1 512
• Not all disks support all of the possible SECTOR_SIZE values. The sector size
attribute setting must be compatible with the physical hardware.
As shown in Example 4-3 (page 4-13), you can use the SECTOR_SIZE attribute with
the CREATE DISKGROUP SQL statement to specify the sector size of the disk drive on
which the Oracle ASM disk group is located.
See Also:
• Oracle Database SQL Language Reference for information about the disk
group attributes and the CREATE DISKGROUP SQL statement
Storing Oracle Cluster Registry and Voting Files in Oracle ASM Disk Groups
You can store Oracle Cluster Registry (OCR) and voting files in Oracle ASM disk
groups. You can also store a backup of the OCR file in a disk group. Voting files and
OCR are two important components of Oracle Clusterware. Voting files manage
information about node membership. OCR manages cluster and Oracle Real
Application Clusters (Oracle RAC) database configuration information.
A quorum failure group is a special type of failure group that does not contain user
data. Quorum failure groups are used for storing Oracle ASM metadata. A quorum
failure group may also contain voting files if those files are stored in a disk group that
contains a quorum failure group. Additionally, Oracle ASM uses a quorum failure
group to help determine if the disk group can be mounted in the event of the loss of
one or more failure groups.
Because disks in quorum failure groups do not contain user data, a quorum failure
group is not considered when determining redundancy requirements in respect to
storing user data. For information about failure groups, see "Oracle ASM Failure
Groups (page 4-31)".
You can manage and monitor OCR and voting files with CRSCTL and ocrconfig
command-line tools, CREATE and ALTER DISKGROUP SQL statements, and V$ASM
views.
The CRSCTL and ocrconfig commands enable the placement of OCR storage and
Cluster Synchronization Services (CSS) voting files inside the disk groups managed by
Oracle ASM.
The QUORUM and REGULAR keywords in CREATE and ALTER DISKGROUP SQL
statements enable the specification of an additional qualifier for failure groups or disks
when creating or altering a disk group. Note that QUORUM disks (or disks in QUORUM
failure groups) cannot contain user data, while REGULAR disks (or disks in non-
quorum failure groups) do not have this restriction.
You can use these keywords before the keyword FAILGROUP if a failure group is
being explicitly specified. If the failure group is implicitly implied, you can use these
keywords (QUORUM/REGULAR) before the keyword DISK. When failure groups are
explicitly specified, it is an error to specify these keywords (QUORUM/REGULAR)
immediately before the keyword DISK. REGULAR is the default failure group type.
When performing operations on existing disks or failure groups, the qualifier specified
in the SQL must match the qualifier that was specified when the disks or failure
groups were added to the disk group.
Example 4-4 (page 4-15) shows the creation of a disk group with a QUORUM failure
group. For Oracle Clusterware files a minimum of three disk devices or three failure
groups is required with a normal redundancy disk group. A QUORUM failure group is
not considered when determining redundancy requirements in respect to storing user
data. The COMPATIBLE.ASM disk group compatibility attribute must be set to 11.2 or
greater to store OCR or voting files in a disk group.
The FAILGROUP_TYPE column in the V$ASM_DISK or V$ASM_DISK_STAT views
specifies the failure group type. The value for this column is REGULAR for regular
failure groups and QUORUM for quorum failure groups.
The VOTING_FILE column in the V$ASM_DISK or V$ASM_DISK_STAT views
specifies whether a disk contains a voting file. The value for this column is either Y if
the disk contains a voting file or N if not.
The value of USABLE_FILE_MB in V$ASM_DISKGROUP or V$ASM_DISKGROUP_STAT
does not consider any free space that is present in QUORUM disks because that space is
not available for client data files.
For information about V$ASM views, refer to "Views Containing Oracle ASM Disk
Group Information (page 6-1)".
See Also:
• Oracle Database SQL Language Reference for information about the CREATE
DISKGROUP and ALTER DISKGROUP SQL statements
Example 4-4 Using the QUORUM keyword when creating a failure group
CREATE DISKGROUP ocr_data NORMAL REDUNDANCY
FAILGROUP fg1 DISK '/devices/diskg1'
FAILGROUP fg2 DISK '/devices/diskg2'
QUORUM FAILGROUP fg3 DISK '/devices/diskg3'
ATTRIBUTE 'compatible.asm' = '12.1.0.0.0';
• Using the ALTER DISKGROUP SQL Statement to Add Disks to a Disk Group
(page 4-17)
See Also:
The ALTER DISKGROUP SQL statement in the Oracle Database SQL Language
Reference
See Also:
The ALTER DISKGROUP SQL statement in the Oracle Database SQL Language
Reference
Using the ALTER DISKGROUP SQL Statement to Add Disks to a Disk Group
The SQL statements presented in the following example demonstrate the interactions
of disk discovery with the ADD DISK operation.
Assume that disk discovery identifies the following disks in directory /devices:
/devices/diska1 -- member of data1
/devices/diska2 -- member of data1
/devices/diska3 -- member of data1
/devices/diska4 -- member of data1
/devices/diska5 -- candidate disk
/devices/diska6 -- candidate disk
/devices/diska7 -- candidate disk
/devices/diska8 -- candidate disk
You can query the V$ASM_DISK view to display the status of Oracle ASM disks. See
"Views Containing Oracle ASM Disk Group Information (page 6-1)".
The following statement would fail because /devices/diska1 through /devices/
diska4 currently belong to the disk group data1.
ALTER DISKGROUP data1 ADD DISK
'/devices/diska*';
ALTER DISKGROUP statement, each disk is assigned to its own failure group. The
NAME clauses assign names to the disks, otherwise they would have been assigned
system-generated names.
ALTER DISKGROUP data1 ADD DISK
'/devices/diska5' NAME diska5,
'/devices/diska6' NAME diska6,
'/devices/diska7' NAME diska7,
'/devices/diska8' NAME diska8;
The following statement would fail because the search string matches disks that are
contained in other disk groups. Specifically, /devices/diska4 belongs to disk
group data1 and /devices/diskb4 belongs to disk group data2.
ALTER DISKGROUP data1 ADD DISK
'/devices/disk*4';
The power option operates the same as the power option for the ALTER DISKGROUP
REBALANCE statement, except that the power option cannot be set to 0. For
information about the power option in rebalancing a disk group, refer to "Manually
Rebalancing Disk Groups (page 4-21)". For information about the
ASM_POWER_LIMIT initialization parameter, refer to "ASM_POWER_LIMIT
(page 3-10)".
The ALTER DISKGROUP SQL statement with the REPLACE clause includes a WAIT or
NOWAIT option, plus the FORCE option.
The ALTER DISKGROUP diskgroupname RENAME DISKS ALL statement can be run
after the renamedg utility to change the names of the disks in the renamed disk
group. For information about renamedg, refer to "Renaming Disks Groups
(page 4-58)".
When you run the ALTER DISKGROUP diskgroupname RENAME DISKS ALL
statement, any disk name that is not in the format diskgroupname_number is
renamed to that format. Disk names that are already in the diskgroupname_number
format are not changed.
You can only use the RENAME DISK operation when the disk group that contains the
disk is in the MOUNT RESTRICTED state. If any disks in the disk group are offline, then
the RENAME operation fails. If the new disk name exists, then the RENAME operation
fails. You must have SYSASM privileges to rename a disk.
Caution:
If you specify the FORCE clause for the drop operation, the disk is dropped even if
Oracle ASM cannot read or write to the disk. You cannot use the FORCE flag when
dropping a disk from an external redundancy disk group.
Caution:
A DROP FORCE operation leaves data at reduced redundancy until the
subsequent rebalance operation completes. This increases your exposure to
data loss if there is a subsequent disk failure during rebalancing. Use DROP
FORCE with caution.
You can also drop disks from a disk group with ASMCA. Refer to "Managing Disk
Groups with ASMCA (page 9-5)".
The statements in Example 4-6 (page 4-20) demonstrate how to drop disks from the
disk group data1 described in "Using the ALTER DISKGROUP SQL Statement to
Add Disks to a Disk Group (page 4-17)". The first example drops diska5 from disk
group data1. The second example drops diska5 from disk group data1, and also
illustrates how multiple actions are possible with one ALTER DISKGROUP statement.
Example 4-6 Dropping disks from disk groups
ALTER DISKGROUP data1 DROP DISK diska5;
• Databases with data files that are accessed at different rates. A database that
accesses all data files in the same way is unlikely to benefit from Intelligent Data
Placement.
• Disk groups that are more than 25% full. If the disk group is only 25% full, the
management overhead is unlikely to be worth any benefit.
• Disks that have better performance at the beginning of the media relative to the
end. Because Intelligent Data Placement leverages the geometry of the disk, it is
well suited to JBOD (just a bunch of disks). In contrast, a storage array with LUNs
composed of concatenated volumes masks the geometry from Oracle ASM.
The COMPATIBLE.ASM and COMPATIBLE.RDBMS disk group attributes must be set to
11.2 or higher to use Intelligent Data Placement.
Intelligent Data Placement can be managed with the ALTER DISKGROUP ADD or
MODIFY TEMPLATE SQL statements and the ALTER DISKGROUP MODIFY FILE SQL
statement.
• The ALTER DISKGROUP TEMPLATE SQL statement includes a disk region clause
for setting hot/mirrorhot or cold/mirrorcold regions in a template:
ALTER DISKGROUP data ADD TEMPLATE datafile_hot
ATTRIBUTE (
HOT
MIRRORHOT);
• The ALTER DISKGROUP MODIFY FILE SQL statement that sets disk region
attributes for hot/mirrorhot or cold/mirrorcold regions:
ALTER DISKGROUP data MODIFY FILE '+data/orcl/datafile/users.259.679156903'
ATTRIBUTE (
HOT
MIRRORHOT);
When you modify the disk region settings for a file, this action applies to new
extensions of the file, but existing file contents are not affected until a rebalance
operation. To apply the new Intelligent Data Placement policy for existing file
contents, you can manually initiate a rebalance. A rebalance operation uses the
last specified policy for the file extents. For information on the rebalance
operation, see "Manually Rebalancing Disk Groups (page 4-21)".
Oracle ASM Configuration Assistant (ASMCA) supports Intelligent Data Placement
with template creation during disk group alterations. See "Managing Disk Groups
with ASMCA (page 9-5)".
To display information about Intelligent Data Placement regions, see "Viewing Disk
Region Information (page 6-5)" and "iostat (page 10-51)".
You might want to do a manual rebalance operation to control the speed of what
would otherwise be an automatic rebalance operation.
The POWER clause of the ALTER DISKGROUP REBALANCE statement specifies the
degree of parallelism, and thus the speed of the rebalance operation. It can be set to a
minimum value of 0 which halts a rebalancing operation until the statement is either
implicitly or explicitly rerun. A higher value increases the speed of the rebalance
operation.
The default rebalance power is set by the ASM_POWER_LIMIT initialization parameter.
The range of values for the POWER clause is the same for the ASM_POWER_LIMIT
initialization parameter. For information about the ASM_POWER_LIMIT initialization
parameter, refer to "ASM_POWER_LIMIT (page 3-10)".
The power level of an ongoing rebalance operation can be changed by entering the
rebalance statement with a new level.
The ALTER DISKGROUP...REBALANCE command by default returns immediately so
that you can run other commands while the rebalance operation takes place
asynchronously in the background. You can query the V$ASM_OPERATION view for
the status of the rebalance operation.
To cause the ALTER DISKGROUP...REBALANCE command to wait until the
rebalance operation is complete before returning, add the WAIT keyword to the
REBALANCE clause. The wait functionality is especially useful in scripts. The command
also accepts a NOWAIT keyword, which invokes the default behavior of conducting the
rebalance operation asynchronously. You can interrupt a rebalance running in wait
mode by typing CTRL+C on most platforms. This causes the command to return
immediately with the message ORA-01013: user requested cancel of
current operation, and then continue the rebalance operation asynchronously.
Additional rules for the rebalance operation include the following:
• Oracle ASM can perform one disk group rebalance at a time on a given instance. If
you have initiated multiple rebalances on different disk groups on a single node,
then Oracle processes these operations in parallel on additional nodes if available;
otherwise the rebalances are performed serially on the single node. You can
explicitly initiate rebalances on different disk groups on different nodes in
parallel.
• Rebalancing continues across a failure of the Oracle ASM instance performing the
rebalance.
• The REBALANCE clause (with its associated POWER and WAIT/NOWAIT keywords)
can also be used in ALTER DISKGROUP commands that add, drop, or resize disks.
Note:
The following example manually rebalances the disk group data2. The command
does not return until the rebalance operation is complete.
For more information about rebalancing operations, refer to "Tuning Rebalance
Operations (page 4-23)".
Example 4-9 Manually rebalancing a disk group
ALTER DISKGROUP data2 REBALANCE POWER 5 WAIT;
4211
For more information about rebalancing disk groups, refer to "Manually Rebalancing
Disk Groups (page 4-21)".
SQL> ALTER DISKGROUP data SCRUB DISK DATA_0005 REPAIR POWER HIGH FORCE;
When using ALTER DISKGROUP with the SCRUB option, the following items apply:
• The optional REPAIR option automatically repairs disk corruptions. If the REPAIR
option is not specified, then the SCRUB option only checks and reports logical
corruptions of the specified target.
• The optional POWER value can be set to AUTO, LOW, HIGH, or MAX. If the POWER
option is not specified, the power value defaults to AUTO and the power adjusts to
the optimum level for the system.
• If the optional WAIT option is specified, the command returns after the scrubbing
operation has completed. If the WAIT option is not specified, the scrubbing
operation is added into the scrubbing queue and the command returns
immediately.
• If the optional FORCE option is specified, the command is processed even if the
system I/O load is high or scrubbing has been disabled internally at the system
level.
The scrubbing process is visible in the fields of the V$ASM_OPERATION view while the
scrubbing process is running.
have not yet been assigned to a disk group, have a status of either CANDIDATE or
PROVISIONED. Disks that previously belonged to a disk group and were dropped
cleanly from the disk group have a status of FORMER.
The PROVISIONED status implies that an additional platform-specific action has been
taken by an administrator to make the disk available for Oracle ASM. For example, on
Windows computers, the administrator might have used asmtool or asmtoolg to
stamp the disk with a header. For example, on Linux computers, the administrator
might have used Oracle ASM Filter Driver or ASMLIB to prepare the disk for Oracle
ASM.
Example 4-10 (page 4-26) shows a SQL query on V$ASM_DISK that displays the
header status of a group of disks.
See Also:
Oracle Database Reference for information about the header status of an Oracle
ASM disk that is displayed in the V$ASM_DISK view
• Oracle ASM can discover up to 10,000 disks. That is, if more than 10,000 disks
match the ASM_DISKSTRING initialization parameter, then Oracle ASM discovers
only the first 10,000.
• Oracle ASM only discovers disk partitions. Oracle ASM does not discover
partitions that include the partition table.
• From the perspective of the installation, candidate disks are those that have the
CANDIDATE, PROVISIONED, or FORMER header status. These disks with a
CANDIDATE, PROVISIONED, or FORMER status can be added to Oracle ASM disk
groups without using the FORCE flag.
• When adding a disk, the FORCE option must be used if Oracle ASM recognizes
that the disk was managed by Oracle. Such a disk appears in the V$ASM_DISK
view with a status of FOREIGN. In this case, you can only add the disk to a disk
group by using the FORCE keyword.
• MEMBER disks can usually be added to a disk group by specifying the FORCE flag,
if the disks are not part of a currently mounted disk group.
• Normal redundancy disk group - It is best to have enough free space in your disk
group to tolerate the loss of all disks in one failure group. The amount of free
space should be equivalent to the size of the largest failure group.
• High redundancy disk group - It is best to have enough free space to cope with
the loss of all disks in two failure groups. The amount of free space should be
equivalent to the sum of the sizes of the two largest failure groups.
Note:
When you lose multiple disks from multiple failure groups, then you could
lose both the primary and the redundant copies of your data. In addition, if
you do not have enough capacity to restore redundancy, then Oracle ASM can
continue to operate. However, if another disk fails, then the system may not
be able to tolerate additional failures.
– A normal redundancy disk group with more than two REGULAR failure
groups
The value is the total raw space for all of the disks in the largest failure group.
The largest failure group is the one with the largest total raw capacity. For
example, if each disk is in its own failure group, then the value would be the
size of the largest capacity disk.
– A high redundancy disk group with more than three REGULAR failure
groups
The value is the total raw space for all of the disks in the two largest failure
groups.
See Also:
Oracle Exadata documentation for information about calculating
REQUIRED_MIRROR_FREE_MB on Oracle Exadata systems.
Oracle Database Appliance documentation for information about calculating
REQUIRED_MIRROR_FREE_MB on Oracle Database Appliance systems.
• USABLE_FILE_MB indicates the amount of free space, adjusted for mirroring, that
is available for new files to restore redundancy after a disk failure.
USABLE_FILE_MB is computed by subtracting REQUIRED_MIRROR_FREE_MB
from the total free space in the disk group and then adjusting the value for
mirroring. For example, in a normal redundancy disk group where by default the
mirrored files use disk space equal to twice their size, if 4 GB of actual usable file
space remains, then USABLE_FILE_MB equals roughly 2 GB. You can then add a
file that is up to 2 GB. For information about negative values of
USABLE_FILE_MB, refer to "Negative Values of USABLE_FILE_MB (page 4-30)".
Note:
The values in the TOTAL_MB and FREE_MB columns best describe space usage
when you do not configure Oracle ASM mirroring, that is, when you use
external redundancy.
The results from the following query show capacity metrics for a normal redundancy
disk group that consists of six 1 GB (1024 MB) disks, each in its own failure group:
SQL> SELECT name, type, total_mb, free_mb, required_mirror_free_mb,
usable_file_mb FROM V$ASM_DISKGROUP;
• Depending on the value of FREE_MB, you may not be able to create new files.
• Oracle ASM Recovery from Read and Write I/O Errors (page 4-33)
Table 4-1 Mirroring options for Oracle ASM disk group types
The redundancy level controls how many disk failures are tolerated without
dismounting the disk group or losing data. Each file is allocated based on its own
redundancy, but the default comes from the disk group.
The redundancy levels are:
• External redundancy
Oracle ASM does not provide mirroring redundancy and relies on the storage
system to provide RAID functionality. Any write error causes a forced dismount
of the disk group. All disks must be located to successfully mount the disk group.
• Normal redundancy
Oracle ASM provides two-way mirroring by default, which means that all files are
mirrored so that there are two copies of every extent. A loss of one Oracle ASM
disk is tolerated. You can optionally choose three-way or unprotected mirroring.
A file specified with HIGH redundancy (three-way mirroring) in a NORMAL
redundancy disk group provides additional protection from a bad disk sector, not
protection from a disk failure.
• High redundancy
Oracle ASM provides triple mirroring by default. A loss of two Oracle ASM disks
in different failure groups is tolerated.
If there are not enough online failure groups to satisfy the file mirroring (redundancy
attribute value) specified in the disk group file type template, Oracle ASM allocates as
many mirrors copies as possible and subsequently allocates the remaining mirrors
when sufficient online failure groups are available. For information about specifying
Oracle ASM disk group templates, see "Managing Disk Group Templates
(page 5-19)".
Failure groups enable the mirroring of metadata and user data. System reliability can
diminish if your environment has an insufficient number of failure groups.
This section contains these topics:
group containing just that disk, except for disk groups containing disks on Oracle
Exadata cells.
A normal redundancy disk group must contain at least two failure groups. A high
redundancy disk group must contain at least three failure groups. However, Oracle
recommends using more failure groups. A small number of failure groups, or failure
groups of uneven capacity, can create allocation problems that prevent full use of all of
the available storage.
Oracle recommends a minimum of three failure groups for normal redundancy disk
groups and five failure groups for high redundancy disk groups to maintain the
necessary number of copies of the Partner Status Table (PST) and to ensure robustness
with respect to storage hardware failures.
In the event of a system failure, three failure groups in a normal redundancy disk
group allow a comparison among three PSTs to accurately determine the most up to
date and correct version of the PST, which could not be done with a comparison
between only two PSTs. Similarly with a high redundancy disk group, if two failure
groups are offline, then Oracle ASM would be able to make a comparison among the
three remaining PSTs.
If configuring an extra failure group presents a problem with storage capacity
management, then a quorum failure group can be used as the extra failure group to
store a copy of the PST. A quorum failure group does not require the same capacity as
the other failure groups.
Failure groups can be specified as regular or quorum failure groups. For information
about quorum failure groups, see "Storing Oracle Cluster Registry and Voting Files in
Oracle ASM Disk Groups (page 4-13)".
See Also:
• The disks are first taken offline and then automatically dropped. In this case, the
disk group remains mounted and serviceable. In addition, because of mirroring,
all of the disk group data remains accessible. After the disk drop operation, Oracle
ASM performs a rebalance to restore full redundancy for the data on the failed
disks.
• The entire disk group is automatically dismounted, which means loss of data
accessibility.
• Each disk in a disk group can belong to only one failure group.
• Failure groups should all be of the same size. Failure groups of different sizes may
lead to reduced availability.
• Oracle ASM requires at least two failure groups to create a normal redundancy
disk group and at least three failure groups to create a high redundancy disk
group.
• If the write to the same location succeeds, then the underlying allocation unit
(sector) is deemed healthy. This might be because the underlying disk did its own
bad block reallocation.
• If the write fails, Oracle ASM attempts to write the extent to a new allocation unit
on the same disk. If this write succeeds, the original allocation unit is marked as
unusable. If the write fails, the disk is taken offline.
One unique benefit on Oracle ASM based mirroring is that the database instance is
aware of the mirroring. For many types of logical corruptions such as a bad checksum
or incorrect System Change Number (SCN), the database instance proceeds through
the mirror side looking for valid content and proceeds without errors. If the process in
the database that encountered the read can obtain the appropriate locks to ensure data
consistency, it writes the correct data to all mirror sides.
When encountering a write error, a database instance sends the Oracle ASM instance a
disk offline message.
• If database can successfully complete a write to at least one extent copy and
receive acknowledgment of the offline disk from Oracle ASM, the write is
considered successful.
• If the write to all mirror side fails, database takes the appropriate actions in
response to a write error such as taking the tablespace offline.
When the Oracle ASM instance receives a write error message from a database
instance or when an Oracle ASM instance encounters a write error itself, the Oracle
ASM instance attempts to take the disk offline. Oracle ASM consults the Partner Status
Table (PST) to see whether any of the disk's partners are offline. If too many partners
are offline, Oracle ASM forces the dismounting of the disk group. Otherwise, Oracle
ASM takes the disk offline.
The ASMCMD remap command was introduced to address situations where a range
of bad sectors exists on a disk and must be corrected before Oracle ASM or database
I/O. For information about the remap command, see "remap (page 10-66)".
Note:
To use this feature, the disk group compatibility attributes must be set to 11.1
or higher. For more information, refer to "Disk Group Compatibility
(page 4-41)".
Any problems that make a failure group temporarily unavailable are considered
transient failures that can be recovered by the Oracle ASM fast mirror resync feature.
For example, transient failures can be caused by disk path malfunctions, such as cable
failures, host bus adapter failures, controller failures, or disk power supply
interruptions.
Oracle ASM fast resync keeps track of pending changes to extents on an offline disk
during an outage. The extents are resynced when the disk is brought back online.
By default, Oracle ASM drops a disk in 3.6 hours after it is taken offline. You can set
the DISK_REPAIR_TIME disk group attribute to delay the drop operation by
specifying a time interval to repair the disk and bring it back online. The time can be
specified in units of minutes (m or M) or hours (h or H). If you omit the unit, then the
default unit is hours. The DISK_REPAIR_TIME disk group attribute can only be set
with the ALTER DISKGROUP SQL statement and is only applicable to normal and high
redundancy disk groups.
If the attribute is not set explicitly, then the default value (3.6h) applies to disks that
have been set to OFFLINE mode without an explicit DROP AFTER clause. Disks taken
offline due to I/O errors do not have a DROP AFTER clause.
The default DISK_REPAIR_TIME attribute value is an estimate that should be
adequate for most environments. However, ensure that the attribute value is set to the
amount of time that you think is necessary in your environment to fix any transient
disk error, and during which you are able to tolerate reduced data redundancy.
The elapsed time (since the disk was set to OFFLINE mode) is incremented only when
the disk group containing the offline disks is mounted. The REPAIR_TIMER column of
V$ASM_DISK shows the amount of time left (in seconds) before an offline disk is
dropped. After the specified time has elapsed, Oracle ASM drops the disk. You can
override this attribute with the ALTER DISKGROUP OFFLINE DISK statement and the
DROP AFTER clause.
Note:
If an offline disk is taken offline for a second time, then the elapsed time is reset and
restarted. If another time is specified with the DROP AFTER clause for this disk, the
first value is overridden and the new value applies. A disk that is in OFFLINE mode
cannot be dropped with an ALTER DISKGROUP DROP DISK statement; an error is
returned if attempted. If for some reason the disk must be dropped (such as the disk
cannot be repaired) before the repair time has expired, a disk can be dropped
immediately by issuing a second OFFLINE statement with a DROP AFTER clause
specifying 0h or 0m.
You can use ALTER DISKGROUP to set the DISK_REPAIR_TIME attribute to a
specified hour or minute value, such as 4.5 hours or 270 minutes. For example:
ALTER DISKGROUP data SET ATTRIBUTE 'disk_repair_time' = '4.5h'
ALTER DISKGROUP data SET ATTRIBUTE 'disk_repair_time' = '270m'
After you repair the disk, run the SQL statement ALTER DISKGROUP ONLINE DISK.
This statement brings a repaired disk group back online to enable writes so that no
new writes are missed. This statement also starts a procedure to copy of all of the
extents that are marked as stale on their redundant copies.
If a disk goes offline when the Oracle ASM instance is in rolling upgrade mode, the
disk remains offline until the rolling upgrade has ended and the timer for dropping
the disk is stopped until the Oracle ASM cluster is out of rolling upgrade mode. See
"Upgrading and Patching Oracle ASM (page 3-29)". Examples of taking disks offline
and bringing them online follow.
The following example takes disk DATA_001 offline and drops it after five minutes.
ALTER DISKGROUP data OFFLINE DISK DATA_001 DROP AFTER 5m;
The next example takes the disk DATA_001 offline and drops it after the time period
designated by DISK_REPAIR_TIME elapses:
ALTER DISKGROUP data OFFLINE DISK DATA_001;
This example takes all of the disks in failure group FG2 offline and drops them after
the time period designated by DISK_REPAIR_TIME elapses. If you used a DROP
AFTER clause, then the disks would be dropped after the specified time:
ALTER DISKGROUP data OFFLINE DISKS IN FAILGROUP FG2;
The next example brings all of the disks in failure group FG2 online:
ALTER DISKGROUP data ONLINE DISKS IN FAILGROUP FG2;
This example brings all of the disks in disk group DATA online:
ALTER DISKGROUP data ONLINE ALL;
Querying the V$ASM_OPERATION view while you run ALTER DISKGROUP ONLINE
statements displays the name and state of the current operation that you are
performing. For example, the following SQL query shows values in the PASS column
during an online operation.
SQL> SELECT GROUP_NUMBER, PASS, STATE FROM V$ASM_OPERATION;
The ASMCMD online command has a power option to specify the power for the
online operation. The SQL ALTER DISKGROUP REPLACE DISK statement also has the
power option.
The ASMCMD chdg command provides the replace option in addition to the add
and drop tags. The ASMCMD mkdg command has an additional time parameter (-t)
to specify the time to offline a failure group.
See Also:
Note:
If you do not specify failure groups for a disk group, each disk in the disk
group belongs to its own failure group. Oracle does not recommend that you
configure multiple preferred read failure groups in a disk group for an Oracle
ASM instance. For any given instance, if you specify multiple failure groups in
the same disk group as preferred read, a warning message is written to the
alert log.
See Also:
This view displays disk I/O statistics for each Oracle ASM client. You can also query
the V$ASM_DISK_IOSTAT view on a database instance. However, this query only
shows the I/O statistics for the database instance. In general, optimal preferred read
extended cluster configurations balance performance with disk group availability.
See Also:
Oracle Database Reference for details about the V$ASM* dynamic performance
views
• Disks in a given disk group should have similar size and performance
characteristics. If you have several different types of disks in terms of size and
performance, then create several disk groups that contain similar characteristics.
• Create separate disk groups for your database files and fast recovery area for
backup files. This configuration allows fast recovery should a disk group failure
occur.
For information about creating disk groups for a new installation, refer to "Creating
Disk Groups for a New Oracle Installation (page 4-10)".
• 511 disk groups in a storage system for Oracle Database 12c Release 1 or later
• 4 PB maximum storage for each Oracle ASM disk with the allocation unit (AU)
size equal to 1 MB
• 8 PB maximum storage for each Oracle ASM disk with the AU size equal to 2 MB
• 16 PB maximum storage for each Oracle ASM disk with the AU size equal to 4 MB
• 32 PB maximum storage for each Oracle ASM disk with the AU size equal to 8 MB
• 4 PB maximum storage for each Oracle ASM disk with the AU size equal to 1 MB
• 8 PB maximum storage for each Oracle ASM disk with the AU size equal to 2 MB
• 16 PB maximum storage for each Oracle ASM disk with the AU size equal to 4 MB
• 32 PB maximum storage for each Oracle ASM disk with the AU size equal to 8 MB
• External redundancy: 16 TB
Note:
Oracle Database supports data file sizes up to 128 TB depending on the file
system. In addition, Oracle Database has a file size limit that is dependent on
the DB_BLOCK_SIZE initialization parameter.
For information about Oracle ASM disk group compatibility attributes, see "Disk
Group Compatibility (page 4-41)". For information about Oracle ASM file size limits,
see Table 4-5 (page 4-49).
The compatibility attributes are not set to zero releases, such as 11.0 or 12.0 or any
value with all zeroes following the first dot.
You can set and update disk group attributes with the ASMCMD setattr command.
For information about the ASMCMD setattr command, see "setattr (page 10-67)".
Note:
• The disk group compatibility settings can only be advanced; you cannot
revert to a lower compatibility setting. See "Reverting Disk Group
Compatibility (page 4-46)".
COMPATIBLE.ASM
The value for the disk group COMPATIBLE.ASM attribute determines the minimum
software version for an Oracle ASM instance that can use the disk group. This setting
also affects the format of the data structures for the Oracle ASM metadata on the disk.
The format of other file contents is determined by Oracle ASM Dynamic Volume
Manager (Oracle ADVM) and the database instance.
For Oracle ASM 12c, 12.1 is the default setting for the COMPATIBLE.ASM attribute
when using ASMCA. The default setting is 10.1 when using the SQL CREATE
DISKGROUP statement and the ASMCMD mkdg command.
COMPATIBLE.RDBMS
The value for the disk group COMPATIBLE.RDBMS attribute determines the minimum
COMPATIBLE database initialization parameter setting for any database instance that
is allowed to use the disk group. Before advancing the COMPATIBLE.RDBMS attribute,
ensure that the values for the COMPATIBLE initialization parameter for all of the
databases that access the disk group are set to at least the value of the new setting for
COMPATIBLE.RDBMS.
For example, if the COMPATIBLE initialization parameters of the databases are set to
either 11.2 or 12.1, then COMPATIBLE.RDBMS can be set to any value between 10.1
and 11.2 inclusively.
For Oracle ASM 12c, 10.1 is the default setting for the COMPATIBLE.RDBMS attribute
when using the SQL CREATE DISKGROUP statement, the ASMCMD mkdg command,
and ASMCA.
Note:
The database initialization parameter COMPATIBLE enables you to use a new
release of Oracle Database, while at the same time guaranteeing backward
compatibility with an earlier release. See Oracle Database Reference for more
information about the COMPATIBLE initialization parameter.
COMPATIBLE.ADVM
The value for the disk group COMPATIBLE.ADVM attribute determines whether the
disk group can contain Oracle ADVM volumes. The value must be set to 11.2 or
higher. Before setting this attribute, the COMPATIBLE.ASM value must be 11.2 or
higher. Also, the Oracle ADVM volume drivers must be loaded in the supported
environment.
By default, the value of the COMPATIBLE.ADVM attribute is empty until set.
For more information about Oracle ADVM, see "Overview of Oracle ASM Dynamic
Volume Manager (page 11-39)".
Note:
Advancing the values for disk group compatibility attributes is an irreversible
operation. See "Reverting Disk Group Compatibility (page 4-46)".
See Also:
Oracle Database SQL Language Reference for more information about the disk
group compatibility SQL statements
These are some possible combinations of Oracle ASM and database releases:
• The database release is Oracle Database 10g Release 1 (10.1) and the Oracle ASM
release is 11.2. COMPATIBLE.ASM is set to 11.2 and COMPATIBLE.RDBMS is set
to 10.1 for a disk group.
The disk group features enabled for this combination of attribute settings are
shown in Table 4-3 (page 4-47).
The following example creates a normal redundancy disk group data1 with the
Oracle ASM compatibility set to 12.1 and the RDBMS compatibility set to the default
(the COMPATIBLE.RDBMS default is less than or equal to 12.1):
CREATE DISKGROUP data1 DISK '/dev/sd*'
ATTRIBUTE 'compatible.asm' = '12.1';
The following example creates a normal redundancy disk group data2 with the ASM,
RDBMS, and ADVM compatibility set to 12.1:
CREATE DISKGROUP data2 DISK '/dev/sd*'
ATTRIBUTE 'compatible.asm' = '12.1', 'compatible.rdbms' = '12.1',
'compatible.advm' = '12.1';
See Also:
• Oracle Database SQL Language Reference for information about disk group
attributes
1. If the Oracle ASM SPFILE is in the disk group, move this SPFILE out of the disk
group:
2. If the OCR and voting files are in the disk group, move them out of this disk
group.
See Also:
The Oracle Clusterware Administration and Deployment Guide for information
about administering OCR and voting files
4. Create a new disk group using SQL CREATE DISKGROUP specifying the previous
values for the disk group attribute settings.
For information about creating a disk group, see "Using the CREATE
DISKGROUP SQL Statement (page 4-7)".
5. Move or restore the database files into the newly created disk group using either
the ALTER DATABASE MOVE DATAFILE SQL statement or Recovery Manager
(RMAN).
For information about moving data files between disk groups, refer to "Moving
Data Files Between Disk Groups With ALTER DATABASE (page 5-10)".
For information about moving database files with RMAN, refer to "Moving Data
Files Between Oracle ASM Disk Groups Using RMAN (page 8-9)".
See Also:
Oracle Database Administrator's Guide for information about using the ALTER
DATABASE MOVE DATAFILE SQL statement to move data files between Oracle
ASM disk groups.
6. Drop the disk group with the advanced disk group compatibility settings using
SQL DROP DISKGROUP INCLUDING CONTENTS to remove the disk group and its
contents.
This SQL statement also removes any Oracle ACFS file system and its contents.
For information about dropping a disk group, see "Dropping Disk Groups
(page 4-57)".
Table 4-3 Oracle ASM features enabled by disk group compatibility attribute settings
OCR and voting files in a disk group >= 11.2 n/a n/a
Sector size set to nondefault value >= 11.2 >= 11.2 n/a
Oracle ASM File Access Control >= 11.2 >= 11.2 n/a
Table 4-3 (Cont.) Oracle ASM features enabled by disk group compatibility attribute settings
Greater than 2 TB Oracle ASM disks >= 12.1 >= 12.1 n/a
without Oracle Exadata storage
Table 4-4 (page 4-48) describe the Oracle ACFS features enabled by valid
combinations of the disk group compatibility attribute settings.
Table 4-4 Oracle ACFS features enabled by disk group compatibility attribute settings
Storing database data files and redo >= 12.1 n/a >= 12.1
logs in Oracle ACFS file systems (on
Windows the software must be 12.1.0.2
or higher and COMPATIBLE.ADVM must
be set to 12.1.0.2)
Replication and tagging (AIX systems) >= 12.1 n/a >= 12.1
Creation from an existing snapshot and >= 12.1 n/a >= 12.1
conversion of a snapshot
Accelerator volume for Oracle ACFS file >= 12.1 n/a >= 12.1.0.2
system
The following list applies to Table 4-3 (page 4-47) and Table 4-4 (page 4-48).
• If encryption is configured for the first time on Oracle ASM 11g Release 2 (11.2.0.3)
on Linux or if encryption parameters must be changed or a new volume
encryption key must be created following a software upgrade to Oracle ASM 11g
Release 2 (11.2.0.3) on Linux, then the disk group compatibility attributes for ASM
and ADVM must be set to 11.2.0.3 or higher.
• All database files for Oracle Database can be stored in Oracle ACFS starting with
Oracle Database 11g Release 2 (11.2.0.4), except for data files and redo logs in an
Oracle Restart configuration. Using replication or encryption with database files
on Oracle ACFS is not supported. For additional information, including any
limitations or restrictions about storing data files in an Oracle ACFS file system,
refer to "Overview of Oracle ACFS (page 11-1)".
• Oracle ASM and Oracle ACFS features not explicitly listed in Table 4-3 (page 4-47)
and Table 4-4 (page 4-48) do not require advancing the disk group compatibility
attribute settings.
• The value of COMPATIBLE.ASM must always be greater than or equal to the value
of COMPATIBLE.RDBMS and COMPATIBLE.ADVM.
• A value of not applicable (n/a) means that the setting of the attribute has no effect
on the feature.
Table 4-5 Maximum Oracle ASM file sizes for disk groups with AU_SIZE equal to 1
MB
Normal 5.8 TB 23 PB
High 3.9 TB 15 PB
Table 4-5 (page 4-49) shows that Oracle Database 10g can only support a file size of up
to 16 TB for external redundancy. If you advance the COMPATIBILE.RDBMS attribute
to 11.1 or greater, then a file can grow beyond 16 TB. However, the larger size causes
the file to be unusable in a replicated and disaster recovery site if the disaster recovery
site has a disk group COMPATIBLE.RDBMS setting that is incompatible with the larger
size.
For information about Oracle ASM storage sizes, see "Oracle ASM Storage Limits
(page 4-39)".
See Also:
• Setting Disk Group Attributes for Oracle ASM File Access Control (page 4-51)
• Using SQL Statements to Manage Oracle ASM File Access Control (page 4-52)
For information about managing Oracle ASM File Access Control with ASMCMD
commands, see "ASMCMD File Access Control Commands (page 10-72)".
For information about views that provide details about Oracle ASM file access control,
see "Viewing Oracle ASM File Access Control Information (page 6-4)".
For information about controlling accessing to Oracle ASM instances, see
"Authentication for Accessing Oracle ASM Instances (page 3-46)".
instance. These additional privileges include the ability to modify and delete certain
files, aliases, and user groups.
You can set up user groups to specify the list of databases that share the same access
permissions to Oracle ASM files. User groups are lists of databases and any database
that authenticates AS SYSDBA can create a user group. However, only the creator of a
group can delete it or modify its membership list.
Each Oracle ASM file has three categories of privileges: owner, group, and other. Each
category can have no permission, read-only permission, or read-write permission.
The file owner is usually the creator of the file and can assign permissions for the file
in any of the owner, group, or other categories. The owner can also change the group
associated with the file.
When you create a file, a group is not automatically associated with the file. You must
use the asmcmd chgrp command to set the group manually because Oracle ASM File
Access Control does not have the concept of the primary group of a user.
When administering Oracle ASM File Access Control, Oracle recommends that you
connect as SYSDBA to the database instance that is the owner, or planned owner, of
the files in the disk group.
To set up Oracle ASM File Access Control for files in a disk group, perform the
following steps:
1. Alter a new or existing disk group to set the Oracle ASM File Access Control disk
group attributes.
For a newly-created disk group, you should set the disk group attributes before
creating any files in the disk group.
See "Setting Disk Group Attributes for Oracle ASM File Access Control
(page 4-51)".
2. For files that exist in a disk group before setting the Oracle ASM File Access
Control disk group attributes, you must explicitly set the permissions and
ownership on those existing files.
Ensure that the user exists before setting ownership or permissions on a file. The
file must be closed before setting the ownership or permissions.
See ALTER DISKGROUP SET PERMISSION and ALTER DISKGROUP SET
OWNERSHIP in "Using SQL Statements to Manage Oracle ASM File Access Control
(page 4-52)".
3. Optionally, you can create user groups that are groups of database users that
share the same access permissions to Oracle ASM files.
See ALTER DISKGROUP ADD USERGROUP in "Using SQL Statements to Manage
Oracle ASM File Access Control (page 4-52)".
Setting Disk Group Attributes for Oracle ASM File Access Control
To manage Oracle ASM File Access Control for a disk group, you must set the
ACCESS_CONTROL.ENABLED and ACCESS_CONTROL.UMASK disk group attributes.
You can set the attributes by altering the disk group with the ALTER DISKGROUP SQL
statement or you can set the attributes with the ASMCMD setattr command. For
information about the ASMCMD setattr command, see "setattr (page 10-67)".
When you set up file access control on an existing disk group, the files previously
created remain accessible by everyone, unless you run the ALTER DISKGROUP SET
• ACCESS_CONTROL.ENABLED
This attribute determines whether Oracle ASM File Access Control is enabled for a
disk group.
The value can be true or false. The default is false.
If the attribute is set to true, accessing Oracle ASM files is subject to access
control. If false, any user can access every file in the disk group. All other
operations behave independently of this attribute.
• ACCESS_CONTROL.UMASK
This attribute determines which permissions are masked out on the creation of an
Oracle ASM file for the user that owns the file, users in the same user group, and
others not in the user group. This attribute applies to all files on a disk group.
The values can be combinations of three digits {0|2|6} {0|2|6} {0|2|6}. The
default is 066.
Setting to 0 masks out nothing. Setting to 2 masks out write permission. Setting to
6 masks out both read and write permissions.
Before setting the ACCESS_CONTROL.UMASK disk group attribute, you must set
the ACCESS_CONTROL.ENABLED attribute to true to enable Oracle ASM File
Access Control.
Example 4-11 (page 4-52) shows how to enable Oracle ASM File Access Control for a
disk group using SQL*Plus. In this example, the umask permissions setting is 026
which enables read-write access for the owner (masks out nothing with 0), read access
for users in the group (masks out write permission with 2), and no access to others
(masks out all access with 6) not in the group.
Example 4-11 Setting up Oracle ASM File Access Control
ALTER DISKGROUP data1 SET ATTRIBUTE 'access_control.enabled' = 'true';
ALTER DISKGROUP data1 SET ATTRIBUTE 'access_control.umask' = '026';
Note:
The SQL statements that support disk group access control are:
GROUP_NUMBER OS_NAME
------------ ----------------------------------------------------------------
1 oracle1
1 oracle2
...
creating any files, then you must use the ADD USER clause to add the operating
system user associated with that database to the disk group. Also, you can use this
clause to add the operating system user associated with a database to an existing
disk group immediately after setting the Oracle ASM File Access Control disk
group attributes and before creating new files.
SQL> ALTER DISKGROUP DATA ADD USER 'oracle1';
See Also:
The ALTER DISKGROUP SQL statement in the Oracle Database SQL Language
Reference
Note:
In clustered Oracle ASM environments, if an Oracle ASM instance is not the first
instance to mount the disk group, then using the MOUNT FORCE statement fails. This is
because the disks have been accessed by another instance and the disks are not locally
accessible.
If all disks are available, then using the FORCE option causes the MOUNT command to
fail. This discourages unnecessary and improper use of the feature.
The following example shows how to use the FORCE option to force the mount of the
data1 disk group:
SQL> ALTER DISKGROUP data1 MOUNT FORCE;
See Also:
The Oracle Database SQL Language Reference for additional information about
the ALTER DISKGROUP statement and the FORCE option
failure groups within a disk group. The disk group must be mounted to perform these
checks.
By default, the CHECK DISK GROUP clause verifies all of the metadata directories.
Oracle ASM displays summary errors and writes the details about the errors in an
alert log. The CHECK keyword performs the following operations:
• Cross checks all of the file extent maps and allocation tables for consistency
• Checks that the alias metadata directory and file directory are linked correctly
• Checks that Oracle ASM metadata directories do not have unreachable allocated
blocks
The REPAIR | NOREPAIR clause specifies whether Oracle ASM should attempt to
repair errors that are found during the check. The default is NOREPAIR. Use the
NOREPAIR clause to receive alerts about inconsistencies and to suppress Oracle ASM
from resolving the errors automatically. The following example statement checks for
consistency in the metadata for all disks in the data1 disk group:
ALTER DISKGROUP data1 CHECK ALL;
See Also:
The Oracle Database SQL Language Reference for additional information about
the CHECK clause syntax
After ensuring that none of the files contained in data1 are open, Oracle ASM
rewrites the header of each disk in the disk group to remove Oracle ASM formatting
information. The statement does not specify INCLUDING CONTENTS, so the drop
operation fails if the disk group contains any files.
If an Oracle Automatic Storage Management Cluster File System (Oracle ACFS) file
system is mounted on a volume contained in the disk group, then the file system must
be dismounted. If the file system has been registered, then it must be deregistered. The
INCLUDING CONTENTS clause must be used to drop this disk group. All data in the
file system is destroyed. To view the volumes and mount paths associated with a disk
group, you can query the V$ASM_VOLUME view. For an example of a query on the V
$ASM_VOLUME view, see Example 12-9 (page 12-6). For information about
deregistering and dismounting Oracle ACFS file systems, see "Deregistering_
Dismounting_ and Disabling Volumes and Oracle ACFS File Systems (page 16-20)".
If you cannot mount a disk group but must drop it, you can use the FORCE option of
the DROP DISKGROUP statement. This command enables you to remove the headers on
disks that belong to a disk group that cannot be mounted by any Oracle ASM
instances as shown in the following example:
SQL> DROP DISKGROUP data1 FORCE;
The disk group on which you perform this operation should not be mounted
anywhere in the cluster. When you use the FORCE option, the Oracle ASM instance
does not attempt to verify that a disk group is being used by another Oracle ASM
instance in the same storage subsystem.
Note:
You can also drop disks from a disk group with ASMCA. Refer to "Managing Disk
Groups with ASMCA (page 9-5)".
1. Phase one
This phase generates a configuration file to be used in phase two.
2. Phase two
This phase uses the configuration file to perform the renaming of the disk group.
The syntax is:
renamedg {-help | help=true}
renamedg
[phase={one|two |both}] dgname=diskgroup
newdgname=newdiskgroup [config=configfile]
[asm_diskstring=discoverystring, discoverystring ...]
[clean={true|false}] [check={true|false}]
[confirm={true|false}] [verbose={ true|false}]
[keep_voting_files={true|false}]
• phase={one|two|both}
Specifies the phase to be run. Allowed values are one, two, or both. This
argument is optional. The default is both.
Typically you would run both phases. If a problem occurs during the second
phase, then you can rerun phase two using the generated configuration file.
• dgname=diskgroup
Specifies the name of the disk group to be renamed.
• newdgname=newdiskgroup
Specifies the new name for the disk group.
• config=configfile
Specifies the path to the configuration file to be generated during phase one or
specifies the path to the configuration file to be used during phase two.
This argument is optional. The default configuration file is named
renamedg_config and is located in the directory in which the command is run.
The single quotations may be required on some platforms.
• clean={true|false}
Specifies whether to clean errors that are otherwise ignored. The default is true.
• check={true|false}
Specifies a boolean value that is used in the second phase. If true, then the tool
prints the list of changes that are to be made to the disks. No writes are issued. It
is an optional parameter that defaults to false.
• confirm={true|false}
Specifies a boolean value that is used in the second phase. If false, then the tool
prints the changes that are to be made and seeks confirmation before actually
making the changes. It is an optional value that defaults to false. If check is set
to true, then the value of this parameter is redundant.
• verbose={true|false}
Specifies verbose execution when verbose=true. The default is false.
• keep_voting_files={true|false}
Specifies whether voting files are kept in the renamed disk group. The default is
false which deletes the voting files from the renamed disk group.
Note:
renamedg does not update resources, nor does renamedg update any file
references within the database. Because of this behavior, the original disk
group resource is not automatically deleted after the completion of phase two.
The status of the old disk group resource can be checked with the Oracle
Clusterware Control (CRSCTL) crsctl stat res -t command and then
manually deleted with the Server Control Utility (SRVCTL) srvctl remove
diskgroup command.
Example 4-12 (page 4-60) shows several examples of the use of renamedg. The first
example renames the fra1 disk group to fra2 using a disk string to locate the disks
and the verbose option is enabled. The second example only creates a configuration
file during the completion of phase one of the renamedg operation. The third
example runs phase two of the renamedg operation using a configuration file
generated from a phase one execution of renamedg.
After renaming a disk group, you can rename the disks in the disk group to match the
new disk group name. For example:
SQL> ALTER DISKGROUP fra2 RENAME DISKS ALL;
For information about renaming disks, refer to "Renaming Disks in Disk Groups
(page 4-18)".
Example 4-12 Using renamedg
$ renamedg dgname=fra1 newdgname=fra2 asm_diskstring='/devices/disk*'
verbose=true
This chapter describes how to administer files when you use the Oracle Automatic
Storage Management (Oracle ASM) storage option.
This chapter contains the following topics:
• Creating and Referencing Oracle ASM Files in the Database (page 5-8)
• Managing Alias Names for Oracle ASM File Names (page 5-13)
• Accessing Oracle ASM Files with the XML DB Virtual Folder (page 5-16)
Oracle ASM cannot directly support some administrative file types on disk groups.
These include trace files, audit files, alert logs, export files, tar files, and core files.
Note:
Oracle Automatic Storage Management Cluster File System (Oracle ACFS)
and Oracle ASM Dynamic Volume Manager (Oracle ADVM) extend Oracle
ASM support to include database and application executables, database data
files, 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. See
Introducing Oracle ACFS and Oracle ADVM (page 11-1).
For a description of the system default templates, refer to "Managing Disk Group
Templates (page 5-19)". For an example of the output of the V$ASM_TEMPLATE view,
refer to Example 6-10 (page 6-6). For an example of the output of the ASMCMD
lstmpl command, refer to "lstmpl (page 10-69)".
Note:
• You can find the generated name in database views displaying Oracle file
names, such as V$DATAFILE and V$LOGFILE. You can use this name, or
an abbreviated form of it, if you later must reference an Oracle ASM file in
a SQL statement. As with other Oracle Database file names, Oracle ASM
file names are kept in the control file and the RMAN catalog.
• You can use fully qualified and numeric file names in single-file creation
if you specify the REUSE keyword, as described in "Using Oracle ASM
File Names in SQL Statements (page 5-10)".
• Forward slash (/) and backslash (\) are interchangeable in file names. File
names are case insensitive, but case retentive.
• Creating a Tablespace in Oracle ASM: Using a Data File with an Alias Name
(page 5-7)
• Alias Oracle ASM File Name with Template Form (page 5-7)
• Incomplete Oracle ASM File Name with Template Form (page 5-8)
Table 5-2 (page 5-4) specifies the valid usage for each file name form. If the form is
used for file creation, the table specifies whether the created file is an Oracle Managed
Files (OMF).
Table 5-2 Valid usage for Oracle ASM file name forms
+diskgroup/dbname/filetype/filetypetag.file.incarnation
Where:
• filetype is the Oracle file type and can be one of the file types shown in
Table 5-3 (page 5-5).
• filetypetag is type-specific information about the file and can be one of the
tags shown in Table 5-3 (page 5-5).
Table 5-3 Oracle file types and Oracle ASM file type tags
Oracle ASM File Type Description Oracle ASM File Type Comments
Tag
CONTROLFILE Control files and Current Archive
backup control files Backup Backup
DATAFILE Data files and data tblspname Name of the tablespace into
file copies which the file is added
BACKUPSET Data file and archive spfile?_timestamp spfile? can take one of two
log backup pieces; values: s indicates that the
data file incremental backup set includes the spfile;
backup pieces n indicates that the backup set
does not include the spfile.
timestamp is the time that the
backup is started.
DATAGUARDCONFIG Data Guard db-unique-name Data Guard uses the value of the
configuration file DB_UNIQUE_NAME initialization
parameter.
Table 5-3 (Cont.) Oracle file types and Oracle ASM file type tags
Oracle ASM File Type Description Oracle ASM File Type Comments
Tag
DUMPSET Data Pump dumpset user_obj#_file# Dump set files encode the user
name, the job number that
created the dump set, and the file
number as part of the tag.
XTRANSPORT Data file convert tblspname Name of the tablespace where the
Oracle ASM metadata is added
Oracle Database references database files by their alias file names, but only if you
create the database files with aliases. If you create database files without aliases and
then add aliases later, the database references the files by their fully qualified file
names. The following are examples of how the database uses alias file names:
• Alias file names appear in V$ views. For example, if you create a tablespace and
use an alias file name for the data file, the V$DATAFILE view shows the alias file
name.
• When a control file points to data files and online redo log files, it can use alias file
names.
• The CONTROL_FILES initialization parameter can use the alias file names of the
control files. Database Configuration Assistant (DBCA) creates control files with
alias file names.
Note:
Files created using an alias file name are not considered Oracle Managed Files
and might require manual deletion in the future if they are no longer needed.
For more information about alias file names, see "Managing Alias Names for Oracle
ASM File Names (page 5-13)".
Creating a Tablespace in Oracle ASM: Using a Data File with an Alias Name
Example 5-1 (page 5-7) creates an undo tablespace with a data file that has an alias
name, and with attributes that are set by the user-defined template
my_undo_template. This example assumes that a directory has been created in disk
group data to contain the alias name and that the user-defined template exists.
Because an alias is used when creating the data file, the file is not an Oracle Managed
Files (OMF) file and the file is not automatically deleted when the tablespace is
dropped. To drop the file manually after the tablespace has been dropped, use the
following SQL statement:
ALTER DISKGROUP data DROP FILE '+data/orcl/my_undo_ts';
Note:
Files created using an alias file name with template are not considered Oracle
Managed Files and might require manual deletion in the future if they are no
longer needed.
• Creating Oracle ASM Files Using a Default File Location for Disk Group
Specification (page 5-8)
• Moving Data Files Between Disk Groups With ALTER DATABASE (page 5-10)
• Oracle Database File Mapping for Oracle ASM Files (page 5-11)
Creating Oracle ASM Files Using a Default File Location for Disk Group Specification
Using the Oracle Managed Files feature for operating system files, you can specify a
directory as the default location for the creation of data files, temporary files, redo log
files, and control files. Using the Oracle Managed Files feature for Oracle ASM, you
can specify a disk group, in the form of an incomplete Oracle ASM file name, as the
default location for creation of these files, and additional types of files, including
archived log files. As for operating system files, the name of the default disk group is
stored in an initialization parameter and is used whenever a file specification (for
example, DATAFILE clause) is not explicitly specified during file creation.
The following initialization parameters accept the multiple file creation context form
of Oracle ASM file names as a destination:
• DB_CREATE_FILE_DEST
Specifies the default disk group location in which to create data and temp files.
• DB_CREATE_ONLINE_LOG_DEST_n
Specifies the default disk group location in which to create redo log and control
files.
• DB_RECOVERY_FILE_DEST
Specifies a default disk group for a fast recovery area that contains a copy of the
control file and redo log files if this parameter is specified and
DB_CREATE_ONLINE_LOG_DEST_n and CONTROL_FILES are not specified.
• CONTROL_FILES
Specifies a disk group in which to create control files.
The following initialization parameters accept the multiple file creation context form
of the Oracle ASM file names and Oracle ASM directory names as a destination:
• LOG_ARCHIVE_DEST_n
Specifies a default disk group or Oracle ASM directory as destination for
archiving redo log files
• LOG_ARCHIVE_DEST
Optional parameter to use to specify a default disk group or Oracle ASM directory
as destination for archiving redo log files. Use when specifying only one
destination.
• STANDBY_ARCHIVE_DEST
Relevant only for a standby database. It specifies a default disk group or Oracle
ASM directory that is the location of archive logs arriving from a primary
database. Not discussed in this book. This parameter has been deprecated. See
Oracle Data Guard Concepts and Administration.
The following CREATE TABLESPACE SQL statement illustrates how an Oracle ASM
file, in this case a data file, might be created in a default disk group. This example
assumes that the DB_CREATE_FILE_DEST initialization parameter has been set to
+data.
SQL> CREATE TABLESPACE mytblspace;
Oracle ASM automatically creates and manages the data file for mytblspace on
Oracle ASM disks in the disk group data. File extents are stored using the attributes
defined by the default template for a data file.
See Also:
See Also:
• Oracle Database Administrator's Guide for more information about using the
ALTER DATABASE MOVE DATAFILE SQL statement to move data files
• Oracle Database SQL Language Reference for information about using the
ALTER DATABASE SQL statement.
• "Moving Data Files Between Oracle ASM Disk Groups Using RMAN
(page 8-9)" for information about using RMAN to move data files
between disk groups
Example 5-3 Moving data files online with ALTER DATABASE MOVE DATAFILE
/* Create a new disk group DATA2 using ASMCA, ASMCMD, or SQL */
/* Then create appropriate directories in the DATA2 disk group */
SUBSTR(NAME,1,64)
----------------------------------------------------------------
+DATA/ORCL/DATAFILE/system.258.798707555
+DATA2/ORCL/DATAFILE/example_storage
+DATA/ORCL/DATAFILE/sysaux.257.798707491
+DATA/ORCL/DATAFILE/undotbs1.260.798707621
+DATA/ORCL/DATAFILE/users.259.798707621
• Using File Mapping Views With Oracle ASM Files (page 5-12)
• Using the DBMS_STORAGE_MAP Package With Oracle ASM Files (page 5-13)
See Also:
Oracle Database Administrator's Guide for additional information about Oracle
Database file mapping
• In a cold startup scenario, the Oracle Database has just started and no mapping
operation has been invoked yet. You can execute the
DBMS_STORAGE_MAP.MAP_ALL procedure to build the mapping information for
the entire I/O subsystem associated with the database.
For example, the following command builds mapping information and provides
for 10000 extents:
SQL> EXECUTE DBMS_STORAGE_MAP.MAP_ALL(10000);
• In a warm start scenario where the mapping information has already been built,
you have the option to invoke the DBMS_STORAGE_MAP.MAP_SAVE procedure to
save the mapping information in the data dictionary.
This procedure is invoked in DBMS_STORAGE_MAP.MAP_ALL() by default. This
forces all of the mapping information in the SGA to be flushed to disk. The
DBMS_STORAGE_MAP.MAP_SAVE procedure is invoked in
DBMS_STORAGE_MAP.MAP_ALL() by default.
After you restart the database, use DBMS_STORAGE_MAP.RESTORE() to restore the
mapping information into the SGA. If needed, DBMS_STORAGE_MAP.MAP_ALL() can
be called to refresh the mapping information.
See Also:
See Also:
Oracle Database PL/SQL Packages and Types Reference for information about the
DBMS_STORAGE_MAP package
• Adding an Alias Name for an Oracle ASM File Name (page 5-14)
• Renaming an Alias Name for an Oracle ASM File Name (page 5-14)
• Dropping an Alias Name for an Oracle ASM File Name (page 5-14)
• Dropping Files and Associated Aliases from a Disk Group (page 5-14)
Example 5-7 Dropping an alias name for an Oracle ASM file name
ALTER DISKGROUP data
DROP ALIAS '+data/orcl/datafile/mytable.342.123456789';
• A file created using aliases is not an Oracle Managed File. Consequently, it is not
automatically deleted.
Example 5-9 Dropping a file and alias from a disk group using the system-
generated name
ALTER DISKGROUP data
DROP FILE '+data/orcl/datafile/mytable.342.123456789';
Creating a Directory
Use the ADD DIRECTORY clause of the ALTER DISKGROUP statement to create a
hierarchical directory structure for alias names for Oracle ASM files. Use the slash (/)
or backslash (\) character to separate components of the directory path. The directory
path must start with the disk group name, preceded by a plus sign (+), followed by
any subdirectory names of your choice.
The parent directory must exist before attempting to create a subdirectory or alias in
that directory. A directory must be created below the disk group level.
Example 5-10 (page 5-16) creates a hierarchical directory for disk group data, which
can contain, for example, the alias name +data/orcl/control_file1.
Assuming no subdirectory exists under the directory +data/orcl, the SQL statement
fails in Example 5-11 (page 5-16).
Example 5-10 Creating a new directory
ALTER DISKGROUP data ADD DIRECTORY '+data/orcl';
Renaming a Directory
The RENAME DIRECTORY clause of the ALTER DISKGROUP statement enables you to
rename a directory. System-created directories (those containing system-generated
names) cannot be renamed. The root level (disk group name) cannot be renamed.
Example 5-12 (page 5-16) renames a directory.
Example 5-12 Renaming a directory
ALTER DISKGROUP data RENAME DIRECTORY '+data/mydir'
TO '+data/yourdir';
Dropping a Directory
You can delete a directory using the DROP DIRECTORY clause of the ALTER
DISKGROUP statement. You cannot drop a system-created directory. You cannot drop
a directory containing alias names unless you also specify the FORCE clause.
Example 5-13 (page 5-16) deletes a directory along with its contents.
Example 5-13 Dropping a directory
ALTER DISKGROUP data DROP DIRECTORY '+data/yourdir' FORCE;
Note:
For security reasons, FTP is disabled, by default. This is because the IETF FTP
protocol specification requires that passwords be transmitted in clear text.
Disabling is done by configuring the FTP server port as zero (0). To enable
FTP, set the ftp-port parameter to the FTP port to use, such as 2100.
See Also:
• Oracle XML DB Developer's Guide for information about Oracle XML DB,
including additional ways to configure port numbers for the XML DB
protocol servers
• Oracle Database PL/SQL Packages and Types Reference for information about
the DBMS_XDB package
Inside /sys/asm
The Oracle ASM virtual folder is created by default during XML DB installation. If the
database is not configured to use Oracle ASM, the folder is empty and no operations
are permitted on it.
The Oracle ASM virtual folder contains folders and subfolders that follow the
hierarchy defined by the structure of an Oracle ASM fully qualified file name.
Figure 5-1 (page 5-18) illustrates an example of this hierarchy, which for simplicity,
excludes directories created for aliases.
The folder /sys/asm contains one subfolder for every mounted disk group, and each
disk group folder contains one subfolder for each database that uses the disk group. In
addition, a disk group folder might contain files and folders corresponding to aliases
created by the administrator. Continuing the hierarchy, the database folders contain
file type folders, which contain the Oracle ASM files.
/sys/asm
Disk Groups
DATA RECOVERY
Databases
HR MFG HR MFG
File
Types
• You cannot create hard links to existing Oracle ASM files or directories with APIs
such as DBMS_XDB.LINK.
• You cannot rename (move) an Oracle ASM file to another disk group or to a
directory outside Oracle ASM.
You can use the directory /sys/asm for storing the names of disk groups. You cannot
store other files in this directory. Within the disk group directories under /sys/asm,
such as /sys/asm/DATA, you can only store database files in these sub-directories.
Oracle ASM rejects attempts to store non-database files in these directories.
• COPY_FILE—Reads a file from a source directory and creates a copy of the file in
a destination directory. The source and destination directories can both be in a
local file system or in an Oracle ASM disk group. You can also use this procedure
to copy between a local file system and an Oracle ASM disk group; the copy
operation is valid in either direction.
• PUT_FILE—Reads a local file or Oracle ASM disk group and contacts a remote
database to create a copy of the file in the remote file system.
See Also:
Oracle Database PL/SQL Packages and Types Reference for more information
about the DBMS_FILE_TRANSFER package
Template Attributes
Table 5-4 (page 5-20) shows the permitted striping attribute values and allocation
unit size chunks. These values correspond to the STRIPE column of V
$ASM_TEMPLATE.
Table 5-4 Permitted values for Oracle ASM template striping attribute
Table 5-5 (page 5-20) shows the permitted redundancy values for Oracle ASM
templates. These values correspond to the REDUND column of V$ASM_TEMPLATE.
Table 5-5 Permitted values for Oracle ASM template redundancy attribute
Table 5-6 (page 5-20) shows the initial attribute settings for some default templates.
The type of mirroring associated with the Mirroring column for normal, high, and
external redundancy disk groups is specified in Table 5-5 (page 5-20). For example, the
Mirror column for high redundancy disk groups displays MIRROR in Table 5-6
(page 5-20). In Table 5-5 (page 5-20), the MIRROR value for high redundancy disk
groups corresponds to Three-way mirroring.
For an example of the output of the V$ASM_TEMPLATE view, refer to Example 6-10
(page 6-6).
Table 5-6 (Cont.) Oracle ASM system default templates attribute settings
Table 5-7 (page 5-21) shows the permitted primary and mirror region values for
Oracle ASM templates. These values correspond to the PRIMARY_REGION and
MIRROR_REGION columns of V$ASM_TEMPLATE. For more information about disk
regions, see "Intelligent Data Placement (page 4-20)".
Table 5-7 Permitted values for Oracle ASM template primary and mirror region
attribute
HOT, MIRRORHOT Use the outermost tracks which have greater speed
and higher bandwidth.
When adding a template to a disk group, the attributes are optional. If no redundancy
attribute is specified, then the value defaults to MIRROR for a normal redundancy disk
group, HIGH for a high redundancy disk group, and UNPROTECTED for an external
redundancy disk group. If you do not specify a striping attribute, then the value
defaults to COARSE. If you do not specify a value for the primary or mirror region
attributes, then the value defaults to COLD and MIRRORCOLD respectively.
Example 5-14 (page 5-22) creates a new template named reliable for the normal
redundancy disk group data.
Example 5-15 (page 5-22) creates a new template named unreliable that specifies
UNPROTECTED (no mirroring) for files.
Note:
See Also:
Oracle Database SQL Language Reference for more information about the ALTER
DISKGROUP...ADD TEMPLATE command
This chapter contains information about using dynamic views to display Oracle
Automatic Storage Management (Oracle ASM) information.
See Also:
Oracle Database Reference for information about all of the V$ASM* dynamic
performance views
Table 6-1 Oracle ASM dynamic views for disk group information
View Description
V$ASM_ALIAS Contains one row for every alias present in every disk group
mounted by the Oracle ASM instance.
V$ASM_ATTRIBUTE Displays one row for each attribute defined. In addition to attributes
specified by CREATE DISKGROUP and ALTER DISKGROUP statements,
the view may show other attributes that are created automatically.
Attributes are only displayed for disk groups where
COMPATIBLE.ASM is set to 11.1 or higher.
V$ASM_AUDIT_CLEAN_EVENTS Displays information about the history of audit trail cleanup or purge
events.
V$ASM_AUDIT_CLEANUP_JOBS Displays information about the configured audit trail purge jobs.
V$ASM_AUDIT_LAST_ARCH_TS Displays information about the last archive timestamps set for audit
trail cleanup or purges.
Table 6-1 (Cont.) Oracle ASM dynamic views for disk group information
View Description
V$ASM_CLIENT In an Oracle ASM instance, identifies databases using disk groups
managed by the Oracle ASM instance.
In an Oracle Database instance, contains information about the Oracle
ASM instance if the database has any open Oracle ASM files.
V$ASM_DISK Contains one row for every disk discovered by the Oracle ASM
instance, including disks that are not part of any disk group.
This view performs disk discovery every time it is queried.
V$ASM_DISK_IOSTAT Displays information about disk I/O statistics for each Oracle ASM
client.
In an Oracle Database instance, only the rows for that instance are
shown.
V$ASM_DISKGROUP Describes a disk group (number, name, size related info, state, and
redundancy type).
This view performs disk discovery every time it is queried.
V$ASM_FILE Contains one row for every Oracle ASM file in every disk group
mounted by the Oracle ASM instance.
V$ASM_OPERATION In an Oracle ASM instance, contains one row for every active Oracle
ASM long running operation executing in the Oracle ASM instance.
In an Oracle Database instance, contains no rows.
V$ASM_TEMPLATE Contains one row for every template present in every disk group
mounted by the Oracle ASM instance.
V$ASM_USERGROUP Contains the creator for each Oracle ASM File Access Control group.
V$ASM_USERGROUP_MEMBER Contains the members for each Oracle ASM File Access Control
group.
When querying V$ASM views, the value of the disk group number is not a static value.
When a disk group is mounted, a disk group number is chosen. This number may
change across disk group mounts. A disk group number is not recorded in any
persistent structure, but the current value can be viewed in the GROUP_NUMBER
column of the V$ASM views.
Example 6-8 Viewing Oracle ASM File Access Control information with V$ASM_FILE
SELECT dg.name AS diskgroup, a.name, f.permissions, f.user_number, u.os_name,
f.usergroup_number, ug.name
FROM V$ASM_DISKGROUP dg, V$ASM_USER u, V$ASM_USERGROUP ug, V$ASM_FILE f, V$ASM_ALIAS a
WHERE dg.name = 'FRA' AND dg.group_number = u.group_number AND
u.group_number = ug.group_number AND ug.group_number = f.group_number AND
f.group_number = a.group_number AND
f.usergroup_number = ug.usergroup_number AND f.user_number = u.user_number AND
f.file_number = a.file_number;
22 rows selected.
• Accessing the Oracle Automatic Storage Management Home Page (page 7-2)
• Managing Oracle ASM Users with Oracle Enterprise Manager (page 7-4)
• Managing Oracle ASM File Access Control with Oracle Enterprise Manager
(page 7-21)
• Managing Disk Group Templates with Oracle Enterprise Manager (page 7-23)
• Managing Oracle ASM Filter Driver With Oracle Enterprise Manager (page 7-24)
• Backing Up Oracle ASM Files with Oracle Enterprise Manager (page 7-27)
• Performing Bad Block Recovery with Oracle Enterprise Manager (page 7-27)
See Also:
• A chart that shows the used and free space of each disk group and disk group
internal usage.
• A list of alerts for the Oracle ASM instance and the host computer.
• Links to the Oracle ASM Performance, Disk Groups, Configuration, Users, and
Oracle ACFS pages.
2. Under the Targets drop down menu at the top of the page, select All Targets.
3. In the lists of targets on the All Targets page, click the target for the Oracle ASM
instance.
4. If prompted for Oracle ASM login credentials, then enter the user SYS, provide
the SYS password that was set for the Oracle ASM instance during installation,
and connect as SYSASM. The Oracle Automatic Storage Management home page
displays similar to the page in Figure 7-1 (page 7-2).
For more information about authentication, refer to "Authentication for Accessing
Oracle ASM Instances (page 3-46)".
2. Click the Configuration link at the top of the page to view the Configuration
Parameters page.
4. Click Apply to save your changes or click Revert to discard any changes made on
the page.
2. Click the Users link at the top to view the Users property page.
ASMSNMP is a less privileged user that is primarily used by Oracle Enterprise
Manager to monitor Oracle ASM instances. This account is granted the SYSDBA
privilege. ASMSNMP is created by Oracle ASM Configuration Assistant (ASMCA)
when an Oracle ASM instance is created. For information about creating an Oracle
ASM instance with ASMCA, see "Creating Oracle ASM Instances with ASMCA
(page 9-2)".
See Also:
3. Click Create to add a new Oracle ASM user. When you add users, Oracle
Enterprise Manager displays a Create User page in which you must enter user
login credentials that include the user name, password, and password
confirmation. You can also grant privileges to the new user by selecting privileges
in the Available Privileges column and clicking the right arrow buttons to move
privileges to the Granted Privileges column, or move the privilege by double
clicking it. The available privileges include SYSDBA, SYSOPER, and SYSASM.
Click OK to create the user, Cancel to cancel the procedure, or Show SQL to view
the SQL that Oracle Enterprise Manager uses to create the user.
4. To edit a user's properties, select the box in the Select column of the user to edit,
then click Edit. On the Edit User page, modify the password if needed. You can
also alter the privileges that are assigned to the user by selecting the privilege and
using the right and left arrow buttons to move the privilege from the Granted
Privileges column to the Available Privileges column and vice versa. You can also
move the privilege by double clicking it. Click OK to edit the user properties,
Revert to cancel the procedure, or Show SQL to view the SQL that Oracle
Enterprise Manager uses to edit the user's properties.
5. To delete an Oracle ASM user, select the box in the Select column for the user to
delete, then click Delete. On the confirmation dialog, click Yes to delete the user
or No to stop the user deletion procedure.
For more information about authentication, refer to "Authentication for Accessing
Oracle ASM Instances (page 3-46)".
• Setting and Modifying Content Type for the Disk Group (page 7-18)
• Setting and Modifying the Failure Group Repair Time (page 7-19)
• Setting and Modifying the Thin Provisioned Disk Group Attribute (page 7-20)
• Have disk groups with different redundancy levels (normal, high, or external),
depending on availability requirements and storage system capabilities.
• Separate different classes of storage, such as SCSI drives and SATA drives, into
different disk groups. Disks in a disk group should have similar size and
performance characteristics.
• Store the fast recovery area in a separate disk group from the database.
To create a disk group:
2. Click the Disk Groups link at the top of the page to display the Disk Groups
property page.
3. If you are not logged in, then the Log In page appears and you should log in as
the SYS user, connecting as SYSASM. Provide the SYS password for the Oracle
ASM instance. This password was set up when the Oracle ASM instance was
created.
4. Click Create and Oracle Enterprise Manager displays a Create Disk Group page
similar to the page in Figure 7-4 (page 7-7). The Create Disk Group page
displays a list of Oracle ASM disks that are available to be added to a disk group.
This includes disks with a header status of CANDIDATE, PROVISIONED, or
FORMER, and so on.
Figure 7-4 Oracle Automatic Storage Management Create Disk Group Page
5. To display not only disks that are available to be added to a disk group, but all
Oracle ASM disks, including disks that belong to a disk group (header status =
MEMBER), select All Disks from the Select Member Disks list.
The page is re-displayed with the complete list of Oracle ASM disks that were
discovered by the Oracle ASM instance.
6. Enter the disk name, select a redundancy type (high, normal, or external), and
optionally, you can enter a failure group name.
• Select the box to the left of each disk to be included in the new disk group.
• Optionally, you can enter a disk name, the size of the disk for Oracle ASM to
use, and the failure group name.
• To force the inclusion of a disk in the disk group, select the Force Usage box
for that disk.
Caution:
Selecting the Force Usage box causes the disk to be added to the new disk
group even if the disk belongs to another disk group and has valid database
data. The existing data is then lost. You must be certain that you are selecting
a disk that can legitimately be added to the disk group. See "Creating Disk
Groups (page 4-7)" for a discussion of the FORCE option.
8. Specify a Disk Compatibility value for the disk group to enable your system to
use the latest Oracle ASM features. See "Configuring Disk Group Compatibility
Attributes (page 7-16)".
Note:
For information about disk group compatibility attributes, see "Disk Group
Compatibility (page 4-41)".
9. Click OK to create the disk group or click Cancel to stop the disk group creation
operation. You can also click Show SQL to show the SQL statements that the disk
group creation operation uses.
For more information about creating disk groups, see "Creating Disk Groups
(page 4-7)".
2. Click the Disk Groups link to display the Disk Groups property page.
3. If the Oracle ASM Login page appears, then log in as the SYS user, connecting as
SYSASM. Provide the SYS password for the Oracle ASM instance. This password
was set up when the Oracle ASM instance was created.
4. Click a link in the Name column to select the disk group to which you want to
add disks. The Disk Group page similar to the page in Figure 7-6 (page 7-10)
appears, displaying a list of disks that are in the disk group.
5. Click Add and Oracle Enterprise Manager displays the Add Disks page. This page
displays a list of Oracle ASM disks that are available to be added to the disk
group. This includes disks with the header status of CANDIDATE, PROVISIONED,
or FORMER, and so on.
6. To display not only disks that are available to be added to a disk group, but all of
the Oracle ASM disks, including disks that belong to a disk group (header status =
MEMBER), select All Disks from the Select Member Disks drop-down list on the
right hand side of the page. Oracle Enterprise Manager re-displays the page with
the complete list of Oracle ASM disks that were discovered by the Oracle ASM
instance.
7. Optionally change the rebalance power by selecting a value from the Rebalance
Power list.
• Check the box to the left of each disk to be added to the disk group.
• To force the inclusion of a disk in the disk group, select the Force Reuse box
in the right-most column.
Caution:
The Force Reuse box causes the disk to be added to the disk group even if the
disk belongs to another disk group and has valid database data. The existing
data is then lost. You must be certain that you are selecting a disk that can
legitimately be added to the disk group. Refer to "Adding Disks to a Disk
Group (page 4-17)" for an example of the FORCE option.
• Optionally enter an Oracle ASM disk name for each disk. Oracle ASM
provides a name if you do not.
2. Click the Disk Groups link at the top of the page to view the Disk Groups page.
Oracle Enterprise Manager displays a page similar to the one shown in Figure 7-5
(page 7-10).
Figure 7-5 Oracle Automatic Storage Management Disk Groups List Page
3. Click the name of a disk in the Name column and Oracle Enterprise Manager
displays the General page for the disk group to modify. The General page that
you see should be similar to the one shown in Figure 7-6 (page 7-10).
Figure 7-6 Oracle Automatic Storage Management Disk Group General Page
4. To bring a disk online, select the disk to bring online and click Online. If you
bring a disk online, then Oracle ASM performs the following:
• Oracle ASM performs the online operation on the selected disks. You can
select one or more or disks, or all of the disks to bring online. If you select all
of the disks, then Oracle uses the ALL keyword for this operation. Otherwise,
only the selected disks are affected by the online operation.
• During the online process, Oracle Enterprise Manager first places a disk into
online mode to accommodate write operations. Then Oracle Enterprise
Manager resynchronizes stale data on the disk with the current data until the
disk is fully online for read operations; this is the Oracle ASM fast mirror
resync feature.
• You can also choose the By Failure Group view to perform this operation on a
selected disk group. In this case, Oracle uses the SQL for disks in failure
group.
• You can also select a disk that is online, but Oracle Enterprise Manager
ignores that selection and only brings disks online that were previously
offline.
5. To take a disk offline, select the disk to take offline and click Offline. If you bring
a disk offline, then Oracle ASM performs the following:
• Depending on how much data is stale, the operation may require additional
time to complete. You can monitor the operation's progress using the Pending
Operations link from the Disk Group home page.
• The value that you set for Rebalance Power using ASM_POWER_LIMIT must
be a whole number. The text on the page describes how the value of
Rebalance Power affects the fast mirror resync operation. If the
ASM_POWER_LIMIT is set to 0, then Oracle ASM does not perform automatic
rebalance. For information about rebalance power settings and the
ASM_POWER_LIMIT initialization parameter, refer to "ASM_POWER_LIMIT
(page 3-10)".
• To upgrade a disk
• To reallocate the disk to a different disk group or reallocate the disk to a different
storage system
Note:
Dropping disks from a disk group only logically deletes the disks from the
disk group. It does not delete the disk contents. However, the contents are lost
when you add the disk to a new disk group.
2. Click the Disk Groups link to display the Disk Groups property page.
3. If the Oracle Automatic Storage Management Login page appears, log in as the
SYS user, connecting as SYSASM. Provide the SYS password for the Oracle ASM
instance. This password was set up when the Oracle ASM instance was created.
4. Click a link in the Name column to select the disk group that contains the disks to
be dropped.
The Disk Group page appears.
5. Under the Member Disks heading, in the Select column, select the boxes for the
disks that you plan to drop, and then click Remove.
A confirmation page appears.
6. To change the rebalance power, or to set the FORCE option for dropping disks, do
the following:
Note:
You might need the FORCE option if Oracle ASM cannot read from or write to
the disk. For a discussion of the FORCE option, see "Dropping Disks from Disk
Groups (page 4-19)".
8. Refresh the page until the dropped disks no longer appear in the disk group.
Caution:
You cannot reuse or disconnect the dropped disks until the drop and
rebalance operations are complete. Operations are complete when the
dropped disks no longer appear in the disk group. For more information
about dropping disks, see "Dropping Disks from Disk Groups (page 4-19)".
2. Click the Disk Group tab to display the Disk Groups page.
3. If the Oracle ASM Login page appears, log in as the SYS user, connecting as
SYSASM. Provide the SYS password for the Oracle ASM instance. This password
was set up when the Oracle ASM instance was created.
4. Click the box in the Select column to select a disk group that you plan to drop.
6. To delete the disk group even if it still contains files, click Show Advanced
Options and ensure that the Including Contents option is selected. If the disk
group contains files and the Including Contents option is not selected, then you
cannot drop the disk group.
7. To delete a disk group that belongs to a disk group that you cannot mount, use
the FORCE option in the Advanced Options confirmation dialog. The FORCE
option applies to the DISMOUNTED disk group only. This option enables you to
delete a disk header and mark it as FORMER.
Caution:
Use extreme care when using the FORCE option because the Oracle ASM
instance does not verify whether the disk group is used by any other Oracle
ASM instance before Oracle ASM deletes the disk group.
2. Click the Disk Groups link to view the Disk Groups property page.
3. If the Oracle ASM Login page appears, then log in as the SYS user, connecting as
SYSASM. Provide the SYS password that was set up for Oracle ASM when the
Oracle ASM instance was created.
The Disk Group list page, similar to the page shown in Figure 7-5 (page 7-10), displays
all of the disk groups and their space usage information.
The Usable Free column displays the space in megabytes that is available in the disk
group. The values in this column consider the redundancy level of the disk group, and
exclude the space that the disk group reserves for restoring full redundancy for all
files in the disk group after a disk failure.
For more information, see "Managing Capacity in Disk Groups (page 4-27)" and
"Views Containing Oracle ASM Disk Group Information (page 6-1)"
1. From the Oracle ASM home page click the Disk Groups tab.
2. Select the disk group that has a disk that you must repair and click Dismount.
Click OK on the Dismount confirmation dialog. The State column of the Disk
Group home page should show the Status as DISMOUNTED.
4. Click the box in the Select column next to the disk that you plan to force mount,
then click Mount.
5. On the Disk Mount Confirmation dialog, click the Show Advanced Options link.
6. On the Mount Force Confirmation dialog, select the Force option and click Yes.
You can also click No to cancel the mount force operation and Show SQL to
review the SQL that Oracle Enterprise Manager uses to perform the mount force
operation.
1. On the Automatic Storage Disk Group List page, click a disk group name and
Oracle Enterprise Manager displays the Disk Group home page.
Figure 7-7 Oracle Automatic Storage Management Edit Advanced Attributes Page
Note:
• ASM Compatibility
Specify the value that is the minimum software version required for an Oracle
ASM instance to mount this disk group.
• Database Compatibility
Specify a value that must be less than or equal to the Oracle ASM compatibility.
This is the minimum software version that is required for a database instance to
use the files in the disk group. If the database compatibility value that you use is
greater than the Oracle ASM compatibility, then Oracle Enterprise Manager
displays an error.
Note:
You cannot modify the database compatibility for an Oracle ASM cluster that
is in a rolling migration state.
• ASM Volume
Specify a value that is 11.2 or greater to use the Oracle ASM Dynamic Volume
Manager (Oracle ADVM) functionality. The ASM compatibility of the disk group
must be set to 11.2 or greater to enable Oracle ADVM. Also, the Oracle ADVM
volume drivers must be loaded in the supported environment.
For information about disk group compatibility attributes, see "Disk Group
Compatibility (page 4-41)".
See Also:
See "Accessing the Oracle Automatic Storage Management Home Page (page 7-2)"
for instructions.
2. Select the Disk Groups tab. The Disk Groups page is displayed.
3. Select a disk group. The Disk Group page appears and shows all Member Disks
that belong to the disk group in the Member Disks table.
4. Select a disk, then click Online. The online confirmation page is displayed with the
advance option to specify a power limit.
5. Specify the Power Limit, then click Submit. The disk is set to online with the
specified power limit.
For information about the power option in rebalancing a disk group, refer to
"Manually Rebalancing Disk Groups (page 4-21)". For information about the
ASM_POWER_LIMIT initialization parameter, refer to "ASM_POWER_LIMIT
(page 3-10)".
See "Accessing the Oracle Automatic Storage Management Home Page (page 7-2)"
for instructions.
2. Click the Disk Group tab. The Disk Group page displays.
3. Select a Disk Group. The Disk Group page appears which shows all Member Disks
that belong to the disk group.
Select a new disk of size equal to or greater than the original disk being replaced to
ensure the same level of data protection.
5. Select a new disk and then specify the options, such as Rebalance Power, and then
click OK. The disk is then replaced. Rebalance operations redistribute data evenly
across all drives. Oracle ASM automatically rebalances a disk group whenever
disks are added or dropped. To manually rebalance all disk groups, you must
specify the Rebalance Power. Higher values use more I/O bandwidth and
complete rebalance more quickly. Lower values cause rebalance to take longer, but
use less I/O bandwidth. Values range from 0 to 1024.
For additional information about replacing a disk, refer to "Replacing Disks in Disk
Groups (page 4-18)".
See "Accessing the Oracle Automatic Storage Management Home Page (page 7-2)"
for instructions.
2. Click the Disk Groups tab. The Disk Group page displays.
3. Click Create. In the Disk Resync Attributes section of the Create Disk Group page,
you can select the value Recovery, Data or System from the Content Type drop-
down list. The attribute can be set only if the ASM compatibility is greater than or
equal to 12.1.0.0.
4. To edit the content type for an existing disk group, navigate to the Disk Group
home page by clicking the disk group in the Disk Groups table. The Disk Group
home page displays.
5. Click Edit in the Advanced Attribute Section. The Edit Advanced Attributes for
Disk Group page appears. In the Disk Resync Attributes section, select from the
values Recovery, Data, or System from the Content Type drop-down list.
See "Accessing the Oracle Automatic Storage Management Home Page (page 7-2)"
for instructions.
2. Click the Disk Groups tab. The Disk Groups page displays.
3. Click Create. Specify the repair time for the Failure Group in the Candidate
Member Disks table.
4. To edit an existing Failure Group repair time, from the Disk Group page choose the
Disk Group for the repair time you want to modify. The Disk Group page appears.
5. In the Advanced Attributes section, click Edit. The Edit Advanced Attributes for
Disk Group page displays.
6. In the Disk Resync Attributes section, modify the Failure Group Repair Time, then
click OK. The failure Group Repair Time applies to all the failure groups in the
disk group except those containing only one disk. This value overrides the disk
repair time and is overridden by the actual value provided when a disk is taken
offline.
For additional information about setting and modifying the failure group repair time,
refer to "Oracle ASM Fast Mirror Resync (page 4-34)".
See "Accessing the Oracle Automatic Storage Management Home Page (page 7-2)"
for instructions.
2. Click the Disk Group tab. The Disk Group page displays.
3. Select multiple disk groups then click Rebalance. The Rebalance Disk Groups
Confirmation page appears where you can set the Rebalance Power by displaying
Advanced Options.
4. Set the Rebalance Power value, then click OK. The command to rebalance is
submitted.
See "Accessing the Oracle Automatic Storage Management Home Page (page 7-2)"
for instructions.
2. Click the Disk Group tab. The Disk Groups page displays.
3. Click a Disk Group link. The Disk Group home page General section displays the
number of Pending Operations as a link to the Pending Operations page.
4. Click the link. Information on the rebalance process, along with details on the
number of participating instances, are displayed.
For additional information about rebalancing disk groups, refer to "Tuning Rebalance
Operations (page 4-23)".
See "Accessing the Oracle Automatic Storage Management Home Page (page 7-2)"
for instructions.
2. Click the Disk Groups tab. The Disk Groups page is displayed.
3. Click the Disk Group that contains the Thin Provisioned attribute you want to
change. The Disk Group page displays.
4. In the Advance Attributes section, click Edit. The Edit Advanced Attributes for
Disk Group page displays.
5. In the Thin Provisioning section, select True or False from the Thin Provisioned
field drop-down list. If thin provisioning is enabled, the disk space not in use can
be returned to the array. This attribute can be set only if the ASM compatibility is
greater than or equal to 12.1.0.0.
See "Accessing the Oracle Automatic Storage Management Home Page (page 7-2)"
for instructions.
2. Click the Disk Group tab. The Disk Group page is displayed.
3. Click Scrub. The Scrub Disk Group page is displayed where you can use advanced
options such as repair, power level, wait and force. You can also use the scrub
action on disks and files.
4. Provide the advance option and click OK. A background process is initiated that
scrubs the disk group.
For additional information about scrubbing disk groups, refer to "Scrubbing Disk
Groups (page 4-24)".
See "Accessing the Oracle Automatic Storage Management Home Page (page 7-2)"
for instructions.
2. Click the Disk Group tab. The Disk Group page displays.
3. Click a Disk Group link. The Disk Group General Section displays a Pending
Operation link if a scrubbing process is ongoing.
Figure 7-8 Oracle Automatic Storage Management Disk Group Access Control Home Page
2. Click the Disk Groups link to display the Disk Groups property page.
4. Click the Access Control tab to display the Access Control page.
On this page, you can add, remove, or replace users from a user group and create
or delete user groups. You can also modify the ownership or permission of files.
To access files in a disk group, operating system users must be granted access
privileges to the disk group. After granted access privileges, users can be added as
members of groups. The operating system user who owns the oracle binary for the
database instance is automatically added and cannot be removed.
Oracle ASM File Access Control operations on this page are available when the
files are open.
For more information about Oracle ASM File Access Control, see "Managing Oracle
ASM File Access Control for Disk Groups (page 4-50)".
2. Click the Disk Groups link to display the Disk Groups property page.
5. Click the icons to left on the folders to expand or contract the folders. When you
expand the folders, you can drill down to individual files.
6. You can select a file with the Select box, then click Rename to rename the file,
click Edit to change the properties of a file, or click Delete to remove a file. You
can click the name of a file to display the properties page.
For more information about managing Oracle ASM files, directories, and aliases, see
Administering Oracle ASM Files_ Directories_ and Templates (page 5-1).
2. Click the Disk Groups link to display the Disk Groups property page.
5. You can click Create to add a new template, click Edit to change a page, or click
Delete to remove a template.
If you click Create, then the Create Template page displays and you can enter a
name in the Template Name field. You can also specify a redundancy level,
striped granularity, and extent regions (hot or cold).
For more information about disk group templates, see "Managing Disk Group
Templates (page 5-19)". For information about hot and cold disk regions, see
"Intelligent Data Placement (page 4-20)".
2. On the All Targets page, select any target of type Automatic Storage Management.
3. On the target home page, from Automatic Storage Management menu, select
Configuration Parameters.
4. On the Configuration page, click Manage Disk Provisioning. The ASM Filter
Driver Page is displayed.
5. On the Disks available for Provisioning table, click Discover to discover additional
Oracle ASM disks.
6. In the Discover Disks dialog box, enter additional discovery paths from where you
would like to provision disks. If you are providing more than one path, then ensure
that the values are separated by a comma.
7. Click Ok.
In the Disks available for Provisioning table, all the disks available in the discovery
paths are listed.
2. On the All Targets page, select any target of type Automatic Storage Management.
3. On the target home page, from Automatic Storage Management menu, select
Configuration Parameters.
4. On the Configuration page, click Manage Disk Provisioning. The ASM Filter
Driver Page is displayed.
5. From the Disks available for Provisioning table, select one or more disks, then click
Provision.
6. The Provision Disks dialog box lists all the disks that were selected for
provisioning. You can update the Label info if you want, then click OK.
After provisioning, the Oracle ASM disks appear in the Provisioned Disks table. These
disks display with their new label. For example, if you select /dev/loop3 to be
provisioned with a label LOOP3, then after provisioning the disk displays as
AFD:LOOP3 in the Provisioned Disks table.
After the disks are provisioned, they become eligible to be managed by the Oracle
ASM Filter Driver.
2. On the All Targets page, select any target of type Automatic Storage Management.
3. On the target home page, from Automatic Storage Management menu, select
Configuration Parameters.
4. On the Configuration page, click Manage Disk Provisioning. The ASM Filter
Driver Page is displayed.
5. From the Provisioned Disks table, select one or more disks, then click Release.
6. In the Release Provisioned Disks dialog box, click Yes to release the disks
After the disks are released, they are removed from the Provisioned Disks table. They
instead appear in the Disks available for provisioning table as a candidate eligible to
be provisioned.
3. Determine the view and refresh rate of the performance graphs with the View
and Refresh options. Click Refresh to manually refresh the graphs. The refresh
option has the following two intervals:
1. From the Disk Groups page, select a disk group in the list and click Check.
Figure 7-12 Oracle Automatic Storage Management Check Diskgroup Confirmation Dialog
3. Click Yes to start the disk group check operation or No to cancel it. You can also
select Show SQL to review the SQL statements that the disk group check
operation uses. Click OK to run the check operation as a command. To schedule a
job, click Schedule Job. Optionally, you can modify or reenter the job name and
description. Also provide host credentials and enter the scheduling options by
selecting Immediately or Later and modifying the date and time as needed. Click
OK to schedule the job or Cancel to terminate the job creation process.
1. Create an alias.
2. Create a directory.
For information about migrating data with RMAN, see Performing Oracle ASM Data
Migration with RMAN (page 8-1).
See Also:
For additional information about RMAN, refer to the Oracle Database Backup
and Recovery User's Guide.
command using the Oracle ASM Command utility (ASMCMD). Use the following
procedures to perform bad block recovery:
1. Access the Oracle Automatic Storage Management home page.
See "Accessing the Oracle Automatic Storage Management Home Page (page 7-2)"
for instructions.
3. If you are not logged in, then the Log In page appears and you should log in as the
SYS user, connecting as SYSASM. Provide the SYS password for the Oracle ASM
instance. This password was set up when the Oracle ASM instance was created.
4. Click a disk group name and Oracle Enterprise Manager displays the disk group
home page for that disk group.
5. Click a box in the Select column to the left of a disk in which to recover bad blocks,
then click Recover Bad Blocks.
Note:
You can only recover bad blocks for disk groups that you have configured
with normal or high redundancy; you cannot use this feature for disk groups
that you have configured with external redundancy.
2. You may need to set credentials for the database, Oracle ASM, and host.
If prompted for database login credentials, then enter the user SYS, provide the
SYS password that was set for the Oracle Database instance during installation, and
connect as SYSDBA.
If prompted for Oracle ASM login credentials, then enter the user SYS, provide the
SYS password that was set for the Oracle ASM instance during installation, and
connect as SYSASM. For more information about authentication, see
"Authentication for Accessing Oracle ASM Instances (page 3-46)".
3. On the Migrate Database To ASM: Migration Options Page, which is the first step
in a four-step process, verify the information about the files that you plan to
migrate to Oracle ASM. If the target database is in ARCHIVELOG mode, then you
could perform online or offline migration by selecting the corresponding option.
Otherwise, using offline migration is the default. If you perform an online
migration, then you can suspend the migration by selecting the check box next to
Suspend Migration Job Before Switching Database To ASM.
Additionally, you can enter an e-mail address to which Oracle Enterprise Manager
sends a message to notify you about the suspension. By default on this page, the
Recovery-related Files option is selected. Deselect this option if you do not want to
use it. Also verify the entry for the initialization parameter file. Lastly, the
Parallelize File Copy Operations option is selected by default. Deselect this if you
do not want Oracle Enterprise Manager to perform copy operations in parallel.
Click Next when you complete your selections on this page and Oracle Enterprise
Manager displays the Migrate Database To ASM: Disk Group Options page.
4. On the Disk Group Options page under Database Area, verify the location where
Oracle ASM should create data files, temporary files, redo log files, and control
files. Also verify the fast recovery area where Oracle ASM should create the
recovery-related files such as archived redo log files, backup files, and so on. Also
under fast recovery area, the option for Setup fast recovery area without Migrating
Recovery-related Files is selected by default. If needed, change the selection to
migrate the files. Click Next when you complete your selections on the Disk Group
Options page.
5. If you chose to use a fast recovery area and Oracle Enterprise Manager displays a
warning that the available space on the disk group is less than the specified fast
recovery area size for the migration, then you can either continue by clicking Yes,
or click No to stop the operation and modify your storage.
6. When you continue, Oracle Enterprise Manager displays the Schedule page on
which you can specify a job name and a date and time for the migration job to
begin. Click Next when you have configured your desired settings.
7. Oracle Enterprise Manager displays the Review page on which you can review all
of your selections before beginning your migration operation. To expand the
tablespace details and review them, click the plus (+) sign next to Tablespaces and
Files To Be Migrated. Click Back to modify any of your selections or Submit Job to
begin the migration. Click Cancel to cancel the operation.
Note:
If your migration job fails, then do not start your database until you complete
a recovery operation. Otherwise, you may corrupt your database.
8. After you submit your job, Oracle Enterprise Manager should display a
confirmation dialog indicating that the migration job was successful. Click View
Status on the confirmation dialog to examine the progress of your migration job.
After the migration job has completed, the Oracle ASM links on the Oracle Enterprise
Manager page may not display immediately. You may need to wait for the links to
display after a subsequent refresh.
2. On the Select packaging mode page, select either the Quick or Custom packaging
mode.
3. Depending on the packaging mode chosen, you are presented with various entry
fields and options as you click Next through the wizard.
The wizard guides you through the packaging process using a series of steps that
include:
See Also:
Figure 7-16 (page 7-32) shows the Oracle Flex ASM Members page. On the page, you
can view all the members of the Oracle Flex ASM configuration.
Figure 7-17 (page 7-32) shows the Oracle Flex ASM Topology page. On the page, you
can view the topology of the Oracle Flex ASM configuration.
For information about Oracle Flex ASM, refer to "Managing Oracle Flex ASM
(page 3-16)".
This chapter describes how to migrate data into and out of Oracle Automatic Storage
Management (Oracle ASM) storage with Recovery Manager (RMAN).
This chapter includes the following topics:
• Preparing to Migrate the Database to Oracle ASM Using RMAN (page 8-3)
• Moving Data Files Between Oracle ASM Disk Groups Using RMAN (page 8-9)
The procedures in this chapter cover an Oracle ASM standalone environment on a
Linux platform. File locations and procedures may be different for different Oracle
configurations and on other operating system platforms.
See Also:
• Oracle Database Backup and Recovery User's Guide for complete information
about using RMAN
• Basic Steps of Data Migration to Oracle ASM Using RMAN (page 8-2)
Note:
A foreign archived redo log is a log received by a logical standby database for
a LogMiner session. Foreign archived redo logs cannot be migrated. Unlike
normal archived logs, foreign archived logs have a different internal database
identifier (DBID). For this reason, they cannot be backed up or restored on a
logical standby database.
The fast recovery area is an optional disk location that you can use to store recovery-
related files such as control file and online redo log copies, archived redo log files,
flashback logs, and RMAN backups. Oracle Database and RMAN manage the files in
the fast recovery area automatically. You can specify the disk quota, which is the user-
specified maximum size of the fast recovery area. When the disk quota is reached,
Oracle automatically deletes files that are no longer needed.
Flashback logs are Oracle-generated logs used to perform flashback database
operations. The database can only write flashback logs to the fast recovery area.
Flashback logs are written sequentially and are not archived. They cannot be backed
up to disk.
To migrate the entire database and fast recovery area from alternative storage to
Oracle ASM, perform the following steps:
1. Back up the database and server parameter file, and disable Oracle Flashback
Database.
The Oracle Flashback Database option returns the entire database to a prior
consistent System Change Number (SCN) with the FLASHBACK DATABASE
command in RMAN or SQL. A database flashback is different from traditional
media recovery because it does not involve the restore of physical files, instead
restoring your current data files to past states using saved images of changed data
blocks. This feature uses flashback logs and archived redo logs.
This step is described in "Preparing to Migrate the Database to Oracle ASM Using
RMAN (page 8-3)".
2. Restore files to Oracle ASM, recover the database, and optionally migrate the fast
recovery area to Oracle ASM.
This step is described in "Migrating the Database to Oracle ASM Using RMAN
(page 8-6)".
To migrate files from Oracle ASM to alternative storage, see "Migrating a Database
from Oracle ASM to Alternative Storage (page 8-9)".
• You want to migrate the database to two Oracle ASM disk groups: +DATA for the
database and +FRA for the fast recovery area.
1. If the COMPATIBLE initialization parameter setting for the database is less than
11.0.0, then make any read-only transportable tablespaces read/write.
Read-only transportable tablespaces cannot be migrated because RMAN cannot
back them up.
4. In a new terminal window, start RMAN session and connect as TARGET to the
database to be migrated. Optionally, connect to a recovery catalog. Connect with
SYSBACKUP privileges to enforce the separation of duty security model.
6. If block change tracking is enabled for the database, then optionally make a level 1
incremental backup that you can use later to recover the database copy.
Block change tracking is a database option that causes Oracle to track data file
blocks affected by each database update. The tracking information is stored in a
block change tracking file. When block change tracking is enabled, RMAN uses
the record of changed blocks from the change tracking file to improve incremental
backup performance by only reading those blocks known to have changed,
instead of reading data files in their entirety.
The following example makes an incremental level 1 copy of the level 0 backup
created in the previous step:
RUN
{
ALLOCATE CHANNEL dev1 DEVICE TYPE DISK;
ALLOCATE CHANNEL dev2 DEVICE TYPE DISK;
ALLOCATE CHANNEL dev3 DEVICE TYPE DISK;
ALLOCATE CHANNEL dev4 DEVICE TYPE DISK;
BACKUP INCREMENTAL LEVEL 1
FOR RECOVER OF COPY WITH TAG 'ORA_ASM_MIGRATION'
DATABASE;
}
7. If the database is in ARCHIVELOG mode, and if the database is open, then archive
the online logs.
The following example uses the SQL command to archive the current redo logs:
RMAN> SQL "ALTER SYSTEM ARCHIVE LOG CURRENT";
8. If the database instance is currently using a server parameter file, then back it up.
The following example backs up the server parameter file:
RMAN> BACKUP AS BACKUPSET SPFILE;
10. If Flashback Database is enabled, then disable it and drop any guaranteed restore
points.
Note:
If you are not migrating the fast recovery area, then skip this step.
The following command drops the guaranteed restore point named Q106:
RMAN> SQL "DROP RESTORE POINT Q106";
Note:
1. Follow the steps in "Preparing to Migrate the Database to Oracle ASM Using
RMAN (page 8-3)".
• If the database is using a server parameter file, then restore it to the Oracle
ASM disk group with the following commands, where sid is the SID of the
instance:
RMAN> STARTUP MOUNT;
RMAN> RESTORE SPFILE TO '+DATA/spfilesid.ora';
RMAN> SHUTDOWN IMMEDIATE;
• If the database is not using a server parameter file, then create one in Oracle
ASM. Run the CREATE SPFILE command in SQL*Plus as follows, where
sid is the SID of the database:
SQL> CREATE SPFILE='+DATA/spfilesid.ora' FROM PFILE='?/dbs/initsid.ora';
Note:
If you are not migrating the fast recovery area, then do not change the
DB_RECOVERY_FILE_DEST and DB_RECOVERY_FILE_DEST_SIZE
initialization parameter settings. However, you must set
DB_CREATE_ONLINE_LOG_DEST_n parameter to an Oracle ASM location for
migration of the online redo logs.
If you are not migrating the fast recovery area, then enter the following
commands in SQL*Plus to restart the database instance and set the control file
locations to disk group +DATA:
SQL> STARTUP FORCE NOMOUNT;
SQL> ALTER SYSTEM SET CONTROL_FILES='+DATA','+DATA' SCOPE=SPFILE SID='*';
5. Migrate the control file to Oracle ASM and mount the control file.
Switch to the RMAN terminal to restore the control file. In the following example,
original_cf_name is a control file name in the initialization parameter file
before migration:
RMAN> STARTUP FORCE NOMOUNT;
RMAN> RESTORE CONTROLFILE FROM 'original_cf_name';
RMAN> ALTER DATABASE MOUNT;
7. If the database uses block change tracking or Flashback Database, then enable
these features.
Note:
If you are not migrating the recovery area, then you do not enable Flashback
Database unless you had disabled it previously.
SQL> ALTER DATABASE ENABLE BLOCK CHANGE TRACKING USING FILE '+DATA';
SQL> ALTER DATABASE FLASHBACK ON;
If this is a primary database, then add new log group members in Oracle ASM
and drop the old members. You can use the following PL/SQL script to migrate
the online redo log groups into an Oracle ASM disk group. The PL/SQL script
assumes that the Oracle Managed Files initialization parameters specified in step 3
(page 8-6) "Set Oracle Managed Files initialization parameters to Oracle ASM
locations" in "Migrating the Database to Oracle ASM Using RMAN (page 8-6)" are
set.
11. Optionally, migrate backups and copies in the old fast recovery area to Oracle
ASM as follows:
a. If foreign archived logs exists in the recovery area, then you cannot migrate
them to Oracle ASM. Run the following command at the RMAN prompt:
RMAN> DELETE ARCHIVELOG ALL;
b. Back up archived redo log files, backup sets, and data file copies to Oracle
ASM. For example, run the following command at the RMAN prompt:
RUN
{
ALLOCATE CHANNEL dev1 DEVICE TYPE DISK;
ALLOCATE CHANNEL dev2 DEVICE TYPE DISK;
ALLOCATE CHANNEL dev3 DEVICE TYPE DISK;
ALLOCATE CHANNEL dev4 DEVICE TYPE DISK;
CURSOR rlc IS
SELECT GROUP# GRP, THREAD# THR, BYTES, 'NO' SRL
FROM V$LOG
UNION
SELECT GROUP# GRP, THREAD# THR, BYTES, 'YES' SRL
FROM V$STANDBY_LOG
ORDER BY 1;
stmt VARCHAR2(2048);
BEGIN
FOR rlcRec IN rlc LOOP
IF (rlcRec.srl = 'YES') THEN
stmt := 'ALTER DATABASE ADD STANDBY LOGFILE THREAD ' ||
rlcRec.thr || ' SIZE ' || rlcRec.bytes;
EXECUTE IMMEDIATE stmt;
stmt := 'ALTER DATABASE DROP STANDBY LOGFILE GROUP ' || rlcRec.grp;
EXECUTE IMMEDIATE stmt;
ELSE
stmt := 'ALTER DATABASE ADD LOGFILE THREAD ' ||
rlcRec.thr || ' SIZE ' || rlcRec.bytes;
EXECUTE IMMEDIATE stmt;
BEGIN
stmt := 'ALTER DATABASE DROP LOGFILE GROUP ' || rlcRec.grp;
DBMS_OUTPUT.PUT_LINE(stmt);
EXECUTE IMMEDIATE stmt;
EXCEPTION
WHEN OTHERS THEN
EXECUTE IMMEDIATE 'ALTER SYSTEM SWITCH LOGFILE';
EXECUTE IMMEDIATE 'ALTER SYSTEM CHECKPOINT GLOBAL';
EXECUTE IMMEDIATE stmt;
END;
END IF;
END LOOP;
END;
/
• If the procedure specifies Oracle Managed Files locations, then alter the procedure
to use locations in alternative storage.
• If the FORMAT clause of the BACKUP command specifies an Oracle ASM location,
then change the backup format to an alternative storage location.
• If a file name used in a SQL statement is an Oracle ASM location, then change it to
a file name in the alternative storage location.
Moving Data Files Between Oracle ASM Disk Groups Using RMAN
You may want to move an active data file in an ARCHIVELOG mode database from one
Oracle ASM disk group to another. You can use RMAN BACKUP AS COPY to copy the
data file to the new disk group and SET NEWNAME and SWITCH commands to rename
the data file in the control file.
You can also use the ALTER DATABASE MOVE DATAFILE. SQL statement to move data
files. For information about moving data files online with ALTER DATABASE MOVE
DATAFILE, refer to "Moving Data Files Between Disk Groups With ALTER
DATABASE (page 5-10)".
For this scenario using RMAN, assume that you are using disk groups DATA and
USERDATA and you want to move the data file users.261.689589837 to disk group
USERDATA. Ensure that ARCHIVELOG mode is enabled for the database before
beginning the procedure to move data files.
To move a data file from one Oracle ASM disk group to another disk group using the
RMAN BACKUP AS COPY procedure with the SET NEWNAME and SWITCH commands,
perform the following steps.
3. Back up the data file to the new Oracle ASM disk group.
Run the BACKUP AS COPY command to back up the data file on DATA to
USERDATA.
For example:
RMAN> BACKUP AS COPY
DATAFILE "+DATA/orcl/datafile/users.261.689589837"
FORMAT "+USERDATA";
You could also specify the data file by the data file number and data file type.
For example:
BACKUP AS COPY
DATAFILE 4
FORMAT "+USERDATA";
4. Offline the data file that you intend to move to a new disk group.
Run the following SQL command in the RMAN client. Use two single quotation
marks around the name of the data file, not double quotation marks.
For example:
RMAN> SQL "ALTER DATABASE DATAFILE
''+DATA/orcl/datafile/users.261.689589837'' OFFLINE";
5. Point the control file to the newly created copy of the data file.
Run the SWITCH...TO COPY command in the RMAN client. The TO COPY option
of SWITCH switches the data file to the most recent copy of the data file.
For example:
RMAN> SWITCH DATAFILE "+DATA/orcl/datafile/users.261.689589837" TO COPY;
The output of this command displays the new name of the data file.
8. Delete the data file copy from the original Oracle ASM disk group.
In this scenario, +DATA/orcl/datafile/users.261.689589837 is the
original data file in DATA. Because you issued SET NEWNAME and SWITCH
commands for this data file, the original file is now recorded in the RMAN
repository as a data file copy. Run a DELETE command in the RMAN client to
remove this file.
For example:
RMAN> DELETE DATAFILECOPY "+DATA/orcl/datafile/users.261.689589837";
Do you really want to delete the above objects (enter YES or NO)? y
deleted datafile copy
datafile copy file name=+DATA/orcl/datafile/users.261.689589837 RECID=14
STAMP=689683255
Deleted 1 objects
• If ASMCA detects an Oracle ASM instance that is not running, then ASMCA
prompts whether you want to start the instance.
• If ASMCA detects an Oracle ASM instance from a previous release, then ASMCA
prompts whether you want to upgrade the instance. Oracle recommends that you
respond No this prompt.
An Oracle ASM instance should be upgraded with Oracle Universal Installer
(OUI). OUI automatically defaults to upgrade mode when it detects an Oracle
ASM instance at a previous release level.
To continue the upgrade process with ASMCA, see "Upgrading an Oracle ASM
Instance with ASMCA (page 9-4)". If you need help with upgrading an Oracle
ASM instance, contact Oracle Support Services.
The Instances tab functionality and some menu options of ASMCA are only available
in an Oracle RAC configuration.
To start the command-line ASMCA, see "ASMCA Command-Line Interface
(page 9-8)".
See Also:
You can select the listener with which to register this Oracle ASM instance. Click ASM
Parameters to update the initialization parameters for the Oracle ASM instance.
When you can click ASM Parameters in the Create ASM page, you can update
initialization parameters for an Oracle ASM instance on the Oracle ASM Configuration
Assistant page, as shown in Figure 9-2 (page 9-4).
For information about Oracle ASM instance initialization parameters, see
"Initialization Parameters for Oracle ASM Instances (page 3-2)".
See Also:
Note:
The procedure described in this section upgrades the Oracle ASM instance
only. Oracle Database, and Oracle Enterprise Manager, will not have the latest
features. To upgrade Oracle Database, see Oracle Database Upgrade Guide.
After upgrading an Oracle ASM instance, you can copy or move an Oracle ASM
SPFILE. After copying or moving the SPFILE, you must restart the instance with the
SPFILE in the new location to use that SPFILE. For information, see "About Backing
Up_ Copying_ and Moving an Oracle ASM Initialization Parameter File (page 3-4)".
See Also:
See Also:
Oracle Database Reference for descriptions of disk group information displayed
in the V$ASM_DISKGROUP view
You can right click a selected disk group in the screen to display the configuration
options menu. The menu options enable you to:
• Create an Oracle ACFS file system on the disk group for database use
Figure 9-4 Oracle ASM Configuration Assistant Configure Disk Groups Page
There are additional options for creating a disk group, mounting all disk groups, and
dismounting all disk groups.
Oracle ASM Configuration Assistant enables you to create an Oracle ASM disk group
by clicking Create on the Oracle ASM Configuration Assistant disk group page. The
page for creating a disk group is shown in Figure 9-5 (page 9-7).
Figure 9-5 Oracle ASM Configuration Assistant Create Disk Groups Page
On this page, you can enter a name for the disk group, select the redundancy level,
change the disk discovery path to locate disks in a different directory, identify the
disks to be in the disk group, enter a name for a failure group, and specify if the failure
group is a quorum type.
A quorum failure group is a special type of failure group and disks in these failure
groups do not contain user data and a quorum failure group is not considered when
determining redundancy requirements with respect to user storage. However, a
quorum failure group counts when mounting a disk group. For information about
quorum failure groups, see "Storing Oracle Cluster Registry and Voting Files in Oracle
ASM Disk Groups (page 4-13)".
If Oracle ASM Filter Driver has been configured for your system, you can add Oracle
ASM Filter Driver labels to disks or clear Oracle ASM Filter Driver labels from disks.
For information about Oracle ASM Filter Driver, refer to "Oracle ASM Filter Driver
(page 3-34)".
You can choose to show advanced options when creating a disk group, as shown in
Figure 9-6 (page 9-8). The advanced options section enables you to set additional
options, such as disk group compatibility settings and allocation unit (AU) size. When
you are finished with the create disk group specifications, click OK.
For Oracle ASM 12c, the default disk group compatibility settings are 12.1 for Oracle
ASM compatibility, 10.1 for database compatibility, and no value for Oracle ADVM
compatibility. For information about disk group compatibility attributes, see "Disk
Group Compatibility (page 4-41)". For information about disk discovery, see "Oracle
ASM Disk Discovery (page 4-25)" and "ASM_DISKSTRING (page 3-9)".
Note:
The disk group compatibility settings can only be advanced. You cannot
revert to a lower compatibility setting after you advance the disk group
compatibility settings. See "Overview of Disk Group Compatibility
(page 4-41)"
Figure 9-6 Oracle ASM Configuration Assistant Create Disk Groups - Advanced Options
For more information about managing disk groups, see Administering Oracle ASM
Disk Groups (page 4-1).
Table 9-1 (page 9-8) contains the options available with the asmca command-line
tool.
Option Description
-silent Specifies to run asmca in command-line mode.
Option Description
command_name Specifies the command to run. The command can be any of the
following:
-convertToFlexASM
-configureASM
-upgradeASM
-configureParameter
-deleteASM
-createDiskGroup
-addDisk
-createVolume
-createACFS
See "ASMCA Commands for Instances and Disk Groups
(page 9-9)".
options Specifies the options to run for a command. The options vary
by command. See the individual commands described in
"ASMCA Commands for Instances and Disk Groups
(page 9-9)" for the available options.
The following list describes the options that are common for
multiple commands.
• -help
Displays help for running ASMCA in silent mode.
• -asmsnmpPassword asmsnmp_password
The Oracle ASM monitor user (ASMSNMP) password. This
is optional and only required when creating and migrating
an Oracle ASM instance.
• -sysAsmPassword sysasm_password
The SYSASM password for Oracle ASM instance. This
option is required.
Syntax
asmca -silent
-convertToFlexASM
-asmNetworks interface_name/subnet, interface_name/subnet...
-asmListenerPort ASM_listener_port_number
Table 9-2 (page 9-10) contains the options available with the -convertToFlexASM
command.
Option Description
-asmNetworks Specifies a comma-delimited list of Oracle ASM
networks. Each network is of the form
interface_name/subnet. Specify the subnet,
not the IP address for this option
Examples
To convert Oracle ASM to Oracle Flex ASM:
Example 9-1 Using asmca -silent -convertToFlexASM
asmca -silent
-convertToFlexASM
-asmNetworks eth1/10.10.10.0
-asmListenerPort 1521
Syntax
asmca -silent
-configureASM
[-sysAsmPassword sysasm_password ]
[ -asmsnmpPassword asm_monitor_password ]
[ { -param paramname=paramvalue , ... } ]
[ { -diskString discovery_path
{ -diskGroupName diskgroup
{ -disk disk_path [-diskName disk] |
-diskList disk_list
[-diskSize disk_size_MB]
[-failuregroup failure_group]
[-force|-noforce]
[-quorum|-noquorum] }
[ -redundancy { HIGH | NORMAL | EXTERNAL } ] } ]
[-au_size value]
[-compatible.asm value ]
[-compatible.rdbms value ]
[-compatible.advm value ] }
Table 9-3 (page 9-11) contains the options available with the -configureASM
command.
Option Description
-param paramname=paramvalue , ... Specifies a list of initialization parameters with
values for the Oracle ASM instance.
-diskGroupName diskgroup Specifies the name of the Oracle ASM disk group
to create.
-diskSize disk_size_MB Specifies the size of the disk to use for Oracle ASM
storage.
-redundancy { HIGH | NORMAL | Specifies the redundancy setting for the Oracle
EXTERNAL} ASM disk group.
For additional options that are common to multiple commands, see Table 9-1
(page 9-8).
Examples
To configure an Oracle ASM instance:
Syntax
asmca -silent
-upgradeASM
[-asmsnmpPassword asmsnmp_password]
The options available with the -upgradeASM command are common to multiple
commands. For a description of those options, see Table 9-1 (page 9-8).
Examples
To upgrade an Oracle ASM instance:
Example 9-3 Using asmca -silent -upgradeASM
asmca -silent
-upgradeASM
-asmsnmpPassword my_asmsnmp_passwd
Syntax
asmca -silent
-configureParameter
[{-param paramname=paramvalue , ... }]
[-sysAsmPassword sysasm_password ]
Table 9-4 (page 9-12) contains the options available with the -configureParameter
command.
Option Description
-param paramname=paramvalue , ... Specifies a list of initialization parameters with
values for the Oracle ASM instance.
For additional options that are common to multiple commands, see Table 9-1
(page 9-8).
Examples
To configure parameters for an Oracle ASM instance:
Example 9-4 Using asmca -silent -configureParameter
asmca -silent
-configureParameter
–param
asm_power_limit=3
–sysAsmPassword my_sysasm_password
Syntax
asmca -silent
-deleteASM
[-sysAsmPassword sysasm_password ]
[-force]
[-dropDiskGroups]
Table 9-5 (page 9-13) contains the options available with the -deleteASM command.
Option Description
-force Forces the deletion of an Oracle ASM instance.
For additional options that are common to multiple commands, see Table 9-1
(page 9-8).
Examples
To delete an Oracle ASM instance:
Example 9-5 Using asmca -silent -deleteASM
asmca -silent
-deleteASM
–sysAsmPassword my_sysasm_password
-force
Syntax
asmca -silent
-createDiskGroup
[ -diskString discovery_path ]
{ -diskGroupName diskgroup
{ -disk disk_path [-diskName disk] |
-diskList disk_list
[-diskSize disk_size_MB]
[-failuregroup failure_group]
[-force|-noforce]
[-quorum|-noquorum] }
[ -redundancy { HIGH | NORMAL | EXTERNAL } ] } ]
[-au_size value]
[-compatible.asm value ]
[-compatible.rdbms value ]
[-compatible.advm value ] }
[-sysAsmPassword sysasm_password ]
Table 9-6 (page 9-14) contains the options available with the -createDiskGroup
command.
Option Description
-diskString discovery_path Specifies the Oracle ASM discovery string for
locating disks.
-diskGroupName diskgroup Specifies the name of the Oracle ASM disk group to
create.
-diskSize disk_size_MB Specifies the size of the disk to use for Oracle ASM
storage.
-redundancy { HIGH | NORMAL | Specifies the redundancy setting for the Oracle
EXTERNAL} ASM disk group.
For additional options that are common to multiple commands, see Table 9-1
(page 9-8).
The default disk group compatibility settings are 11.2 for Oracle ASM compatibility,
10.1 for database compatibility, and no value for Oracle ADVM compatibility. For
information about disk group compatibility attributes, see "Disk Group Compatibility
(page 4-41)".
Examples
To create disk groups in an Oracle ASM instance:
Example 9-6 Using asmca -silent -createDiskGroup
$ asmca -silent -createDiskGroup
-diskGroupName mynewdg
-disk '/devices/diske*'
-disk '/devices/diskk*'
-redundancy NORMAL
-au_size 64
-compatible.asm '11.2.0.0.0'
-compatible.rdbms '11.2.0.0.0'
-compatible.advm '11.2.0.0.0'
Syntax
asmca -silent
-addDisk
[ -diskString discovery_path ]
{-diskGroupName diskgroup
{-disk disk_path [-diskName disk] |
-diskList disk_list
[-diskSize disk_size_MB]
[-failuregroup failure_group]
[-force|-noforce]
[-quorum|-noquorum] }
[-sysAsmPassword sysasm_password ]
Table 9-7 (page 9-15) contains the options available with the -addDisk command.
Option Description
-diskString discovery_path Specifies the Oracle ASM discovery string for
locating disks.
-diskGroupName diskgroup Specifies the name of the Oracle ASM disk group to
update.
-diskSize disk_size_MB Specifies the size of the disk to use for Oracle ASM
storage.
For additional options that are common to multiple commands, see Table 9-1
(page 9-8).
Examples
To add disks to an existing disk group:
Example 9-7 Using asmca -silent -addDisk
asmca -silent
-addDisk
-diskGroupName mynewdg
-disk '/devices/diskl1'
-disk '/devices/diskl2'
This chapter describes the Oracle Automatic Storage Management (Oracle ASM)
Command-Line Utility (ASMCMD). This chapter contains the following topics:
About ASMCMD
ASMCMD is a command-line utility that you can use to manage Oracle ASM
instances, disk groups, file access control for disk groups, files and directories within
disk groups, templates for disk groups, and volumes.
You can run the ASMCMD utility in either interactive or noninteractive mode.
This section contains the following topics:
• About Oracle ASM Files_ File Names_ Directories_ and Aliases (page 10-2)
Category Commands
Oracle ASM instance management For a list of commands, refer to "ASMCMD Instance
Management Commands (page 10-11)"
Oracle ASM Filter Driver management For a list of commands, refer to "ASMCMD Oracle ASM
Filter Driver Management Commands (page 10-29)"
Oracle ASM file management For a list of commands, refer to "ASMCMD File
Management Commands (page 10-35)"
Oracle ASM disk group management For a list of commands, refer to "ASMCMD Disk Group
Management Commands (page 10-46)"
Oracle ASM template management For a list of commands, refer to "ASMCMD Template
Management Commands (page 10-68)"
Oracle ASM file access control For a list of commands, refer to "ASMCMD File Access
Control Commands (page 10-72)"
Only the slash (/) is supported by ASMCMD. File Names are not case sensitive, but
are case retentive. If you type a path name as lowercase, ASMCMD retains the
lowercase.
For more information about Oracle ASM file names, refer to "Fully Qualified File
Name Form (page 5-4)".
Directory
As in other file systems, an Oracle ASM directory is a container for files, and an Oracle
ASM directory can be part of a tree structure of other directories. The fully qualified
file name represents a hierarchy of directories in which the plus sign (+) represents the
root directory. In each disk group, Oracle ASM automatically creates a directory
hierarchy that corresponds to the structure of the fully qualified file names in the disk
group. The directories in this hierarchy are known as system-generated directories.
ASMCMD enables you to move up and down in this directory hierarchy with the cd
(change directory) command. The ASMCMD ls (list directory) command lists the
contents of the current directory, while the pwd command prints the name of the
current directory.
When you start ASMCMD, the current directory is set to root (+). For an Oracle ASM
instance with two disk groups, for example, data and fra, entering an ls command
with the root directory as the current directory produces the following output:
ASMCMD> ls
data/
fra/
The following example demonstrates navigating the Oracle ASM directory tree (refer
to the fully qualified file name shown previously):
ASMCMD> cd +data/orcl/CONTROLFILE
ASMCMD> ls
Current.256.541956473
Current.257.541956475
Note:
The directory orcl is a system-generated directory. The contents of data
represent the contents of disk group data.
If you start ASMCMD with the -p flag, then ASMCMD shows the current directory as
part of its prompt. See "Including the Current Directory in the ASMCMD Prompt
(page 10-9)".
ASMCMD [+] > cd data/orcl
ASMCMD [+data/orcl] >
Alias
Aliases are file names that are references or pointers to system-generated file names.
However, aliases are user-friendly names. Aliases are similar to symbolic links in
UNIX or Linux computers. You can create aliases to simplify Oracle ASM file name
administration. You can create aliases with the mkalias ASMCMD command or a
SQL ALTER DISKGROUP command.
An alias has at a minimum the disk group name as part of its complete path. You can
create aliases at the disk group level or in any system-generated or user-created
subdirectory. The following are examples of aliases:
+data/ctl1.f
+data/orcl/ctl1.f
+data/mydir/ctl1.f
If you run the ASMCMD ls (list directory) with the -l flag, each alias is listed with
the system-generated file to which the alias refers.
ctl1.f => +data/orcl/CONTROLFILE/Current.256.541956473
For more information about aliases, refer to "Alias Oracle ASM File Name Forms
(page 5-6)".
UNDOTBS1.272.557429239
USERS.259.555341963
ASMCMD [+data/orcl/DATAFILE] >
rm undotbs1.272.557429239
Paths to directories can also be relative. You can go up or down the hierarchy of the
current directory tree branch by providing a directory argument to the cd command
whose path is relative to the current directory.
In addition, you can use the pseudo-directories "." and ".." rather than a directory
name. The "." pseudo-directory is the current directory. The ".." pseudo-directory is
the parent directory of the current directory.
The following example demonstrates how to use relative directory paths and pseudo-
directories:
ASMCMD [+data/orcl] > cd DATAFILE
ASMCMD [+data/orcl/DATAFILE] >cd ..
ASMCMD [+data/orcl] >
Wildcard Characters
The wildcard characters * and % match zero or more characters anywhere within an
absolute or relative path, which saves typing of the full directory or file name. The two
wildcard characters behave identically. There are various ASMCMD commands that
accept wildcards, such as cd, du, find, ls, lsattr, lsdg, lsdsk, lsgrp, lsusr,
and rm.
If a wildcard pattern matches only one directory when using wildcard characters with
cd, then cd changes the directory to that destination. If the wildcard pattern matches
multiple directories, then ASMCMD does not change the directory but instead returns
an error.
If you are running ASMCMD commands in noninteractive mode, then with most
operating systems you must enclose the wildcard characters in quotes. For more
information, refer to "Running ASMCMD in Noninteractive Mode (page 10-9)".
Example 10-1 (page 10-5) illustrates the use of wildcards.
Example 10-1 Using wildcards with ASMCMD commands
ASMCMD [+] > cd +data/orcl/*FILE
ASMCMD-08005: +data/orcl/*FILE: ambiguous
+fra/orcl/ARCHIVELOG/2009_07_13/:
thread_1_seq_3.260.692103543
thread_1_seq_4.261.692108897
thread_1_seq_5.262.692125993
thread_1_seq_6.263.692140729
thread_1_seq_7.264.692143333
+fra/orcl/ARCHIVELOG/2009_07_14/:
thread_1_seq_8.271.692158265
thread_1_seq_9.272.692174597
+data/orcl/CONTROLFILE/:
Current.260.692103157
+data/orcl/DATAFILE/:
EXAMPLE.265.692103187
SYSAUX.257.692103045
SYSTEM.256.692103045
UNDOTBS1.258.692103045
USERS.259.692103045
+data/orcl/ONLINELOG/:
group_1.261.692103161
group_2.262.692103165
group_3.263.692103169
+data/orcl/PARAMETERFILE/:
spfile.266.692103315
+data/orcl/TEMPFILE/:
TEMP.264.692103181
spfileorcl.ora
• Log in to the host which contains the Oracle ASM instance that you plan to
administer.
You must log in as a user that has SYSASM or SYSDBA privileges through
operating system authentication. The SYSASM privilege is the required
connection to administer the Oracle ASM instance. See "Authentication for
Accessing Oracle ASM Instances (page 3-46)".
See Also:
• To connect to the Oracle ASM instance, run ASMCMD that is located in the bin
subdirectory of the Oracle Grid Infrastructure home (Oracle ASM home).
Connect as SYSASM, the default connection, to administer an Oracle ASM
instance.
Ensure that the ORACLE_HOME and ORACLE_SID environment variables to refer
to the Oracle ASM instance. Depending on your operating system, you might
have to set other environment variables to properly connect to the Oracle ASM
instance.
Ensure that the bin subdirectory of your Oracle Grid Infrastructure home is in
your PATH environment variable.
See Also:
Refer to the Oracle Database Administrator's Guide for more information about
setting environment variables
The default value of the Oracle ASM SID for a single-instance database is +ASM. In
Oracle Real Application Clusters environments, the default value of the Oracle
ASM SID on any node is +ASMnode#.
• To use most of the ASMCMD commands, ensure that the Oracle ASM instance is
started and the Oracle ASM disk groups are mounted.
If the Oracle ASM instance is not running, ASMCMD runs only those commands
that do not require an Oracle ASM instance. The commands include startup,
shutdown, lsdsk, help, and exit. If you attempt to run other ASMCMD
commands, an error message displays.
• You can connect to the database instance as SYSDBA by running ASMCMD that is
located in the bin directory of the Oracle Database home.
Ensure that the ORACLE_HOME and ORACLE_SID environment variables to refer
to the database instance. Depending on your operating system, you might have to
set other environment variables to properly connect to the database instance.
You must include the --privilege option to connect as SYSDBA. See
"Specifying the Type of Connection (page 10-8)".
With this connection, there is a limited set of operations that can be run. For more
information, see "The SYSDBA Privilege for Managing Oracle ASM Components
(page 3-50)".
When administering disk groups, Oracle recommends that you run ASMCMD
from the database home of the database instance that is the owner of the files in
the disk group.
asmcmd [-V]
asmcmd [--nocp] [-v {errors|warnings|normal|info|debug}]
[--privilege connection_type ] [-p]
Option Description
-V Displays the version of ASMCMD and then exits.
For the majority of the examples in this chapter, ASMCMD was started with the -p
option.
asmcmd
Oracle displays an ASMCMD command prompt as follows:
ASMCMD>
2. Enter an ASMCMD command and press Enter. The command runs and displays
its output, if any, and then ASMCMD prompts for the next command.
3. Continue entering ASMCMD commands until you have completed the tasks.
When there is a message that must be logged during asmcmd operations, the message
is written to the alert.log file or the trace.trc file.
The alert.log file is created or updated when asmcmd is started with the -v
errors, -v warning, or -v normal display level. The trace.trc file is created or
updated when asmcmd is started with the -v info or -v debug display level.
By default, the alert.log is file created in the $ORACLE_HOME/log/diag/
asmcmd/user_username/hostname/alert/ directory. By default, the
trace.trc file is created in the $ORACLE_HOME/log/diag/asmcmd/
user_username/hostname/trace/ directory.
Under certain circumstances, $ORACLE_BASE and $ORACLE_HOME can be set to
override the default locations of the alert.log and trace.trc files.
Example 10-2 (page 10-10) shows how to run ASMCMD in the noninteractive mode.
The first command runs the ls command to list the disk groups for the Oracle ASM
instance. The second command redirects the output of the lsod command to the
my_lsod_test file. The third command runs lsdsk using a pattern with a wildcard
character to list specific disks in the data disk group. Note that wildcard characters
must be enclosed in quotes when running ASMCMD in noninteractive mode on most
operating systems.
Example 10-3 (page 10-10) raises an error with an incorrect disk group name and the
return code equal (255) is displayed.
Example 10-4 (page 10-10) shows an example of ASMCMD commands run in
noninteractive mode inside a script.
Example 10-2 Running ASMCMD commands in noninteractive mode
$ asmcmd ls -l
State Type Rebal Name
MOUNTED NORMAL N DATA/
MOUNTED NORMAL N FRA/
$ echo $?
255
done
$ ./asmcmd_test_script
Path
/devices/diska1
Path
/devices/diska2
Path
/devices/diska3
Getting Help
Type help at the ASMCMD prompt or as a command in noninteractive mode to view
general information about ASMCMD and a list of available ASMCMD commands.
You can type help command to display help text for a specific command, including
usage information about how to run the command with its options.
The following is an example of the use of the help command.
Example 10-5 Displaying ASMCMD help text
ASMCMD [+] > help startup
startup [--nomount] [--restrict] [--pfile <pfile.ora>]
See Also:
Oracle Grid Infrastructure Installation Guide for your operating system for
information about installing and configuring Oracle Grid Infrastructure
NOT_SUPPORTED
Command Description
dsgetNOT_SUPPORTED Retrieves the discovery diskstring value that is used by the Oracle ASM
instance and its clients.
dssetNOT_SUPPORTED Sets the disk discovery diskstring value that is used by the Oracle ASM
instance and its clients.
NOT_SUPPORTED
Command Description
lsopNOT_SUPPORTED Lists the current operations on a disk group or Oracle ASM instance.
showpatchesNOT_SUPPORTED Lists the patches applied to the Oracle Grid Infrastructure home.
showversionNOT_SUPPORTED Displays the Oracle ASM cluster release and software patch levels.
dsget
Purpose
Retrieves the discovery diskstring value that is used by the Oracle ASM instance and
its clients.
The syntax options for the dsget command are described in Table 10-5 (page 10-13).
Option Description
--normal Retrieves the discovery string from the Grid Plug and Play
(GPnP) profile and the one that is set in the Oracle ASM
instance. It returns one row each for the profile and parameter
setting. This is the default setting.
--profile [-f] Retrieves the discovery string from the GPnP profile. If -f is
specified with --profile, dsget retrieves the discovery
string from the local GPnP profile.
Example
The following example uses dsget to retrieve the current discovery diskstring value
from the GPnP profile and the ASM_DISKSTRING parameter.
Example 10-6 Using the ASMCMD dsget command
ASMCMD [+] > dsget
profile: /devices1/disk*
parameter: /devices2/disk*
dsset
Purpose
Sets the discovery diskstring value that is used by the Oracle ASM instance and its
clients.
The specified diskstring must be valid for existing mounted disk groups. The updated
value takes effect immediately.
The syntax options for the dsset command are described in Table 10-6 (page 10-13).
Option Description
--normal Sets the discovery string in the Grid Plug and Play (GPnP)
profile and in the Oracle ASM instance. The update occurs after
the Oracle ASM instance has successfully validated that the
specified discovery string has discovered all the necessary disk
groups and voting files. This command fails if the instance is
not using a server parameter file (SPFILE).
This is the default setting.
Option Description
--parameter Specifies that the diskstring is updated in memory after
validating that the discovery diskstring discovers all the current
mounted disk groups and voting files. The diskstring is not
persistently recorded in either the SPFILE or the GPnP profile.
--profile [-f] Specifies the discovery diskstring that is pushed to the GPnP
profile without any validation by the Oracle ASM instance,
ensuring that the instance can discover all the required disk
groups. The update is guaranteed to be propagated to all the
nodes that are part of the cluster.
If -f is specified with --profile, the specified diskstring is
pushed to the local GPnP profile without any synchronization
with other nodes in the cluster. This command option updates
only the local profile file. This option should only be used for
recovery. The command fails if the Oracle Clusterware stack is
running.
For information about disk discovery and the discovery diskstring, see "Oracle ASM
Disk Discovery (page 4-25)".
Example
The following example uses dsset to set the current value of the discovery diskstring
in the GPnP profile.
Example 10-7 Using the ASMCMD dsset command
ASMCMD [+] > dsset /devices1/disk*,/devices2/disk*
lsct
Purpose
Lists information about current Oracle ASM clients from the V$ASM_CLIENT view. A
client, such as Oracle Database or Oracle ASM Dynamic Volume Manager (Oracle
ADVM), uses disk groups that are managed by the Oracle ASM instance to which
ASMCMD is currently connected.
Table 10-7 (page 10-14) lists the options for the lsct command.
Option Description
(none) Displays information about current clients from the V$ASM_CLIENT
view.
Option Description
-g Selects from the GV$ASM_CLIENT view. GV$ASM_CLIENT.INST_ID
is included in the output.
Example
The following example displays information about the clients that are accessing the
data disk group.
Example 10-8 Using the ASMCMD lsct command
ASMCMD [+] > lsct data
DB_Name Status Software_Version Compatible_version Instance_Name Disk_Group
+ASM CONNECTED 12.1.0.0.1 12.1.0.0.1 +ASM DATA
asmvol CONNECTED 12.1.0.0.1 12.1.0.0.1 +ASM DATA
orcl CONNECTED 12.1.0.0.1 12.0.0.0.0 orcl DATA
lsop
Purpose
Lists the current operations on a disk group in an Oracle ASM instance.
Example
The following are examples of the lsop command. The examples list operations on
the disk groups of the current Oracle ASM instance.
Example 10-9 Using the ASMCMD lsop command
ASMCMD [+] > lsop
Group_Name Dsk_Num State Power
DATA REBAL WAIT 2
lspwusr
Purpose
List the users from the local Oracle ASM password file.
Table 10-8 (page 10-16) lists the options for the lspwusr command.
Option Description
--suppressheader Suppresses column headers from the output.
Examples
The following is an example of the lspwusr example. The example lists the current
users in the local Oracle ASM password file.
Example 10-10 Using the ASMCMD lspwusr command
ASMCMD [+] > lspwusr
Username sysdba sysoper sysasm
SYS TRUE TRUE TRUE
ASMSNMP TRUE FALSE FALSE
orapwusr
Purpose
Add, drop, or modify an Oracle ASM password file user.
Table 10-9 (page 10-16) lists the options for the orapwusr command.
Option Description
--add Adds a user to the password file. Also prompts for a password.
--grant role Sets the role for the user. The options are sysasm, sysdba, and
sysoper.
--revoke role Removes the role for the user. The options are sysasm,
sysdba, and sysoper.
Examples
The following is an example of the orapwusr command. This example adds the
hruser to the Oracle ASM password file.
Example 10-11 Using the ASMCMD orapwusr command
ASMCMD [+] > orapwusr --add hruser
pwcopy
Purpose
Copies an Oracle ASM or database instance password file to the specified location.
Table 10-10 (page 10-17) lists the options for the pwcopy command.
Option Description
--asm The --asm option associates the password file with the Oracle
ASM instance that ASMCMD is logged into.
source The source value identifies the location where the existing
password file is located.
pwcopy copies a password file from one disk group to another, from the operating
system to a disk group, or from a disk group to the operating system. If the —f option
is specified, then the password file can be copied to the same disk group.
Either –-asm or --dbuniquename is required to identify a CRSD resource. When
either –-asm or --dbuniquename is included in the pwcopy command, the target file
is set to the current password file.
The compatible.asm disk group attribute must be set to 12.1 or higher for the disk
group where the password is to be copied.
The SYSASM or SYSDBA privilege is required to manage the Oracle ASM and database
password files.
Example
The following example copies an Oracle ASM password file in one disk group to a
different disk group. Because the pwcopy command includes the --asm option, the
target file (+fra/orapwasm_new) is set to the current password file.
pwcreate
Purpose
Creates an Oracle ASM or database instance password file at the specified location.
Table 10-11 (page 10-18) lists the options for the pwcreate command.
Option Description
--asm The --asm option associates the password file with the Oracle
ASM instance that ASMCMD is logged into.
pwcreate creates a password file in the disk group specified by file_path with an
initial SYS password identified by sys_password.
Either –-asm or --dbuniquename is required. The compatible.asm disk group
attribute must be set to 12.1 or higher for the disk group where the password is to be
located.
The SYSASM or SYSDBA privilege is required to manage the Oracle ASM and database
password files.
For additional information, refer to "Managing a Shared Password File in a Disk
Group (page 3-52)".
Example
The following example creates an Oracle ASM password file in an Oracle ASM disk
group.
Example 10-13 Using the ASMCMD pwcreate command
ASMCMD [+] > pwcreate –-asm '+DATA/orapwasm' 'welcome'
pwdelete
Purpose
Deletes an Oracle ASM or database instance password file.
Table 10-12 (page 10-19) lists the options for the pwdelete command.
Option Description
--asm The --asm option associates the password file with the Oracle
ASM instance that ASMCMD is logged into.
Example
The following example deletes the specified password file from a disk group.
Example 10-14 Using the ASMCMD pwdelete command
ASMCMD [+] > pwdelete +FRA/orapwasm_bak
pwget
Purpose
Returns the location of the password file for the Oracle ASM or database instance.
Table 10-13 (page 10-19) lists the options for the pwget command.
Option Description
--asm The --asm option associates the password file with the Oracle
ASM instance that ASMCMD is logged into.
pwget returns the location of the password file for the Oracle ASM instance identified
by –-asm or the database instance identified by --dbuniquename.
The SYSASM or SYSDBA privilege is required to manage the Oracle ASM and database
password files.
Example
The following example returns the location of the Oracle ASM password file.
Example 10-15 Using the ASMCMD pwget command
ASMCMD [+] > pwget --asm
+DATA/orapwasm
pwmove
Purpose
Moves an Oracle ASM or database instance password file to the specified location.
Table 10-14 (page 10-20) lists the options for the pwmove command.
Option Description
--asm The --asm option associates the password file with the Oracle
ASM instance that ASMCMD is logged into.
source The source value identifies the location where the existing
password file is located.
pwmove moves a password file from one disk group to another, from the operating
system to a disk group, or from a disk group to the operating system. If the —f option
is specified, then a password file can be moved to a file in the same disk group.
Either –-asm or --dbuniquename is required to identify a CRSD resource.
The compatible.asm disk group attribute must be set to 12.1 or higher for the disk
group where the password is to be moved.
The SYSASM or SYSDBA privilege is required to manage the Oracle ASM and database
password files.
Example
The following example moves a password file from one disk group to another disk
group.
pwset
Purpose
Sets the location of the password file for an Oracle ASM or database instance.
Table 10-15 (page 10-21) lists the options for the pwset command.
Option Description
--asm The --asm option associates the password file with the Oracle
ASM instance that ASMCMD is logged into.
pwset sets the location of the password file for an Oracle ASM or database instance to
the value specified by file_path. Either --dbuniquename or –-asm is required to
identify a CRSD resource.
The SYSASM or SYSDBA privilege is required to manage the Oracle ASM and database
password files.
Example
The following example sets the location of the Oracle ASM password file in a disk
group.
Example 10-17 Using the ASMCMD pwset command
ASMCMD [+] > pwset --asm +DATA/orapwasm
showclustermode
Purpose
Displays the current mode of the Oracle ASM cluster.
showclustermode displays the mode that the Oracle ASM cluster is currently in.
The possible return values are ASM cluster : Flex mode enabled or ASM cluster : Flex
mode disabled.
Example
The following example shows the use of the showclustermode command.
Example 10-18 Using the ASMCMD showclustermode command
ASMCMD [+] > showclustermode
ASM cluster : Flex mode disabled
showclusterstate
Purpose
Displays the current state of the cluster.
showclusterstate displays the state that the Oracle ASM cluster is currently in.
The possible values returned are normal, in-upgrade, or in-rollingpatch mode.
Example
This example shows the use of the showclusterstate command.
Example 10-19 Using the ASMCMD showclusterstate command
ASMCMD [+] > showclusterstate
showpatches
Purpose
Lists the patches applied on the Oracle Grid Infrastructure home.
showpatches lists the patches that have been applied to the Oracle Grid
Infrastructure home.
Example
This example shows the use of the showpatches command.
Example 10-20 Using the ASMCMD showpatches command
ASMCMD [+] > showpatches
---------------
List of Patches
===============
showversion
Purpose
Displays the patch levels of the Oracle ASM cluster release and software.
Table 10-16 (page 10-23) lists the options for the showversion command.
Option Description
--releasepatch Displays the cluster level patch version.
showversion displays the Oracle ASM cluster release and software patch levels. The
release and software patch options may differ depending whether the Oracle ASM or
Oracle Grid Infrastructure home is being patched.
Example
This example shows the use of the showversion command.
Example 10-21 Using the ASMCMD showversion command
ASMCMD [+] > showversion --softwarepatch
ASM version : 12.1.0.1.0
Software patchlevel : 0
shutdown
Purpose
Shuts down an Oracle ASM instance.
Table 10-17 (page 10-23) lists the options for the shutdown command.
Option Description
--normal Shut down normal.
For more information about shutting down an Oracle ASM instance, see "About
Shutting Down an Oracle ASM Instance (page 3-25)".
Example
The following are examples of the shutdown command. The first example performs a
shut down of the Oracle ASM instance with normal action. The second example
performs a shut down with immediate action. The third example performs a shut
down that aborts all existing operations.
Example 10-22 Using the ASMCMD shutdown command
ASMCMD [+] > shutdown --normal
spbackup
Purpose
Backs up an Oracle ASM SPFILE to a backup file.
Table 10-18 (page 10-24) lists the options for the spbackup command.
Option Description
source Specifies the source file name.
spbackup should be used when you want to make single or multiple backups of an
SPFILE in the same or a different disk group without creating an SPFILE in the target
disk group.
Note the following about the use of spbackup:
• spbackup can back up an Oracle ASM SPFILE from a disk group to a disk group
or to an operating system file.
• spbackup can back up an Oracle ASM SPFILE from an operating system file to a
disk group.
• spbackup can back up an Oracle ASM SPFILE when the SPFILE is being used by
an open Oracle ASM instance.
• spbackup can make multiple backups of an Oracle ASM SPFILE in the same disk
group.
spbackup does not affect the GPnP profile. The backup file that is created is not a
special file type and is not identified as an SPFILE. This backup file cannot be copied
with spcopy. To copy this backup file to and from a disk group, use the ASMCMD cp
command.
To make a copy of a backup file in a disk group that is identified as an SPFILE file:
1. Use the ASMCMD cp command to copy the backup file from the disk group to an
operating system file. See "cp (page 10-37)".
2. Use the ASMCMD spcopy command to copy the operating system file to a disk
group. See "spcopy (page 10-25)".
Example
The following are examples of the spbackup command. The first example backs up
the SPFILE in the data disk group. The second example backs up the SPFILE from the
data disk group to the fra disk group.
Example 10-23 Using the ASMCMD spbackup command
ASMCMD> spbackup +DATA/asm/asmparameterfile/registry.253.721810181
+DATA/spfileBackASM.bak
spcopy
Purpose
Copies an Oracle ASM SPFILE from the source location to an SPFILE in the destination
location.
Table 10-19 (page 10-25) lists the options for the spcopy command.
Option Description
-u Updates the Grid Plug and Play (GPnP) profile.
• spcopy can copy an Oracle ASM SPFILE from a disk group to a different disk
group or to an operating system file.
• spcopy can copy an Oracle ASM SPFILE from an operating system file to a disk
group.
• spcopy can copy an Oracle ASM SPFILE when the SPFILE is being used by an
open Oracle ASM instance.
• spcopy cannot make multiple copies of an Oracle ASM SPFILE in the same disk
group. You can use spbackup for that purpose.
To update the GPnP profile, include the -u option with spcopy. You can also use
spset to update the GPnP profile if spcopy is run without the -u option. See "spset
(page 10-28)". For information about copying and moving an Oracle ASM instance
initialization parameter file after upgrading, see "About Backing Up_ Copying_ and
Moving an Oracle ASM Initialization Parameter File (page 3-4)".
After copying the SPFILE and updating the GPnP profile, you must restart the
instance with the SPFILE in the new location to use that SPFILE. When the Oracle
ASM instance is running with the SPFILE in the new location, you can remove the
source SPFILE.
To copy an Oracle ASM SPFILE into a disk group using spcopy, the
COMPATIBLE.ASM attribute must be set to 11.2 or greater in the target disk group.
See Also:
The CREATE SPFILE SQL statement in the Oracle Database SQL Language
Reference for information about creating a server parameter file
Example
The following are examples of the spcopy command. The first example copies the
Oracle ASM SPFILE from the data disk group to the fra disk group. The second
example copies the Oracle ASM SPFILE from the data disk group to an operating
system location. The third example copies an Oracle ASM SPFILE from an operating
system location to the data disk group and updates the GPnP profile with the -u
option.
Example 10-24 Using the ASMCMD spcopy command
ASMCMD> spcopy +DATA/asm/asmparameterfile/registry.253.721810181
+FRA/spfileCopyASM.ora
spget
Purpose
Retrieves the location of the Oracle ASM SPFILE from the Grid Plug and Play (GPnP)
profile.
The location retrieved by spget is the location in the GPnP profile, but not always the
location of the SPFILE currently used. For example, the location could have been
recently updated by spset or spcopy with the -u option on an Oracle ASM instance
that has not been restarted. After the next restart of the Oracle ASM, this location
points to the Oracle ASM SPFILE currently being used.
Example
The following is an example of the spget command that retrieves and displays the
location of the SPFILE from the GPnP profile.
Example 10-25 Using the ASMCMD spget command
ASMCMD [+] > spget
+DATA/ASM/ASMPARAMETERFILE/registry.253.813507611
spmove
Purpose
Moves an Oracle ASM SPFILE from source to destination and automatically updates
the GPnP profile.
Table 10-20 (page 10-27) lists the options for the spmove command.
Option Description
source Specifies the source file.
• spmove can move an Oracle ASM SPFILE when the open instance is using a
PFILE or a different SPFILE. After moving the SPFILE, you must restart the
instance with the SPFILE in the new location to use that SPFILE.
• spmove cannot move an Oracle ASM SPFILE when the SPFILE is being used by
an open Oracle ASM instance.
For information about copying and moving an Oracle ASM instance initialization
parameter file after upgrading, see "About Backing Up_ Copying_ and Moving an
Oracle ASM Initialization Parameter File (page 3-4)".
To use spmove to move an Oracle ASM SPFILE into a disk group, the disk group
attribute COMPATIBLE.ASM must be set to 11.2 or greater.
Example
The following are examples of the spmove command. The first example moves an
Oracle ASM SPFILE from the data disk group to an operating system location. The
second example moves an SPFILE from an operating system location to the data disk
group.
Example 10-26 Using the ASMCMD spmove command
ASMCMD> spmove +DATA/spfileASM.ora
/oracle/product/11.2.0/grid/dbs/spfileMoveASM.ora
spset
Purpose
Sets the location of the Oracle ASM SPFILE in the Grid Plug and Play (GPnP) profile.
Table 10-21 (page 10-28) lists the options for the spset command.
Option Description
location Specifies the location of the Oracle ASM SPFILE. The location is
the full path to the SPFILE.
Example
The following is an example of the spset command that sets the location of the
Oracle ASM SPFILE command in the data disk group.
Example 10-27 Using the ASMCMD spset command
ASMCMD> spset +DATA/asm/asmparameterfile/asmspfile.ora
startup
Purpose
Starts up an Oracle ASM instance.
Table 10-22 (page 10-28) lists the options for the startup command.
Option Description
--nomount Specifies no mount operation.
The default action is a startup that mounts disk groups and enables Oracle ASM
Dynamic Volume Manager (Oracle ADVM) volumes. For information about disk
groups that are mounted at startup time, see "About Mounting Disk Groups at Startup
(page 3-25)".
For more information about starting up an Oracle ASM instance, see "About Starting
Up an Oracle ASM Instance (page 3-22)".
Example
The following is an example of the startup command that starts the Oracle ASM
instance without mounting disk groups and uses the asm_init.ora initialization
parameter file.
Example 10-28 Using the ASMCMD startup command
ASMCMD> startup --nomount --pfile asm_init.ora
See Also:
Oracle Grid Infrastructure Installation Guide for your operating system for
information about installing and configuring Oracle Grid Infrastructure
NOT_SUPPORTED (page 10-29) provides a summary of the Oracle ASM Filter Driver
management commands.
NOT_SUPPORTED
Command Description
afd_configureNOT_SUPPORTED Configures Oracle ASM Filter Driver.
afd_filterNOT_SUPPORTED Sets the Oracle ASM Filter Driver mode on a given disk path.
afd_configure
Purpose
Configures Oracle ASM Filter Driver.
See Also:
Oracle Grid Infrastructure Installation Guide for your operating system for
information about installing and configuring Oracle Grid Infrastructure
Example
The following example configures Oracle ASM Filter Driver on the node on which the
command was run. $ORACLE_HOME in the example refers to the Oracle Grid
Infrastructure home.
Example 10-29 Using the afd_configure command
# $ORACLE_HOME/bin/asmcmd afd_configure
afd_deconfigure
Purpose
Deconfigures Oracle ASM Filter Driver.
See Also:
Oracle Grid Infrastructure Installation Guide for your operating system for
information about installing and configuring Oracle Grid Infrastructure
Example
The following example deconfigures Oracle ASM Filter Driver on the node on which
the command was run. $ORACLE_HOME in the example refers to the Oracle Grid
Infrastructure home.
afd_dsget
Purpose
Retrieves the Oracle ASM Filter Driver discovery diskstring value.
For information about Oracle ASM Filter Driver, refer to "Oracle ASM Filter Driver
(page 3-34)".
Example
The following example returns the current Oracle ASM Filter Driver discovery
diskstring value.
Example 10-31 Using the afd_dsget command
ASMCMD [+] > afd_dsget
AFD discovery string: /dev/rdsk/mydisks/*
afd_dsset
Purpose
Sets the Oracle ASM Filter Driver discovery diskstring value.
The syntax options for the afd_dsset command are described in Table 10-24
(page 10-31).
Option Description
afd_diskstring Specifies the value for the Oracle ASM Filter Driver discovery
diskstring.
For information about Oracle ASM Filter Driver, refer to "Oracle ASM Filter Driver
(page 3-34)".
Example
The following example sets the current Oracle ASM Filter Driver discovery diskstring
value.
Example 10-32 Using the afd_dsset command
ASMCMD [+] > afd_dsset /dev/rdsk/mydisks/*
afd_filter
Purpose
Sets the Oracle ASM Filter Driver filtering mode on a given disk path.
The syntax options for the afd_filter command are described in the following
table.
Option Description
-e Enables Oracle ASM Filter Driver mode.
If the command is executed without specifying a disk path, then filtering is set at the
node level.
Example
The following example uses afd_filter to enable Oracle ASM Filter Driver filtering
on a specified disk path.
Example 10-33 Using the afd_filter command
ASMCMD [+] > afd_filter -e /dev/sdq
afd_label
Purpose
Sets an Oracle ASM Filter Driver label to the specified disk.
The syntax options for the afd_label command are described in Table 10-26
(page 10-32).
Option Description
afd_label Specifies an Oracle ASM Filter Driver label.
disk_path Specifies the path to the disks to which the label is applied.
Option Description
--migrate Specifies to migrate Oracle ASM Filter Driver disk labels to all
disks in the disk_path..
For information about Oracle ASM Filter Driver, refer to "Oracle ASM Filter Driver
(page 3-34)".
Example
The following example sets an Oracle ASM Filter Driver label to a specified disk.
Example 10-34 Using the afd_label command
ASMCMD [+] > afd_label 'disk0' '/dev/rdsk/mydisks/disk0'
afd_lsdsk
Purpose
Lists Oracle ASM Filter Driver disks.
Example
The following example lists Oracle ASM Filter Driver disks.
Example 10-35 Using the afd_lsdsk commmand
ASMCMD [+] > afd_lsdsk
--------------------------------------------------------------------------------
Label Filtering Path
================================================================================
DISK0 ENABLED /dev/sdd
DISK1 DISABLED /dev/sdm
DISK2 ENABLED /dev/sdq
afd_scan
Purpose
Scans for Oracle ASM Filter Driver disks.
The syntax options for the afd_scan command are described in Table 10-27
(page 10-34).
Option Description
afd_diskstring Specifies the value for the Oracle ASM Filter Driver discovery
diskstring.
afd_scan scans for Oracle ASM Filter Driver disks using the specified discovery
string. If the command is executed without specifying a disk string, then afd_scan
uses the Oracle ASM Filter Driver discovery diskstring value in the afd.conf file.
For information about Oracle ASM Filter Driver, refer to "Oracle ASM Filter Driver
(page 3-34)".
Example
The following example scans for Oracle ASM Filter Driver disks with a specified
diskstring.
Example 10-36 Using the afd_scan command
ASMCMD [+] > afd_scan /dev/sd*
afd_state
Purpose
Returns the state of Oracle ASM Filter Driver.
For information about Oracle ASM Filter Driver, refer to "Oracle ASM Filter Driver
(page 3-34)".
Example
The following example returns the current state of Oracle ASM Filter Driver.
Example 10-37 Using the afd_state command
ASMCMD [+] > afd_state
ASMCMD-9526: The AFD state is 'LOADED' and filtering is 'DEFAULT' on host 'myhost'
afd_unlabel
Purpose
Clears a specified Oracle ASM Filter Driver label.
The syntax options for the afd_unlabel command are described in Table 10-28
(page 10-35).
Option Description
afd_unlabel Specifies an existing Oracle ASM Filter Driver label to clear.
For information about Oracle ASM Filter Driver, refer to "Oracle ASM Filter Driver
(page 3-34)".
Example
The following example clears an existing Oracle ASM Filter Driver label.
Example 10-38 Using the afd_unlabel command
ASMCMD [+] > afd_unlabel 'disk0'
NOT_SUPPORTED
Command Description
amdu_extractNOT_SUPPORTED Extracts a file from a disk group.
cpNOT_SUPPORTED Enables you to copy files between disk groups, and between a disk
group and the operating system.
duNOT_SUPPORTED Displays the total disk space occupied by files in the specified Oracle
ASM directory and all of its subdirectories, recursively.
findNOT_SUPPORTED Lists the paths of all occurrences of the specified name (with
wildcards) under the specified directory.
lsNOT_SUPPORTED Lists the contents of an Oracle ASM directory, the attributes of the
specified file, or the names and attributes of all disk groups.
rmaliasNOT_SUPPORTED Deletes the specified alias, retaining the file that the alias points to.
amdu_extract
Purpose
Extracts a file from a disk group.
Option Description
diskgroup Name of the disk group where the file is located.
file_name Name of the file to extract. The file name must be an Oracle
ASM alias name.
The file name can be specified as an absolute or a relative path.
amdu_extract calls the Oracle ASM Metadata Dump Utility (AMDU) command to
extract a file using an Oracle ASM alias name.
Example
The following is an example of the amdu_extract command used to extract a file
from the data disk group.
Example 10-39 Using the ASMCMD amdu_extract command
ASMCMD> amdu_extract data data/orcl/my_alias_filename /devices/disk*
cd
Purpose
Changes the current directory to the specified directory.
Table 10-31 (page 10-36) lists the options for the cd command.
Option Description
dir Name of the directory.
dir can be specified as either an absolute path or a relative path, including the .
and .. pseudo-directories. dir can contain wildcard characters. See "Wildcard
Characters (page 10-5)".
Examples
The following are examples of the cd command changing into various directories.
Example 10-40 Using the ASMCMD cd command
ASMCMD [+data/hr] > cd +data/orcl
cp
Purpose
Enables you to copy files between Oracle ASM disk groups and between a disk group
and the operating system.
Table 10-32 (page 10-37) lists the syntax options for the cp command.
Option Description
--service Specifies the Oracle ASM instance name if not the default
service_name +ASM.
--port port_num Specifies the listener port number. The default is 1521.
tgt_file A user alias for the created target file name or an alias directory
name.
cp cannot copy files between two remote instances. The local Oracle ASM instance
must be either the source or the target of the operation.
You can use the cp command to:
connect_str is not required for a local instance copy, which is the default case. For a
remote instance copy, you must specify the connect string and Oracle ASM prompts
for a password in a non-echoing prompt. The connect_str is in the form:
[email protected]
user, host, and SID are required in the connect_str parameter. The default port
number is 1521 and can be changed with the --port option.
The connection privilege (SYSASM or SYSDBA) is determined by the use of the --
privilege option when starting ASMCMD. For more information, refer to
"Specifying the Type of Connection (page 10-8)".
See Also:
Oracle Database Net Services Administrator's Guide for more information about
connection strings
src_file must be either a fully qualified file name or an Oracle ASM alias.
During an ASMCMD copy process, the Oracle ASM server creates an Oracle Managed
File (OMF) file in the following format:
diskgroup/db_unique_name/file_type/file_name.#.#
where db_uniq_name is set to ASM and # is a string of digits. In the copy process,
ASMCMD cp creates the directory structure for the destination and creates a user alias
from that location to the actual OMF file that is created.
Examples
The following are examples of the cp command. The first example shows a copy of a
file in the data disk group to a file on the operating system. The second example
shows a copy of a file on the operating system to the data disk group. The third
example shows how to copy a file in the data disk group to a remote server. You are
prompted to enter a password.
Example 10-41 Using the ASMCMD cp command
ASMCMD [+] > cp +data/orcl/datafile/EXAMPLE.265.691577295 /mybackups/example.bak
copying +data/orcl/datafile/EXAMPLE.265.691577295 -> /mybackups/example.bak
du
Purpose
Displays the total space used for files in the specified directory and in the entire
directory tree under the directory.
Table 10-33 (page 10-39) lists the syntax options for the du command.
Option Description
dir Name of the directory.
If you do not specify dir, then information about the current directory is displayed.
dir can contain wildcard characters. See "Wildcard Characters (page 10-5)".
The following two values are displayed, both in units of megabytes.
Example
The following is an example of the du command. The example shows disk space used
in the orcl directory in the data disk group, including all of the directories under the
orcl directory.
Example 10-42 Using the ASMCMD du command
ASMCMD [+] > du data/orcl
Used_MB Mirror_used_MB
1756 3519
find
Purpose
Displays the absolute paths of all occurrences of the specified name pattern (with
wildcards) in a specified directory and its subdirectories.
Table 10-34 (page 10-39) lists the syntax options for the find command.
Option Description
--type type Type of target to find.
This command searches the specified directory and all subdirectories under it in the
directory tree for the supplied pattern. The value used for pattern can be a
directory name or a file name, and can include wildcard characters. See "Wildcard
Characters (page 10-5)".
The ASMCMD find command is case insensitive.
In the output of the command, directory names are suffixed with the slash character
(/) to distinguish them from file names.
Use the --type flag to find all the files of a particular type (specified as type). For
example, you can search for control files by specifying type as CONTROLFILE. Valid
values for type are listed in Table 5-1 (page 5-1). These are type values from the type
column of the V$ASM_FILE view.
Examples
The following are examples of the find command. The first example searches the
data disk group for files that begin with undo. The second example returns the
absolute path of all the control files (--type CONTROLFILE) in the +data/orcl
directory.
Example 10-43 Using the ASMCMD find command
ASMCMD [+] > find +data undo*
+data/ORCL/DATAFILE/UNDOTBS1.258.691577151
ls
Purpose
Lists the contents of an Oracle ASM directory, the attributes of the specified file, or the
names and attributes of all disk groups.
Table 10-35 (page 10-40) lists the syntax options for the ls command.
Option Description
(none) Displays only file names and directory names.
Option Description
-d If the value for the pattern argument is a directory, then ls
displays information about that directory, rather than the directory
contents. Typically used with another flag, such as the -l flag.
--absolutepath For each listed file, displays the absolute path of the alias that
references it, if any.
Command options enable you to modify and customize the output of the command.
Table 10-35 (page 10-40) lists the options and their descriptions. For disk group
information, this command queries the V$ASM_DISKGROUP_STAT view by default. If
you specify all of the options, then the command shows a union of their attributes,
with duplicates removed. If you enter ls +, the top level directory structure is
displayed.
pattern can be a file name, directory name, or a pattern including wildcard
characters. See "Wildcard Characters (page 10-5)".
• If pattern is a directory name, then ls lists the contents of the directory and
depending on flag settings, ls also lists information about each directory
member. Directories are listed with a trailing slash (/) to distinguish them from
files.
• If the value that you enter for pattern is a file name, then ls lists the file and
depending on the flag settings, ls also lists information about the file. The file
must be located in the current directory if the file name is specified with a relative
path.
Examples
The following are examples of the ls command that display various information
about directories and the contents of the directories.
Example 10-44 Using the ASMCMD ls command
ASMCMD [+] > ls +data/orcl/datafile
EXAMPLE.265.691577295
SYSAUX.257.691577149
SYSTEM.256.691577149
UNDOTBS1.258.691577151
USERS.259.691577151
lsof
Purpose
Lists the open files of the local clients.
Table 10-36 (page 10-42) lists the syntax options for the lsof command.
Option Description
--suppressheader Suppresses column headings.
Example
The following are examples of the lsof command. The first example lists the open
files for the data disk group. The second example lists the open files for the Oracle
ASM instance.
Example 10-45 Using the ASMCMD lsof command
ASMCMD [+] > lsof -G data
DB_Name Instance_Name Path
orcl orcl +data/orcl/controlfile/current.260.691577263
orcl orcl +data/orcl/datafile/example.265.691577295
orcl orcl +data/orcl/datafile/sysaux.257.691577149
orcl orcl +data/orcl/datafile/system.256.691577149
orcl orcl +data/orcl/datafile/undotbs1.258.691577151
orcl orcl +data/orcl/datafile/users.259.691577151
orcl orcl +data/orcl/onlinelog/group_1.261.691577267
orcl orcl +data/orcl/onlinelog/group_2.262.691577271
orcl orcl +data/orcl/onlinelog/group_3.263.691577275
orcl orcl +data/orcl/tempfile/temp.264.691577287
mkalias
Purpose
Creates an alias for the specified system-generated file name.
Table 10-37 (page 10-43) lists the syntax options for the mkalias command.
Option Description
file System-generated file name.
alias must be in the same disk group as the system-generated file. Only one alias is
permitted for each Oracle ASM file.
Example
The following example creates the sysaux.f alias for the fully qualified file name
+data/orcl/DATAFILE/SYSAUX.257.721811945. Following the mkalias
command, ls --absolutepath is run to check the results.
Example 10-46 Using the ASMCMD mkalias command
ASMCMD [+data/orcl/datafile] > mkalias SYSAUX.257.721811945 sysaux.f
mkdir
Purpose
Creates Oracle ASM directories under the current directory.
Table 10-38 (page 10-44) lists the syntax options for the mkdir command.
Option Description
dir Directory name to create.
Example
The following is an example of the mkdir command. The example creates the
directories subdir1 and subdir2 at the disk group level in the disk group data.
Example 10-47 Using the ASMCMD mkdir command
ASMCMD [+data] > mkdir subdir1 subdir2
pwd
Purpose
Displays the absolute path of the current directory.
Example
The following is an example of the pwd command. The example displays the current
directory.
rm
Purpose
Deletes the specified Oracle ASM files and directories.
Table 10-39 (page 10-45) lists the syntax options for the rm command.
Option Description
-r Recursively deletes files and subdirectories.
If pattern is a file or alias, then the rm command can delete the file or alias only if it
is not currently in use. If pattern is a directory, then the rm command can delete it
only if it is empty (unless the -r flag is used) and it is not a system-generated
directory. If pattern is an alias, then the rm command deletes both the alias and the
file to which the alias refers. To delete only an alias and retain the file that the alias
references, use the rmalias command.
Note:
When you delete all of the files in a system-created directory, the directory is
removed. If the parent directories are empty, all of the parent directories are
also removed.
pattern can contain wildcard characters. See "Wildcard Characters (page 10-5)".
If you use a wildcard, the rm command deletes all of the matches except nonempty
directories, unless you use the -r flag. To recursively delete, use the -r flag. With -r
option you can delete a nonempty directory, including all files and directories in it and
in the entire directory tree underneath it. If you use the -r flag or a wildcard
character, then the rm command prompts you to confirm the deletion before
proceeding, unless you specify the -f flag.If a wildcard character matches an alias or a
system-generated file that has an alias, then both the alias and the system-generated
file that it references are deleted. When using the -r flag to delete an alias that
matches a wildcard pattern, either the alias or the system-generated file that has an
alias must be present in the directory in which you run the rm command.
For example, if you have a user alias, +data/dir1/file.alias that points to
+data/orcl/DATAFILE/System.256.146589651, then running the rm -r
Example
The following are examples of the rm command. The first example deletes the
myexamples.bak file. The second example removes the subdir2 directory and its
contents.
Example 10-49 Using the ASMCMD rm command
ASMCMD [+data/orcl/datafile] > rm myexamples.bak
rmalias
Purpose
Removes the specified aliases, retaining the files that the aliases reference.
Table 10-40 (page 10-46) lists the syntax options for the rmalias command.
Option Description
-r Recursively removes aliases.
The -r flag enables you to remove all of the aliases in the current directory and in the
entire directory tree beneath the current directory. If any user-created directories
become empty after deleting aliases, they are also deleted. Files and directories created
by the system are not deleted.
Example
The following is an example of the rmalias command. The example deletes the alias
sysaux.f, retaining the data file that it references.
Example 10-50 Using the ASMCMD rmalias command
ASMCMD [+data/orcl/datafile] > rmalias sysaux.f
NOT_SUPPORTED
Command Description
chdgNOT_SUPPORTED Changes a disk group (add, drop, or rebalance).
chdg
Purpose
Changes a disk group (adds disks, drops disks, resizes disks, or rebalances a disk
group) based on an XML configuration file.
Table 10-42 (page 10-48) lists the syntax options for the chdg command.
Option Description
config_file Name of the XML file that contains the changes for the disk
group. chdg searches for the XML file in the directory where
ASMCMD was started unless a path is specified.
For examples of the valid tags and XML configuration file, see
Example 10-51 (page 10-48) and Example 10-52 (page 10-49).
chdg modifies a disk group based on an XML configuration file. The modification
includes adding, replacing, or deleting disks from an existing disk group, and the
setting rebalance or replace power level. The power level can be set to the same values
as the ASM_POWER_LIMIT initialization parameter. For information about the
initialization parameter, see "ASM_POWER_LIMIT (page 3-10)".
When adding disks to a disk group, the diskstring must be specified in a format
similar to the ASM_DISKSTRING initialization parameter. For information about the
initialization parameter, see "ASM_DISKSTRING (page 3-9)".
The failure groups are optional parameters. The default causes every disk to belong to
a its own failure group. For information about failure groups, see"Oracle ASM Failure
Groups (page 4-31)".
Dropping disks from a disk group can be performed through this operation. An
individual disk can be referenced by its Oracle ASM disk name. A set of disks that
belong to a failure group can be specified by the failure group name. For information
about dropping disks, see"Dropping Disks from Disk Groups (page 4-19)".
You can resize a disk inside a disk group with chdg. The resize operation fails if there
is not enough space for storing data after the resize. For information about resizing
disks, see"Resizing Disks in Disk Groups (page 4-21)".
Example 10-51 (page 10-48) shows the basic structure and the valid tags with their
respective attributes for the chdg XML configuration file.
Example 10-51 Tags for the chdg XML configuration template
<chdg> update disk clause (add/delete disks/failure groups)
name disk group to change
power power to perform rebalance or replace
<dsk> disk
name disk name
string disk path
</chdg>
For information about creating a disk group with ASMCMD mkdg, see "mkdg
(page 10-61)". For information about altering disk groups, see "Altering Disk Groups
(page 4-15)".
Example
The following is an example of an XML configuration file for chdg. This XML file
alters the disk group named data. The failure group fg1 is dropped and the disk
data_0001 is also dropped. The /dev/disk5 disk is added to failure group fg2.
The rebalance power level is set to 3.
Example 10-52 chdg sample XML configuration file
<chdg name="data" power="3">
<drop>
<fg name="fg1"></fg>
<dsk name="data_0001"/>
</drop>
<add>
<fg name="fg2">
<dsk string="/dev/disk5"/>
</fg>
</add>
</chdg>
The following are examples of the chdg command with the configuration file or
configuration information on the command line.
Example 10-53 Using the ASMCMD chdg command
ASMCMD [+] > chdg data_config.xml
chkdg
Purpose
Checks or repairs the metadata of a disk group.
Table 10-43 (page 10-49) lists the syntax options for the chkdg command.
Option Description
--repair Repairs the disk group.
Option Description
diskgroup Name of disk group to check or repair.
chkdg checks the metadata of a disk group for errors and optionally repairs the errors.
Example
The following is an example of the chkdg command used to check and repair the
data disk group.
Example 10-54 Using the ASMCMD chkdg command
ASMCMD [+] > chkdg --repair data
dropdg
Purpose
Drops a disk group.
Table 10-44 (page 10-50) lists the syntax options for the dropdg command.
Option Description
-f Force the operation. Only applicable if the disk group cannot be
mounted.
dropdg drops an existing disk group. The disk group should not be mounted on
multiple nodes.
Example
These are examples of the use of dropdg. The first example forces the drop of the disk
group data, including any data in the disk group. The second example drops the disk
group fra, including any data in the disk group.
Example 10-55 Using the ASMCMD dropdg command
ASMCMD [+] > dropdg -r -f data
iostat
Purpose
Displays I/O statistics for Oracle ASM disks in mounted disk groups.
Option Description
-e Displays error statistics (Read_Err, Write_Err).
Table 10-46 (page 10-51) shows the statistics for a disk group. To view the complete
set of statistics for a disk group, use the V$ASM_DISK_IOSTAT view.
Reads Number of bytes read from the disk. If the --io option is entered,
then the value is displayed as number of I/Os.
Writes Number of bytes written to the disk. If the --io option is entered,
then the value is displayed as number of I/Os.
Cold_Reads Number of bytes read from the cold disk region. If the --io option is
entered, then the value is displayed as number of I/Os.
Cold_Writes Number of bytes written from the cold disk region. If the --io option
is entered, then the value is displayed as number of I/Os.
Hot_Writes Number of bytes written to the hot disk region. If the --io option is
entered, then the value is displayed as number of I/Os.
Read_Time I/O time (in seconds) for read requests for the disk if the
TIMED_STATISTICS initialization parameter is set to TRUE (0 if set
to FALSE).
Write_Time I/O time (in seconds) for write requests for the disk if the
TIMED_STATISTICS initialization parameter is set to TRUE (0 if set
to FALSE).
If a refresh interval is not specified, the number displayed represents the total number
of bytes or I/Os. If a refresh interval is specified, then the value displayed (bytes or
I/Os) is the difference between the previous and current values, not the total value.
Example
The following are examples of the iostat command. The first example displays disk
I/O statistics for the data disk group in total number of bytes. The second example
displays disk I/O statistics for the data disk group in total number of I/O operations.
Example 10-56 Using the ASMCMD iostat command
ASMCMD [+] > iostat -G data
Group_Name Dsk_Name Reads Writes
DATA DATA_0000 180488192 473707520
DATA DATA_0001 1089585152 469538816
DATA DATA_0002 191648256 489570304
DATA DATA_0003 175724032 424845824
DATA DATA_0004 183421952 781429248
DATA DATA_0005 1102540800 855269888
DATA DATA_0006 171290624 447662592
DATA DATA_0007 172281856 361337344
DATA DATA_0008 173225472 390840320
DATA DATA_0009 288497152 838680576
DATA DATA_0010 196657152 375764480
DATA DATA_0011 436420096 356003840
lsattr
Purpose
Lists the attributes of a disk group.
Table 10-47 (page 10-53) lists the syntax options for the lsattr command.
Option Description
-G diskgroup Disk group name.
Example
The following are examples of the lsattr command. The first displays information
about all attributes for the data disk group. The second example displays only those
attributes with names containing the string compat for the fra disk group. Note the
use of both the % and * wildcard characters on Linux.
Example 10-57 Using the ASMCMD lsattr command
ASMCMD [+] > lsattr -lm -G data
Group_Name Name Value RO Sys
DATA access_control.enabled FALSE N Y
DATA access_control.umask 066 N Y
DATA au_size 1048576 Y Y
DATA cell.smart_scan_capable FALSE N N
DATA cell.sparse_dg allnonsparse N N
DATA compatible.advm 12.1.0.2.0 N Y
lsdg
Purpose
Lists mounted disk groups and their information. lsdg queries V
$ASM_DISKGROUP_STAT by default. If the --discovery flag is specified, the V
$ASM_DISKGROUP is queried instead. The output also includes notification of any
current rebalance operation for a disk group. If a disk group is specified, then lsdg
returns only information about that disk group.
Table 10-48 (page 10-54) lists the options for the lsdg command.
Option Description
(none) Displays the disk group attributes listed in Table 10-49 (page 10-55).
pattern Returns only information about the specified disk group or disk
groups that match the supplied pattern. See "Wildcard Characters
(page 10-5)".
Table 10-49 (page 10-55) shows the attributes for each disk group. To view the
complete set of attributes for a disk group, use the V$ASM_DISKGROUP_STAT or V
$ASM_DISKGROUP view.
See Also:
Req_mir_free_MB Amount of space that must be available in the disk group to restore
full redundancy after the most severe failure that can be tolerated by
the disk group. This is the REQUIRED_MIRROR_FREE_MB column
from the V$ASM_DISKGROUP view.
Usable_file_MB Amount of free space, adjusted for mirroring, that is available for new
files. From the V$ASM_DISKGROUP view.
Offline_disks Number of offline disks in the disk group. Offline disks are
eventually dropped.
Voting_files Specifies whether the disk group contains voting files (Y or N).
Example
The following example lists the attributes of the data disk group.
Example 10-58 Using the ASMCMD lsdg command
ASMCMD [+] > lsdg data
State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB
MOUNTED NORMAL N 512 4096 4194304 12288 8835 1117 3859
(continued)
Offline_disks Voting_files Name
0 N DATA
lsdsk
Purpose
Lists Oracle ASM disks.
Table 10-50 (page 10-56) lists the options for the lsdsk command.
Option Description
(none) Displays the PATH column of the V$ASM_DISK_STAT view.
-G Restricts results to only those disks that belong to the group specified
by diskgroup.
-M Displays the disks that are visible to some but not all active instances.
These are disks that, if included in a disk group, cause the mount of
that disk group to fail on the instances where the disks are not visible.
Option Description
--member Restricts results to only disks having membership status equal to
MEMBER.
pattern Returns only information about the specified disks that match the
supplied pattern.
The lsdsk command can run in connected or non-connected mode. The connected
mode is always attempted first. The -I option forces non-connected mode.
Note:
pattern restricts the output to only disks that match the pattern specified. Wild-card
characters and slashes (/ or \) can be part of the pattern. pattern should be specified
as the last option for the command. For information about wildcards, see "Wildcard
Characters (page 10-5)".
The -k, -p, -t, and --statistics options modify how much information is
displayed for each disk. If any combination of the options are specified, then the
output shows the union of the attributes associated with each flag.
Example
The following are examples of the lsdsk command. The first and second examples
list information about disks in the data disk group. The third example lists
information about candidate disks.
Example 10-59 Using the ASMCMD lsdsk command
ASMCMD [+] > lsdsk -t -G data
Create_Date Mount_Date Repair_Timer Path
13-JUL-09 13-JUL-09 0 /devices/diska1
13-JUL-09 13-JUL-09 0 /devices/diska2
13-JUL-09 13-JUL-09 0 /devices/diska3
13-JUL-09 13-JUL-09 0 /devices/diskb1
13-JUL-09 13-JUL-09 0 /devices/diskb2
13-JUL-09 13-JUL-09 0 /devices/diskb3
13-JUL-09 13-JUL-09 0 /devices/diskc1
13-JUL-09 13-JUL-09 0 /devices/diskc2
...
lsod
Purpose
Lists the open Oracle ASM disks.
Table 10-51 (page 10-58) lists the syntax options for the lsod command.
Option Description
--suppressheader Suppresses column header information from the output.
-G diskgroup Specifies the disk group that contains the open disks.
The rebalance operation (RBAL) opens a disk both globally and locally so the same
disk may be listed twice in the output for the RBAL process.
Example
The following are examples of the lsod command. The first example lists the open
devices associated with the data disk group and the LGWR process. The second
example lists the open devices associated with the LGWR process for disks that match
the diska pattern.
Example 10-60 Using the ASMCMD lsod command
ASMCMD [+] > lsod -G data --process *LGWR*
Instance Process OSPID Path
1 oracle@myserver02 (LGWR) 26593 /devices/diska1
1 oracle@myserver02 (LGWR) 26593 /devices/diska2
1 oracle@myserver02 (LGWR) 26593 /devices/diska3
1 oracle@myserver02 (LGWR) 26593 /devices/diskb1
1 oracle@myserver02 (LGWR) 26593 /devices/diskb2
1 oracle@myserver02 (LGWR) 26593 /devices/diskb3
1 oracle@myserver02 (LGWR) 26593 /devices/diskd1
For another example of the lsod command, see Example 10-2 (page 10-10).
md_backup
Purpose
The md_backup command creates a backup file containing metadata for one or more
disk groups.
Table 10-52 (page 10-59) describes the options for the md_backup command.
Option Description
backup_file Specifies the backup file in which you want to store the
metadata.
-G diskgroup Specifies the disk group name of the disk group that must be
backed up
By default all the mounted disk groups are included in the backup file, which is saved
in the current working directory if a path is not specified with the file name.
Oracle Automatic Storage Management Cluster File System (Oracle ACFS) file system
and Oracle ASM Dynamic Volume Manager(Oracle ADVM) volume information is
not backed up.
Example
The first example shows the use of the backup command when run without the disk
group option. This example backs up all the mounted disk groups and creates the
backup image in the /scratch/backup/alldgs20100422 file. The second example
creates a backup of the data disk group. The metadata backup that this example
creates is saved in the /scratch/backup/data20100422 file.
Example 10-61 Using the ASMCMD md_backup command
ASMCMD [+] > md_backup /scratch/backup/alldgs20100422
Disk group metadata to be backed up: DATA
Disk group metadata to be backed up: FRA
Current alias directory path: ORCL/ONLINELOG
Current alias directory path: ORCL/PARAMETERFILE
Current alias directory path: ORCL
Current alias directory path: ASM
Current alias directory path: ORCL/DATAFILE
Current alias directory path: ORCL/CONTROLFILE
Current alias directory path: ASM/ASMPARAMETERFILE
md_restore
Purpose
The md_restore command restores disk groups from a metadata backup file.
Table 10-53 (page 10-60) describes the options for the md_restore command.
Option Description
backup_file Reads the metadata information from backup_file.
Option Description
-G diskgroup Select the disk groups to be restored. If no disk groups
are defined, then all disk groups are restored.
Example
The first example restores the disk group data from the backup script and creates a
copy. The second example takes an existing disk group data and restores its
metadata. The third example restores disk group data completely but the new disk
group that is created is named data2. The fourth example restores from the backup
file after applying the overrides defined in the override.sql script file.
Example 10-62 Using the ASMCMD md_restore command
ASMCMD [+] > md_restore –-full –G data –-silent /scratch/backup/alldgs20100422
mkdg
Purpose
Creates a disk group based on an XML configuration file.
Table 10-54 (page 10-61) lists the syntax options for the mkdg command.
Option Description
config_file Name of the XML file that contains the configuration for the
new disk group. mkdg searches for the XML file in the directory
where ASMCMD was started unless a path is specified.
For examples of the valid tags and XML configuration file, see
Example 10-63 (page 10-62) and Example 10-64 (page 10-62).
mkdg creates a new disk group with an XML configuration file that specifies the name
of the disk group, redundancy, attributes, and paths of the disks that form the disk
group. Redundancy is an optional parameter; the default is normal redundancy. For
some types of redundancy, disks are required to be gathered into failure groups. In the
case that failure groups are not specified for a disk group, each disk in the disk group
belongs to its own failure group.
The mkdg command only mounts a disk group on the local node.
It is possible to set some disk group attribute values during disk group creation. Some
attributes, such as AU_SIZE and SECTOR_SIZE, can be set only during disk group
creation. For more information about disk groups attributes, refer to "Managing Disk
Group Attributes (page 4-2)".
The default disk group compatibility settings are 10.1 for Oracle ASM compatibility,
10.1 for database compatibility, and no value for Oracle ADVM compatibility. For
information about disk group compatibility attributes, see "Disk Group Compatibility
(page 4-41)".
Example 10-63 (page 10-62) shows the basic structure and the valid tags with their
respective attributes for the mkdg XML configuration file.
Example 10-63 Tags for mkdg XML configuration file
<dg> disk group
name disk group name
redundancy normal, external, high
<dsk> disk
name disk name
string disk path
size size of the disk to add
force true specifies to use the force option
</dsk>
<a> attribute
name attribute name
value attribute value
</a>
</dg>
For information about altering a disk group with ASMCMD chdg, see "chdg
(page 10-47)". For information about creating a disk group, see "Creating Disk Groups
(page 4-7)".
Example
The following is an example of an XML configuration file for mkdg. The configuration
file creates a disk group named data with normal redundancy. Two failure groups,
fg1 and fg2, are created, each with two disks identified by associated disk strings.
The disk group compatibility attributes are all set to 11.2.
Example 10-64 mkdg sample XML configuration file
<dg name="data" redundancy="normal">
<fg name="fg1">
<dsk string="/dev/disk1"/>
<dsk string="/dev/disk2"/>
</fg>
<fg name="fg2">
<dsk string="/dev/disk3"/>
<dsk string="/dev/disk4"/>
</fg>
<a name="compatible.asm" value="11.2"/>
<a name="compatible.rdbms" value="11.2"/>
The following are examples of the mkdg command. The first example runs mkdg with
an XML configuration file in the directory where ASMCMD was started. The second
example runs mkdg using information on the command line.
Example 10-65 Using the ASMCMD mkdg command
ASMCMD [+] > mkdg data_config.xml
mount
Purpose
Mounts a disk group.
Table 10-55 (page 10-63) lists the syntax options for the mount command.
Option Description
diskgroup Name of the disk group.
This operation mounts one or more disk groups. A disk group can be mounted with or
without force or restricted options. For more information about mounting disk groups,
see "Mounting and Dismounting Disk Groups (page 4-55)".
Example
The following are examples of the mount command showing the use of the force,
restrict, and all options.
Example 10-66 Using the ASMCMD mount command
ASMCMD [+] > mount -f data
offline
Purpose
Offline disks or failure groups that belong to a disk group.
Table 10-56 (page 10-64) lists the syntax options for the offline command.
Option Description
-G diskgroup Disk group name.
-t minutes | hours Specifies the time before the specified disk is dropped as nm or
nh, where m specifies minutes and h specifies hours. For
example, 120m or 2h.The default unit is hours.
When a failure group is specified, this implies all the disks that belong to it should be
offlined.
Example
The following are examples of the offline command. The first example offlines the
failgroup1 failure group of the data disk group. The second example offlines the
data_0001 disk of the data disk group with a time of 1.5 hours before the disk is
dropped.
Example 10-67 Using the ASMCMD offline command
ASMCMD [+] > offline -G data -F failgroup1
online
Purpose
Online all disks, a single disk, or a failure group that belongs to a disk group.
Table 10-57 (page 10-64) lists the syntax options for the online command.
Option Description
-a Online all offline disks in the disk group.
Option Description
-F failgroup Failure group name.
When a failure group is specified, this implies all the disks that belong to it should be
onlined.
Example
The following are examples of the online command. The first example onlines all
disks in the failgroup1 failure group of the data disk group with the wait option
enabled. The second example onlines the data_0001 disk in the data disk group.
Example 10-68 Using the ASMCMD online command
ASMCMD [+] > online -G data -F failgroup1 -w
rebal
Purpose
Rebalances a disk group.
Table 10-58 (page 10-65) lists the syntax options for the rebal command.
Option Description
diskgroup Disk group name.
The power level can be set to the same values as the ASM_POWER_LIMIT initialization
parameter. A value of 0 disables rebalancing. If the rebalance power is not specified,
Example
The following is an example of the rebal command that rebalances the fra disk
group with a power level set to 4.
Example 10-69 Using the ASMCMD rebal command
ASMCMD [+] > rebal --power 4 fra
remap
Purpose
Marks a range of blocks as unusable on the disk and relocates any data allocated in
that range.
Table 10-59 (page 10-66) lists the syntax options for the remap command.
Option Description
diskgroup Disk group name in which a disk must have data relocated.
disk Name of the disk that must have data relocated. The name must
match the NAME column in the V$ASM_DISK view.
The remap command only relocates blocks. It does not correct or repair blocks that
contain corrupted contents. The command uses a physical block size based on the
SECTOR_SIZE disk group attribute.
Examples
The first example remaps blocks 5000 through 5999 for disk DATA_0001 in disk
group DATA. The second example remaps blocks 6230 through 6339 for disk
FRA_0002 in disk group FRA
setattr
Purpose
Sets the attributes for an Oracle ASM disk group.
Table 10-60 (page 10-67) lists the syntax options for the setattr command.
Option Description
-G diskgroup Disk group name.
The COMPATIBLE.ASM attribute must be advanced before advancing other disk group
compatibility attributes and its value must be greater than or equal to the value of
other disk group compatibility attributes.
For information about disk group attributes, see "Managing Disk Group Attributes
(page 4-2)".
Example
The following are examples of the setattr command. The first example sets the disk
group attribute COMPATIBLE.ASM to 12.1.0.2 for the data disk group. The second
example sets the disk group attribute COMPATIBLE.RDBMS to 12.1 for the data disk
group.
Example 10-71 Using the ASMCMD setattr command
ASMCMD [+] > setattr -G data compatible.asm 12.1.0.2
umount
Purpose
Dismounts a disk group.
Table 10-61 (page 10-68) lists the syntax options for the umount command.
Option Description
diskgroup Name of the disk group.
Example
The following are examples of the umount command. The first example dismounts all
disk groups mounted on the Oracle ASM instance. The second example forces the
dismount of the data disk group.
Example 10-72 Using the ASMCMD umount command
ASMCMD [+] > umount -a
NOT_SUPPORTED
Command Description
chtmplNOT_SUPPORTED Changes the attributes of a template.
chtmpl
Purpose
Changes the attributes of a template.
Table 10-63 (page 10-69) lists the syntax options for the chtmpl command.
Option Description
-G diskgroup Name of the disk group.
Example
The following is an example of the chtmpl command that updates the mytemplate
template of the data disk group. The redundancy attribute is set to high and the
striping attribute is set to fine.
Example 10-73 Using the ASMCMD chtmpl command
ASMCMD [+] > chtmpl -G data --redundancy high --striping fine mytemplate
lstmpl
Purpose
Lists all templates for all disk groups or the templates for a specified disk group.
Table 10-64 (page 10-69) lists the syntax options for the lstmpl command.
Option Description
-G diskgroup Specifies disk group name.
For information about template attributes, see "Template Attributes (page 5-20)".
Example
The following is an example of the lstmpl command. The example lists all details of
the templates in the data disk group.
Example 10-74 Using the ASMCMD lstmpl command
ASMCMD [+] > lstmpl -l -G data
mktmpl
Purpose
Adds a template to a disk group.
Table 10-65 (page 10-70) lists the syntax options for the mktmpl command.
Option Description
-G diskgroup Name of the disk group.
Option Description
--redundancy { high | Redundancy specification, either high, mirror, or
mirror | unprotected} unprotected.
For information about adding templates, see "Adding Templates to a Disk Group
(page 5-21)".
Example
The following is an example of the mktmpl command that adds the mytemplate
template to the data disk group. The new template has the redundancy set to mirror
and the striping set to coarse.
Example 10-75 Using the ASMCMD mktmpl command
ASMCMD [+] > mktmpl -G data --redundancy mirror --striping coarse mytemplate
rmtmpl
Purpose
Removes a template from a disk group.
Table 10-66 (page 10-71) lists the syntax options for the rmtmpl command.
Option Description
-G diskgroup Name of the disk group.
For information about template attributes, see "Template Attributes (page 5-20)".
Example
The following is an example of the rmtmpl command that removes the mytemplate
template from the data disk group.
Example 10-76 Using the ASMCMD rmtmpl command
ASMCMD [+] > rmtmpl -G data mytemplate
Note:
NOT_SUPPORTED
Command Description
chgrpNOT_SUPPORTED Changes the user group of a file or list of files.
chgrp
Purpose
Changes the user group of a file or list of files.
Table 10-68 (page 10-73) lists the syntax options for the chgrp command.
Option Description
usergroup Name of the user group.
Only the file owner or the Oracle ASM administrator can use this command. If the
user is the file owner, then the user must also be either the owner or a member of the
group for this command to succeed.
This command accepts a file name or multiple file names separated by spaces.
If you change the user group settings of an open file, then the operation currently
running on the file completes using the old user group settings. The new settings take
effect when re-authentication is required.
Examples
The following are examples of the chgrp command that change the Oracle ASM user
group of the specified files.
Example 10-77 Using the ASMCMD chgrp command
ASMCMD [+] > chgrp asm_data +data/orcl/controlfile/Current.260.684924747
chmod
Purpose
Changes permissions of a file or list of files.
Option Description
6 Read write permissions
0 No permissions
r Read permission
w Write permission
This command accepts a file name or multiple file names separated by spaces.
You can only set file permissions to read-write, read-only, and no permissions. You
cannot set file permissions to write-only.
If you change the permission settings of an open file, then the operation currently
running on the file completes using the old permission settings. The new settings take
effect when re-authentication is required.
To view the permissions on a file, use the ASMCMD ls command with the --
permission option. See "ls (page 10-40)".
Examples
The following are examples of the chmod command that change the permissions of the
specified files.
Example 10-78 Using the ASMCMD chmod command
ASMCMD [+fra/orcl/archivelog/flashback] > chmod ug+rw log_7.264.684968167 log_8.265.684972027
chown
Purpose
Changes the owner of a file or list of files.
Table 10-70 (page 10-75) lists the syntax options for the chown command.
Option Description
user The name of the user that becomes the new owner.
user typically refers to the user that owns the database instance home. Oracle ASM
File Access Control uses the operating system (OS) name to identify a database.
This command accepts a file name or multiple file names separated by spaces.
If you change the ownership settings of an open file, then the following applies:
• The operation currently running on the file completes using the old ownership
and user group settings. The new settings take effect when re-authentication is
required.
• The new owner of the file cannot be dropped from the disk group until all
instances in a cluster are restarted in a rolling manner.
Only the Oracle ASM administrator can use this command.
Examples
The following are examples of the chown command that change the owner of the
specified files to the oracle1 operating system user.
Example 10-79 Using the ASMCMD chown command
ASMCMD [+fra/orcl/archivelog/flashback] > chown oracle1 log_7.264.684968167 log_8.265.684972027
groups
Purpose
Lists all the user groups to which the specified user belongs.
Table 10-71 (page 10-76) lists the syntax options for the groups command.
Option Description
diskgroup Name of the disk group to which the user belongs.
Examples
The following is an example of the groups command that displays the user groups of
the data disk group to which the oracle1 user belongs.
Example 10-80 Using the ASMCMD groups command
ASMCMD [+] > groups data oracle1
asm_data
grpmod
Purpose
Adds or removes operating system (OS) users to and from an existing Oracle ASM
user group.
Table 10-72 (page 10-76) lists the syntax options for the grpmod command.
Option Description
--add Specifies to add users to the user group.
diskgroup Name of the disk group to which the user group belongs.
user Name of the user to add or remove from the user group.
Only the owner of the user group can use this command. The command requires the
SYSASM privilege to run.
This command accepts an operating system user name or multiple user names
separated by spaces. The operating system users are typically owners of a database
instance home.
Examples
The following are examples of the grpmod command. The first example adds the
oracle1 and oracle2 users to the asm_fra user group of the fra disk group. The
second example removes the oracle2 user from the asm_data user group of the
data disk group.
Example 10-81 Using the ASMCMD grpmod command
ASMCMD [+] > grpmod –-add fra asm_fra oracle1 oracle2
lsgrp
Purpose
Lists all Oracle ASM user groups or only groups that match a specified pattern.
Table 10-73 (page 10-77) lists the syntax options for the lsgrp command.
Option Description
--suppressheader Suppresses column headings.
pattern Displays the user groups that match the pattern expression.
Examples
The following are examples of the lsgrp command. The first example displays a
subset of information about the user groups whose name matches the asm% pattern.
The second example displays all information about all the user groups.
Example 10-82 Using the ASMCMD lsgrp command
ASMCMD [+] > lsgrp asm%
DG_Name Grp_Name Owner
FRA asm_fra grid
DATA asm_data grid
lsusr
Purpose
Lists Oracle ASM users in a disk group.
Table 10-74 (page 10-78) lists the syntax options for the lsusr command.
Option Description
-a List all users and the disk groups to which the users belong.
Examples
The following is an example of the lsusr command. The example lists users in the
data disk group and also shows the operating system Id assigned to the user.
Example 10-83 Using the ASMCMD lsusr command
ASMCMD [+] > lsusr -G data
User_Num OS_ID OS_Name
3 1001 grid
1 1021 oracle1
2 1022 oracle2
mkgrp
Purpose
Creates a new Oracle ASM user group.
Table 10-75 (page 10-78) lists the syntax options for the mkgrp command.
Option Description
diskgroup Name of the disk group to which the user group is added.
You can optionally specify a list of users to be included as members of the new user
group.
Examples
The following is an example of the mkgrp command. This example creates the
asm_data user group in the data disk group and adds the oracle1 and oracle2
users to the user group.
Example 10-84 Using the ASMCMD mkgrp command
ASMCMD [+] > mkgrp data asm_data oracle1 oracle2
mkusr
Purpose
Adds an operating system (OS) user to a disk group.
Table 10-76 (page 10-79) lists the syntax options for the mkusr command.
Option Description
diskgroup Specifies the name of the disk group to which the user is to be
added.
The user to be added must be a valid operating system user. Only a user authenticated
as SYSASM can run this command.
Examples
The following are examples of the mkusr command. The first example adds the
oracle1 user to the data disk group. The second example adds the oracle2 user to
the fra disk group.
Example 10-85 Using the ASMCMD mkusr command
ASMCMD [+] > mkusr data oracle1
passwd
Purpose
Changes the password of a user.
Table 10-77 (page 10-80) lists the syntax options for the passwd command.
Option Description
user Name of the user.
An error is raised if the user does not exist in the Oracle ASM password file. The user
is first prompted for the current password, then the new password. The command
requires the SYSASM privilege to run.
Examples
The following is an example of the passwd command that changes the password of
the oracle2 user.
Example 10-86 Using the ASMCMD passwd command
ASMCMD [+] > passwd oracle2
Enter old password (optional):
Enter new password: ******
rmgrp
Purpose
Removes a user group from a disk group.
Table 10-78 (page 10-80) lists the syntax options for the rmgrp command.
Option Description
diskgroup Name of the disk group to which the user group belongs.
Removing a group might leave some files without a valid user group. To ensure that
those files have a valid group, explicitly update those files to a valid user group. See
"chgrp (page 10-72)".
The command must be run by the owner of the user group and also requires the
SYSASM privilege to run.
Examples
The following is an example of the rmgrp command that removes the asm_data user
group from the data disk group.
Example 10-87 Using the ASMCMD rmgrp command
ASMCMD [+] > rmgrp data asm_data
rmusr
Purpose
Deletes an operating system (OS) user from a disk group.
Table 10-79 (page 10-81) lists the syntax options for the rmusr command.
Option Description
-r Removes all files in the disk group that the user owns at the
same time that the user is removed.
diskgroup Specifies the name of the disk group from which the user is to
be deleted.
Examples
The following is an example of the rmusr command that removes the oracle2 user
from the data disk group.
Example 10-88 Using the ASMCMD rmusr command
ASMCMD [+] > rmusr data oracle2
rpusr
Purpose
Replaces one operating system (OS) user with another in a disk group.
Table 10-80 (page 10-81) lists the syntax options for the rpusr command.
Option Description
diskgroup Specifies the name of the disk group.
user2 Name of user that replaces the existing user in the disk group.
The rpusr command replaces one operating system user with another in an Oracle
ASM disk group. The replacement user must not be a user currently in the disk group
user list.
If the command succeeds, all files that were previously owned by current user are now
owned by the replacement user. The current user is automatically removed from the
user list of the disk group. Adding the current user back to the disk group is possible
but this user will not own any files.
When changing the ownership of an open file, the new owner cannot be dropped with
the owner's files until all instances within a cluster are restarted.
The command requires the SYSASM privilege to run.
Examples
The following is an example of the rpusr command that replaces the oracle1 user
with the oracle2 user in the data disk group.
Example 10-89 Using the ASMCMD rpusr command
ASMCMD [+] > rpusr data oracle1 oracle2
Part III discusses Oracle Automatic Storage Management Cluster File System (Oracle
ACFS) and Oracle ASM Dynamic Volume Manager (Oracle ADVM), in the following
chapters:
• Managing Oracle ACFS and Oracle ADVM With ASMCA (page 14-1)
See Also:
• Managing Oracle ASM With ASMCA (page 9-1) for information about
using Oracle ASM Configuration Assistant to administer Oracle ACFS
file data. Oracle ACFS conforms to POSIX standards for Linux and UNIX, and to
Windows standards for Windows.
An Oracle ACFS file system communicates with Oracle ASM and is configured with
Oracle ASM storage, as shown in Figure 11-1 (page 11-2). Oracle ACFS leverages
Oracle ASM functionality that enables:
• Maximized performance through direct access to Oracle ASM disk group storage
• Balanced distribution of Oracle ACFS across Oracle ASM disk group storage for
increased I/O parallelism
Oracle RAC
Oracle Database Application Application
Oracle
Third Party
ASM Cluster File
Oracle ASM File System
System (ACFS)
Files for
Oracle
Database Oracle ASM Dynamic
Volume Manager
(ADVM)
Operating System
Oracle ACFS establishes and maintains communication with the Oracle ASM instance
to participate in Oracle ASM state transitions including Oracle ASM instance and disk
group status updates and disk group rebalancing. Oracle Automatic Storage
Management with Oracle ACFS and Oracle ASM Dynamic Volume Manager (Oracle
ADVM) delivers support for all customer data and presents a common set of Oracle
storage management tools and services across multiple vendor platforms and
operating system environments on both Oracle Restart (standalone) and cluster
configurations. For an overview of Oracle ADVM, see "Overview of Oracle ASM
Dynamic Volume Manager (page 11-39)".
Oracle ACFS is tightly coupled with Oracle Clusterware technology, participating
directly in Clusterware cluster membership state transitions and in Oracle Clusterware
resource-based high availability (HA) management. In addition, Oracle installation,
configuration, verification, and management tools have been updated to support
Oracle ACFS.
Oracle ACFS can be accessed and managed using native operating system file system
tools and standard application programming interfaces (APIs). Oracle ACFS can also
be managed with Oracle ASM Configuration Assistant. Oracle ACFS can be accessed
using industry standard Network Attached Storage (NAS) File Access Protocols:
Network File System (NFS) and Common Internet File System (CIFS). However, CIFS
clients on Windows cannot use ACLs when interfacing with Oracle ACFS Linux,
Solaris, or AIX servers, but can use ACLs with Oracle ACFS on Windows.
In addition to sharing file data, Oracle ACFS provides additional storage management
services including support for the Oracle Grid Infrastructure clusterwide mount
registry, dynamic online file system resizing, and multiple space efficient snapshots
for each file system.
Oracle ACFS contributes to the overall Oracle storage management by providing:
• A common set of file system features across multiple vendor platforms and
operating systems, offering an alternative to native operating system or third-
party file system solutions
• Standalone and clusterwide shared Oracle Database homes, all Oracle Database
files, and application data
• Uniform, coherent shared file access and clusterwide naming of all customer
application files
• For all applications, Oracle ACFS performance is best with larger write() sizes,
such as 8 K or larger.
• For best performance, use the Deadline I/O Scheduler for the disks in the disk
group on a Linux system.
• When using a file system across cluster nodes on Windows platforms, the best
practice is to mount the file system using a domain user, to ensure that the
security identifier is the same across cluster nodes. Windows security identifiers,
which are used in defining access rights to files and directories, use information
which identifies the user. Local users are only known in the context of the local
node. Oracle ACFS uses this information during the first file system mount to set
the default access rights to the file system.
Refer to the Oracle Database Installation Guide for the Windows platform for
information about Oracle Base permissions when a file system is mounted under
Oracle Base.
• Oracle ACFS does not support any files associated with the management of Oracle
ASM, such as files in the Oracle Grid Infrastructure home and in the Oracle ASM
diagnostic directory.
• Oracle ACFS does not support Oracle Cluster Registry (OCR) and voting files.
• Oracle ACFS functionality requires that the disk group compatibility attributes for
ASM and ADVM be set to 11.2 or higher. For information about disk group
compatibility, refer to "Disk Group Compatibility (page 4-41)".
• To use an Oracle ACFS file system for an Oracle Database home, the release level
must be Oracle 11g Release 2 (11.2) or later.
For information about managing and monitoring Oracle ACFS, refer to Managing
Oracle ACFS with Command-Line Tools (page 16-1) and Using Views to Display
Oracle ACFS Information (page 12-1).
• About the Oracle ACFS Mount Model and Namespace (page 11-5)
ACFS is designed as a multi-node, shared file system model that delivers coherent,
cached, direct storage paths to Oracle ACFS file data from each cluster member.
Oracle ACFS files systems are typically configured for clusterwide access. File
systems, files, and directories are visible and accessible from all cluster members and
can be referenced by users and applications using the same path names from any
cluster member. This design enables simplified application deployments across cluster
members and facilitates both multiple instance cluster applications and high
availability (HA) failover of unmodified standalone server applications.
Oracle ACFS presents single system file access semantics across cluster configurations.
Applications and users on all cluster members are always presented with the same
view of shared Oracle ACFS file data, supported by the Oracle ACFS clusterwide user
and metadata cache coherency mechanism.
Note:
The best practice for data files in Oracle ACFS is to use a clusterwide resource
for the Oracle ACFS File system that stores the data files. For additional
information, refer to "Creating Oracle ACFS Resources (page 11-16)".
If the data files are added after the database installation is complete, you must
modify the database dependencies to list the new Oracle ACFS file
system. Failure to do so results in errors with application reliability. To specify
the file systems in the dependency list, use the SRVCTL database object
command to modify the Oracle ACFS paths used by the resource.
Oracle ACFS in Oracle Grid 12c Release 1 (12.1) supports all database files starting
with Oracle Database 11g Release 2 (11.2.0.4), except for data files and redo logs in an
Oracle Restart (standalone server) configuration. Oracle ACFS can be configured for
use with the database particularly to leverage Oracle ACFS snapshots for database
testing and development. To support database files, the COMPATIBLE.ADVM attribute
must be set to 12.1 or higher for the disk group that contains the Oracle ACFS file
system.
Support for database data files on Windows begins with Oracle Grid 12c Release 1
(12.1.0.2). For support of database files on Windows, the COMPATIBLE.ADVM attribute
must be set to 12.1.0.2 or higher.
Support for database data files on Oracle Exadata (Linux) begins with Oracle Grid 12c
Release 1 (12.1.0.2). However, Oracle ACFS does not currently have the ability to push
database operations directly into storage.
Oracle ACFS additionally supports all database files for Oracle Database 10g Release 2
(10.2.0.4 and 10.2.0.5) on Oracle Exadata (Linux) storage only. For database file
support with Oracle Database 10g Release 2 (10.2.0.4 and 10.2.0.5) on Oracle Exadata
storage, the following conditions must be met:
• When creating an Oracle Database with DBCA, you must set the
REMOTE_LISTENER initialization parameter to your_scan_vip:1521 otherwise
DBCA fails during the create process. For information about the
REMOTE_LISTENER initialization parameter, refer to Oracle Database Reference.
• You must modify all the start and stop dependencies of the database instance
resources to ensure that the resources start when starting Oracle Clusterware. For
information about resource dependencies, refer to Oracle Clusterware
Administration and Deployment Guide.
The following list provides important information about using Oracle ACFS with
database files:
• Oracle ACFS support includes all file types supported by Oracle ASM. For a list of
file types supported by Oracle ASM, refer to Table 5-1 (page 5-1).
• Oracle ACFS does not support data files or redo logs in an Oracle Restart
configuration. Oracle ACFS does not support direct I/O in an Oracle Restart
configuration.
• When storing database data files on Oracle ACFS, you must set the
FILESYSTEMIO_OPTIONS initialization parameter to setall; other settings are
not supported. To achieve optimal performance with database data files, set ASM
and ADVM compatibility attributes to 12.1 or higher for the disk group that
contains the Oracle ADVM volume intended to hold the data files. For volumes
created before 12.1.0.2, set the stripe columns to 1, or set the stripe columns to 8
and the stripe width to 1 MB. Volumes created while running 12.1.0.2 or higher
already default to the high performance configuration (stripe columns = 8 and
stripe width = 1 MB). For information about creating a volume, refer to "volcreate
(page 15-1)".
• Use a 4 K or larger database block size and tablespace block size with Oracle
ACFS for best performance.
• If a data file is configured to automatically extend, then the size of the increments
should be large enough to ensure that the extend operation occurs infrequently.
Frequent automatic extends have a negative performance impact.
• Using Oracle ACFS replication or encryption with database files on Oracle ACFS
is not supported. For information about other replication options for database files
on Oracle ACFS, refer to Oracle Data Guard Concepts and Administration and Oracle
GoldenGate documentation. Oracle GoldenGate is an Oracle product sold
independently of the Oracle Database. To encrypt database data files on Oracle
ACFS, Oracle recommends Oracle Advanced Security. Oracle Advanced Security
provides Transparent Data Encryption (TDE) to encrypt data files for entire
tablespaces. For information about Transparent Data Encryption (TDE), refer to
Oracle Database Advanced Security Guide.
See Also:
Oracle Database Installation Guide for information about Optimal Flexible
Architecture (OFA) recommendations for Oracle base and home directories
You can locate the Oracle Database base (ORACLE_BASE for database) directory and
home (ORACLE_HOME for database) directory on an Oracle ACFS file system. The
Oracle Database base (ORACLE_BASE for database) directory should not be the Oracle
Grid Infrastructure base (ORACLE_BASE for grid) directory or should not be located
under the Oracle Grid Infrastructure base directory (ORACLE_BASE for grid).
The Oracle Grid Infrastructure base (ORACLE_BASE for grid) directory and home
(ORACLE_HOME for grid) directory cannot be located on the Oracle ACFS file system
because the Oracle ACFS file system cannot be created until Oracle Grid Infrastructure
is installed.
One or more Oracle Database homes on Oracle ACFS can be created under the same
mount point with each home using a separate Oracle ACFS file system.
After the installation of Oracle Grid Infrastructure Software and before the installation
of the Oracle Database software with Oracle Universal Installer (OUI), you can create
an Oracle ACFS file system to be configured for use as an Oracle Database home.
You can also use the Oracle ASM Configuration Assistant (ASMCA) or Oracle ACFS
commands to create the file system. For information about using ASMCA, refer to
"Creating an Oracle ACFS File System for Database Use (page 14-7)".
For information about using Oracle ACFS commands to create a file system, refer to
Managing Oracle ACFS with Command-Line Tools (page 16-1).
Note:
When an Oracle ACFS file system contains an Oracle Database home or Oracle
Database uses the file system for any file storage, the file system must have an
Oracle ACFS file system resource. If you have not used Oracle ASM
Configuration Assistant to setup the mount point, then you must use Server
Control Utility (SRVCTL) commands to set up Oracle Database dependencies.
For information about SRVCTL, see Oracle Real Application Clusters
Administration and Deployment Guide.
Note:
When additional Oracle ACFS file systems are added to an Oracle Database
after creation, they must be specified in the Oracle Database Resource
Dependency list. Failure to do so results in errors with application reliability.
To specify the file systems in the dependency list, use the SRVCTL database
object command to modify the Oracle ACFS paths used by the resource.
Oracle ACFS file systems can be also configured for use as a home for applications.
However, Oracle ACFS file systems cannot be used for an Oracle base directory or an
Oracle Grid Infrastructure home that contains the software for Oracle Clusterware,
Oracle ASM, Oracle ACFS, and Oracle ADVM components.
To reduce contention on an Oracle ACFS file system in an Oracle RAC environment
where the Oracle Database home is shared on Oracle ACFS, Oracle Database auditing
operating system files should be configured as node specific. For a node-specific setup,
you must ensure that the AUDIT_FILE_DEST initialization parameter in the
configuration file of each database instance points to a unique location rather than one
location for all the database instances.
For example, if you have a database with the Oracle name set to TEST and you want to
ensure that the location of AUDIT_FILE_DEST initialization parameter for each
database instance, such as TEST1 or TEST2, points to a node specific location for that
instance, you can run the following SQL statement:
SQL> ALTER SYSTEM SET AUDIT_FILE_DEST='$ORACLE_BASE/admin/adump/TEST/@'
SCOPE=SPFILE SID='*';
See Also:
Note:
Errors encountered by the drivers are written to the native operating system
console and system event loggers. Refer to "Understanding Oracle ACFS I/O
Failure Console Messages (page 18-16)".
By default, an Oracle ACFS file system that is inserted into the Oracle ACFS mount
registry is automatically mounted on all cluster members, including cluster members
that are added after the registry addition. However, the Oracle ACFS mount registry
also accommodates standalone and multi-node (subset of cluster nodes) file system
registrations. The mount registry actions for each cluster member mount only
registered file systems that have been designated for mounting on that member.
The Oracle ACFS mount registry is implemented using Oracle Clusterware resources,
specifically the Oracle ACFS resource. The Oracle ACFS resource actions are designed
to automatically mount a file system only one time for each Oracle Grid Infrastructure
initialization to avoid potential conflicts with administrative actions to dismount a
given file system.
For information about registering an Oracle ACFS file system using the acfsutil
command, refer to "acfsutil registry (page 16-129)" or the SRVCTL srvctl add
filesystem command.
For more information about the implementation of the mount registry and Oracle
ACFS resources, refer to "Oracle Clusterware Resources and Oracle ACFS
Administration (page 11-15)".
See Also:
• Running test scenarios on a real data set without modifying the original
production file system
To use Oracle ACFS read-write snapshots, the disk group compatibility attribute for
ADVM must be set to 11.2.0.3.0 or higher. If you create a read-write snapshot on an
existing Oracle ACFS file system from a version earlier than 11.2.0.3.0, then the
file system is updated to the 11.2.0.3.0 or higher format. After a file system has
been updated to a higher version, an Oracle ACFS file system cannot be reverted to an
earlier version, and accordingly cannot be mounted on an earlier Oracle Grid
Infrastructure version.
You can create a snapshot from an existing snapshot in the same Oracle ACFS file
system. In addition, you can convert a snapshot between read-only and read-write
formats. To create from an existing snapshot or convert a snapshot, the disk group
compatibility attribute for ADVM must be set to 12.1 or higher. In addition, creation
from an existing snapshot is not permitted if there are:
• Any snapshots present in the file system that were created with the ADVM
compatibility set to less than 12.1
• Any snapshots of the file system that were created after ADVM compatibility was
set to 12.1 but while 11.2 snapshots existed
Oracle ACFS snapshot storage is maintained within the file system, eliminating the
management of separate storage pools for file systems and snapshots. Oracle ACFS file
systems can be dynamically resized to accommodate additional file and snapshot
storage requirements.
You cannot modify security or encryption metadata in read-write snapshots except for
enabling or disabling security or encryption. No other alteration is permitted on
Oracle ACFS security or encryption metadata in a snapshot. If a file was not secured
by a security realm in the snapshot, it cannot be realm secured by adding the
corresponding file in the active file system to a security realm. If a file was not
encrypted in the snapshot, that file cannot be encrypted by encrypting the
corresponding file in the active file system.
A new file created in a realm-secured directory in a read-write snapshot inherits the
realm security attributes of the parent directory. If the realm protecting the new file
has encryption turned on, the file is encrypted with the encryption parameters set in
the realm. If the realm protecting the new file has encryption turned off, the file is
decrypted. Files and directories in a read-write snapshot cannot be added to or
removed from any security realm.
Files in a read-write snapshot can be encrypted, decrypted, or rekeyed if the operation
target is a path specified for a file or directory of the read-write snapshot. However, if
an encryption, decryption, or rekey operation is specified at the file system level, then
the operation does not process files and directories of snapshots in the .ACFS/
snaps/ directory.
All Oracle ACFS snapshot operations are serialized clusterwide in the kernel. For
example, if a snapshot create operation is initiated at the same time as a snapshot
delete operation, then both operations would complete, but they would not run in
parallel inside of the kernel. One operation would complete before the other was
started.
For information about Oracle ACFS security, refer to "Oracle ACFS Security
(page 11-19)".
For information about Oracle ACFS encryption, refer to "Oracle ACFS Encryption
(page 11-22)".
Oracle ACFS snapshots are administered with the acfsutil snap commands. For
information about the acfsutil snap commands, refer to "acfsutil snap create
(page 16-135)", "acfsutil snap delete (page 16-137)", and "acfsutil snap info
(page 16-138)".
Note:
The link() and rename() system calls fail if an attempt is made to link or
rename a file in the Oracle ACFS file system and a file in any associated read-
write snapshot, or vice versa. Any tools which use the link() and rename()
system calls, such as ln and mv, also fail in the same scenario.
See Also:
• Oracle ACFS and File Access and Administration Security (page 11-13)
In support of Oracle ACFS administration, Oracle recommends that the Oracle ASM
administrator role is given to a root privileged user, as many common Oracle ACFS
file system management tasks including mount, umount, fsck, driver load, and driver
unload are root privileged operations. Other privileged Oracle ACFS file system
operations that do not require root privileges can be performed by the Oracle ASM
administrator. If the Oracle ASM administrator role is not given to a root privileged
user, access to Oracle ACFS file systems can be restricted with the norootsuid and
nodev mount options.
Additional fine grain access control is provided for Oracle ACFS file systems with the
security infrastructure feature. For information about Oracle ACFS security
infrastructure, refer to "Oracle ACFS Security (page 11-19)".
For information about Oracle ACFS encryption, refer to "Oracle ACFS Encryption
(page 11-22)".
For information about Oracle ASM privileges, refer to "About Privileges for Oracle
ASM (page 3-47)".
For information about administering Oracle ACFS, refer to Managing Oracle ACFS
with Command-Line Tools (page 16-1).
• The Oracle ACFS, Oracle Kernel Services (OKS), and Oracle ADVM drivers are
dynamically loaded when the Oracle ASM instance is started.
– Oracle ACFS
This driver processes all Oracle ACFS file and directory operations.
– Oracle ADVM
This driver provides block device services for Oracle ADVM volume files that
are used by file systems for creating file systems.
• When a volume is created, Oracle ADVM creates a resource with the name of
ora.DISKGROUP.VOLUME.advm. This resource is usually managed through
transparent high availability calls from Oracle ASM and requires no user
interaction. However, the user may choose to use the SRVCTL command interface
to start and stop volumes as well as control the default state of the volume after an
Oracle ASM restart. This is especially beneficial in a large cluster or an Oracle Flex
ASM cluster, as volumes on other nodes may be operated upon.
In addition, these Oracle ADVM resources can be used by other resources in the
Oracle Clusterware stack to maintain dependency chains. Dependency chains
ensure that the resources a program requires to run are available. For instance, if a
resource was monitoring a backup application that was backing up to Oracle
ADVM volume, the backup application would want to ensure that it specified the
Oracle ADVM volume resource in it's START and STOP dependency list. Because
the Oracle ADVM volume resource will enable the volume, this ensures that the
volume is available before the backup begins.
• Oracle ACFS file systems are either manually mounted or dismounted using an
Oracle ACFS or Oracle Clusterware command-line tool, or automatically mounted
or dismounted based on an Oracle Clusterware resource action.
For example, a file system hosting an Oracle Database home is named in the
dependency list of the associated Oracle Database resource such that issuing a
start on the database resource results in mounting the dependent Oracle ACFS
hosted database home file system.
Oracle ACFS file system resources provide the following actions:
– MOUNT
During the START operation the resource mounts the file system on the path
configured in the resource. The Oracle ACFS file system resource requires all
components of the Oracle ASM stack to be active (volume device, ASM) and
ensures that they are active before attempting the mount.
– UNMOUNT
During the STOP operation, the resource attempts to unmount a file system.
• Oracle provides two resource types for Oracle Highly Available NFS. For more
information, refer to "High Availability Network File Storage for Oracle Grid
Infrastructure (page 11-37)".
As with all Oracle Clusterware resources, these resources provide for high availability
by monitoring the underlying device, file system, or driver to ensure that the object
remains available. In the event that the underlying object becomes unavailable, each
resource attempts to make the underlying object available again.
• Oracle ASM Configuration Assistant (ASMCA) provides a GUI that exposes the
most common functionality. In all cases, creating a file system resource does not
format the underlying file system. Attempts to start the resource require the user
to format the file system either manually or with ASMCA.
• SRVCTL provides a highly flexible command line utility for creating Oracle ACFS
file system resources through the filesystem object. Oracle ACFS resources
created through this mechanism have access to the full feature set, including
server pools.
• Oracle ACFS resources created through SRVCTL and specifying a server pool or
list of nodes are only mounted on one of those nodes. (node-local)
• Oracle ACFS resources created through SRVCTL can take advantage of Oracle
Server Pools.
• Oracle ACFS resources created through acfsutil commands are created with
AUTOSTART set to ALWAYS.
• Oracle ACFS resources created through SRVCTL allow for advanced Application
ID functionality. Using this functionality enables the resource type to be set by the
administrator. After the type is set, other resources can depend on this type,
allowing different node-local file systems to be used to fulfill dependencies on
each node. In a simplified example, this would allow the administrator to have a
different device mounted on the /log directory on each node of the cluster, and
be able to run an Apache resource. The Apache resource would specify the new
type in its resource dependency structure, rather than specifying an individual
resource.
• Oracle ACFS resources created through SRVCTL have access to functionality such
as accelerator volumes.
The common elements of both SRVCTL and acfsutil commands are:
• User
This is an additional user that can act upon the resource. By default, you must be
the root user to start and stop an Oracle ACFS resource.
• Options
These are mount options that should be used to mount the file system when the
resource is starting.
• Node-local
This file system type is limited to the number of nodes it can mount on.
Depending on if it is created with SRVCTL or acfsutil commands, it may only
mount on one node, a subset of nodes, or all the configured nodes. In some cases,
this could look the same as a full cluster configuration, but if new nodes are added
to the cluster, the file system is not automatically mounted on them without
modifying the list of allowable nodes.
• Clusterwide
This type of file system mounts on all nodes of the cluster, with no exceptions.
When new members are added to the cluster, the file system is automatically
available on them. This type of resource is required for certain configurations,
such as Oracle Database or Oracle HANFS.
• You can stop the entire Oracle Clusterware stack. When the Oracle Clusterware
stack is stopped, all Oracle ACFS resources are automatically stopped.
• To stop individual resources, you can use SRVCTL management commands with
the filesystem or volume object. The command may require the -force
option if there are other resources that are depending on the resource that you are
attempting to stop.
• You may engage a manual action, such as running unmount on a file system or by
manually stopping a volume using ASMCMD or SQL*Plus commands. In this
case, the Oracle ACFS resource transitions to the OFFLINE state automatically.
• All Oracle ACFS file system resources require root privileges to act upon, such as
starting and stopping the resources, but can be configured to allow another user,
such as a database user, to do so. In this case, the root user must be used to
configure the resource.
• All Oracle ADVM volume resources allow the ASMADMIN user to act upon them.
• All Oracle ACFS resources are only available in Oracle RAC mode. Oracle ACFS
resources are not supported in Oracle Restart configurations. For more
information about Oracle ACFS and Oracle Restart, refer to "Oracle ACFS and
Oracle Restart (page 18-5)".
• An Oracle ACFS security realm is a group of files or directories that are secured
for access by a user or a group of users. Realms are defined with rule sets which
contain groups of rules that apply fine grain access control. Oracle ACFS security
realms can also be used as containers to enable encryption.
• Oracle ACFS security rules are Boolean expressions that evaluate to true or false
based on a system parameter on which the rule is based.
• Oracle ACFS rule sets are collection of rules. Rule sets evaluate to TRUE or FALSE
based on the evaluation of the rules a rule set contains.
• Oracle ACFS command rules are associations of the file system operation to a rule
set. For example, the association of a file system create, delete, or rename
operation to a rule set. Command rules are associated with an Oracle ACFS realm.
An existing operating system user must be designated as the first Oracle ACFS
security administrator and an existing operating system group must be designated as
the security administrator admin group. Security administrators must be members of
the designated security group. Additional users can be designated as security
administrators. An Oracle ACFS security administrator can manage encryption for an
Oracle ACFS file system on a per-realm basis. An Oracle ACFS security administrator
is authenticated for security operations with a security realm password, not the
operating system password of the user.
The first security administrator is created during the initialization of Oracle ACFS
security with the acfsutil sec init command which is run by the root user. When
the first security administrator is created, the administrator is assigned a password
that can be changed by the administrator. Each time a security administrator runs an
acfsutil sec command, the administrator is prompted for the security password.
The security realm passwords for administrators are stored in a wallet created during
the security initialization process. This wallet is located in the Oracle Cluster Registry
(OCR).
Auditing and diagnostic data are logged for Oracle ACFS security. The log files
include information such as acfsutil commands that have been run, the use of
security or system administrator privileges, and run-time failures such as realm check
authorization failures.
Auditing events, such as realm creation or encryption enabled, are written to these log
files only if auditing is not enabled for on the file system. If auditing is enabled, these
events are written into the audit trail. Diagnostic messages related to security and
encryption are always written to the sec-hostname_fsid.log file regardless of
whether auditing is enabled or not. For information about Oracle ACFS auditing, refer
to "Oracle ACFS Auditing (page 11-24)".
Logs are written to the following files:
• mount_point/.Security/realm/logs/sec-hostname_fsid.log
The directory is created with acfsutil sec prepare command and protected
by Oracle ACFS security. Refer to "acfsutil sec prepare (page 16-86)".
• GRID_HOME/log/hostname/acfs/security/acfssec.log
The messages that are logged to this file are for commands that are not associated
with a specific file system, such as acfsutil sec init. The directory is created
during installation and is owned by the root user.
When an active log file grows to a pre-defined maximum size (10 MB), the file is
automatically moved to log_file_name.bak, the administrator is notified, and
logging continues to the regular log file name. When the administrator is notified, the
administrator must archive and remove the log_file_name.bak file. If an active log
file grows to the maximum size and the log_file_name.bak file exists, logging
stops until the backup file is removed. After the backup log file is removed, logging
restarts automatically.
Oracle ACFS security protects the following objects from unauthorized accesses:
• Oracle ACFS security does not provide any protection for data sent on the
network.
To configure security for Oracle ACFS file systems, you can use the acfsutil sec
command-line functions described in "Securing Oracle ACFS File Systems
(page 16-6)" and "Oracle ACFS Command-Line Tools for Security (page 16-76)".
Also, you can use ASMCA described in "Managing Security and Encryption for Oracle
ACFS with ASMCA (page 14-5)".
See Also:
Your operating system-specific (OS) documentation for information about
setting up OS users and OS groups
See Also:
Oracle Key Vault Administrator's Guide for information about Oracle Key Vault
If you are using OCR as a key store, you should back up the OCR after creating or
updating an encryption key to ensure there is an OCR backup that contains all of the
volume encryption keys (VEKs) for the file system.
Oracle ACFS encryption protects data stored on secondary storage against the threat
of theft or direct access to the storage medium. Data is never written to secondary
storage in plaintext. Even if physical storage is stolen, the data stored cannot be
accessed without the encryption keys. The encryption keys are never stored in
plaintext. The keys are either obfuscated, or encrypted using a user-supplied
password.
An Oracle ACFS security administrator can manage encryption parameters on a per-
realm basis. After a file is placed under realm security, file-level encryption operations
are not allowed on that file. Even if the realm security allows the file owner or the root
user to open the file, file-level encryption operations are blocked. Encryption of realm-
protected files is managed entirely by the Oracle ACFS security administrator, who
can enable and disable encryption for files at a security realm level.
After a directory has been added to a security realm, all files created in the directory
inherit the realm-level encryption parameters, not the directory or file system-level
parameters. When a file is removed from its last security realm, the file is encrypted or
decrypted to match the file system-level encryption status. The file is not re-encrypted
to match file system-level parameters if it has been encrypted with security realm
parameters.
A system administrator cannot rekey realm-secured files at the file system or file level.
To ensure all realm-secured files are encrypted with the most recent volume
encryption key (VEK), you must first remove encryption from all realms, and then re-
enable encryption. This action re-encrypts all files with the most recent VEK.
Auditing and diagnostic data are logged for Oracle ACFS encryption. The log files
include information such as acfsutil commands that have been run, the use of
security or system administrator privileges, and run-time failures. Logs are written to
the following files:
• mount_point/.Security/encryption/logs/encr-hostname_fsid.log
The directory is created with acfsutil encr set command and protected by
Oracle ACFS security if security is enabled. Refer to "acfsutil encr set
(page 16-113)".
• GRID_HOME/log/hostname/acfs/security/acfssec.log
The messages that are logged to this file are for commands that are not associated
with a specific file system, such as acfsutil encr init. The directory is created
during installation and is owned by the root user.
When an active log file grows to a pre-defined maximum size (10 MB), the file is
automatically moved to log_file_name.bak, the administrator is notified, and
logging continues to the regular log file name. When the administrator is notified, the
administrator must archive and remove the log_file_name.bak file. If an active log
file grows to the maximum size and the log_file_name.bak file exists, logging
stops until the backup file is removed. After the backup log file is removed, logging
restarts automatically.
Note the following when working with Oracle ACFS encryption:
• A copy of an encrypted file is not encrypted unless the copy of the file is made in
an encrypted directory.
Some applications, such as the vi editor, re-create a file when the file is modified.
The modified file is saved as a temporary file, the original file is removed, and
temporary file is copied with the original file name as the destination name. This
process creates a new file. The new file is not encrypted unless it is created in an
encrypted directory. If you are planning to copy an encrypted file, you should
ensure that the parent directory is also encrypted.
• If encryption is configured for the first time on Oracle ASM 11g Release 2
(11.2.0.3).
See Also:
• Third party products that can parse and import the audit sources
The audit trail file consists of audit records. There are several different types of audit
records, each of which represent a unique type of event and contain different
information relevant to diagnosing the event. The types of events are:
• Timestamp (Timestamp): The time at which the event occurred, always specified
in UTC. The format for the time stamp is: MM/DD/YYYY HH:MM:SS UTC
• Event Code (Event): A code identifying the type of event. For the list of
evaluation result codes, refer to "File Access Events (page 11-28)" and "Privilege
Use Events (page 11-29)".
• User identification (User): The user who triggered the event. On Linux platforms
this is a user ID and on Windows this is the user SID.
• Group identification (Group): The primary group of the user who triggered the
event. On Linux platforms this is the ID the primary group of the user and on
Windows this is the SID of the primary group of the user.
• Application name (Application): The application name for the current process.
• Realm name (Realm): The name of the realm which was violated, or the realm
that is authorized and is protecting the file.
• File name (File): The file name which the user was accessing.
• Message (Message): The message field has the information about the command
executed and its result.
Example 11-1 (page 11-27) shows an example of an audit trail file.
Example 11-1 Sample audit trail file
Timestamp: 06/08/12 11:00:37:616 UTC
Event: ACFS_AUDIT_READ_OP
Source: Oracle_ACFS
User: 0
Group: 0
Process: 1234
Host: slc01hug
Application: cat
Realm: MedicalDataRealm
File: f2.txt
Evaluation Result: ACFS_AUDIT_REALM_VIOLATION
FileSystem-ID: 1079529531
Message: Realm authorization failed for file ops READ
Host: slc01hug
Application: acfsutil.bin
Evaluation Result: ACFS_CMD_SUCCESS
FileSystem-ID: 1079529531
Message: acfsutil sec prepare: ACFS-10627: Mount point '/mnt' is now
prepared for security operations.
• ACFS_AUDIT_APPENDFILE_OP
• ACFS_AUDIT_CHGRP_OP
• ACFS_AUDIT_CHMOD_OP
• ACFS_AUDIT_CHOWN_OP
• ACFS_AUDIT_CREATEFILE_OP
• ACFS_AUDIT_DELETEFILE_OP
• ACFS_AUDIT_EXTEND_OP
• ACFS_AUDIT_GET_EXTATTR_OP
• ACFS_AUDIT_LINKFILE_OP
• ACFS_AUDIT_MKDIR_OP
• ACFS_AUDIT_MMAPREAD_OP
• ACFS_AUDIT_MMAPWRITE_OP
• ACFS_AUDIT_MUTABLE_OP
• ACFS_AUDIT_OPENFILE_OP
• ACFS_AUDIT_OVERWRITE_OP
• ACFS_AUDIT_READ_OP
• ACFS_AUDIT_READDIR_OP
• ACFS_AUDIT_RENAME_OP
• ACFS_AUDIT_RMDIR_OP
• ACFS_AUDIT_SET_EXTATTR_OP
• ACFS_AUDIT_SYMLINK_OP
• ACFS_AUDIT_TRUNCATE_OP
• ACFS_AUDIT_WRITE_OP
• ACFS_AUDIT_ARCHIVE
• ACFS_AUDIT_DISABLE
• ACFS_AUDIT_ENABLE
• ACFS_AUDIT_INIT
• ACFS_AUDIT_PURGE
• ACFS_AUDIT_READ
• ACFS_ENCR_FILE_OFF
• ACFS_ENCR_FILE_ON
• ACFS_ENCR_FILE_REKEY
• ACFS_ENCR_FS_OFF
• ACFS_ENCR_FS_ON
• ACFS_ENCR_INIT
• ACFS_ENCR_SET
• ACFS_ENCR_SET_UNDO
• ACFS_ENCR_VOL_REKEY
• ACFS_ENCR_WALLET_STORE
• ACFS_REALM_AUDIT_DISABLE
• ACFS_REALM_EDIT_ENCR
• ACFS_REALM_AUDIT_ENABLE
• ACFS_SEC_LOAD
• ACFS_SEC_PREPARE
• ACFS_SEC_PREPARE_UNDO
• ACFS_SEC_REALM_ADD
• ACFS_SEC_REALM_CLONE
• ACFS_SEC_REALM_CREATE
• ACFS_SEC_REALM_DELETE
• ACFS_SEC_REALM_DESTROY
• ACFS_SEC_RULE_CREATE
• ACFS_SEC_RULE_DESTROY
• ACFS_SEC_RULE_EDIT
• ACFS_SEC_RULESET_CREATE
• ACFS_SEC_RULESET_DESTROY
• ACFS_SEC_RULESET_EDIT
• ACFS_SEC_SAVE
Note:
• The sites hosting the primary and standby file systems must be running
the same operating system and must have the same system architecture.
• The primary and standby sites should be running the same version of the
Oracle Grid Infrastructure software. When upgrading the sites, update the
standby site first.
• The primary file system requires internal metadata files that are not
visible to user-level commands, such as du or ls. The amount of internal
storage for the primary file system is approximately 1 GB for each node.
This extra internal storage accounts for the difference in storage usage
between primary and standby file systems containing the same user files.
The source Oracle ACFS file system of an Oracle ACFS replication is referred to as a
primary file system. The target Oracle ACFS file system of an Oracle ACFS replication
is referred to as a standby file system.
A site can host both primary and standby file systems. For example, if there are cluster
sites A and B, a primary file system hosted at site A can be replicated to a standby file
system at site B. Also, a primary file system hosted at site B can be replicated to a
standby file system at site A. However, an Oracle ACFS file system cannot be used as a
primary and a standby file system.
Oracle ACFS replication captures file system changes written to disk for a primary file
system and records the changes in files called replication logs. These logs are
transported to the site hosting the associated standby file system where background
processes read the logs and apply the changes recorded in the logs to the standby file
system. After the changes recorded in a replication log have been successfully applied
to the standby file system, the replication log is deleted from the sites hosting the
primary and standby file systems.
It is critical that there is enough disk space available on both sites hosting the primary
and the standby file systems to contain the replication logs. If the primary file system
runs out of space, applications running on the file system may fail because Oracle
ACFS cannot create a new replication log to capture the file system changes made by
the application. If the standby file system runs out of space, it cannot accept new
replication logs from the primary file system and cannot apply those changes to the
standby file system. In addition, replication logs accumulate on the primary file
system and consume the available disk space.
If the primary file system has less than 2 GB available free disk space, Oracle ACFS
attempts to automatically terminate replication on the primary file system. This action
prevents further consumption of disk space for replication operations and frees disk
space consumed by any replication logs that remain. The auto-terminate process can
prevent the primary file system from running out of space in most cases, but it is still
possible that the auto-terminate process does not occur quickly enough. Before
reaching the 2 GB limit, Oracle ACFS writes warnings about the free space problem in
the Oracle Grid Infrastructure home alert log.
You should prevent both the primary file system and the standby file system from
running out of space. If either file system runs out of available storage, you should
either expand the file system or remove files from the file system to free up space. If
the primary file system runs out of space and you decide to free up space by removing
files, you should only remove files that are not being replicated because the removal of
a file that is replicated is captured in a replication log. Another option is to delete any
Oracle ACFS snapshots. For information about resizing an Oracle ACFS file system,
refer to "acfsutil size (page 16-132)".
Because replication logs can accumulate when replication is paused, you should
resume replication soon after pausing replication. For information on pausing and
resuming replication, refer to "acfsutil repl pause (page 16-65)" and "acfsutil repl
resume (page 16-66)".
Before using replication on a file system, ensure that you have checked the following:
• The configuration of the sites hosting the primary and standby file systems allow
the standby file system to keep up with the rate of change on the primary file
system.
• The standby file system has sufficient capacity to manage the replication logs that
are sent.
• There is sufficient storage capacity to hold excess replication logs that might
collect on the primary and the standby file systems when the standby file system
cannot process replication logs quickly. For example, this situation can occur
during network problems or maintenance on the site hosting the standby file
system.
• The primary file system must have a minimum size of 4 GB for each node that is
mounting the file system. The standby file system must have a minimum size of 4
GB and should be sized appropriately for the amount of data being replicated and
the space necessary for the replication logs sent from the primary file system.
See Also:
For information about tuning the network, refer to the documentation at the
MAA link on Oracle Technology Network:
http://www.oracle.com/technetwork/database/features/
availability/maa-096107.html
Relevant information on tuning the network can be found in the Data Guard
Redo Transport & Network Configuration paper.
Directories and files in an Oracle ACFS file system can be tagged to select the objects
that you want to replicate in a file system. For information on tagging, see "Oracle
ACFS Tagging (page 11-33)".
Before replicating an Oracle ACFS file system, a replication configuration must be
established that identifies information such as the site hosting the primary file system,
the site hosting the standby file system, the file system to be replicated, mount point of
the file system, and a list of tags if desired.
The primary and standby sites must share the same user and group configurations,
including all uids and gids in use in the file system. Because the replication daemons
run with the credentials of oinstall and the Oracle ASM administration group, the
permissions on the mount points must be configured so that the daemons are able to
read and traverse the directory mount point in order to access and create files under
the .ACFS/repl directory, which is the internal working location for replication logs
and associated files.
To use Oracle ACFS replication functionality on Linux, the disk group compatibility
attributes for ASM and ADVM must be set to 11.2.0.2 or higher for the disk groups
that contain the primary and standby file systems. To use Oracle ACFS replication
functionality on Windows, the disk group compatibility attributes for ASM and ADVM
must be set to 11.2.0.3 or higher. To use Oracle ACFS replication functionality on
Solaris or AIX, the disk group compatibility attributes for ASM and ADVM must be set to
12.1 or higher. For information about disk group compatibility, refer to "Disk Group
Compatibility (page 4-41)".
To use Oracle ACFS replication on Solaris Sparc hardware, the system must be
running Solaris 10 update 8 or later.
To configure replication and manage replicated Oracle ACFS file systems, use the
acfsutil repl command-line functions described in "Replicating Oracle ACFS File
Systems (page 16-14)" and "Oracle ACFS Command-Line Tools for Replication
(page 16-58)".
– Linux: --preserve=xattr
– Solaris: -@
– AIX: -U
• The cpio file transfer utility requires flags to preserve tag names.
The cpio switches required to preserve tag names on files and directories are:
– AIX: -U is required to preserve or restore tag names for files and directories,
but does not preserve tag names for symbolic link files
• The pax file transfer utility requires flags to preserve tag names.
The pax switches required to preserve tag names on files and directories are:
– AIX: -U is required to preserve or restore tag names for files and directories,
but does not preserve tag names for symbolic link files
• The rsync file transfer utility requires flags to preserve tag names.
The rsync switches required to preserve tag names on files and directories are:
– Linux: -X -l are required to preserve tag names for files and directories, but
these switches do not preserve tag names for symbolic link files
• The tar backup utility can have flags set on the command line to preserve tag
names on a file. However, tar does not retain the tag names assigned to symbolic
link files.
The tar backup utility on Windows currently provides no support to retain tag
names as no switch exists to save Extended Attributes.
The tar switches required to preserve tag names on files and directories are:
– Linux: --xattrs
– Solaris: -@
– AIX: -U
• The vim or vi editors require the set bkc=yes option in the .vimrc (Linux) or
_vimrc (Windows) file to make a backup copy of a file and overwrite the
original. This preserves tag names on the original file.
To use Oracle ACFS tagging functionality on Linux, the disk group compatibility
attributes for ASM and ADVM must be set to 11.2.0.2 or higher. To use Oracle ACFS
tagging functionality on Windows, the disk group compatibility attributes for ASM and
ADVM must be set to 11.2.0.3 or higher. To use Oracle ACFS tagging functionality
on Solaris or AIX, the disk group compatibility attributes for ASM and ADVM must be
set to 12.1 or higher. For information about disk group compatibility, refer to "Disk
Group Compatibility (page 4-41)".
To configure tagging and manage tagged Oracle ACFS file systems, use the acfsutil
tag command-line functions described in "Tagging Oracle ACFS File Systems
(page 16-12)" and "Oracle ACFS Command-Line Tools for Tagging (page 16-54)". For
information about Oracle ACFS tagging application programming interfaces (APIs),
refer to "Oracle ACFS Tagging Generic Application Programming Interface
(page 18-10)".
• Auditing policies present on the primary file system are replicated to the standby
and any policy actions taken on the primary file system are enacted on the
standby file system.
• Two sets of audit trails are present on the standby file system. Trails from primary
file system are replicated to the standby file system as ordinary files. File system
activity may generate events on the standby file system, which are recorded in the
audit trail for the standby file system. Audit trail names help distinguish the two
sets of trails because they contain both the host name and FSID.
Note the following about Oracle ACFS encrypted file systems:
• Encrypted files on the primary file system remain encrypted on the standby file
system with the same key and encryption parameters (algorithm and key length).
• Encryption operations done on the primary file system are replayed on the
standby file system - on, off, and rekey.
• Standby file systems should be initialized for security before replicating a security
enabled file system.
• The rules, rule sets and realms are replicated to the standby file system and same
policies exist on the standby file system. In terms of the policies and protection of
files, the standby file system is exactly same.
• Having security and replication together on a file system does not require any
extra user intervention or additional steps.
Note:
• The HAVIP cannot be started until at least one file system export resource
has been created for it.
To set up High Availability NFS for Oracle Grid Infrastructure, perform the following
steps:
• Any DNS names resolve to only one host, not round-robin multiple DNS
resolutions
• The network resource and provided IP address and resolved name are in the
same subnet
High Availability NFS for Oracle Grid Infrastructure operates only with Oracle
ACFS file systems configured for clusterwide accessibility and does not support
Oracle ACFS file systems configured for access on particular subsets of cluster
nodes. High Availability NFS is not supported with non-Oracle ACFS file
systems.
For information on creating an Oracle ACFS file system, refer to "Creating an
Oracle ACFS File System (page 16-2)".
See Also:
After the file system export resource has been created, then you can start the
HAVIP created in step 1 to export the file system using the srvctl start havip
command.
The NFS mount option FSID is added to any export options, in the range of one
billion or higher to minimize potential collisions with other FSIDs that are set on
the server. This FSID option provides for reliable fail over between nodes and
allows the usage of snapshot mounting.
The default mount and export options for configured exports are the defaults for
the NFS server.
Relative paths that are fully-qualified are converted to absolute paths. Relative
paths that are not fully-qualified are not accepted as an export path.
HAVIPs attempts to find the best server to run on based on available file systems
and other running HAVIPs, but this dispersion only occurs during CSS
membership change events, such as a node joining or leaving the cluster.
Note:
It is not recommended to start and stop exports individually; this functionality
should be provided through the start and stop operations of HAVIP.
When HAVIP is not running, exports can exist on different nodes. After the
associated HAVIP is started, the exports gather on a single node.
Clients that are using an export that is stopped while HAVIP is running raise
the NFS error estale, and must dismount and remount the file system.
See Also:
Note:
See Also:
Oracle Database SQL Language Reference for information about the ALTER
DISKGROUP SQL statement
• There are new V$ASM views display information about Oracle ADVM volumes.
See Using Views to Display Oracle ACFS Information (page 12-1).
• Oracle ACFS operating system utilities for managing file systems and volume
device files.
See Managing Oracle ACFS with Command-Line Tools (page 16-1).
This chapter contains information about using dynamic views to display Oracle
Automatic Storage Management Cluster File System (Oracle ACFS) and Oracle ASM
Dynamic Volume Manager (Oracle ADVM) information.
• Oracle ACFS Support for Oracle Database File Mapping Views (page 12-7)
See Also:
Oracle Database Reference for information about all of the V$ASM* dynamic
performance views
Note:
Table 12-1 Oracle ASM dynamic views for Oracle ACFS information
View Description
V$ASM_ACFS_ENCRYPTION_INFO Contains encryption information for each Oracle ACFS file system.
V$ASM_ACFS_SECURITY_INFO Contains security realm information for each Oracle ACFS file system.
Table 12-1 (Cont.) Oracle ASM dynamic views for Oracle ACFS information
View Description
V$ASM_ACFS_SEC_ADMIN Contains information about Oracle ACFS security administrator in the
cluster.
V$ASM_ACFS_SEC_CMDRULE Contains information about Oracle ACFS security command rules for
each Oracle ACFS file system.
V$ASM_ACFS_SEC_REALM Contains information about every realm in the Oracle ACFS security
realm for each Oracle ACFS file system.
V$ASM_ACFS_SEC_REALM_FILTER Contains information about every filter in the Oracle ACFS security
realm for each Oracle ACFS file system. A filter is a defined as
commandrule/ruleset pair in a realm.
V$ASM_ACFS_SEC_REALM_GROUP Contains information about every group in the Oracle ACFS security
realm for each Oracle ACFS file system.
V$ASM_ACFS_SEC_REALM_USER Contains information about every user in the Oracle ACFS security
realm for each Oracle ACFS file system.
V$ASM_ACFS_SEC_RULE Contains information about every Oracle ACFS security rule for each
Oracle ACFS file system.
V$ASM_ACFS_SEC_RULESET Contains information about every Oracle ACFS security ruleset for
each Oracle ACFS file system.
V$ASM_ACFSTAG Contains all tag name information about files on all mounted Oracle
ACFS file systems
V$ASM_AUDIT_CLEAN_EVENTS Contains information about the history of audit trail cleanup or purge
events in an Oracle ASM instance.
V$ASM_AUDIT_CLEANUP_JOBS Contains information about the configured audit trail purge jobs in an
Oracle ASM instance.
V$ASM_AUDIT_LAST_ARCH_TS Contains information about the last archive timestamps set for audit
trail cleanup or purges in an Oracle ASM instance.
V$ASM_FILESYSTEM Contains information about every mounted Oracle ACFS file system.
V$ASM_VOLUME_STAT Contains information about statistics for each Oracle ADVM volume.
See Also:
Oracle Database Reference for information about the V
$ASM_ACFS_ENCRYPTION_INFO view
See Also:
See Also:
See Also:
Oracle Database Reference for information about the V$ASM_ACFSVOLUMES
view
group has been forced dismounted, or less commonly, a metadata I/O failure
occurred or serious metadata corruption was detected. With a metadata I/O failure,
the file system is also marked as corrupt.
The CORRUPT column indicates whether the file system needs the fsck or
acfschkdsk command run on it. See "fsck (page 16-23)" and "acfschkdsk
(page 16-44)".
See Also:
Example 12-9 (page 12-6) shows information displayed from the V$ASM_VOLUME
view for volumes contained in the DATA disk group.
See Also:
See Also:
Example 12-11 (page 12-6) shows tag names for the /acfsmounts/acfs1 file
system displayed from the V$ASM_ACFSTAG view.
See Also:
Note:
This feature is available starting with Oracle Database 12c Release 1 (12.1.0.2).
Oracle ACFS supports Oracle Database file mapping views to the Oracle ASM device
level. For information about file mapping to Oracle ASM files, refer to "Oracle
Database File Mapping for Oracle ASM Files (page 5-11)".
The following database mapping views are supported by Oracle ACFS:
• V$MAP_FILE
• V$MAP_FILE_EXTENT
• V$MAP_ELEMENT
• V$MAP_FILE_IO_STACK
These V$MAP views are only refreshed by executing the procedure
DBMS_STORAGE_MAP.MAP_ALL. The Oracle ACFS file mapping interface does not
utilize the external fmputl process or its supporting libraries.
Note:
• Oracle ACFS does not provide support for Oracle Database file mapping
on Windows.
Before running any queries on the V$MAP views, ensure that the FILE_MAPPING
initialization is set to TRUE, then run the DBMS_STORAGE_MAP.MAP_ALL procedure to
build the mapping information for the entire I/O subsystem associated with the
database. For example, connect as SYSDBA to the database instance and run the
following:
SQL> ALTER SYSTEM SET file_mapping=true;
The SQL statements in Example 12-12 (page 12-8) to Example 12-15 (page 12-8)
are run from the Oracle Database instance. Example 12-12 (page 12-8) displays
information from the V$MAP_ELEMENT view.
Example 12-13 (page 12-8) displays information from the V$MAP_FILE view.
Example 12-14 (page 12-8) displays the element offset versus file offset information
for each extent with V$MAP_FILE_EXTENT, specifying FILE_MAP_IDX equal to 4,
which is the file map index of the /dbdata/orcl/users01.dbf file.
Example 12-15 (page 12-8) displays information from V$MAP_FILE_IO_STACK
specifying FILE_MAP_IDX equal to 4. The V$MAP_FILE_IO_STACK view is similar to
V$MAP_FILE_EXTENT, but the display groups contiguous extents which are on the
same device or element and of the same size.
See Also:
Example 12-13 Viewing Oracle ACFS Data File Information with V$MAP_FILE
SQL> SELECT FILE_NAME, FILE_MAP_IDX, FILE_TYPE, FILE_STRUCTURE, FILE_SIZE,
FILE_NEXTS FROM V$MAP_FILE WHERE REGEXP_LIKE(FILE_NAME, '*users01.dbf');
6 rows selected.
• Managing Oracle ACFS File Systems and Volumes with Oracle Enterprise
Manager (page 13-1)
• Managing Oracle ACFS Snapshots with Oracle Enterprise Manager (page 13-5)
Note:
To manage or monitor Oracle ACFS file systems or volumes that are located
on nodes in an Oracle Flex ASM configuration, you must connect to the Oracle
ASM proxy instance instead of the local Oracle ASM instance. For information
about Oracle Flex ASM, refer to "Managing Oracle Flex ASM (page 3-16)".
Managing Oracle ACFS File Systems and Volumes with Oracle Enterprise
Manager
This section discusses how to manage Oracle ACFS file systems and volumes systems
with Oracle Enterprise Manager Cloud Control.
This section contains the following topics:
• Viewing and Modifying Oracle ACFS Volumes and File Systems (page 13-4)
For more information about Oracle ACFS file systems and volumes, refer to "About
Oracle ACFS (page 11-4)".
See Also:
1. Access the Disk Groups page from the Oracle ASM home page.
For information about the Oracle ASM home page and how to access that page,
see "Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
2. Click the Volumes link in the General tab of the Disk Group page. See
Figure 13-4 (page 13-5).
To create an Oracle ACFS file system on a volume in a disk group, perform the
following steps.
1. Access the Volumes tab of the Disk Group page. See Figure 13-4 (page 13-5).
2. Select an existing volume in the disk group and click Create ASM Cluster File
System.
The compatibility parameters COMPATIBLE.ASM and COMPATIBLE.ADVM must
be set to 11.2 or higher for the disk group. See "Disk Group Compatibility
Attributes (page 4-42)".
3. On the Create ASM Cluster File System page, enter the information to create a
file system. You can optionally register and mount the file system.
You must enter the volume name. You can enter an optional volume label.
You can optionally choose to register and mount the file system when it is created.
Select a mount point from available directories.
Enter the host credentials needed to run the command when prompted. To
register or mount a file system, you need root or administrator privileges. For
information about the registry process, see "About the Oracle ACFS Mount
Registry (page 11-9)".
After a directory has been selected, click Show Command to have Oracle
Enterprise Manager generate the commands that you can run at an operating
system prompt. Examples of commands on a Linux system are:
/sbin/mkfs -t acfs -b 4k /dev/asm/volume1-361
/sbin/acfsutil registry -f -a /dev/asm/volume1-361 /oracle/acfsmounts/acfs2
/bin/mount -t acfs -rw /dev/asm/volume1-361 /oracle/acfsmounts/acfs2
You can also generate the commands to register or mount an Oracle ACFS file
system on the ASM Cluster File System tab.
To view information about a specific volume, click the volume name in the Volume
column on the ASM Cluster File System page to display the General tab of the ASM
Volumes page.
To view information about a file system, click the link in the Mount Point column on
the ASM Cluster File System page.
Figure 13-3 (page 13-5) shows the General tab of the ASM Cluster File System
page.
To view information about a disk group for an Oracle ACFS, click the disk group
name in the Disk Group column on the ASM Cluster File System page. The General
tab of the Disk Group page displays as shown in Figure 7-6 (page 7-10).
To view information about volumes in a disk group, click the Volumes tab at the top
of the Disk Group page.
Figure 13-4 (page 13-5) shows the Oracle ACFS Volume page.
For more information about Oracle ACFS snapshots, refer to "About Oracle ACFS
Snapshots (page 11-10)".
1. Click the ASM Cluster File System tab on the Oracle ASM home page
2. Click a mount point link in the Mount Point column as shown in Figure 13-2
(page 13-4)
3. When you have completed the screen, you can click OK to run the command, or
click Show Command to view the generated command.
For example, the following is a generated command for creating a snapshot:
/sbin/acfsutil snap create "snapshot_20090702_142135" /oracle/acfsmounts/acfs1
To run the generated command, you need the appropriate privileges on the host
computer. Oracle Enterprise Manager prompts you to enter host credentials if
they have not been set up.
You can also open a Telnet session from the Create Snapshot page to manually
enter the generated operating system command.
To drill down in a snapshot directory, click the snapshot name in the Snapshots page
to display the Search and List Directory page.
1. From the Oracle ASM home page, select the ASM Cluster File System tab to display
the mount points in the cluster file system.
5. Change the Attribute. You can choose Read Only or Read Write.
6. Click OK.
1. From the Oracle ASM home page, select the ASM Cluster File System tab to display
the mount points in the cluster file system.
2. Click the file or directory Mount Point in which you want to create a child
snapshot.
4. Select the parent snapshot you want to use to create a child snapshot, then click
Create Child.
The Create Child Snapshot on ASM Cluster File System page displays.
5. The Snapshot Name field is automatically populated with a default child snapshot
name. You can replace the name with a name you designate.
7. Optionally you can turn on the option to delete the oldest snapshot by turning on
the delete option. Oracle Enterprise Manager tabulates the number of remaining
snapshots before the maximum limit is reached.
Oracle Enterprise Manager returns to the Snapshots tab where you can see the new
snapshot with its Parent Name listed in the table.
1. From the Oracle ASM home page, select the ASM Cluster File System tab to
display the mount points in the cluster file system.
For information about the Oracle ASM home page and how to access that page,
see "Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
5. If Oracle ACFS security is not initialized in the cluster, the Initialize Security
button displays on the page. Click the button to initialize Oracle ACFS security.
This operation needs to be performed only once in the cluster. On this page, you
can also prepare security for the file system.
1. From the Oracle ASM home page, select the ASM Cluster File System tab to display
the mount points in the cluster file system.
For information about the Oracle ASM home page and how to access that page, see
"Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
2. Click the Mount Point of the file system for which you want to prepare security.
Enterprise Manager displays the ASM Cluster File System page for that mount
point.
3. Click the Security/Encryption tab to display the Security Overview section. This
page shows the security details for the current file system.
1. From the Oracle ASM home page, select the ASM Cluster File System tab to display
the mount points in the cluster file system.
For information about the Oracle ASM home page and how to access that page, see
"Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
2. Click the Mount Point of the file system for which you want to unprepare security.
Enterprise Manager displays the ASM Cluster File System page for that mount
point.
3. Click the Security/Encryption tab to display the Security Overview section. This
page shows the security details for the current file system.
1. From the Oracle ASM home page, select the ASM Cluster File System tab to display
the mount points in the cluster file system.
For information about the Oracle ASM home page and how to access that page, see
"Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
2. Click the Mount Point of the file system for which you want to enable security.
Enterprise Manager displays the ASM Cluster File System page for that mount
point.
3. Click the Security/Encryption tab to display the Security Overview section. This
page shows the security details for the current file system.
1. From the Oracle ASM home page, select the ASM Cluster File System tab to display
the mount points in the cluster file system.
For information about the Oracle ASM home page and how to access that page, see
"Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
2. Click the Mount Point of the file system for which you want to disable security.
Enterprise Manager displays the ASM Cluster File System page for that mount
point.
3. Click the Security/Encryption tab to display the Security Overview section. This
page shows the security details for the current file system.
1. From the Oracle ASM home page, select the ASM Cluster File System tab to display
the mount points in the cluster file system.
For information about the Oracle ASM home page and how to access that page, see
"Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
2. Click Show Security and Encryption to display the Security and Encryption
section.
The section displays the mount points and the security and encryption settings for
each.
1. From the Oracle ASM home page, select the ASM Cluster File System tab to display
the mount points in the cluster file system.
For information about the Oracle ASM home page and how to access that page, see
"Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
2. Click Show Security and Encryption to display the Security and Encryption
section.
3. The list of Oracle ACFS security administrators in this cluster is displayed. Click
the Create button. The Create Administrator page is displayed.
1. From the Oracle ASM home page, select the ASM Cluster File System tab to display
the mount points in the cluster file system.
For information about the Oracle ASM home page and how to access that page, see
"Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
2. Click Show Security and Encryption to display the Security and Encryption
section.
3. The list of Oracle ACFS security administrators in this cluster is displayed. Select a
security administrator and click the Change Password button. The Change
Administrator Password page is displayed.
1. From the Oracle ASM home page, select the ASM Cluster File System tab to display
the mount points in the cluster file system.
For information about the Oracle ASM home page and how to access that page, see
"Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
2. Click Show Security and Encryption to display the Security and Encryption
section.
3. The list of Oracle ACFS security administrators in this cluster is displayed. Click
the Delete button.
1. From the Oracle ASM home page, select the ASM Cluster File System tab to display
the mount points in the cluster file system.
For information about the Oracle ASM home page and how to access that page, see
"Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
2. Click Show Security and Encryption to display the Security and Encryption
section.
Creating a Rule
Rules are created in a file system and can be added to one or more rulesets, which can
then be applied on an Oracle ACFS realm. Rules can also be cloned within the same
file system or across file systems.
To create a rule, follow these steps:
1. From the Oracle ASM home page, select the ASM Cluster File System tab to display
the mount points in the cluster file system.
For information about the Oracle ASM home page and how to access that page, see
"Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
2. Click a Mount Point. The Oracle ACFS home page is displayed for this mount
point.
5. Click Create. The Create Rule page displays along with the available rule options.
Cloning a Rule
Rules can be cloned within the same mount point or across mount points. To clone a
rule, follow these steps:
1. From the Oracle ASM home page, select the ASM Cluster File System tab to display
the mount points in the cluster file system.
For information about the Oracle ASM home page and how to access that page, see
"Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
2. Click a Mount Point. The Oracle ACFS home page is displayed for this mount
point.
5. Click Clone. The Clone Rule page is displayed with the available rule options.
Editing a Rule
You can modify values and options for an existing rules. Rule types cannot be
changed. To edit a rule, follow these steps:
1. From the Oracle ASM home page, select the ASM Cluster File System tab to display
the mount points in the cluster file system.
For information about the Oracle ASM home page and how to access that page, see
"Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
2. Click a Mount Point. The Oracle ACFS home page is displayed for this mount
point.
Deleting a Rule
You can delete a rule so it no longer is used to enforce security on realms. To delete a
rule, follow these steps:
1. From the Oracle ASM home page, select the ASM Cluster File System tab to display
the mount points in the cluster file system.
For information about the Oracle ASM home page and how to access that page, see
"Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
2. Click a Mount Point. The Oracle ACFS home page is displayed for this mount
point.
1. From the Oracle ASM home page, select the ASM Cluster File System tab to
display the mount points in the cluster file system.
For information about the Oracle ASM home page and how to access that page,
see "Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
2. Click a Mount Point. The Oracle ACFS home page is displayed for this mount
point.
Creating a Ruleset
You can create a ruleset which is a collection of one or more rules that you can
associate with a command rule for realm authorization. A ruleset evaluates to true or
false based on the evaluation of each rule it contains and the evaluation type (All True
or Any True). Rulesets cannot be applied on an Oracle ACFS security realm directly;
they are always associated with a Command Rule, which are then applied on a realm
to enforce security. To create a ruleset, follow these steps:
1. From the Oracle ASM home page, select the ASM Cluster File System tab to display
the mount points in the cluster file system.
For information about the Oracle ASM home page and how to access that page, see
"Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
2. Click a Mount Point. The Oracle ACFS home page is displayed for this mount
point.
5. Click Create. The Create Ruleset page is displayed along with the available ruleset
options.
Cloning a Ruleset
Rulesets can be cloned within the same mount point or across mount points. To clone
a ruleset, follow these steps:
1. From the Oracle ASM home page, select the ASM Cluster File System tab to display
the mount points in the cluster file system.
For information about the Oracle ASM home page and how to access that page, see
"Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
2. Click a Mount Point. The Oracle ACFS home page is displayed for this mount
point.
5. Click the ruleset you want to clone then click Clone. The Clone Ruleset page is
displayed along with the available ruleset options.
Editing a Ruleset
You can add or delete rules to or from a Ruleset. You can also edit the Ruleset options.
To edit a ruleset, follow these steps:
1. From the Oracle ASM home page, select the ASM Cluster File System tab to display
the mount points in the cluster file system.
For information about the Oracle ASM home page and how to access that page, see
"Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
2. Click a Mount Point. The Oracle ACFS home page is displayed for this mount
point.
5. Select a ruleset and click Edit. The Edit Ruleset page is displayed along with all the
ruleset values.
Deleting a Ruleset
Deleted rulesets are no longer used to enforce security on realms. To delete a ruleset,
follow these steps:
1. From the Oracle ASM home page, select the ASM Cluster File System tab to display
the mount points in the cluster file system.
For information about the Oracle ASM home page and how to access that page, see
"Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
2. Click a Mount Point. The Oracle ACFS home page is displayed for this mount
point.
1. From the Oracle ASM home page, select the ASM Cluster File System tab to
display the mount points in the cluster file system.
For information about the Oracle ASM home page and how to access that page,
see "Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
2. Click a Mount Point. The Oracle ACFS home page is displayed for this mount
point.
Creating a Realm
Oracle ACFS Security realms provide the capability to classify file system objects into
functional groups to provide fine-grained access control to data stored in these objects.
Realms are created at the file system level. To enforce security on the file objects in a
realm, a ruleset is associated with a command rule which is then applied on the realm.
To create a realm, follow these steps:
1. From the Oracle ASM home page, select the ASM Cluster File System tab to display
the mount points in the cluster file system.
For information about the Oracle ASM home page and how to access that page, see
"Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
2. Click a Mount Point. The Oracle ACFS home page is displayed for this mount
point.
5. Click Create. The Create Realm wizard displays along with the available realm
options.
Cloning a Realm
Cloning a realm creates a new realm with all the objects of which the cloned realm
consists. To clone a realm, follow these steps:
1. From the Oracle ASM home page, select the ASM Cluster File System tab to display
the mount points in the cluster file system.
For information about the Oracle ASM home page and how to access that page, see
"Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
2. Click a Mount Point. The Oracle ACFS home page is displayed for this mount
point.
4. In the Security section, click Realms. The list of realms in the mount point is
displayed.
5. Select a realm and click Clone Realm. The Clone Realm page is displayed along
with the available realm options. A realm can be cloned within the same mount
point with a different name or across mount points. You can choose the properties;
such as users, groups, and encryption; to propagate to the cloned realm.
1. From the Oracle ASM home page, select the ASM Cluster File System tab to display
the mount points in the cluster file system.
For information about the Oracle ASM home page and how to access that page, see
"Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
2. Click the Mount Point that contains the realm to which you want to add objects.
The Oracle ACFS home page is displayed for this mount point.
4. In the Security section, click Realms. The list of realms in the mount point is
displayed.
5. Select a realm and click the Edit button. The Edit Realm wizard displays.
6. Click Next to move to the Realm Objects page where you can click Add to add
objects to the realm.
7. Click Done.
1. From the Oracle ASM home page, select the ASM Cluster File System tab to display
the mount points in the cluster file system.
For information about the Oracle ASM home page and how to access that page, see
"Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
2. Click the Mount Point that contains the realm from which you want to delete
objects. The Oracle ACFS home page is displayed for this mount point.
4. In the Security section, click Realms. The list of realms in the mount point is
displayed.
5. Select a realm and click the Edit button. The Edit Realm wizard displays.
6. Click Next to move to the Realm Objects page where you can click Remove to
delete objects from the realm.
7. Click Done.
Deleting a Realm
You can delete a realm from an Oracle ACFS file system. After a realm is deleted,
access to all objects that were part of the realm is reverted to the state prior to their
addition to the realm. These objects are not subjected to security and encryption that
were enabled on the realm.
To delete a realm, follow these steps:
1. From the Oracle ASM home page, select the ASM Cluster File System tab to display
the mount points in the cluster file system.
For information about the Oracle ASM home page and how to access that page, see
"Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
2. Click the Mount Point that contains the realm you want to delete. The Oracle ACFS
home page is displayed for this mount point.
4. In the Security section, click Realms. The list of realms in the mount point is
displayed.
Viewing Realms
To view realms, follow these steps:
1. From the Oracle ASM home page, select the ASM Cluster File System tab to
display the mount points in the cluster file system.
For information about the Oracle ASM home page and how to access that page,
see "Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
2. Click the Mount Point that contains the realms you want to view. The Oracle
ACFS home page is displayed for this mount point.
4. In the Security section, click Realms. The list of realms in the file system is
displayed as shown in Figure 13-10 (page 13-21).
1. From the Oracle ASM home page, select the ASM Cluster File System tab to
display the mount points in the cluster file system.
For information about the Oracle ASM home page and how to access that page,
see "Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
3. Click the Security/Encryption tab to display the Security and Encryption section.
4. In the Encryption Configuration section, you can specify various options, such as
Unset Encryption Parameters, as shown in Figure 13-11 (page 13-22).
1. From the Oracle ASM home page, select the ASM Cluster File System tab to display
the mount points in the cluster file system.
2. Click the Mount Point that contains the realms you want to view. The Oracle ACFS
home page is displayed for this mount point.
1. From the Oracle ASM home page, select the ASM Cluster File System tab to display
the mount points in the cluster file system.
For information about the Oracle ASM home page and how to access that page, see
"Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
2. Click Show Security and Encryption to display the Security and Encryption
section.
The section displays the mount points and the security and encryption settings for
each.
For more information about Oracle ACFS tagging, refer to "Oracle ACFS Tagging
(page 11-33)".
1. From the Oracle ASM home page, select the ASM Cluster File System tab to display
the mount points in the cluster file system.
For information about the Oracle ASM home page and how to access that page, see
"Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
2. Select the file or directory you want to tag and select Add Tag from the Actions
menu, then click Go.
3. Add a Tag Name (or a comma-delimited list of names) in the Tag Name box.
Optionally, you can turn on the option that enables you to add tags recursively to
subdirectories and files.
4. In the Directories and Files section, enter either the directory paths directly as a
comma-delimited list in the Enter Directory box, or search for directory paths with
the ASM Cluster File System by selecting Search Directory. You can add a
directory path by clicking Add.
1. From the Oracle ASM home page, select the ASM Cluster File System tab to display
the mount points in the cluster file system.
For information about the Oracle ASM home page and how to access that page, see
"Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
2. Select the file or directory from which you want to remove tags and select Remove
Tag from the Actions menu, then click Go.
3. In the Tag Name box, enter the name of the tag you want to remove or specify a
comma-delimited list of tag names to remove. Optionally, you can remove tags
recursively from all directories and files that exist in the specified directory paths
by turning on the option.
4. In the Directories and Files section, select Enter Directory to enter the directory
paths directly as a comma-delimited list, or select Search Directory to search for
directory paths within an Oracle ACFS file system. To add directory paths
repeatedly from different Oracle ACFS file systems, choose the file system and click
Add.
1. From the Oracle ASM home page, select the ASM Cluster File System tab to display
the mount points in the cluster file system.
For information about the Oracle ASM home page and how to access that page, see
"Accessing the Oracle Automatic Storage Management Home Page (page 7-2)".
2. From the Action menu, select Search Tags, then click Go.
3. In the Search Criteria section, specify a comma-delimited list of tag names in the
Tag Name box. Optionally, you can search tags recursively in all directories and
files by turning on the option.
4. In the Directories and Files section, select Enter Directory to enter the directory
path as a comma-delimited list, or select Search Directory to choose the Oracle
ACFS file system and click Add to add directory paths repeatedly from different
Oracle ACFS file systems.
5. Click Search.
6. Click Return to navigate back to the Oracle ASM home page displaying the ASM
Cluster File System tab.
• ASMCA GUI Tool for Managing Oracle ACFS and Oracle ADVM (page 14-1)
• ASMCA Command-Line Interface for Managing Oracle ACFS and Oracle ADVM
(page 14-9)
The Instances tab functionality and some menu options of ASMCA are only available
in an Oracle RAC configuration. For information about managing Oracle ASM
instances and disk groups with ASMCA, refer to Managing Oracle ASM With ASMCA
(page 9-1).
ASMCA GUI Tool for Managing Oracle ACFS and Oracle ADVM
This section contains the following topics:
• Managing Security and Encryption for Oracle ACFS with ASMCA (page 14-5)
• Creating an Oracle ACFS File System for Database Use (page 14-7)
Note:
When creating an Oracle ADVM volume for an Oracle ACFS file system that is
intended to store database files, use the ASMCMD volcreate command or
the SQL ALTER DISKGROUP ADD VOLUME SQL statement rather than the
ASMCA tool to ensure that the column striping is set to 1. For information
about the volcreate command, refer to "volcreate (page 15-1)". For
information about the ALTER DISKGROUP ADD VOLUME statement, refer to
"Managing Oracle ADVM Volumes in a Disk Group (page 4-16)".
• Resize volumes that have not been mounted on an Oracle ACFS file system
• Delete volumes
There are options for creating a volume, enabling all volumes, and disabling all
volumes.
Figure 14-1 Oracle ASM Configuration Assistant Configure ASM Volumes Page
Click Create to display the dialog for creating a volume. You must provide a unique
volume name for the existing Oracle ASM disk group that you select from the list of
disk groups. You must also specify the size for the volume. You can optionally choose
to display advanced options for creating a volume which enables you to specify the
redundancy level and striping characteristics. For information about the advanced
options when creating a volume, refer to "volcreate (page 15-1)".
The compatibility parameters COMPATIBLE.ASM and COMPATIBLE.ADVM must be set
to 11.2 or higher for the disk group to contain an Oracle ADVM volume. To use
Oracle ACFS encryption, replication, security, or tagging, the disk group on which the
volume is created for the file system must have compatibility attributes for ASM and
ADVM set to 11.2.0.2 or higher. See "Disk Group Compatibility Attributes
(page 4-42)".
Before creating an Oracle ADVM volume on AIX, ensure that the necessary user
authorizations have been created. For information, refer to "Oracle ACFS Command-
line Tools for the AIX Environment (page 16-36)".
Figure 14-2 Oracle ASM Configuration Assistant Create an ASM Volume Page
For information about creating a volume with the ASMCMD volcreate command,
refer to Managing Oracle ADVM with ASMCMD (page 15-1). For an overview of
Oracle ACFS, see Introducing Oracle ACFS and Oracle ADVM (page 11-1).
There are buttons for Create, Mount All, Dismount All, and Security and Encryption
commands.
Figure 14-3 Oracle ASM Configuration Assistant Configure Oracle ACFS Page
Oracle ASM Configuration Assistant enables you to create an Oracle ACFS file system,
as shown in Figure 14-3 (page 14-4).
Select Create, then select the type of Oracle ACFS file system you want to create and
an existing Oracle ADVM volume from the lists. Specify the mount point field; the
mount point must be an existing directory. The file system must be mounted to make
it available. You can choose to enable the Auto Mount option. You can also provide a
description of the file system in the Description field.
The mount command must be manually run as root or the Windows Administrator
at an operating system prompt. For information about mounting an Oracle ACFS file
system, see "mount (page 16-26)" for Linux or "acfsmountvol (page 16-48)" for
Windows.
You can choose to create an Oracle ACFS file system for an Oracle Database. For more
information about creating a file system for a database home, see "Creating an Oracle
ACFS File System for Database Use (page 14-7)".
Figure 14-4 Oracle ASM Configuration Assistant Create Oracle ACFS Dialog
For information about Oracle ACFS, see Introducing Oracle ACFS and Oracle ADVM
(page 11-1). For a summary of the basic steps for creating an Oracle ACFS file system,
see "Basic Steps to Manage Oracle ACFS Systems (page 16-1)".
Figure 14-5 Oracle ASM Configuration Assistant Configure Security and Encryption Dialog
You must initialize the security system as the first step in configuring security for an
Oracle ACFS file system. You must also initialize the encryption system as the first
step in encrypting an Oracle ACFS file system. You do not have to use both Oracle
ACFS security and encryption on the same file system. If you decide to use both
security and encryption, then encryption must be initialized and set before enabling
encryption on a security realm.
In the dialog shown in Figure 14-5 (page 14-6), enter the information to specify the
security administrator and the operating system group of the security administrator.
You can choose to create a password protected wallet. After you complete the entry
fields in the dialog, click Show Command to display the commands you must run as a
root or Administrator user at an operating system prompt. For example:
# /sbin/acfsutil sec init -u grid -g asmadmin
# /sbin/acfsutil encr init
For information about the acfsutil sec init and acfsutil encr init
commands, refer to "acfsutil sec init (page 16-83)" and "acfsutil encr init
(page 16-109)".
After security has been initialized, you can use the menu options to manage security
and encryption for an Oracle ACFS file system, as shown in Figure 14-6 (page 14-7).
The menu includes options to:
• Set encryption
Figure 14-6 Oracle ASM Configuration Assistant Oracle ACFS Security Menu Options
For information about Oracle ACFS security, see "Oracle ACFS Security (page 11-19)".
For a summary of the basic steps for setting up security on an Oracle ACFS file system,
see "Securing Oracle ACFS File Systems (page 16-6)".
For information about Oracle ACFS encryption, see "Oracle ACFS Encryption
(page 11-22)". For a summary of the basic steps for setting up encryption on an Oracle
ACFS file system, see "Encrypting Oracle ACFS File Systems (page 16-11)".
For information about the acfsutil encr and acfsutil sec commands, see
"Oracle ACFS Command-Line Utilities (page 16-115)".
Note:
When creating an Oracle ADVM volume for an Oracle ACFS file system that is
intended to store database files, use the ASMCMD volcreate command or
the SQL ALTER DISKGROUP ADD VOLUME SQL statement rather than the
ASMCA tool to ensure that the column striping is set to 1. For information
about the volcreate command, refer to "volcreate (page 15-1)". For
information about the ALTER DISKGROUP ADD VOLUME statement, refer to
"Managing Oracle ADVM Volumes in a Disk Group (page 4-16)".
Figure 14-7 Oracle ASM Configuration Assistant Create Oracle ACFS for Database Use Dialog
• ASMCA Commands for Oracle ACFS and Oracle ADVM (page 14-9)
For general information about running ASMCA command-line interface, refer to
"Running ASMCA Command-Line (page 9-8)".
Create a Volume
-createVolume creates Oracle ADVM volumes.
Syntax
asmca -silent
-createVolume
{ -volumeName volume_name
-volumeDiskGroup diskgroup
-volumeSizeGB size_GB
[ -volumeRedundancy { INHERIT | HIGH | NORMAL | EXTERNAL } ] ... }
[-sysAsmPassword sysasm_password ]
Table 14-1 (page 14-10) contains the options available with the -createVolume
command.
Option Description
-volumeName volume_name Specifies the name of the volume to create.
-volumeDiskGroup diskgroup Specifies the name of the disk group where you
want to create the volume.
For additional options that are common to multiple commands, see Table 9-1
(page 9-8).
Examples
To create an Oracle ADVM volume:
Example 14-1 Using asmca -silent -createVolume
$ asmca -silent
-createVolume
-volumeName volume1
-volumeDiskGroup mynewdg
-volumeSizeGB 1
Syntax
asmca -silent
-createACFS
{ -acfsVolumeDevice volume_device }
{ -acfsMountPoint mount_path }
[-acfsUserName acfs_username ]
[-acfsUserGroup acfs_usergroup ]
[-sysAsmPassword sysasm_password ]
Table 14-2 (page 14-11) contains the options available with the -createACFS
command.
Option Description
-acfsVolumeDevice Specifies the name of the Oracle ADVM volume
volume_device device.
For additional options that are common to multiple commands, see Table 9-1
(page 9-8).
Examples
To create an Oracle ACFS file system:
Example 14-2 Using asmca -silent -createACFS
$ asmca -silent
-createACFS
-acfsVolumeDevice /dev/asm/volume1-457
-acfsMountPoint /acfsmounts/acfs1
This chapter describes the Oracle Automatic Storage Management (Oracle ASM)
Command-Line Utility (ASMCMD) volume management commands.
NOT_SUPPORTED
Command Description
volcreateNOT_SUPPORTED Creates an Oracle ADVM volume in the specified disk group.
volcreate
Purpose
Creates an Oracle ADVM volume in the specified disk group.
Table 15-2 (page 15-2) describes the options for the volcreate command.
Option Description
-G diskgroup Name of the disk group containing the volume.
WARNING:
Specifying --redundancy unprotected means that Oracle ASM mirroring
is not available for data recovery with the Oracle ADVM volume. The
redundancy setting (normal) of the disk group does not provide mirroring
for an unprotected Oracle ADVM volume. The unprotected configuration is
not recommended for production environments as intermittent storage access
failures can result in the loss of data. Backups are strongly recommended.
When creating an Oracle ADVM volume, a volume device name is created with a
unique Oracle ADVM persistent disk group number that is concatenated to the end of
the volume name. The unique number can be one to three digits.
On Linux, the volume device name is in the format volume_name-nnn, such as
volume1-123. On Windows the volume device name is in the format asm-
volume_name-nnn, such as asm-volume1-123. For information on mounting the
volume device file, see "Creating an Oracle ACFS File System (page 16-2)".
On Linux platforms, the volume name must be less than or equal to eleven
alphanumeric characters, starting with an alphabetic character. On AIX platforms, the
volume name must be less than or equal to twenty three alphanumeric characters,
starting with an alphabetic character. On Windows and Solaris platforms, the volume
name must be less than or equal to thirty alphanumeric characters, starting with an
alphabetic character.
You can determine the volume device name with the volinfo command, described
in "volinfo (page 15-6)".
If the --column option is set to 1, then striping is disabled and the stripe width
equals the volume extent size. The volume extent size is 8 MB if the disk group
allocation unit (AU) is less than or equal to 8 MB. If the AU size is greater than 8 MB,
then the Oracle ADVM volume extent size is equivalent to the disk group AU size. For
information about Oracle ADVM limits, refer to "Limits of Oracle ADVM
(page 18-3)". Setting the --column option to 8 (the default) is recommended to
achieve optimal performance with database data files and other files.
A successful volume creation automatically enables the volume device.
The volume device file functions as any other disk or logical volume to mount file
systems or for applications to use directly.
When creating an accelerator volume, create the volume on a disk group with storage
that is significantly faster than the primary volume's storage. For more information
about the accelerator volume, refer to "mkfs (page 16-24)".
For information about redundancy settings, see "Mirroring_ Redundancy_ and Failure
Group Options (page 4-30)". For information about hot and cold disk regions, see
"Intelligent Data Placement (page 4-20)".
Before creating an Oracle ADVM volume on AIX, ensure that the necessary user
authorizations have been created. For information, refer to "Oracle ACFS Command-
line Tools for the AIX Environment (page 16-36)".
Examples
The following is an example of the volcreate command that creates volume1 in the
data disk group with the size set to 10 gigabytes.
Example 15-1 Using the ASMCMD volcreate command
ASMCMD [+] > volcreate -G data -s 10G --width 1M --column 8 volume1
Stripe Columns: 8
Stripe Width (K): 1024
Usage:
Mountpath:
voldelete
Purpose
Deletes an Oracle ADVM volume.
Table 15-3 (page 15-4) describes the options for the voldelete command.
Option Description
-G diskgroup Name of the disk group containing the volume.
To successfully run this command, the local Oracle ASM instance must be running
and the disk group required by this command must be mounted in the Oracle ASM
instance. Before deleting a volume, you must ensure that there are no active file
systems associated with the volume.
Examples
The following is an example of the voldelete command that deletes volume1 from
the data disk group.
Example 15-2 Using the ASMCMD voldelete command
ASMCMD [+] > voldelete -G data volume1
voldisable
Purpose
Disables Oracle ADVM volumes in mounted disk groups and removes the volume
device on the local node.
Table 15-4 (page 15-4) describes the options for the voldisable command.
Option Description
-all Specifies all volumes within all disk groups.
Option Description
-G diskgroup Name of the disk group containing the volume.
You can disable volumes before shutting down an Oracle ASM instance or
dismounting a disk group to verify that the operations can be accomplished normally
without including a force option due to open volume files. Disabling a volume also
prevents any subsequent opens on the volume or device file because it no longer
exists.
Before disabling a volume, you must ensure that there are no active file systems
associated with the volume. You must first dismount the Oracle ACFS file system
before disabling the volume. See "Dismounting an Oracle ACFS File System
(page 16-20)".
You can delete a volume without first disabling the volume.
Examples
The following is an example of the voldisable command that disables volume1 in
the data disk group.
Example 15-3 Using the ASMCMD voldisable command
ASMCMD [+] > voldisable -G data volume1
volenable
Purpose
Enables Oracle ADVM volumes in mounted disk groups.
Table 15-5 (page 15-5) describes the options for the volenable command.
Option Description
-all Specifies all volumes within all disk groups.
Examples
The following is an example of the volenable command that enables volume1 in the
data disk group.
Example 15-4 Using the ASMCMD volenable command
ASMCMD [+] > volenable -G data volume1
volinfo
Purpose
Displays information about Oracle ADVM volumes.
Table 15-6 (page 15-6) describes the options for the volinfo command.
Option Description
-all Specifies all volumes within all disk groups.
Examples
The first example displays information about the volume1 volume in the data disk
group. This example was produced in a Linux environment. The second example
displays information about the volume1 volume in the data disk group and was
produced in a Windows environment.
The Mountpath field contains the path where the volume is currently mounted or
where the volume was last mounted.
Example 15-5 Using the ASMCMD volinfo command
ASMCMD [+] > volinfo -G data volume1
Diskgroup Name: DATA
Volume Name: VOLUME1
Volume Device: /dev/asm/volume1-123
State: ENABLED
Size (MB): 10240
Resize Unit (MB): 64
Redundancy: MIRROR
Stripe Columns: 8
Stripe Width (K): 1024
Usage: ACFS
Mountpath: /acfsmounts/acfs1
volresize
Purpose
Resizes an Oracle ADVM volume.
Table 15-7 (page 15-7) describes the options for the volresize command.
Option Description
-G diskgroup Name of the disk group containing the volume.
If the volume is mounted on a non-Oracle ACFS file system, then dismount the file
system first before resizing. If the new size is smaller than current, you are warned of
possible data corruption. Unless the -f (force) option is specified, you are prompted
whether to continue with the operation.
If there is an Oracle ACFS file system on the volume, then you cannot resize the
volume with the volresize command. You must use the acfsutil size
command, which also resizes the volume and file system. For information, see "acfsutil
size (page 16-132)".
Examples
The following is an example of the volresize command that resizes volume1 in the
data disk group to 20 gigabytes.
volset
Purpose
Sets attributes of an Oracle ADVM volume in mounted disk groups.
Table 15-8 (page 15-8) describes the options for the volset command.
Option Description
-G diskgroup Name of the disk group containing the volume.
--mountpath mount_path Optional string to tag a volume with its mount path
string which can be up to 1024 characters. This string is
set when the file system is mounted and should not be
changed.
When running the mkfs command to create a file system, the usage field is set to ACFS
and mountpath field is reset to an empty string if it has been set. The usage field
should remain at ACFS.
When running the mount command to mount a file system, the mountpath field is set
to the mount path value to identify the mount point for the file system. After the value
is set by the mount command, the mountpath field should not be updated.
Examples
The following is an example of a volset command that sets the usage string for a
volume that is not associated with a file system.
Example 15-7 Using the ASMCMD volset command
ASMCMD [+] > volset -G data --usagestring 'no file system created' volume1
volstat
Purpose
Reports I/O statistics for Oracle ADVM volumes.
Table 15-9 (page 15-9) describes the options for the volstat command.
Option Description
-G diskgroup Name of the mounted disk group containing the volume.
• If the disk group is not specified and the volume name is specified, all mounted
disk groups are searched for the specified volume name.
• If the disk group name is specified and the volume name is omitted, all volumes
are displayed for the named disk group.
• If both the disk group name and the volume name are omitted, all volumes on all
disk groups are displayed.
Examples
The following is an example of the volstat command that displays information
about volumes in the data disk group.
Example 15-8 Using the ASMCMD volstat command
ASMCMD [+] > volstat -G data
DISKGROUP NUMBER / NAME: 1 / DATA
---------------------------------------
VOLUME_NAME
READS BYTES_READ READ_TIME READ_ERRS
WRITES BYTES_WRITTEN WRITE_TIME WRITE_ERRS
-------------------------------------------------------------
VOLUME1
10085 2290573312 22923 0
1382 5309440 1482 0
• Oracle ACFS Command-line Tools for the Solaris Environment (page 16-29)
• Oracle ACFS Command-line Tools for the AIX Environment (page 16-36)
Note:
1. Create an Oracle ADVM volume in a mounted disk group with the ASMCMD
volcreate command.
When creating an Oracle ADVM volume, a volume device name is created that
includes a unique Oracle ADVM persistent disk group number. The volume device
file functions in the same manner as any other disk or logical volume to mount file
systems or for applications to use directly.
The format of the volume name is platform-specific. For information about the
syntax of the volcreate command, see "ASMCMD Volume Management
Commands (page 15-1)".
You can determine the volume device name with the ASMCMD volinfo
command or from the VOLUME_DEVICE column in the V$ASM_VOLUME view.
For example:
ASMCMD [+] > volinfo -G data volume1
Diskgroup Name: DATA
VOLUME_NAME VOLUME_DEVICE
----------------- --------------------------------------
VOLUME1 /dev/asm/volume1-123
For information about the volinfo command, see Managing Oracle ADVM with
ASMCMD (page 15-1).
See Also:
4. Optionally register the file system with the acfsutil registry command.
For example:
$ /sbin/acfsutil registry -a /dev/asm/volume1-123 /acfsmounts/acfs1
See "acfsutil registry (page 16-129)". The root or asmadmin privileges are required
to modify the registry. The Windows Administrator privilege is equivalent to
the root privilege on Linux.
Registering a file system is optional. After registering an Oracle ACFS file system in
the cluster mount registry, the file system is mounted automatically on each cluster
member listed in the registry entry during the next registry check action. This
automatic process runs every 30 seconds and eliminates the requirement to
manually mount the file system on each member of the cluster.
Registering an Oracle ACFS file system also causes the file system to be mounted
automatically whenever Oracle Clusterware or the system is restarted.
Note:
For more information, see "About the Oracle ACFS Mount Registry (page 11-9)".
Note:
5. Mount the file system with the Oracle ACFS mount command. You can mount a
file system before or after registering the file system. If the file system has been
registered, you can wait for the file system to be mounted automatically.
For example:
# /bin/mount -t acfs /dev/asm/volume1-123 /acfsmounts/acfs1
The user that creates the test file should be a user that is intended to access the file
system. This test ensures that the appropriate user can write to the file system.
For example:
$ echo "Oracle ACFS File System" > /acfsmounts/acfs1/myfile
7. List the contents of the test file that was created in the file system.
For example:
$ cat /acfsmounts/acfs1/myfile
Oracle ACFS File System
Note:
If the file system has been registered with the Oracle ACFS mount registry,
you can skip steps 1 to 3.
1. Enable the volume that was previously created and enabled on node 1.
Start ASMCMD connected to the Oracle ASM instance. You must be a user in the
OSASM operating system group. See "About Privileges for Oracle ASM
(page 3-47)".
For example:
ASMCMD [+] > volenable -G data volume1
For example:
ASMCMD [+] > volinfo -G data volume1
3. Mount the file system using the Oracle ACFS mount command.
For example:
# /bin/mount -t acfs /dev/asm/volume1-123 /acfsmounts/acfs1
4. List the contents of the test file you previously created on the file system.
For example:
$ cat /acfsmounts/acfs1/myfile
Oracle ACFS File System
For example:
$ /sbin/acfsutil snap create mysnapshot_20090725 /acfsmounts/acfs1
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" > /acfsmounts/acfs1/myfile
3. List the contents of the test file and the snapshot view of the test file.
For example:
$ cat /acfsmounts/acfs1/myfile
$ cat /acfsmounts/acfs1/.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.
(page 16-83)". For information about acfsutil sec admin password, refer to
"acfsutil sec admin password (page 16-78)".
All acfsutil sec commands (other than acfsutil sec init) must be run by
an Oracle ACFS security administrator and the administrator is prompted for the
security administrator's password when each command is run.
Note:
When prompting for the security administrator's password, the following text
displays: Realm management password
The password required is the Oracle ACFS security administrator's password,
not the operating system password of the user.
By default, security is enabled for a file system after running this command. You
can explicitly disable or enable security with the acfsutil sec disable or
acfsutil sec enable commands. For more information, refer to "acfsutil sec
disable (page 16-80)" and "acfsutil sec enable (page 16-81)".
This command automatically creates several security realms, such as the
SYSTEM_BackupOperators security realm. Administrators can add users to the
SYSTEM_BackupOperators realm which gives those users permissions to make
backups of realm-secured files in the Oracle ACFS file system.
For more information, refer to "acfsutil sec prepare (page 16-86)".
a. First, run the acfsutil encr init command to initialize encryption and
create the storage necessary for the encryption keys. This command must be
run one time for each cluster on which encryption is set up.
For example, the following command initializes encryption for a cluster.
# /sbin/acfsutil encr init
This command must be run before any other encryption command and
requires root or administrator privileges to run. For more information, refer
to "acfsutil encr init (page 16-109)".
b. Next, run the acfsutil encr set command to set encryption for the Oracle
ACFS file system.
For example, the following command sets encryption for the file system
mounted on the /acfsmounts/acfs1 directory.
# /sbin/acfsutil encr set -m /acfsmounts/acfs1/
The -e option specifies that all the files in the realm are encrypted with the AES
algorithm and the key length set to 128 bits. The file system must first be prepared
for encryption with the acfsutil encr init and acfsutil encr set
commands. You do not have to enter the same value for the -k option with
acfsutil sec realm create as you have entered with the acfsutil encr
set command.
For more information, refer to "acfsutil sec realm create (page 16-97)".
Run the acfsutil sec rule create command to create rules which determine
access to the files and directories of a security realm.
For example, create rules that can enable the medMaintenance user to access
medical records for the time period 10 PM to 2 AM for file maintenance. Also,
create rules that can deny operations during the time period 8 AM to 9 AM and
deny operations to the medBrowse user.
$ /sbin/acfsutil sec rule create medHistRule1a -m /acfsmounts/acfs1/
-t time 22:00:00,02:00:00 -o ALLOW
You can edit rules with the acfsutil sec rule edit command.
For more information, refer to "acfsutil sec rule create (page 16-100)" and "acfsutil
sec rule edit (page 16-102)".
The ALL_TRUE option is the default action, but is added here to emphasize that
both rules in each rule set must be true.
For more information, refer to "acfsutil sec ruleset create (page 16-104)" and
"acfsutil sec ruleset edit (page 16-106)".
each command rule. To display a list of the command rules, use acfsutil sec
info with the -c option. Refer to "acfsutil sec info (page 16-82)".
The following acfsutil sec realm add command enables the
medMaintenance user to delete medical records during the time period 10 PM to
2 AM, but blocks writing to files during 8 AM to 9 AM.
$ /sbin/acfsutil sec realm add medHistRealm -m /acfsmounts/acfs1/
-l DELETEFILE:medRuleSet1
-f -r /acfsmounts/acfs1/medicalrecords
This acfsutil sec realm add command prevents the medBrowse user from
writing or deleting medical records anytime.
$ /sbin/acfsutil sec realm add medHistRealm -m /acfsmounts/acfs1/
-l WRITE:medRuleSet2
-f -r /acfsmounts/acfs1/medicalrecords
This acfsutil sec realm add command adds backup operators to the
SYSTEM_BackupOperators security realm that was automatically created with
the acfsutil sec prepare command.
$ /sbin/acfsutil sec realm add SYSTEM_BackupOperators -m /acfsmounts/acfs1/
-G sysBackupGrp
Users that belong to the sysBackupGrp operating system group can now make
backups of realm-secured files in the Oracle ACFS file system.
For more information, refer to "acfsutil sec realm add (page 16-88)" and "acfsutil
sec realm delete (page 16-98)".
To display the security realms to which a file or a directory belongs, run the
acfsutil sec info file command. For example:
$ /sbin/acfsutil sec info file -m /acfsmounts/acfs1/
/acfsmounts/acfs1/medicalrecords
For more information, refer to "acfsutil sec info (page 16-82)" and "acfsutil sec
info file (page 16-83)".
For more information, refer to "acfsutil sec save (page 16-106)" and "acfsutil sec
load (page 16-85)".
You can run some acfsutil sec commands in a batch file with the acfsutil sec
batch command. For example, you could create a batch file that contains a group of
acfsutil sec rule and acfsutil sec ruleset commands. For more
information, refer to "acfsutil sec batch (page 16-79)".
Auditing and diagnostic data for Oracle ACFS security is saved to log files. For more
information about Oracle ACFS security, including the log files, refer to "Oracle ACFS
Security (page 11-19)".
1. Initialize encryption.
Run the acfsutil encr init command to initialize encryption and create the
storage necessary for the encryption keys. This command must be run one time
for each cluster on which encryption is set up.
For example, the following command initializes encryption for a cluster.
# /sbin/acfsutil encr init
This command must be run before any other encryption command and requires
root or administrator privileges to run.
For more information, refer to "acfsutil encr init (page 16-109)".
For example, the following command sets the AES encryption algorithm and a file
key length of 128 for a file system mounted on the /acfsmounts/acfs1
directory.
# /sbin/acfsutil encr set -a AES -k 128 -m /acfsmounts/acfs1/
3. Enable encryption.
Run the acfsutil encr on command to enable encryption for directories and
files.
For example, the following command enables encryption recursively on all files in
the /acfsmounts/acfs1/medicalrecords directory.
# /sbin/acfsutil encr on -r /acfsmounts/acfs1/medicalrecords
-m /acfsmounts/acfs1/
For users that have appropriate permissions to access files in the /acfsmounts/
acfs1/medicalrecords directory, they can still read the decrypted files.
This command can be run by an administrator or the file owner.
For more information, refer to "acfsutil encr on (page 16-111)".
Run the acfsutil tag set command to set tags on directories or files. You can
use these tags to specify which objects are replicated.
For example, add the comedy and drama tags to the files in the subdirectories of
the /acfsmounts/repl_data/films directory.
$ /sbin/acfsutil tag set -r comedy /acfsmounts/repl_data/films/comedies
In this example, the drama tag is purposely used twice and that tag is changed in
a later step.
You must have system administrator privileges or be the file owner to run this
command.
For more information, refer to "acfsutil tag set (page 16-55)".
Display tagging information for files with the drama tag in the /acfsmounts/
repl_data/films directory.
$ /sbin/acfsutil tag info -t drama -r /acfsmounts/repl_data/films
You must have system administrator privileges or be the file owner to run this
command.
For more information, refer to "acfsutil tag info (page 16-54)".
Add the mystery tag to the files in the mysteries subdirectory of the /
acfsmounts/repl_data/films directory.
$ /sbin/acfsutil tag set -r mystery /acfsmounts/repl_data/films/mysteries
You must have system administrator privileges or be the file owner to run these
commands.
For more information, refer to "acfsutil tag unset (page 16-57)".
For more information about tagging an Oracle ACFS file system, refer to "Oracle ACFS
Tagging (page 11-33)".
1. Determine the storage capacity necessary for replication on the sites hosting the
primary and standby file systems. The primary file system must have a minimum
size of 4 GB for each node that is mounting the file system. The standby file
system must have a minimum size of 4 GB and should be sized appropriately for
the amount of data being replicated and the space necessary for the replication
logs sent from the primary file system.
Calculate the replication-related storage requirement for the primary file system,
then use the same size requirement for the standby file system. If Oracle ACFS
tagging is used to replicate only a subset of the files in the primary file system,
then the size requirement for the standby file system is proportional to that subset
of the primary file system.
Run the acfsutil info fs command with the -s interval option on the node
where the primary file system is mounted to display the amount and rate of
change to the primary file system for the node. The amount of change includes all
user and metadata modifications to the primary file system. This amount
approximates the size of replication logs that are generated when recording
changes to the file system. Changes are stored in temporary files called replication
logs which are kept in a special directory in the primary file system until they can
be sent to the standby to be applied. After confirmation is received that the
changes contained in a replication log have been successfully applied to the
standby file system, the replication logs on the primary file system are deleted.
To approximate the extra storage capacity necessary for the replication logs,
determine the following:
• The time interval during which the site hosting the primary file system may
experience network connectivity problems or slowdowns when accessing the
site hosting the standby file system.
• The time interval during which the site hosting the standby file system may
be taken offline for maintenance.
These time intervals are used in calculating the amount and rate of change in
storage space. You must account for the time interval when the primary file
system cannot send the replication logs over to the standby file system at its usual
rate or when standby file systems are inaccessible while undergoing maintenance.
The replication logs continue to accumulate on the site hosting the primary file
system and may eventually cause that site to run out of space.
For the following scenario, assume t = 60 minutes is the time interval in your
environment that would adequately account for network problems or
maintenance on site hosting the standby file system.
Run acfsutil info fs -s 900 on the primary file system to collect the average
rate of change over a 24 hour period with a 15 minute (900 seconds) interval. The
t/4 (60/4=15) result is the value for the sampling interval. Do not exceed a value
of t/2 for the time interval as you may miss some important peaks.
$ /sbin/acfsutil info fs -s 900 /acfsmounts/repl_data
With the output, you can determine the average rate of change, the peak rate of
change, and how long the peaks last. However, the command displays
information only for the node on which the command is run. To collect the total
amount of change in the file system the command must be run on every node that
is modifying the file system. The maximum number of supported nodes is eight.
The following formula approximates the extra storage capacity needed:
Extra storage capacity to hold replication logs =
(Number-nodes-on-primary * 1GB) + P
where P is the peak amount of change generated across all nodes for time t as
reported by the acfsutil info fs –s output.
In the example, you must total the changes from four 15-minute intervals to find
the total amount of change that could occur in 60 minutes. You may choose to use
the single hour that generated the largest amount of change, or you could select
the top four 15-minute intervals even if they did not occur together to prepare for
the worst-case scenario.
Assume that you have four nodes modifying the primary file system, and that
during the measured interval, the peak amount of change reported for the 60
minutes is approximately 20 GB for all nodes. Using the storage capacity formula,
24 GB of excess storage capacity on each site hosting the primary file system is
required for storage of the replication logs.
Extra storage capacity to hold replication logs = (4 * 1GB per node) +
20GB maximum change per hour = 24GB of extra storage capacity
Next, check that the network transfer rate is greater than or equal to the rate of
change observed during the monitoring period. In the previous example, the peak
of 20 GB of changed data per hour is equivalent to a peak rate of change of about
5.5 MB/sec. To keep up with this rate of change, you must ensure that the
network can reliably transfer at least this amount of data per second without
negatively impacting your existing network workloads.
To estimate your current actual network transfer rate, calculate the elapsed time
required to FTP a 1 GB file from the primary file system to the intended standby
file system during an interval when network usage is low. For example, if the 1
GB file transfers in 30 seconds, then your current FTP transfer rate is 33 MB per
seconds (1000 MB/30 seconds = 33 MB per second). Because of various delays
inherent in the transfers, for planning purposes you should reduce this measured
FTP transfer rate by 20%, and then by an additional 5% per node.
In the previous example with 4 nodes, the FTP transfer rate used for planning is:
33 MB/sec * (1 – (0.2) – (4 * 0.05)) = 33 * (0.6) = ~20MB/sec
Because the peak rate of change was only 5.5 MB/second, you can expect the
network to be able to handle this additional workload in this example. However,
if the network capacity is close to fully utilized, you might want to consider
increasing network capacity before implementing replication for this file system
and workload.
• Determine the user name and password that the sites hosting the primary and
standby file systems use to connect to the remote Oracle ASM instance as the
Oracle ASM and DBA administrator. All nodes that have the file system
mounted must support this user name and password. The user must have
SYSASM and SYSDBA privileges. For example:
SQL> CREATE USER primary_admin IDENTIFIED BY primary_passwd;
SQL> GRANT sysasm,sysdba TO primary_admin;
See Also:
Note:
– You must specify a service name other than +ASM because that service
name is currently in use by the Oracle ASM instance.
– You must specify a unique service name for each file system that you
want to replicate when there are multiple replicated file systems on a
node or cluster.
Using this service name, create a net service alias on the sites hosting the
primary and standby file system that connects to the remote site. This alias
along with the user name and password are used as the connection string in
the replication initialization commands.
For example, the following are examples of connect descriptors with net
service aliases for the sites hosting the primary and standby file systems.
primary_repl_site=(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=primary1.example.com)(PORT=1521))
(ADDRESS=(PROTOCOL=tcp)(HOST=primary2.example.com)(PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=primary_service)))
standby_repl_site=(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=standby1.example.com)(PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=standby_service)))
If you want to perform replication using a single client access name (SCAN)
VIP, you must update the REMOTE_LISTENER initialization parameter in the
Oracle ASM instance before initializing replication. You can update the
parameter in the initialization file or with the ALTER SYSTEM SQL statement.
For example:
SQL> ALTER SYSTEM SET remote_listener='SCAN_NAME:1521' sid='*' scope=both;
See Also:
• Optionally set tags on directories and files to replicate only selected files in an
Oracle ACFS file system. You can also add tags to files after replication has
started. For information about the steps to tag files, refer to "Tagging Oracle
ACFS File Systems (page 16-12)".
• Create a new file system of adequate size to hold the replicated files and
associated replication logs from the primary file system. For example: /
standby/repl_data
– The connect string to be used to connect to the site hosting the primary
file system. For example:
/@primary_repl_site
The connect string searches in the user's wallet for the user name and
password associated with the alias primary_repl_site. The user must
have SYSASM and SYSDBA privileges.
– If the standby file system is using a different service name than the
primary file system, then the use -c option. This option specifies the
service name for the standby file system. For example:
standby_repl_service
• The connect string to be used to connect to the site hosting the standby file
system. For example:
/@standby_repl_site
The connect string searches in the user's wallet for the user name and
password associated with the alias standby_repl_site. The user must
have SYSASM and SYSDBA privileges.
• The mount point of the primary file system. For example: /acfsmounts/
repl_data
• If the primary file system is using a different service name than the standby
file system, then use the -c option. This option specifies the service name on
the site hosting the primary file system. For example:
primary_repl_service
• If the mount point is different on the site hosting the standby file system than
it is on the site hosting the primary file system, specify the mount point on the
standby file system with the -m standby_mount_point option. For
example:
-m /standby/repl_data
For example, run the following acfsutil repl init primary command on the
site hosting the primary file system.
$ /sbin/acfsutil repl init primary
-s /@standby_repl_site
-m /standby/repl_data -c primary_repl_service
/acfsmounts/repl_data
8. Failing over to a standby or turning a standby file system into an active file
system.
If the primary file system is gone, you can run the acfsutil terminate
standby mount_point command to turn the standby file system into an active
file system. If the primary file system still exists, you should terminate the
primary first with acfsutil terminate primary mount_point.
Note:
For more information about replicating an Oracle ACFS file system, refer to "Oracle
ACFS Replication (page 11-30)".
Deregistering, Dismounting, and Disabling Volumes and Oracle ACFS File Systems
This section discusses the operations to deregister or dismount a file system and
disable a volume. This section contains these topics:
If you deregister a file system, then you must explicitly mount the file system after
Oracle Clusterware or the system is restarted.
For more information about the registry, see "About the Oracle ACFS Mount Registry
(page 11-9)". For information about acfsutil registry, see "acfsutil registry
(page 16-129)".
After you dismount a file system, you must explicitly mount the file system.
Use umount on Linux systems or acfsdismount on Windows systems. For
information about the commands to dismount a file system, see "umount
(page 16-28)" or "acfsdismount (page 16-46)".
Use fsck on Linux systems or acfschkdsk on Windows systems to check a file
system. For information about the commands to check a file system, see "fsck
(page 16-23)" or "acfschkdsk (page 16-44)".
Disabling a Volume
To disable a volume, you must first dismount the file system on which the volume is
mounted.
For example:
# /bin/umount /acfsmounts/acfs1
After a file system is dismounted, you can disable the volume and remove the volume
device file.
For example:
ASMCMD> voldisable -G data volume1
Dismounting the file system and disabling a volume does not destroy data in the file
system. You can enable the volume and mount the file system to access the existing
data. For information about voldisable and volenable, see Managing Oracle
ADVM with ASMCMD (page 15-1).
For example:
$ /sbin/acfsutil registry -d /acfsmounts/acfs1
acfsutil registry: successfully removed ACFS mount point
/acfsmounts/acfs1 from Oracle Registry
For example:
# /bin/umount /acfsmounts/acfs1
If you were not planning to remove the volume in a later step, this step is necessary
to remove the file system. Otherwise, the file system is removed when the volume
is deleted.
For example:
$ /sbin/acfsutil rmfs /dev/asm/volume1-123
For information about running acfsutil rmfs, see "acfsutil rmfs (page 16-131)".
4. Optionally you can disable the volume with the ASMCMD voldisable
command.
For example:
ASMCMD> voldisable -G data volume1
For information about running voldisable, see Managing Oracle ADVM with
ASMCMD (page 15-1).
For example:
ASMCMD> voldelete -G data volume1
For information about running voldelete, see Managing Oracle ADVM with
ASMCMD (page 15-1).
Note:
When using Security-Enhanced Linux (SELinux) in enforcing mode with
Oracle ACFS, ensure that the Oracle ACFS file systems are mounted with an
SELinux default context. Refer to your Linux vendor documentation for
information about the context mount option.
NOT_SUPPORTED
Command Description
fsckNOT_SUPPORTED Checks and repairs an Oracle ACFS file system.
fsck
Purpose
Checks and repairs an Oracle ACFS file system.
Option Description
-a Specifies to automatically repair the file system.
fsck checks and repairs an existing Oracle ACFS. This command can only be run on a
dismounted file system. root privileges are required to run fsck. The Oracle ACFS
driver must be loaded for fsck to work.
By default, fsck only checks for and reports any errors. The -a flag must be specified
to instruct fsck to repair errors in the file system. Do not interrupt fsck during the
repair operation.
In a few cases, fsck prompts for questions before proceeding to check a file system.
These cases include:
The id fields are the internal Oracle ACFS numeric identifiers for each file and
directory in the file system.
You can use acfsutil info id id mount_point to attempt to determine the
directory associated with parent.id. This directory is assumed to be where the
deleted object originated. For information about acfsutil info, see "acfsutil info file
(page 16-120)".
If the parent directory is not known, the parent id field is set to UNKNOWN.
Note:
Examples
The following example shows how to check and repair an Oracle ACFS file system.
Example 16-1 Using the fsck command
# /sbin/fsck -a -y -t acfs /dev/asm/volume1-123
mkfs
Purpose
Creates an Oracle ACFS file system.
Option Description
-t acfs Specifies the type of file system on Linux. acfs designates the
Oracle ACFS type.
-n name Specifies the name for the file system. A name can be a
maximum of 64 characters. acfsutil info fs returns the
name if one was specified.
-f Specifies the force option. This action creates the file system
even if there is an existing Oracle ACFS on the volume device,
although only if the file system is dismounted. This option
overwrites structures on the original file system. Use this option
with caution.
size Specifies the size that the file system should consume on the
named device. The quantity specified can be in units of K
(kilobytes), M (megabytes), G (gigabytes), T (terabytes), or P
(petabytes). If a unit is not specified, the default is bytes.
If this option is not specified, the entire device is consumed.
You can use mkfs to create the on disk structure needed for Oracle ACFS file system
to be mounted. The mkfs command is the traditional Linux command used to build a
file system. After mkfs runs successfully, the USAGE column in the V$ASM_VOLUME
view displays ACFS. root privilege is not required. The ownership of the volume
device file dictates who can run this command. Oracle ADVM volumes are created
with the ASMCMD volcreate command. For information about the volcreate
command, refer to "volcreate (page 15-1)".
The minimum file system size is 200 MB. The Oracle ACFS driver must be loaded for
mkfs to operate successfully.
Note:
This feature is included starting with Oracle Database 12c Release 1 (12.1.0.2).
The feature is reserved for future use. Oracle ACFS accelerator volume
currently provides no performance gain in 12.1.0.2.
Use an accelerator volume to reduce the time to access the Oracle ACFS metadata log,
which is located on the accelerator volume. The accelerator volume is created with the
-a option with the mkfs command. The value of COMPATIBLE.ADVM must be at least
12.1.0.2 to use the -a option.
Create the accelerator volume on a disk group with storage that is significantly faster
than the primary volume's storage. For example, Solid State Disk (SSD) storage could
be used. The size of the accelerator volume should be at least 32 MB for each node in
the cluster. For example, in an eight-node cluster the recommended minimum size of
the accelerator volume is 256 MB. If an accelerator volume is smaller than the
recommended size, the file system can operate normally, but the full benefit of the
storage accelerator may not be achieved. The minimum size of the accelerator volume
is 128 MB. Oracle ADVM volumes are created with the ASMCMD volcreate
command. For information about the volcreate command, refer to "volcreate
(page 15-1)".
The accelerator volume is linked to the primary volume specified with the mkfs
command. When mounting a file system, only the primary volume is specified. If the
accelerator volume becomes inaccessible for any reason after a file system with the
volume is mounted, the file system is taken offline. Only one storage accelerator
volume can be associated with an Oracle ACFS file system. After an accelerator
volume is associated with a file system, the volume cannot be disassociated from the
file system. The accelerator volume cannot be resized.
Examples
Before creating an Oracle ACFS file system, first determine which Oracle ADVM
volume devices are available. You can use the ASMCMD volinfo command to
display information about the volumes and volume devices.
ASMCMD [+] > volinfo -a
...
Volume Name: VOLUME1
Volume Device: /dev/asm/volume1-123
State: ENABLED
...
For information about the volcreate and volinfo commands, refer to Managing
Oracle ADVM with ASMCMD (page 15-1).
Next create an Oracle ACFS file system on a volume device file.
Example 16-2 Using the mkfs command
$ /sbin/mkfs -t acfs /dev/asm/volume1-123
mount
Purpose
Mounts an Oracle ACFS file system.
Option Description
-h Displays the usage help text and exits.
-t acfs Specifies the type of file system on Linux. acfs designates the
Oracle ACFS type.
volume_device Specifies a primary Oracle ADVM volume device file that has
been formatted by mkfs. device is required but can be a
dummy value.
mount_point Specifies the directory where the file system is mounted. This
directory must exist before you run the mount command.
mount attaches a file system to the Oracle ACFS hierarchy at the mount point that is
the name of a directory. The mount happens on the node where the mount command
was issued. The mount command returns an error if the file system is not in a
dismounted state on this node.
It is not always possible to return the cause of a mount failure to the mount command.
When this happens Oracle ACFS writes the cause of the failure to the system console
and associated system log file.
After mount runs successfully, the MOUNTPATH field in the V$ASM_VOLUME view
displays the directory name on which the file system is now mounted.
An Oracle ACFS file system should only be mounted on one mount point. The same
mount point name should be used on all cluster members.
The mount command lists all mounted file systems if it is run with no parameters.
root privilege is required to run mount.
Examples
The first example shows how to mount volume1-123 on the mount point /
acfsmounts/acfs1. The second example shows how to mount all the registered
Oracle ACFS file systems. The dummy names (none) have been entered for the device
and directory as they are required, but not used, when the all option is specified.
Example 16-3 Using the mount command
# /bin/mount -t acfs /dev/asm/volume1-123 /acfsmounts/acfs1
umount
Purpose
Dismounts an Oracle ACFS file system.
Option Description
-h Displays the usage help text and exits.
-t acfs Specifies the type of file system on Linux. acfs designates the
Oracle ACFS type.
Option Description
-l Specifies a lazy unmount. The Oracle ACFS file system is
dismounted, but the cleanup of all references to the file system
occurs when the system is no longer busy.
volume_device Specifies an Oracle ADVM volume device file that has been
formatted by mkfs.
mount_point Specifies the directory where the file system is mounted. This
directory must exist before you run the mount command.
umount detaches an Oracle ACFS from the file system hierarchy on the current node.
If the file system is busy, umount fails.
root privileges are required to run the umount command.
Examples
The following examples show how to dismount an Oracle ACFS file system. The first
example uses the volume device file and the second example uses the file system.
Example 16-4 Using the umount command
# /bin/umount /dev/asm/volume1-123
# /bin/umount /acfsmounts/acfs1
Note:
If a disk group is dismounted with the force option on Solaris, any Oracle
ADVM volumes device files that were on that disk group remain on the
system. These files are removed when the disk group is remounted.
NOT_SUPPORTED
Command Description
fsckNOT_SUPPORTED Checks and repairs an Oracle ACFS file system on Solaris.
fsck
Purpose
Checks and repairs an Oracle ACFS file system on the Solaris operating system.
Option Description
-F acfs Specifies the type of file system on Solaris. acfs designates the
Oracle ACFS type.
fsck checks and repairs an existing Oracle ACFS file system. This command can only
be run on a dismounted file system. root privileges are required to run fsck. The
Oracle ACFS driver must be loaded for fsck to work.
By default, fsck only checks for and reports any errors. The -o a option must be
specified to instruct fsck to fix errors in the file system. Do not interrupt fsck during
the repair operation.
In a few cases, fsck prompts for questions before proceeding to check a file system.
These cases include:
The id fields are the internal Oracle ACFS numeric identifiers for each file and
directory in the file system.
You can use acfsutil info id id mount_point to attempt to determine the
directory associated with parent.id. This directory is assumed to be where the
deleted object originated. For information about acfsutil info, see "acfsutil info file
(page 16-120)".
If the parent directory is not known, the parent id field is set to UNKNOWN.
Note:
Examples
The following example shows how to check and repair an Oracle ACFS file system.
Example 16-5 Using the fsck command
# /usr/sbin/fsck -F acfs -y -o a /dev/asm/volume1-123
mkfs
Purpose
Creates an Oracle ACFS file system on the Solaris operating system.
Option Description
-F acfs Specifies the type of file system on Solaris. acfs designates the
Oracle ACFS type.
-o options Specifies that options follow (f, h, n, v). Options are preceded
with the -o flag and entered as a comma-delimited string. For
example: -o f,v
• h
Displays the usage text and exits.
• f
Specifies the force option. This action creates the file
system even if there is an existing Oracle ACFS on the
volume device, although only if the file system is
dismounted. This option overwrites structures on the
original file system. Use this option with caution.
• n=name
Specifies the name for the file system. A name can be a
maximum of 64 characters. acfsutil info fs returns the
name if one was specified.
• v
Specifies verbose mode. The progress is displayed as the
operation occurs.
size Specifies the size of the file system in 512-byte units or in units
of K|M|G|T|P. Units specified are in K (kilobytes), M
(megabytes), G (gigabytes), T (terabytes), or P (petabytes).
You can use mkfs to create the on disk structure needed for Oracle ACFS file system
to be mounted. The mkfs command is the traditional Linux command used to build a
file system. After mkfs runs successfully, the USAGE column in the V$ASM_VOLUME
view displays ACFS. root privilege is not required. The ownership of the volume
device file dictates who can run this command.
The minimum file system size is 200 MB.
The Oracle ACFS driver must be loaded for mkfs to work.
Examples
Before creating an Oracle ACFS file system, first determine which Oracle ADVM
volume devices are available. You can use the ASMCMD volinfo command to
display information about the volumes and volume devices.
ASMCMD [+] > volinfo -a
...
Volume Name: VOLUME1
mount
Purpose
Mounts an Oracle ACFS file system on the Solaris operating system.
Option Description
-F acfs Specifies the type of file system on Solaris. acfs designates the
Oracle ACFS type.
Option Description
-o Specifies that options follow. Options are preceded with the -o
flag followed by a comma-delimited string of options. For
example: -o all,v
The following options are available:
• all
Reads the Oracle ACFS managed file systems in the Oracle
Clusterware namespace, mounting all file systems with the
AUTO_START=always.
The -o all option requires two placeholders to satisfy the
command arguments: a dummy argument for the volume
device and any valid directory.
When the -o all option is specified, other -o options are
ignored.
To specify mount options for a registry entry, include
those options with the acfsutil registry command
when you add the entry to the registry.
• devices/nodevices
Allows or disallows the opening of any character or block
special devices from this mount.
• exec/noexec
Allows or disallows the execution of programs in this file
system.
• h
Displays the usage help text and exits.
• rootsuid/norootsuid
Allows or disallows the execution of setuid to root
executables (binaries by non-root users whose permissions
allow set user Id execution, and are owned by root).
rootsuid is the default action. If norootsuid is
specified, an attempt to run these executables as a non-root
user fails with a permission denied error.
• ro
Mounts the file system in read-only mode.
• rw
Mounts the file system in read-write mode.
• setuid/nosetuid
Allows or disallows the execution of setuid and setgid
programs.
• suid/nosuid
Allows or disallows the execution of setuid and setgid
programs and the opening of any character or block
special devices from this mount.
• v
Specifies verbose mode. The progress is displayed as the
operation occurs.
volume_device Specifies an Oracle ADVM volume device file that has been
formatted by mkfs. device is required but can be a dummy
value.
Option Description
mount_point Specifies the directory where the file system is mounted. This
directory must exist before you run the mount command.
mount attaches a file system to the Oracle ACFS hierarchy at the mount point that is
the name of a directory. The mount occurs on the node where the mount command
was issued. The mount command returns an error if the file system is not in a
dismounted state on this node.
It is not always possible to return the cause of a mount failure to the mount command.
When this happens Oracle ACFS writes the cause of the failure to the system console
and associated system log file.
After mount runs successfully, the MOUNTPATH field in the V$ASM_VOLUME view
displays the directory name on which the file system is now mounted.
An Oracle ACFS file system should only be mounted on one mount point. The same
mount point name should be used on all cluster members.
root privilege is required to run mount.
Examples
The first example shows how to mount volume1-123 on the mount point /
acfsmounts/acfs1. The second example shows how to mount all the registered
Oracle ACFS file systems. Placeholder arguments must be provided for the volume
device name and mount point when specifying the -o all option. The volume device
can be a dummy value, such as none. Any valid directory can be specified for the
mount point, such as /tmp.
Example 16-7 Using the mount command
# /sbin/mount -F acfs /dev/asm/volume1-123 /acfsmounts/acfs1
umount/umountall
Purpose
Dismounts an Oracle ACFS file system on the Solaris operating system.
Option Description
-V Echoes the complete command line, but does not run the
command. Use this option to verify and validate the command
line before execution. Valid only with umount.
mount_point Specifies the directory where the file system is mounted. Valid
only with umount.
-F acfs Specifies the type of file system on Solaris. acfs designates the
Oracle ACFS type. Valid only with umountall.
umount and umountall detach an Oracle ACFS from the file system hierarchy on the
current node. If a file system is busy, umount and umountall fail.
root privileges are required to run the umount and umountall commands.
Examples
The following examples show how to dismount an Oracle ACFS file system. The first
example specifies the mount point of the file system to dismount. The second example
specifies the volume device associated with the file system to dismount. The third
example dismounts all Oracle ACFS file systems.
Example 16-8 Using the umount command
# /sbin/umount /dev/asm/volume1-123
# /sbin/umount /acfsmounts/acfs1
# /sbin/umountall -F acfs
After the initial installation on an AIX operating system, the shell from which the root
script was run does not inherit the new role. If the role is not present for the user, then
the swrole command must be run before performing Oracle ACFS or Oracle ADVM
operations.
For example, run the following as the Oracle ASM administrator:
$ swrole oracle_devmgmt
Alternatively, you can open a new shell to perform Oracle ACFS or Oracle ADVM
operations.
During the removal of Oracle Grid Infrastructure, the oracle_devmgmt role and its
associated authorizations are deleted from the system.
See Also:
Note:
If a disk group is dismounted with the force option on AIX, any Oracle ADVM
volumes device files that were on that disk group remain on the system. These
files are removed when the disk group is remounted.
NOT_SUPPORTED
Command Description
fsckNOT_SUPPORTED Checks and repairs an Oracle ACFS file system on AIX.
fsck
Purpose
Checks and repairs an Oracle ACFS file system on the AIX operating system.
Table 16-12 (page 16-38) contains the options available with the AIX fsck command.
Option Description
-V acfs Specifies an Oracle ADVM volume on AIX. acfs designates the
Oracle ACFS type.
-o options Specifies that options follow (a, f, v). Options are preceded with
the -o flag and entered as a comma-delimited string. For
example: -o a,v
• a
Specifies to automatically fix the file system.
• f
Forces the file system into mountable state without
completing a file system check or fix.
• v
Specifies verbose mode. The progress is displayed as the
operation occurs. Running in verbose mode can impact
performance.
fsck checks and repairs an existing Oracle ACFS. This command can only be run on a
dismounted file system. root privileges are required to run fsck. The Oracle ACFS
driver must be loaded for fsck to work.
By default, fsck only checks for and reports any errors. The -a flag must be specified
to instruct fsck to fix errors in the file system. Do not interrupt fsck during the
repair operation.
In a few cases, fsck prompts for questions before proceeding to check a file system.
These cases include:
directory), it places this object in the /lost+found directory when fsck is run in fix
mode. For security reasons only the root user on Linux can read files in /lost
+found. If the administrator can later determine the original name and location of the
file based on its contents, the file can be moved or copied into its intended location.
The file names in the /lost+found directory are in the following formats:
parent.id.file.id.time-in-sec-since-1970
parent.id.dir.id.time-in-sec-since-1970
The id fields are the internal Oracle ACFS numeric identifiers for each file and
directory in the file system.
You can use acfsutil info id id mount_point to attempt to determine the
directory associated with parent.id. This directory is assumed to be where the
deleted object originated. For information about acfsutil info, see "acfsutil info file
(page 16-120)".
If the parent directory is not known, the parent id field is set to UNKNOWN.
Note:
Examples
The following example shows how to check and repair an Oracle ACFS file system.
Example 16-9 Using the fsck command
# /usr/sbin/fsck -V acfs -y -o a /dev/asm/volume1-123
mkfs
Purpose
Creates an Oracle ACFS file system on the AIX operating system.
Option Description
-V acfs Specifies the type of file system on AIX. acfs designates the
Oracle ACFS type.
-v name Specifies the name for the file system. A name can be a
maximum of 64 characters. acfsutil info fs returns the
name if one was specified.
Option Description
-s size Specifies the size of the file system in 512-byte units or in units
of K|M|G|T|P. Units specified are in K (kilobytes), M
(megabytes), G (gigabytes), T (terabytes), or P (petabytes).
-o options Specifies that options follow (f, h, v). Options are preceded with
the -o flag and entered as a comma-delimited string. For
example: -o f,v
• f
Specifies the force option. This action creates the file
system even if there is an existing Oracle ACFS on the
volume device, although only if the file system is
dismounted. This option overwrites structures on the
original file system. Use this option with caution.
• h
Displays the usage text and exits.
• v
Specifies verbose mode. The progress is displayed as the
operation occurs.
You can use mkfs to create the on disk structure needed for Oracle ACFS file system
to be mounted. The mkfs command is the traditional Linux command used to build a
file system. After mkfs runs successfully, the USAGE column in the V$ASM_VOLUME
view displays ACFS. root privilege is not required. The ownership of the volume
device file dictates who can run this command.
The minimum file system size is 200 MB.
The Oracle ACFS driver must be loaded for mkfs to work.
Examples
Before creating an Oracle ACFS file system, first determine which Oracle ADVM
volume devices are available. You can use the ASMCMD volinfo command to
display information about the volumes and volume devices.
ASMCMD [+] > volinfo -a
...
Volume Name: VOLUME1
Volume Device: /dev/asm/volume1-123
State: ENABLED
...
mount
Purpose
Mounts an Oracle ACFS file system on the AIX operating system.
Option Description
-v acfs Specifies the type of file system on AIX. acfs designates the
Oracle ACFS type.
Option Description
-o options Specifies that options follow. Options are preceded with the -o
flag followed by a comma-delimited string of options. For
example: -o all,ro,v
The following options are available:
• all
Reads the Oracle ACFS managed file systems in the Oracle
Clusterware namespace, mounting all file systems with the
AUTO_START=always.
The -o all option requires two placeholders to satisfy the
command arguments: a dummy argument for the volume
device and directory.
When the -o all option is specified, other -o options are
ignored.
To specify mount options for a registry entry, include
those options with the acfsutil registry command
when you add the entry to the registry.
• h
Displays the usage help text and exits.
• nosuid
Specifies that the execution of setuid and setgid
programs by way of this mount is not allowed.
• nodev
Specifies that you cannot open devices from this mount.
• norootsuid
Fails the execution of binaries by non-root users whose
permissions allow set user Id execution, and are owned by
root. An attempt to run these executables as a non-root
user fails with a permission denied error.
• rootsuid
Allows the execution of binaries by non-root users of set
user Id files owned by root. This is the default action.
• ro
Mounts the file system in read-only mode.
• rw
Mounts the file system in read-write mode.
• v
Specifies verbose mode. The progress is displayed as the
operation occurs.
volume_device Specifies an Oracle ADVM volume device file that has been
formatted by mkfs. device is required but can be a dummy
value.
mount_point Specifies the directory where the file system is mounted. This
directory must exist before you run the mount command.
mount attaches a file system to the Oracle ACFS hierarchy at the mount point that is
the name of a directory. The mount happens on the node where the mount command
was issued. The mount command returns an error if the file system is not in a
dismounted state on this node.
It is not always possible to return the cause of a mount failure to the mount command.
When this happens Oracle ACFS writes the cause of the failure to the system console
and associated system log file.
After mount runs successfully, the MOUNTPATH field in the V$ASM_VOLUME view
displays the directory name on which the file system is now mounted.
An Oracle ACFS file system should only be mounted on one mount point. The same
mount point name should be used on all cluster members.
root privilege is required to run mount.
Examples
The first example shows how to mount volume1-123 on the mount point /
acfsmounts/acfs1. The second example shows how to mount all the registered
Oracle ACFS file systems. The dummy names (none) have been entered as
placeholders for the device and directory as these arguments are required, but not
used, when the all option is specified.
Example 16-11 Using the mount command
# /usr/sbin/mount -v acfs /dev/asm/volume1-123 /acfsmounts/acfs1
umount/umountall
Purpose
Dismounts an Oracle ACFS file system on the AIX operating system.
Option Description
mount_point Specifies the directory where the file system is mounted. Valid
only with umount.
-F acfs Specifies the type of file system on AIX. acfs designates the
Oracle ACFS type. Valid only with umountall.
umount and umountall detach an Oracle ACFS from the file system hierarchy on the
current node. If a file system is busy, umount and umountall fail.
root privileges are required to run the umount and umountall commands.
Examples
The following examples show how to dismount an Oracle ACFS file system. The first
example specifies the mount point of the file system to dismount. The second example
specifies the volume device associated with the file system to dismount. The third
example dismounts all Oracle ACFS file systems.
Example 16-12 Using the umount command
# /usr/sbin/umount /dev/asm/volume1-123
# /usr/sbin/umount /acfsmounts/acfs1
# /usr/sbin/umountall -F acfs
NOT_SUPPORTED
Command Description
acfschkdskNOT_SUPPORTED Checks and repairs an Oracle ACFS file system on Windows.
acfsutil detachNOT_SUPPORTED Prepares the Oracle ACFS driver for module unload on Windows.
NOT_SUPPORTED
Command Description
advmutil dismountNOT_SUPPORTED Dismounts Oracle ADVM volume devices for file systems that are not
Oracle ACFS on Windows.
advmutil listNOT_SUPPORTED Lists Oracle ADVM volume devices for file systems that are not Oracle
ACFS on Windows.
advmutil mountNOT_SUPPORTED Mounts Oracle ADVM volume devices for file systems that are not
Oracle ACFS on Windows.
acfschkdsk
Purpose
Checks and repairs an Oracle ACFS file system.
Table 16-18 (page 16-45) contains the options available with the acfschkdsk
command.
Option Description
/a Specifies to automatically repair the file system.
acfschkdsk checks and repairs an existing Oracle ACFS. This command can only be
run on a file system that has been dismounted clusterwide.
The Oracle ACFS driver must be loaded for acfschkdsk to work. If the driver is not
loaded, the administrator is prompted to ensure this is intentional. For information
about loading drivers, see "Oracle ACFS Drivers Resource Management
(page 18-4)".
The Oracle ACFS driver normally ensures that acfschkdsk is the only user of the file
system clusterwide. In extreme cases it may be necessary to fix a file system without
loading the driver if the file system automount causes the system to fail. The
verifications that are normally done by the driver for exclusive access are bypassed in
this case.
By default acfschkdsk only checks for and only reports errors. The /a flag must be
specified to instruct acfschkdsk to repair errors in the file system. Do not interrupt
acfschkdsk during the repair operation.
In a few cases, acfschkdsk prompts for questions before proceeding to check a file
system. For example, if acfschkdsk detects that another acfschkdsk is in progress
on the file system, or if acfschkdsk detects that the Oracle ACFS driver is not
loaded, or if the file system does not appear to be Oracle ACFS. In checking mode,
acfschkdsk also prompts if there are transaction logs that have not been processed
completely due to an incomplete shutdown. To run in a non-interactive mode, include
either the /y or /n options to answer yes or no to any questions.
acfschkdsk creates working files before it checks a file system. These working files
are created in the temp directory if space is available. If insufficient space is available,
acfschkdsk attempts to write in the current working directory. The files
acfschkdsk creates are roughly the size of the file system being checked divided by
32K. At most three files are allocated. These files are deleted when acfschkdsk has
finished.
In the event that acfschkdsk finds a file or directory in the file system for which it
cannot determine its name or intended location (possibly due to a corruption in its
parent directory), it places this object in the \lost+found directory when
acfschkdsk is run in fix mode. For security reasons, only the Windows
Administrator can read files in \lost+found. If the administrator can later
determine the original name and location of the file based on its contents, the file can
be moved or copied into its intended location.
The file names in the \lost+found directory are in the following formats:
parent.id.file.id.time-in-sec-since-1970
parent.id.dir.id.time-in-sec-since-1970
The id fields are the internal Oracle ACFS numeric identifiers for each file and
directory in the file system.
You can use acfsutil info id id mount_point to attempt to determine the
directory associated with parent.id. This directory is assumed to be where the
deleted object originated. For information about acfsutil info, see "acfsutil info file
(page 16-120)".
If the parent directory is not known, the parent id field is set to UNKNOWN.
Note:
Examples
The following example shows how to check an Oracle ACFS file system on Windows.
Example 16-13 Using the acfschkdsk command
C:\> acfschkdsk asm-volume1-311
acfsdismount
Purpose
Dismounts an Oracle ACFS file system and removes its mount point (name space
attachment).
Table 16-19 (page 16-47) contains the options available with the acfsdismount
command.
Option Description
/v Specifies verbose mode. The progress is displayed as the
operation occurs.
/all Specifies to dismount all Oracle ACFS file systems on this node.
mount_point Specifies the full path of the mount point including the drive
letter.
acfsdismount removes the mount point (name space attachment) for the specified
file system on the current node and dismounts the file system if it is mounted. When
the file system is in the dismounted state, the data is preserved on the device and the
file system can be re-mounted with the acfsmountvol command.
acfsdismount can fail in some circumstances because there are open file references
from various programs, such as a virus scanner, Process Explorer, or Oracle Enterprise
Manager.
Windows Administrator privileges are required to use the acfsdismount command.
Examples
The following examples show how to dismount an Oracle ACFS file system. The first
example dismounts a file system using only the drive letter. The second example
dismounts a file system using the full path name. The third examples dismounts all
mounted file systems. All the examples enable the verbose mode.
Example 16-14 Using the acfsdismount command
C:\> acfsdismount /v O:
C:\oracle>acfsdismount /v /all
acfsdismount: valid path name: C:\oracle\acfsmounts\acfs1\
acfsdismount: opening handle to volume C:\oracle\acfsmounts\acfs1
acfsdismount: locking volume C:\oracle\acfsmounts\acfs1
acfsdismount: dismounting volume C:\oracle\acfsmounts\acfs1
acfsdismount: removing volume mount point on C:\oracle\acfsmounts\acfs1\
acfsdismount: closing handle to volume C:\oracle\acfsmounts\acfs1 and exiting cleanly
acfsformat
Purpose
Creates an Oracle ACFS file system.
Table 16-20 (page 16-48) contains the options available with the acfsformat
command.
Option Description
/v Specifies verbose mode. The progress is displayed as the
operation occurs.
/n name Specifies the name for the file system. This is also known as a
volume label. acfsutil info fs returns the name if one was
specified. This can also be displayed from the VOL_LABEL
column in the V$ASM_ACFSVOLUMES view.
/f Specifies the force option. This action creates the file system
even if there is an existing Oracle ACFS on the device, although
only if the file system is dismounted. This option overwrites
structures on the original file system. Use this option with
caution.
blocks Specifies the number of blocks that the file system should
consume on the named device. The quantity specified can be in
units of K (kilobytes), M (megabytes), G (gigabytes), or T
(terabytes). If a unit is not specified, the default is bytes. If this
option is not specified, the entire device is consumed.
acfsformat creates the on disk structure needed for Oracle ACFS to be mounted.
acfsformat performs a quick format on the target volume. After acfsformat runs
successfully, the USAGE column in the V$ASM_VOLUME view displays ACFS.
The minimum file system size is 200 MB.
The Oracle ACFS driver must be loaded for acfsformat to work.
Windows Administrator privileges are required to run this command.
Examples
This example shows how to create an Oracle ACFS file system. The verbose option is
specified in this example.
Example 16-15 Using the acfsformat command
C:\> acfsformat /v asm-volume1-311
acfsmountvol
Purpose
Mounts an Oracle ACFS file system.
Table 16-21 (page 16-49) contains the options available with the acfsmountvol
command.
Option Description
/v Specifies verbose mode. The progress is displayed as the
operation occurs.
dir Specifies the full directory of the mount point including the
drive letter.
volume_device Specifies an Oracle ADVM volume device file that has been
formatted by acfsformat.
acfsmountvol attaches an Oracle ACFS to the file system hierarchy at the specified
path name or drive letter. dir must be an empty directory. Oracle ACFS mount points
can be created on any empty directory and they can be hierarchical (nested).
After acfsmountvol runs successfully, the MOUNTPATH column in the V
$ASM_VOLUME view displays the full path or drive letter on which the file system is
now mounted. If no arguments are specified, the command lists all mounted Oracle
ACFS file systems on this node.
It is not always possible to return the cause of a mount failure to the acfsmountvol
command. When this happens Oracle ACFS writes the cause of the failure to the
Windows system event logger.
An Oracle ACFS file system should only be mounted on one mount point. The same
mount point name should be used on all cluster members.
Windows Administrator privileges are required to mount an Oracle ACFS.
Examples
The first example shows how to mount asm-volume1-311 on the mount point
identified as the F: drive. The second example shows how to mount asm-
volume1-215 on the mount point specified by c:\oracle\acfsmounts\acfs1\.
The first two examples enable verbose mode. The third example lists all the mounted
file systems on the node.
Example 16-16 Using the acfsmountvol command
C:\> acfsmountvol /v F: asm-volume1-215
C:\oracle>acfsmountvol
asm-volume1-311
C:\oracle\acfsmounts\acfs1
acfsutil detach
Purpose
Prepares the Oracle ACFS driver for module unload.
acfsutil detach prepares Oracle ACFS for having its driver unloaded. Oracle
ACFS registers itself as a base file system upon driver load. In order for the Windows
service control manager to send a stop command to the driver, Oracle ACFS must
unregister itself as a base file system in addition to deleting any device objects
associated with the driver.
After acfsutil detach has completed successfully, and all volumes have been
dismounted, then the administrator can run the Windows service control manager's
stop command to the Oracle ACFS driver. If the acfsutil detach command is not
used, then the stop command does not call the Oracle ACFS driver unload routine.
This command can only be run by the Windows Administrator. It is called
automatically by the Oracle ACFS shutdown scripts.
Examples
The following examples show how to detach all Oracle ACFS file systems and unload
drivers on Windows. The first example dismounts all the Oracle ACFS file systems
volume devices. The second example detaches the volume devices.
Example 16-17 Using the acfsutil detach command
C:\> acfsdismount /all
advmutil dismount
Purpose
The advmutil dismount command dismounts Oracle ADVM volume devices for file
systems that are not Oracle ACFS.
Table 16-22 (page 16-50) contains the options available with the Windows advmutil
dismount command.
Option Description
drive_letter Specifies the drive letter to dismount.
Option Description
dir Specifies the directory of the mount point, including the drive
letter.
Note:
To successfully run this command, the local Oracle ASM instance must be running
and the disk groups required by this command must have been created and mounted
in the Oracle ASM instance and volumes enabled.
Examples
These examples show how to dismount a file system that is not Oracle ACFS.
1. The first example shows how to remove a drive letter for an Oracle ADVM
volume device which disallows access to the file system.
2. The second example shows how to remove a drive letter for an Oracle ADVM
volume device which disallows access to the file system and removes it from the
registry.
3. The third example shows how to remove a drive letter for all registered Oracle
ADVM volume devices which disallows access to all file systems.
4. The fourth example shows how to remove a drive letter for all registered Oracle
ADVM volume devices in a particular Oracle ASM disk group which disallows
access to all related file systems.
Example 16-18 Using the advmutil dismount command
C:\> advmutil dismount H:
advmutil list
Purpose
The advmutil list command lists the Oracle ADVM volume devices that were
registered with advmutil mount /register.
Table 16-23 (page 16-52) contains the options available with the Windows advmutil
list command.
Option Description
list /registry Lists the drive letter and corresponding Oracle ADVM volume
device name contained in the Windows registry.
To successfully run this command, the local Oracle ASM instance must be running
and the disk groups required by this command must have been created and mounted
in the Oracle ASM instance and volumes enabled.
For information about listing Oracle ADVM volume devices for Oracle ACFS, see
"acfsutil info file (page 16-120)".
Examples
The following example shows how to list all entries in the system registry.
Example 16-19 Using the advmutil list command
C:\> advmutil list /registry
advmutil mount
Purpose
The advmutil mount command mounts Oracle ADVM volume devices for file
systems that are not Oracle ACFS.
Table 16-24 (page 16-53) contains the options available with the Windows advmutil
mount command.
Option Description
drive_letter Specifies the drive letter to mount.
dir Specifies the directory of the mount point, including the drive
letter.
Note:
To successfully run this command, the local Oracle ASM instance must be running
and the disk groups required by this command must have been created and mounted
in the Oracle ASM instance and volumes enabled.
For information about registering Oracle ADVM volume devices for Oracle ACFS, see
"acfsutil registry (page 16-129)".
Examples
These examples show how to mount a file system that is not Oracle ACFS.
1. The first example shows how to create a drive letter for an Oracle ADVM volume
device for use as a non-Oracle ACFS access which you could then use to format
the volume for use with NTFS.
2. The second example shows how to create a drive letter for an Oracle ADVM
volume device for use as a non-Oracle ACFS access which you could then use to
format the volume for use with NTFS and save it in the Windows system registry.
3. The third example shows how to create a drive letter for all Oracle ADVM volume
devices which were saved in the system registry which also allows a file system to
be accessible.
Example 16-20 Using the advmutil mount command
C:\> advmutil mount H: asm-volume1-123
Command Description
acfsutil tag info (page 16-54) Displays the tags for directories or files in Oracle ACFS file systems.
acfsutil tag set (page 16-55) Adds a tag to directories or files in an Oracle ACFS file system.
acfsutil tag unset (page 16-57) Removes a tag or all tag names from directories or files in an Oracle
ACFS file system.
Purpose
Displays the tag names for tagged directories or file names in Oracle ACFS file
systems.
Option Description
-t tagname Specifies the tag name string to display. Enclose the string in
quotes if the string contains a space.
The acfsutil tag info command can recursively apply the operation to all child
files and subdirectories if the -r option is included with specified directory path
names.
If no path names are specified, the acfsutil tag info command searches all Oracle
ACFS mount points for tagged files.
Only the paths of tagged files in an Oracle ACFS file system are displayed. If the -t
tagname option is included, only paths of files with a tag name exactly matching the
specified tagname are displayed. If the -c option is included, then tagname can be a
case-insensitive substring of a tag name for a successful match. For example, the
acfsutil tag info -c -t AG command would display path names of files with tag
names such as tag1, ag, or AG.
Any user may use this command to display tag info on a directory that the user has
read access privileges.
Running acfsutil tag info on a file or directory that is protected by a security
realm fails. If a user runs acfsutil tag info with the -r option on a directory
protected by a security realm and the user does not have browse permissions on the
directory, then no output is displayed. To resolve this issue, the user must be added to
the security realm and granted READDIR permissions. For information about adding
objects to an Oracle ACFS security realm, refer to "acfsutil sec realm add
(page 16-88)".
Examples
The following example show the use of the acfsutil tag info command.
Example 16-21 Using the acfsutil tag info command
$ /sbin/acfsutil tag info -r /acfsmounts/acfs1/myrepfiles/
Purpose
Adds the given tag to the specified files or directories in an Oracle ACFS file system
Table 16-27 (page 16-56) contains the options available with the acfsutil tag set
command.
Option Description
tagname Specifies a tag name string. Enclose the string in quotes if the
string contains a space.
The tag string can be composed of ASCII characters that
include: a-b, A-Z, 0-9, the space character, the hyphen, and the
underscore. The maximum length of a tag name is 32
characters.
all is a reserved tag name and cannot be set on any file or
directory.
The command can recursively apply the operation to all child files and subdirectories
for the specified directory path names.
When adding a tag name to a file or directory, the existing tags on that file or directory
remain unchanged. New files that are created after a directory is assigned a tag
implicitly inherit tags from their parent directories. Existing files in the directory do
not inherit the new tag; these files must be explicitly assigned the tag. Renaming a file
or moving a file to a subdirectory within the same file system does not cause the file to
inherit tag names from the new parent directory. Moving a file between file systems
uses a copy operation and the newly created file does inherit the tag names of the
parent directory.
There is no fixed maximum number of tag names for an Oracle ACFS file system or for
each file and directory. However, the number of tag names is limited by the tag names
that fit in up to 64 KB of special metadata storage for each file and directory. This
metadata also contains information to manage the extended attributes. Longer tag
names reduce the total of tag names that can be set on a file or directory. For example,
if all tag names were 4 bytes long, then it is possible to hold approximately 1730 tag
names, assuming no other extended attribute information is present.
Any user who has the privilege to modify the target file or directory may run this
command.
If a user runs acfsutil tag set with the -r option on a directory protected by a
security realm and does not have browse permissions on the directory, then no tags
are applied. To resolve this issue, the user must be added to the security realm and
granted READDIR permissions. For information about adding objects to an Oracle
ACFS security realm, refer to "acfsutil sec realm add (page 16-88)".
Examples
The following example show the use of the acfsutil tag set command.
Example 16-22 Using the acfsutil tag set command
$ /sbin/acfsutil tag set repl_grp1 -r /acfsmounts/acfs1/myrepfiles/*.dat
Purpose
Removes the given tag name or all tag names from the specified file or directory.
Option Description
all Specifies to remove all tags in the path string.
tagname Specifies a tag name string. Enclose the string in quotes if the
string contains a space.
The command can recursively apply the operation to all child files and subdirectories
for the specified directory path names.
When removing a tag name from a file or directory, other existing tags on that file or
directory remain unchanged.
Any user who has privilege to modify the target file or directory may run this
command.
If a user runs acfsutil tag unset with the -r option on a directory protected by a
security realm and does not have browse permissions on the directory, then no tags
are removed. To resolve this issue, the user must be added to the security realm and
granted READDIR permissions. For information about adding objects to an Oracle
ACFS security realm, refer to "acfsutil sec realm add (page 16-88)".
Examples
The following example show the use of the acfsutil tag unset command.
Example 16-23 Using the acfsutil tag unset command
$ /sbin/acfsutil tag unset repl_grp1 -r
/acfsmounts/acfs1/myrepfiles/*.log
Command Description
acfsutil repl bg (page 16-58) Starts, stops, or displays information about the Oracle ACFS
replication background processes.
acfsutil repl compare (page 16-60) Verifies that files have been replicated on an Oracle ACFS file system.
acfsutil repl info (page 16-61) Displays information about replication processing on an Oracle ACFS
file system.
acfsutil repl init (page 16-63) Initiates replication on files in an Oracle ACFS file system.
acfsutil repl pause (page 16-65) Pauses replication on an Oracle ACFS file system.
acfsutil repl resume (page 16-66) Resumes replication on an Oracle ACFS file system.
acfsutil repl sync (page 16-67) Synchronizes primary and standby file systems.
acfsutil repl terminate (page 16-68) Stops all replication activity on the Oracle ACFS file system.
acfsutil repl trace (page 16-69) Specifies the trace level for replication information.
acfsutil repl update (page 16-69) Updates replication information while replication is running.
acfsutil repl bg
Purpose
Starts, stops, or displays information about the Oracle ACFS replication background
processes.
Option Description
start Starts the replication background processing.
Oracle ACFS replication uses background processes to transport file system changes,
to communicate between the sites hosting the primary and standby file systems, to
monitor the state of replication processing, and to apply file system changes to the
standby file system. These background processes must be running for replication to
function.
When replication is started with the acfsutil repl init command, these
background processes are started and are registered with Oracle Clusterware so that
they are automatically restarted after a restart or system failure. Usually it is not
necessary to run the acfsutil repl bg command because Oracle Clusterware
automatically starts and stops the background processes as file systems are mounted
and unmounted or node membership changes after replication is initialized. However,
replication cannot progress if one of the daemons is not running. In this case running
repl bg stop followed by repl bg start ensures that all the daemons are running.
acfsutil bg start ensures that all the necessary daemons for replication are
running. The daemons may run on different cluster nodes. acfsutil bg stop
ensures that no daemons for the file system are running on the local node and
relocates the daemons to another node if available.
You must have system administrator privileges to run the acfsutil repl bg start
or acfsutil repl bg stop commands.You must have system administrator or
Oracle ASM administrator privileges to run the acfsutil repl bg info command.
Examples
Example 16-24 (page 16-59) shows the use of the acfsutil repl bg command.
Example 16-24 Using the acfsutil repl bg command
$ /sbin/acfsutil repl bg start /acfsmounts/acfs1
Purpose
Verifies that files have been replicated on an Oracle ACFS file system.
Option Description
-a Compares all files and their extended attribute names.
-t { all | tagname, ... } Compares files with all or some tag names specified in the
acfsutil repl init operation. The all option specifies all
tag names supplied in the acfsutil repl init operation. A
comma-delimited list of tag names must only use tag names
specified during the acfsutil repl init operation.
The acfsutil repl compare command verifies all or part of the primary mount
point has been replicated to the standby mount point. The standby mount point must
be mounted locally for comparison. Best results are obtained when the primary file
system is changing as little as possible.
The -a option is typically used when no tag names were specified during the
acfsutil repl init operation. The -a option compares all files on the primary file
system against those on the standby file system. The -a option also tests for extra files
on the standby file system that do not exist on the primary.
The -t option is used when tags were specified during the acfsutil repl init
operation. The -t operation locates all file names on the primary file system with the
specified tag names and compares them to the corresponding files on the standby. The
-t option takes as arguments either all option or a comma-delimited list of tag
names. If the -t option is used with all, then all tag names supplied during the
acfsutil repl init operation are selected. Otherwise, any specified tag names
must exactly match a tag name supplied during the acfsutil repl init operation.
The -t option also tests for extra files on the standby file system that do not have an
associated tag name that was specified during the acfsutil repl init operation.
You can use the acfsutil repl info -c option to determine which tags were
specified during the acfsutil repl init operation.
Examples
Example 16-25 (page 16-61) shows the use of the acfsutil repl compare
command.
Example 16-25 Using the acfsutil repl compare command
$ /sbin/acfsutil repl compare /acfsmounts/acfs1 /nfs_mounted_standby
Purpose
Displays information about replication processing on an Oracle ACFS file system.
Option Description
-a Displays only apply records from the replication event log. An
apply record contains the date and time that the set of file
system changes were captured on the primary file system and
the date and time that they were applied on the standby file
system.
Table 16-32 (Cont.) Options for the acfsutil repl info command
Option Description
-n number{m|h|d|w|y} Specifies the interval to display information. number specifies
the number of minutes (m), hours (h), days (d), weeks (w), or
years (y). For example: -n 5d
The statistics are summarized in the units of time specified.
Examples
Example 16-26 (page 16-62) shows the use of the acfsutil repl info command.
Example 16-26 Using the acfsutil repl info command
$ /sbin/acfsutil repl info -c /acfsmounts/acfs1
Purpose
Initiates replication on all the files in an Oracle ACFS file system or only those files
with a specified list of tags.
Option Description
primary Specifies replication of the primary file system.
-s Specifies the connection string for the site hosting the standby
standby_connect_stri file system. The user in the connection string must have
ng SYSASM and SYSDBA privileges. Oracle wallets should be used
to manage security credentials.
-p Specifies the connection string for the site hosting the primary
primary_connect_stri file system. The user in the connection string must have
ng SYSASM and SYSDBA privileges. Oracle wallets should be used
to manage security credentials.
-c primary_service Specifies the service name for the primary file system. Required
if the primary file system is using a different service name than
the standby file system.
-c standby_service Specifies the service name for the standby file system. Required
if the standby file system is using a different service name than
the primary file system.
-d trace_level Specifies the trace level setting (0..6) for replication logs.
Table 16-33 (Cont.) Options for the acfsutil repl init command
Option Description
mount_point Specifies the directory where the file system is mounted. For
repl init primary, mount_point specifies the primary file
system. For repl init standby, mount_point specifies the
standby file system.
See Also:
Examples
Example 16-27 (page 16-65) shows the use of the acfsutil repl init command to
set up the primary and standby file systems. In these examples, the connect string
searches in the user's wallet for the user name and password associated with the alias
primary_repl_site or primary_repl_site.
Example 16-27 Using the acfsutil repl init command
$ /sbin/acfsutil repl init primary
-s /@standby_repl_site
-m /standby/repl_data -c primary_repl_service
/acfsmounts/repl_data
Purpose
Pauses replication on an Oracle ACFS file system.
Option Description
mount_point Specifies the directory where the file system is mounted.
The acfsutil repl pause command temporarily stops the replication process until
the acfsutil repl resume command is run. The command can be run at either the
site hosting the primary or a standby file system. acfsutil repl resume should be
run soon after acfsutil repl pause to resume replication.
You can use the acfsutil repl pause command to temporarily stop the
transportation of replication logs from the primary file system to the standby file
system, but logs continue to be generated on the primary file system. Logs are not
deleted until they are transported to the standby file system and applied to the
standby file system.
The acfsutil repl pause command can also be used to temporarily stop the
application of replication logs to a standby file system, but the command does not stop
the transportation of logs to the standby file system. Logs are not deleted from the
standby file system until they are applied to the file system.
When replication is paused on either the site hosting the primary or standby file
system, replication logs still accumulate on the standby and primary file system. These
logs can consume all available storage space in the file system so you must check
available storage on the sites hosting the file systems if you have paused replication.
Ensure that you run acfsutil repl resume before the accumulated replication logs
consume all available space in the file system.
You must have system administrator or Oracle ASM administrator privileges to run
this command.
Examples
Example 16-28 (page 16-66) shows the use of the acfsutil repl pause command.
Example 16-28 Using the acfsutil repl pause command
$ /sbin/acfsutil repl pause /acfsmounts/acfs1
Purpose
Resumes replication on an Oracle ACFS file system where replication has been
paused.
Option Description
mount_point Specifies the directory where the file system is mounted.
This command resumes the replication process after the acfsutil repl pause
command has been run. This command should be run soon after replication has been
paused with the acfsutil repl pause command.
You must have system administrator or Oracle ASM administrator privileges to run
this command.
Examples
Example 16-29 (page 16-67) shows the use of the acfsutil repl resume command.
Example 16-29 Using the acfsutil repl resume command
$ /sbin/acfsutil repl resume /acfsmounts/acfs1
Purpose
Synchronizes primary and standby file systems.
Option Description
apply Specifies that all changes be applied to the standby file system.
You can use the acfsutil repl sync command to synchronize the state of the
primary and standby file system. This command can only be run on the site hosting
the primary file system.
You should first quiesce your applications and run a sync(1) call so that the
synchronized state is known and meaningful to you. The acfsutil repl sync
command then causes all outstanding replication data to be shipped from the primary
to the standby file system.
The acfsutil repl sync command returns success when this transfer is complete
or, if the apply parameter is supplied, when all of these changes have been
successfully applied to the standby file system. At this point, unless an unmount of the
last node on the primary site cluster is about to occur, applications can be restarted.
You can use the acfsutil repl sync command before dismounting the file system
on the last node to ensure that all modifications have been sent to the standby file
system.
If acfsutil repl info -c reports the primary file system is in the Initializing
state, the acfsutil repl sync command does not guarantee that all files to be
replicated in the file system have been sent to the standby file system. Files that existed
in the file system before running the acfsutil repl init command are sent to the
standby file system in the background.
You must have system administrator or Oracle ASM administrator privileges to run
this command.
Examples
Example 16-30 (page 16-68) shows the use of the acfsutil repl sync command.
Example 16-30 Using the acfsutil repl sync command
$ /sbin/acfsutil repl sync /acfsmounts/acfs1
Purpose
Stops all replication activity on the Oracle ACFS file system at the site where it is run.
Option Description
primary Stops replication on the primary file system.
The acfsutil repl terminate command stops all replication processing. When
terminating replication, you should terminate replication for the primary file system
first, and then the standby file system. If you want to ensure all changes are sent to the
standby file system before terminating the primary site, ensure that all applications are
quiesced and run the acfsutil repl sync command. The terminate command must
be run on both sites if both sites hosting the file systems are available.
After acfsutil repl terminate standby has been run, you can use the standby
file system in read-write mode. After acfsutil repl terminate has been run on
either the primary file system or standby file system, you must start replication from
the beginning with the acfsutil repl init command.
The repl terminate standby command waits until replication data at the standby
file system has been applied. If you want to terminate replication immediately without
applying all the replication data, use the immediate option. However, this option can
leave some files at the standby file system in an indeterminate state.
To momentarily stop Oracle ACFS replication, you can use the acfsutil repl
pause command, followed soon after by the acfsutil repl resume command.
You must have system administrator privileges to run this command.
Examples
Example 16-31 (page 16-69) shows the use of the acfsutil repl terminate
command.
Example 16-31 Using the acfsutil repl terminate command
$ /sbin/acfsutil repl terminate /acfsmounts/acfs1
Purpose
Sets the replication trace level for gathering trace information on an Oracle ACFS file
system.
Option Description
level Specifies the trace level setting (0..6). The default level is 2.
Increasing the trace level can have a performance impact and should be done at the
recommendation of Oracle support services.
Trace files for Oracle ACFS replication are stored in the following locations:
GRID_HOME/log/hostname/acfsrepl*
GRID_HOME/log/hostname/client/acfsutil.log
You must have system administrator or Oracle ASM administrator privileges to run
this command.
Examples
Example 16-32 (page 16-69) shows the use of the acfsutil repl trace command.
Example 16-32 Using the acfsutil repl trace command
$ /sbin/acfsutil repl trace 5 /acfsmounts/acfs1
Purpose
Updates replication information while replication is running on an Oracle ACFS file
system.
Option Description
-p Specifies the connection string for the primary file system. The
primary_connect_stri user in the connection string must have SYSASM and SYSDBA
ng privileges.
-s Specifies the connection string for the standby file system. The
standby_connect_stri user in the connection string must have SYSASM and SYSDBA
ng privileges.
Examples
Example 16-33 (page 16-70) shows the use of the acfsutil repl update command.
Example 16-33 Using the acfsutil repl update command
$ /sbin/acfsutil repl update -s [email protected] /acfsmounts/acfs1
You can run acfsutil help on all platforms to display help text. You can run
acfsutil version on all platforms to display the Oracle ACFS version.
When the options are entered with commands on a Windows platform, use / instead
of - with the option. For example, you can display help for acfsutil on a Linux
platform with acfsutil -h. On a Windows platform, use acfsutil /h.
A mount point on a Windows operating system can be a drive letter or a directory
including the drive letter. When using a drive letter in a command, include the
backslash (\) with the drive letter, such as in M:\, to avoid the possibility of triggering
a Windows path substitution to the last accessed path on the specified drive.
Command Description
acfsutil audit archive (page 16-71) Forces an archival of the audit trail.
acfsutil audit disable (page 16-72) Disables auditing for Oracle ACFS encryption or security.
acfsutil audit enable (page 16-72) Enables auditing for Oracle ACFS encryption or security.
acfsutil audit init (page 16-74) Initializes auditing on an Oracle ACFS environment.
acfsutil audit purge (page 16-75) Purges the audit trail for a specified file system.
acfsutil audit read (page 16-75) Marks the audit trail to indicate that the audit trail has been read.
Purpose
Forces an archival of the audit trail for the current host on the specified Oracle ACFS
file system.
Option Description
-m mount_point Specifies the directory where the file system is mounted.
You can use the acfsutil audit archive command to safely back up or remove
audit data without the possibility of losing intermediate audit messages.
Only an audit manager can run this command.
Examples
The following example shows the use of the acfsutil audit archive command.
Example 16-34 Using the acfsutil audit archive command
$ /sbin/acfsutil audit archive -m /acfsmounts/acfs1
Purpose
Disables auditing for either Oracle ACFS encryption or security on a specified file
system.
Option Description
-m mount_point Specifies the directory where the file system is mounted.
Examples
The following example shows the use of the acfsutil audit disable command.
Example 16-35 Using the acfsutil audit disable command
$ /sbin/acfsutil audit disable -m /acfsmounts/acfs1 -s encr
Purpose
Enables auditing for either Oracle ACFS encryption or security on a specified file
system.
Option Description
-m mount_point Specifies the directory where the file system is mounted.
Examples
The following example shows the use of the acfsutil audit enable command.
Example 16-36 Using the acfsutil audit enable command
$ /sbin/acfsutil audit enable -m /acfsmounts/acfs1 -s encr
Purpose
Displays auditing information.
Option Description
-m mount_point Optionally specifies the directory where the file system is
mounted.
Examples
The following example shows the use of the acfsutil audit info command.
Example 16-37 Using the acfsutil audit info command
$ /sbin/acfsutil audit info -m /acfsmounts/acfs1
Purpose
Initializes Oracle ACFS auditing.
Option Description
-M Specifies the operating system (OS) group which assigns users
audit_manager_group to the Oracle ACFS audit manager role. To achieve separation
of duties, you should create a new group specifically for this
purpose and this group should be different from the system
administrator group, Oracle ACFS security administrator OS
group, and the Oracle ACFS audit auditor OS group
-A auditor_group Specifies the operating system (OS) group which assigns users
to the Oracle ACFS audit auditor role. To achieve separation of
duties, you should create a new group specifically for this
purpose and this group should be different from the system
administrator group, Oracle ACFS security administrator OS
group, and the Oracle ACFS audit manager OS group.
The acfsutil audit init command must be run by the system administrator
before enabling auditing for any of the audit sources on a file system. The command
sets up the required roles for auditing and must be run before any type of auditing can
be enabled on a file system. After running the command, auditing is enabled by
default for all features which use auditing.
Because you cannot choose a different OS group for either the Oracle ACFS audit
manager or auditor after initialization, you should create new OS groups for these
specific purposes before initializing Oracle ACFS auditing.
Only a system administrator can run this command.
Examples
The following example shows the use of the acfsutil audit init command.
Example 16-38 Using the acfsutil audit init command
# /sbin/acfsutil audit init -M myaudit_mgr_grp -A myauditor_grp
Purpose
Purges the audit trail for a specified file system.
Option Description
-m mount_point Specifies the directory where the file system is mounted.
-f Forces the removal of the audit trail even if the audit auditor
has not marked the file as read using the acfsutil audit
read command.
Examples
The following example shows the use of the acfsutil audit purge command.
Example 16-39 Using the acfsutil audit purge command
$ /sbin/acfsutil audit purge -m /acfsmounts/acfs1 -f
Purpose
Marks the audit trail to indicates to the audit manager that the log archive file for the
current node has been reviewed, backed up as necessary, and is safe to purge.
Option Description
-m mount_point Specifies the directory where the file system is mounted.
Examples
The following example shows the use of the acfsutil audit read command.
Example 16-40 Using the acfsutil audit read command
$ /sbin/acfsutil audit read -m /acfsmounts/acfs1
Command Description
acfsutil sec admin add (page 16-77) Adds a security administrator.
acfsutil sec info (page 16-82) Displays Oracle ACFS file system security information.
acfsutil sec info file (page 16-83) Lists the security realms that a specified file or directory belongs to.
acfsutil sec init (page 16-83) Initializes Oracle ACFS file system security.
acfsutil sec load (page 16-85) Loads Oracle ACFS file system security metadata.
acfsutil sec prepare (page 16-86) Prepares an Oracle ACFS file system for security.
acfsutil sec realm add (page 16-88) Adds objects to an Oracle ACFS file system security realm.
acfsutil sec realm audit disable Disables auditing of command rules for files in an Oracle ACFS
(page 16-92) security realm.
Command Description
acfsutil sec realm audit enable Enables auditing of command rules for files in an Oracle ACFS
(page 16-93) security realm.
acfsutil sec realm audit info Displays the realm auditing information for a specified Oracle ACFS
(page 16-95) security realm.
acfsutil sec realm clone (page 16-95) Clones an Oracle ACFS file system security realm.
acfsutil sec realm create (page 16-97) Creates an Oracle ACFS file system security realm.
acfsutil sec realm delete (page 16-98) Removes objects from an Oracle ACFS file system security realm.
acfsutil sec realm destroy (page 16-99) Removes an Oracle ACFS file system security realm.
acfsutil sec rule clone (page 16-99) Clones an Oracle ACFS file system security rule.
acfsutil sec rule create (page 16-100) Creates an Oracle ACFS file system security rule.
acfsutil sec rule destroy (page 16-102) Removes an Oracle ACFS file system security rule.
acfsutil sec rule edit (page 16-102) Updates an Oracle ACFS file system security rule.
acfsutil sec ruleset clone (page 16-103) Clones an Oracle ACFS file system security rule set.
acfsutil sec ruleset create (page 16-104) Creates an Oracle ACFS file system security rule set.
acfsutil sec ruleset destroy (page 16-105) Removes an Oracle ACFS file system rule set.
acfsutil sec ruleset edit (page 16-106) Updates an Oracle ACFS file system rule set.
acfsutil sec save (page 16-106) Saves Oracle ACFS file system security metadata.
Purpose
Adds a new security administrator for an Oracle ACFS file system.
Table 16-49 Options for the acfsutil sec admin add command
Option Description
admin Specifies a security administrator user name. The user specified
must be an existing operating system user and a member of the
security group specified with the acfsutil sec init
command.
On Windows, a security administrator user name must be
specified with a fully qualified domain user name in the form of
domain_name\username.
Security administrators are common for all Oracle ACFS file systems in a cluster. A
temporary password must be provided for the new security administrator. The
password must conform to the format that is described in "acfsutil sec init
(page 16-83)".
The new security administrator can change the password with the acfsutil sec
admin password command. For information, refer to "acfsutil sec admin password
(page 16-78)".
Security administrators are allowed to browse all directories in an Oracle ACFS file
system whether they have the underlying operating system permissions and whether
any realm checks allow it. This exception enables a security administrator to check the
location of the files when securing them with Oracle ACFS security realms. However,
a security administrator cannot view the contents of individual files without the
appropriate operating system and security realm permissions.
Only an existing security administrator can run this command.
Examples
The following example shows the use of the acfsutil sec admin add command.
Example 16-41 Using the acfsutil sec admin add command
$ /sbin/acfsutil sec admin add sec_admin_three
Purpose
Changes the password of a security administrator for an Oracle ACFS file system.
Examples
The following example shows the use of the acfsutil sec admin password
command.
Example 16-42 Using the acfsutil sec admin password command
$ /sbin/acfsutil sec admin password
ACFS Security administrator password:
New password:
Re-enter new password:
Purpose
Removes a security administrator from an Oracle ACFS file system.
Table 16-50 Options for the acfsutil sec admin remove command
Option Description
admin Specifies an existing security administrator user name.
On Windows, the security administrator user name must be
specified with a fully qualified user name in the form of
domain_name\username.
Examples
The following example shows the use of the acfsutil sec admin remove
command.
Example 16-43 Using the acfsutil sec admin remove command
$ /sbin/acfsutil sec admin remove sec_admin_three
Purpose
Runs a specified batch file.
Option Description
batch_file Specifies an existing batch file name. The batch file contains a
list of acfsutil sec commands.
The batch file can only contain security realm management commands. Interactive
commands are not recommended. The acfsutil sec admin add, acfsutil sec
admin password, and acfsutil sec init commands are not supported in the
batch file. Also, other acfsutil commands, such as acfsutil encr commands, are
not allowed in the batch file. If a command in the batch file fails, subsequent
commands in the batch file are not run.
The following are examples of commands that can be in a batch file:
acfsutil sec realm create my_realm1 -m /mnt1 -e off
acfsutil sec realm create my_realm2 -m /mnt2 -e off
Only a security administrator can run this command. When the command is run, the
administrator is prompted once for a password.
Examples
The following example shows the use of the acfsutil sec batch command.
Example 16-44 Using the acfsutil sec batch command
$ /sbin/acfsutil sec batch my_batch_file
Purpose
Disables Oracle ACFS security on a mount point or a realm in a mount point.
Option Description
-m mount_point Specifies the directory where the file system is mounted.
realm Specifies the name of the security realm in the Oracle ACFS file
system.
Examples
The following example shows the use of the acfsutil sec disable command.
Example 16-45 Using the acfsutil sec disable command
$ /sbin/acfsutil sec disable -m /acfsmounts/acfs1 my_realm
Purpose
Enables Oracle ACFS security on a mount point or a realm in a mount point.
Option Description
-m mount_point Specifies the directory where the file system is mounted.
enforce realm authorization. You should run this command before enabling any
individual security realm.
The acfsutil sec enable -m mount_point realm command enables security for
the realm specified in the command. The realm enforces authorization if security has
been enabled on the file system.
Only a security administrator can run this command.
Examples
These example shows the use of the acfsutil sec enable command.
Example 16-46 Using the acfsutil sec enable command
$ /sbin/acfsutil sec enable -m /acfsmounts/acfs1
Purpose
Displays information about Oracle ACFS security.
Option Description
-m mount_point Specifies the directory where the file system is mounted.
-l rule Displays information about the specified rule. If the rule name
is omitted, a list of all rules is displayed.
-s ruleset Displays information about the specified rule set. If the rule set
name is omitted, a list of all rule sets is displayed.
-S snap_name Displays information about the realms, rules, and rule sets in
the specified snapshot.
The acfsutil sec info command retrieves information about the list of realms,
rules, and rule sets on the specified mount point. By specifying a particular realm,
rule, or ruleset, you can retrieve information specific about the specified realm, rule, or
ruleset. You can also display information about a specified snapshot.
If the -m option is specified without any other options, then the security enabled status
and prepared status are displayed for the specified mount point.
To access files in the system security realms, the user should be assigned as a security
administrator with the acfsutil sec admin add command. Only a security
administrator can run this command.
Examples
The following example shows the use of the acfsutil sec info command.
Example 16-47 Using the acfsutil sec info command
$ /sbin/acfsutil sec info -m /acfsmounts/acfs1 -n my_realm
Purpose
Lists the names of the Oracle ACFS security realms that the specified file or directory
belongs to.
Table 16-55 Options for the acfsutil sec info file command
Option Description
-m mount_point Specifies the directory where the file system is mounted.
path Specifies the path of the file or directory in the file system.
Examples
The following example shows the use of the acfsutil sec info file command.
Example 16-48 Using the acfsutil sec info file command
$ /sbin/acfsutil sec info file -m /acfsmounts/acfs1
/acfsmounts/acfs1/myfiles
Purpose
Initializes Oracle ACFS security.
Option Description
-u admin Specifies the first security administrator user name. The user
specified must be an existing operating system (OS) user and a
member of the operating system group specified by the -g
option.
On Windows, the security administrator user name must be
specified with a fully qualified user name in the form of
domain_name\username.
-g admin_sec_group Specifies the name of the security group for the administrator.
The group specified must be an existing operating system (OS)
group.
On Windows, the group name must be specified with a fully
qualified domain group name in the form of domain_name
\groupname. If the domain_name\groupname contains a
space, then enclose the string in quotes (" ").
The acfsutil sec init command creates the storage necessary for security
credentials and identifies an operating system user as the first security administrator.
The command also identifies the operating system group that is the designated
security group. All users that are security administrators must be members of the
designated security group. Security administrators are common for all Oracle ACFS
file systems.
If you are setting up an OS user and OS group, refer to your operating system-specific
(OS) documentation for information.
The acfsutil sec init command is run once to set up Oracle ACFS security for
each cluster and can be run from any node in the cluster. Other security commands
can also be run from any node in a cluster.
Only the root user or Windows Administrator user can run this command. The
user specifies a password for the security administrator. The security administrator
password must conform to the following format:
Security administrators are allowed to browse all directories in an Oracle ACFS file
system whether they have the underlying operating system permissions and whether
any realm checks allow it. This exception enables a security administrator to check the
location of the files when securing them with Oracle ACFS security realms. However,
a security administrator cannot view the contents of individual files without the
appropriate operating system and security realm permissions.
Examples
The following example shows the use of the acfsutil sec init command.
Example 16-49 Using the acfsutil sec init command
$ /sbin/acfsutil sec init -u grid -g asmadmin
Purpose
Loads Oracle ACFS security metadata into a file system identified by a mount point.
Option Description
-m mount_point Specifies the directory where the file system is mounted.
The acfsutil sec load command loads the security metadata in a saved XML file
into the specified Oracle ACFS file system.
To run the acfsutil sec load command, the destination mount point must have a
file system that has been prepared for security and does not contain any user-created
security objects.
If the file system mounted on destination mount point contains security objects, then
you must run acfsutil sec prepare -u to remove all previously created security
objects on the file system. After successfully running acfsutil sec prepare -u,
you must run acfsutil sec prepare to prepare the file system for security. After
successfully running acfsutil sec prepare, you can run acfsutil sec load on
the file system. For information about preparing security on or removing security from
a file system, refer to "acfsutil sec prepare (page 16-86)".
The acfsutil sec load command does not load system security realms from the
backup file. System security realms are created with the acfsutil sec prepare
command; acfsutil sec load does not re-create these realms. For information
about the system-created security realms, refer to "acfsutil sec prepare (page 16-86)".
Only a security administrator can run this command.
Examples
The following example shows the use of the acfsutil sec load command.
Example 16-50 Using the acfsutil sec load command
$ /sbin/acfsutil sec load -m /acfsmounts/acfs1 -p my_metadata_file.xml
Purpose
Prepares an Oracle ACFS file system for security features.
Option Description
-m mount_point Specifies the directory where the file system is mounted.
The acfsutil sec prepare command must be run before any of the realm
management commands. This command prepares the specified Oracle ACFS file
system for security and by default turns security on for the file system.
When running acfsutil sec prepare -u, ensure that no other Oracle ACFS
security commands are run until acfsutil sec prepare has completed.
If auditing is initialized on a cluster, this command also enables an Oracle ACFS
security auditing source on the file system. The actions performed when enabling this
audit source are the same as those done when the acfsutil audit enable
command is run directly. For more information, refer to "acfsutil audit enable
(page 16-72)".
This command creates the /mount_point/.Security, /
mount_point/.Security/backup, and /mount_point/.Security/realm/
logs directories where mount_point is the option specified in the command line.
• SYSTEM_Logs
This is a system-created realm to protect the Oracle ACFS security log files in the
directory .Security/realm/logs/ directory.
• SYSTEM_Audit
This is a system-created realm to protect audit trail files. This realm is created if
auditing has been initialized. If auditing has not been initialized, it is created
when auditing is enabled for the security source through the acfsutil audit
enable command. This realm secures the audit trail file so that the audit
manager can read and write and the auditor can read the file, and no one else has
access. This realm also protects the audit trail file so the audit manager cannot
delete (without running the acfsutil audit purge command), truncate,
overwrite, or chmod the file.
• SYSTEM_SecurityMetadata
This is a system-created realm to protect the Oracle ACFS metadata XML file in
the directory .Security/backup/ directory.
• SYSTEM_Antivirus
This is a system-created realm that allows access for the antivirus software that is
running on an Oracle ACFS file system. For every realm protected file or
directory, the SYSTEM_Antivirus realm is evaluated when authorization checks
are performed to determine if the SYSTEM_Antivirus realm allows access to the
file or directory.
To allow the antivirus process to access realm-protected files or directories, you
must add the LocalSystem or SYSTEM group to the realm with the acfsutil
sec realm add command, as shown in Example 16-52 (page 16-91). If other
antivirus processes are running as Administrator, then the user
Administrator must be added to the SYSTEM_Antivirus realm to allow
access to realm protected files and directories.
If no Antivirus products have been installed, do not add any users or groups to
the SYSTEM_Antivirus realm. Because users or groups added to the
SYSTEM_Antivirus realm have READ and READDIR access, limit the users or
groups added to this realm. You can restrict the time window when the users or
groups of this realm can access the realm protected files or directories with time-
based rules. You can also have application-based rules if you can identify the
process name for the antivirus installation that scans the files.
The SYSTEM_Antivirus realm can only perform the following operations on a
file or directory: OPEN, READ, READDIR, and setting time attributes. To remove or
delete files or directories, you may need to disable security to clean up the
infected files.
This realm is set up only for Windows systems.
• SYSTEM_BackupOperators
This is a system-created realm that enables you to authorize users that can back
up realm-secured files and directories. You can add users, groups, rule sets, and
command rules to this realm to provide fine-grain authorization for backing up
realm-secured files and directories. A user must be added to this realm to back up
realm-secured files and directories.
Use caution when adding groups to this system realm. After you add a group to
this system realm, all the users of the added group are able to override the realm
protections to access files.
To access files in the system security realms, the user should be assigned as a security
administrator with the acfsutil sec admin add command.
You can add users, groups, rule sets, and command rules to system-created realms
with the acfsutil sec realm add command, the same as for user-created realms.
However, adding files and directories to system realms is not recommended. You can
use the acfsutil sec realm delete command to delete objects from the system-
created realms.
System-created security realms cannot be removed by a security administrator with
the acfsutil sec admin destroy command. These realms are only removed when
security is backed out of a file system when executing the acfsutil sec prepare
command with the -u option.
The acfsutil sec prepare –u command is not allowed if any snapshots exist in the
file system.
Only a security administrator can run the acfsutil sec prepare command.
Examples
The following example shows the use of the acfsutil sec prepare command.
Example 16-51 Using the acfsutil sec prepare command
$ /sbin/acfsutil sec prepare -m /acfsmounts/acfs1
Purpose
Adds objects to an Oracle ACFS security realm.
Table 16-59 Options for the acfsutil sec realm add command
Option Description
realm Specifies the realm name to add.
Table 16-59 (Cont.) Options for the acfsutil sec realm add command
Option Description
-G os_group Specifies the operating system groups to add.
-f [-r] path ... Adds files specified by path to the realm. -r specifies a
recursive operation. File paths must be separated by spaces and
must be placed at the end of the command.
If a specified file is not realm secured, the file is encrypted or
decrypted to match the encryption status for the realm.
The acfsutil sec realm add command adds objects to the specified realm. The
objects to be added include users, groups, command rules, rule sets, and files. If the
command encounters an error when adding an object, a message is displayed and the
command continues processing the remaining objects.
Multiple entries can be added in a comma-delimited list when adding users, operating
system groups, or command rules. Do not use spaces in the comma-delimited list. If
spaces are added, then enclose the list in quotes.
If the -e option is specified, then encryption must have been initialized for the cluster
and set on the file system. For more information, refer to "acfsutil encr init
(page 16-109)" and "acfsutil encr set (page 16-113)".
If the entire mount point, which includes the .Security directory, is added to the
realm then the security administrator operating system group should be added to the
realm to maintain security logging and backing up operations.
The supported command rules are listed in Table 16-60 (page 16-90). These command
rules restrict or protect against file system operations on realm-secured files and
directories.
Rule Description
ALL Protects against all file system operations on files and
directories.
EXTEND Restricts the extension operation of a file size. A file size may
still be modifiable with other operations. EXTEND does not
protect against a truncate followed by an append operation.
IMMUTABLE Denies any changes to the files and directories in the realm
except changes to extended attributes resulting from commands
such as acfsutil tag and acfsutil encr.
Includes the following protection for a file or directory:
APPENDFILE, CHGRP, CHMOD, CHOWN, DELETEFILE, EXTEND,
OVERWRITE, RENAME, RMDIR, TRUNCATE, and WRITE.
IMMUTABLE does not deny any changes to the atime attribute.
The atime attribute changes when a user accesses the file.
Can be set to archive the files and directories in a security
realm.
MMAPREAD Protects a file from being memory mapped for a read operation
using mmap() on Linux or using CreateFileMapping
followed by MapViewOfFile() on Windows.
Rule Description
OVERWRITE Prevents existing content in a file from being overwritten with a
write operation whose start and end offsets are within the
current file size.
If the operations on a file are truncate followed by append,
OVERWRITE does not protect the file. To provide additional
protection from both append and overwrite operations, use
the WRITE command rule.
READDIR Restricts for a directory listing, except for use by the security
administrator group.
READ Protects from reading the contents of a file. READ also protects
against read operations using mmap(2).
WRITE Protects a file against the write system call. WRITE also
protects against append and overwrite operations, plus
write operations using mmap(2).
A file may still be modifiable with other file operations. To
protect the file from other modifications, also use the
TRUNCATE and DELETEFILE command rules.
Examples
Example 16-52 (page 16-91) shows the use of the acfsutil sec realm add
command. The first acfsutil sec command adds a user group to a security realm.
The second and third commands add the LocalSystem or SYSTEM group to the
SYSTEM_Antivirus realm in a Windows environment.
Example 16-52 Using the acfsutil sec realm add command
$ /sbin/acfsutil sec realm add my_security_realm -m /acfsmounts/acfs1
-G my_os_group
Purpose
Disables auditing of a specific command rule or all command rules for files in an
Oracle ACFS security realm.
acfsutil sec realm audit disable -h displays help text and exits.
Table 16-61 (page 16-92) contains the options available with the acfsutil sec
realm audit disable command.
Table 16-61 Options for the acfsutil sec realm audit disable command
Option Description
realm Specifies the security realm name.
Multiple entries can be added in a comma-delimited list when listing command rules.
Do not use spaces in the comma-delimited list. If spaces are added, then enclose the
list in quotes.
Only a security administrator can run this command. This command is authenticated
using the Oracle ACFS security administrator password.
Examples
Example 16-53 (page 16-92) shows the use of the acfsutil sec realm audit
disable command. This command disables auditing on the OPEN (all violations) and
WRITE (all violations) command rules.
Example 16-53 Using the acfsutil sec realm audit disable command
$ /sbin/acfsutil sec realm audit disable mySecureRealm
–m /acfsmounts/acfs1 –l OPEN,WRITE –v
Purpose
Enables auditing of a specific command rule or all command rules for files in an
Oracle ACFS security realm.
acfsutil sec realm audit enable -h displays help text and exits.
Table 16-62 (page 16-93) contains the options available with the acfsutil sec
realm audit enable command.
Table 16-62 Options for the acfsutil sec realm audit enable command
Option Description
realm Specifies the security realm name.
If the acfsutil sec realm audit enable command is run multiple times, then the
earlier configuration is not negated and the new settings are also applied. An
exception to this behavior occurs when the command is run with the –v option and
the specified command rule has auditing set for realm violations. In this case, the
behavior is updated according to whether the –u flag was specified. For more
information, see Example 16-56 (page 16-94).
Multiple entries can be added in a comma-delimited list when listing command rules.
Do not use spaces in the comma-delimited list. If spaces are added, then enclose the
list in quotes.
If neither –a or –v are specified with the acfsutil sec realm audit enable
command, the default is –v. Both –a and –v can be specified.
Only a security administrator can run this command. This command is authenticated
using the Oracle ACFS security administrator password.
Examples
Example 16-54 (page 16-94) shows how to enable auditing of the Oracle ACFS backup
operators. Because these users are allowed access to files through the
SYSTEM_Backup realm and are granted special privileges that give them access to all
files on the file system, a security administrator may want to audit their actions. After
the command is executed, any time a member of the SYSTEM_Backup realm opens a
file an audit record is written to the Oracle ACFS Security audit trail on the file system.
Example 16-54 Auditing Oracle ACFS security backup operators
$ /sbin/acfsutil sec realm audit enable SYSTEM_Backup
–m /acfsmounts/acfs1 –l OPEN –a
Example 16-55 (page 16-94) shows how to use the –u option to audit realm violations
by users who are part of the realm. In this scenario sensitive human resources
information is stored in HumanResources security realm and the hr group is allowed
to access this information. However, a ruleset applied to the ALL command rule
prevents access to this data from 6 PM to 8 AM. With this command, the security
administrator could discover if any human resource employees are attempting to
access sensitive data outside of the allowed time period. After this command is
executed, only access violations by users who are members of the hr group are
audited.
Example 16-55 Auditing only security realm users
$ /sbin/acfsutil sec realm audit enable HumanResources
–m /acfsmounts/acfs1 –l ALL –v –u
Example 16-56 (page 16-94) shows multiple runs of the acfsutil sec realm audit
enable command. After run 1, the OPEN (all violations) and WRITE (all violations)
command rules are audited. After run 2, the OPEN (all violations), WRITE (all
violations), and DELETEFILE (authorizations) command rules are audited. After run
3, the OPEN (authorizations and realm user violations), WRITE (all violations),
DELETEFILE (authorizations), and TRUNCATE (authorizations and realm user
violations) command rules are audited. After run 4, all violations are audited on all
command rules. In addition, authorizations are audited for OPEN, DELETEFILE, and
TRUNCATE.
Example 16-56 Running acfsutil sec realm audit enable multiple times
$ echo run 1
$ /sbin/acfsutil sec realm audit enable mySecureRealm
–m /acfsmounts/acfs1 –l OPEN,WRITE –v
$ echo run 2
$ /sbin/acfsutil sec realm audit enable mySecureRealm
–m /acfsmounts/acfs1 –l DELETEFILE –a
$ echo run 3
$ /sbin/acfsutil sec realm audit enable mySecureRealm
-m /acfsmounts/acfs1 –l OPEN,TRUNCATE –a –v -u
$ echo run 4
$ /sbin/acfsutil sec realm audit enable mySecureRealm
–m /acfsmounts/acfs1 –v
Purpose
Displays the realm auditing information for a specified Oracle ACFS security realm.
acfsutil sec realm audit info -h displays help text and exits.
Table 16-62 (page 16-93) contains the options available with the acfsutil sec realm
audit info command.
Table 16-63 Options for the acfsutil sec realm audit info command
Option Description
-m mount_point Specifies the directory where the file system is mounted.
The acfsutil sec realm audit info command provides information about a
specified Oracle ACFS security realm.
Examples
Example 16-57 (page 16-95) shows an example of the acfsutil sec realm audit
info command.
Example 16-57 Running acfsutil sec realm audit info
$ /sbin/acfsutil sec realm audit info –m /acfsmounts/acfs1
-n mySecureRealm
Purpose
Clones an Oracle ACFS security realm.
Table 16-64 Options for the acfsutil sec realm clone command
Option Description
realm Specifies the realm name to be cloned.
-s src_mount_point Specifies the directory where the source file system is mounted.
-d Specifies the directory for the destination mount point for the
destination_mount_po new realm.
int
The acfsutil sec realm clone makes a copy of the specified realm in the
destination mount point. If the source and mount points are different and the new
realm name is not specified, then the realm is cloned using the existing realm name in
the Oracle ACFS file system specified by destination mount point. If the destination
mount point is not specified, then the cloned realm is located in the source mount
point and a new unique realm name must be specified.
If the -l option is specified and the destination mount point is different than the
source mount point, then the rules and rule sets must be cloned first.
If the -e option is specified and the destination mount point is different than the
source mount point, then encryption must be set on destination mount point. For more
information, refer to "acfsutil encr set (page 16-113)".
The -f option can only be used if the destination mount point is the same as the
source mount point.
Only a security administrator can run this command.
Examples
The following example shows the use of the acfsutil sec realm clone command.
Example 16-58 Using the acfsutil sec realm clone command
$ /sbin/acfsutil sec realm clone my_security_realm -s /acfsmounts/acfs1
my_new_security_realm -d /acfsmounts/acfs2 -G
Purpose
Creates an Oracle ACFS security realm.
Table 16-65 Options for the acfsutil sec realm create command
Option Description
realm Specifies the realm name.
-m mount_point Specifies the mount point for the file system. A mount point is
specified as a path on Linux platforms.
The acfsutil sec create realm creates a new realm in the specified Oracle ACFS
file system. The new realm name must be unique in the file system identified by the
mount point.
A maximum of 500 Oracle ACFS security realms can be created, including any default
system realms created by the acfsutil sec prepare command.
The realm is enabled by default unless the -o disable option is specified.
If the -e on option is specified, then encryption must have been initialized for the
cluster and set on the file system. For more information, refer to "acfsutil encr init
(page 16-109)" and "acfsutil encr set (page 16-113)".
If the -e off option is specified, you cannot specify the -a and -k options.
Only a security administrator can run this command.
Examples
The following example shows the use of the acfsutil sec realm create
command.
Purpose
Deletes objects from an Oracle ACFS security realm.
Table 16-66 Options for the acfsutil sec realm delete command
Option Description
realm Specifies the realm name.
-f [-r] path ... Deletes files specified by path from the realm. -r specifies a
recursive operation. File paths must be separated by spaces.
If this is the last realm securing the file, the file is encrypted or
decrypted to match the file system level encryption state.
The acfsutil sec realm delete command removes objects from the specified
realm. The objects to be deleted include users, groups, rule sets, and files. If the
command encounters an error when deleting an object, a message is displayed and the
command continues processing the remaining objects.
Multiple entries can be added in a comma-delimited list when adding users, operating
system groups, or command rules. Do not use spaces in the comma-delimited list. If
spaces are added, then enclose the list in quotes.
Examples
The following example shows the use of the acfsutil sec realm delete
command.
Example 16-60 Using the acfsutil sec realm delete command
$ /sbin/acfsutil sec realm delete my_security_realm -m /acfsmounts/acfs1
-f -r /acfsmounts/acfs1/myoldfiles/*.log
Purpose
Destroys an Oracle ACFS security realm.
Table 16-67 Options for the acfsutil sec realm destroy command
Option Description
realm Specifies the realm name.
The acfsutil sec destroy realm removes a security realm from the specified
Oracle ACFS file system. Destroying the realm does not destroy the objects in the
realm; this command simply removes the security associated with the realm from the
objects.
Only a security administrator can run this command.
Examples
The following example shows the use of the acfsutil sec realm destroy
command.
Example 16-61 Using the acfsutil sec realm destroy command
$ /sbin/acfsutil sec realm destroy my_security_realm -m /acfsmounts/acfs1
Purpose
Clones a security rule.
Table 16-68 Options for the acfsutil sec rule clone command
Option Description
rule Specifies the existing name of the rule. If the name contains a
space, enclose in quotes (" ").
-s src_mount_point Specifies the directory where the source file system is mounted.
-d mount_point Specifies the directory for the destination mount point of the
file system.
new_rule Specifies the new name of the rule. If the name contains a space,
enclose in quotes (" ").
If the source and mount points are different and the new rule name is not specified,
then the rule is cloned using the existing rule name in the Oracle ACFS file system
specified by destination mount point. If the destination mount point is not specified,
then the cloned rule is located in the source mount point and a new unique rule name
must be specified.
Only a security administrator can run this command.
Examples
The following example shows the use of the acfsutil sec rule clone command.
Example 16-62 Using the acfsutil sec rule clone command
$ /sbin/acfsutil sec rule clone my_security_rule -s /acfsmounts/acfs1
my_new_security_rule -d /acfsmounts/acfs2
Purpose
Creates a security rule.
Table 16-69 Options for the acfsutil sec rule create command
Option Description
rule Specifies the name of the rule. If the name contains a space,
enclose in quotes (" ").
-t rule_type Specifies a rule type and a rule value. The rule type can be
rule_value application, hostname, time, or username. The rule value
depends on the type of rule. The valid rule types and values are
described in this section.
The acfsutil sec rule create command creates a new rule in the Oracle ACFS
file system specified by the mount point. The new rule can be added to a rule set and
that rule set can be added to a security realm.
A maximum of 500 Oracle ACFS security rules can be created.
The rule types and associated rule values are:
• application
This rule type specifies the name of an application which is allowed or denied
access to the objects protected by a realm.
• hostname
This rule type specifies the name of a computer from which a user accesses the
objects protected by a realm. Access from a node can be allowed or denied using
this rule. The hostname should be one of the cluster node names and not any
other external nodes which could have mounted the Oracle ACFS file system as a
network File System (NFS) mount.
• time
This rule type specifies the time interval in the form start_time,end_time.
This time interval specifies access to a realm. Access can be allowed or denied to
objects protected by a realm only during certain times of the day by setting this
rule in a realm. The time is based on the local time of the host.
• username
This rule type specifies the name of a user to be added or deleted from a realm.
You can use this option to deny access for any user that belongs to a security
group that is part of a realm.
Only a security administrator can run this command.
Examples
The following example shows the use of the acfsutil sec rule create command.
Example 16-63 Using the acfsutil sec rule create command
$ /sbin/acfsutil sec rule create my_security_rule -m /acfsmounts/acfs1
-t username security_user_one -o ALLOW
Purpose
Removes a security rule.
Table 16-70 Options for the acfsutil sec rule destroy command
Option Description
rule Specifies the name of the rule. If the name contains a space,
enclose in quotes (" ").
The acfsutil sec rule destroy command removes a rule from the rule sets in the
Oracle ACFS file system specified by the mount point. A rule set is not destroyed if all
the rules are destroyed. The empty rule set must be explicitly destroyed.
Only a security administrator can run this command.
Examples
The following example shows the use of the acfsutil sec rule destroy
command.
Example 16-64 Using the acfsutil sec rule destroy command
$ /sbin/acfsutil sec rule destroy my_security_rule -m /acfsmounts/acfs1
Purpose
Updates a security rule.
Table 16-71 Options for the acfsutil sec rule edit command
Option Description
rule Specifies the name of the rule. If the name contains a space,
enclose in quotes (" ").
-t rule_type Specifies a rule type and a rule value. The rule type can be
rule_value application, hostname, time, or username. Rule value
depends on the type of rule. For information on the rule type
and rule value, refer to "acfsutil sec rule create (page 16-100)".
The acfsutil sec rule edit updates a rule. The value that is associated with a rule
can be updated, but not the rule type.
Only a security administrator can run this command.
Examples
The following example shows the use of the acfsutil sec rule edit command to
update my_security_rule. The existing rule is of type username and that value
cannot be changed.
Example 16-65 Using the acfsutil sec rule edit command
$ /sbin/acfsutil sec rule edit my_security_rule -m /acfsmounts/acfs1
-t username security_user_three -o ALLOW
Purpose
Clones a security rule set.
Table 16-72 Options for the acfsutil sec ruleset clone command
Option Description
rule_set Specifies the existing name of the rule set. If the name contains
a space, enclose in quotes (" ").
-s mount_point Specifies the directory where the source file system is mounted.
Table 16-72 (Cont.) Options for the acfsutil sec ruleset clone command
Option Description
-d mount_point Specifies the directory for the destination mount point of the
file system.
new_rule_set Specifies the new name of the rule set. If the name contains a
space, enclose in quotes (" ").
If the source mount point is different from destination mount point, the rules in the
rule set must be cloned first.
If the source and mount points are different and the new rule set name is not specified,
then the rule set is cloned using the existing rule set name in the Oracle ACFS file
system specified by destination mount point. If the destination mount point is not
specified, then the cloned rule set is located in the source mount point and a new
unique rule set name must be specified.
Only a security administrator can run this command.
Examples
The following example shows the use of the acfsutil sec ruleset clone
command.
Example 16-66 Using the acfsutil sec ruleset clone command
$ /sbin/acfsutil sec ruleset clone
my_security_ruleset -s /acfsmounts/acfs1
my_new_security_ruleset -d /acfsmounts/acfs2
Purpose
Creates a security rule set.
Table 16-73 Options for the acfsutil sec ruleset create command
Option Description
rule_set Specifies the name of the rule set. If the name contains a space,
enclose in quotes (" ").
Table 16-73 (Cont.) Options for the acfsutil sec ruleset create command
Option Description
-o option Specifies options preceded by -o. The option specified can be
ALL_TRUE or ANY_TRUE. The default value is ALL_TRUE.
The acfsutil sec ruleset create command creates a new rule set in the
specified mount point.
A maximum of 500 Oracle ACFS security rule sets can be created.
Only a security administrator can run this command.
Examples
The following example shows the use of the acfsutil sec ruleset create
command.
Example 16-67 Using the acfsutil sec ruleset create command
$ /sbin/acfsutil sec ruleset create
my_security_ruleset -m /acfsmounts/acfs1 -o ANY_TRUE
Purpose
Removes a security rule set.
Table 16-74 Options for the acfsutil sec ruleset destroy command
Option Description
rule_set Specifies the name of the rule set. If the name contains a space,
enclose in quotes (" ").
The acfsutil sec ruleset destroy command removes a rule set from the Oracle
ACFS file system specified by the mount point. Only a security administrator can run
this command.
Examples
The following example shows the use of the acfsutil sec ruleset destroy
command.
Purpose
Updates a security rule set.
Table 16-75 Options for the acfsutil sec ruleset edit command
Option Description
rule_set Specifies the name of the rule set. If the name contains a space,
enclose in quotes (" ").
The acfsutil sec ruleset edit command updates a rule set in the Oracle ACFS
file system specified by the mount point.
Only a security administrator can run this command.
Examples
The following example shows the use of the acfsutil sec ruleset edit
command.
Example 16-69 Using the acfsutil sec ruleset edit command
$ /sbin/acfsutil sec ruleset edit
my_security_ruleset -m /acfsmounts/acfs1
-a my_new_rule -o ANY_TRUE
Purpose
Saves Oracle ACFS file system security metadata.
Option Description
-m mount_point Specifies the directory where the file system is mounted.
-p file Specifies a file name to store the security metadata. The file is
saved in the /mount_point/.Security/backup/ directory.
The acfsutil sec save command saves the security metadata for an Oracle ACFS
file system to an XML file. By default, the file is saved in the /
mount_point/.Security/backup directory.
This file can be backed up as a regular file by a backup application. System realms
protect this file and allow only members of these realms to access this file and prevent
all other users including the root user and system administrator from access. For
information about the system-created security realms, refer to "acfsutil sec prepare
(page 16-86)".
Only a security administrator can run this command.
Examples
The following example shows the use of the acfsutil sec save command.
Example 16-70 Using the acfsutil sec save command
$ /sbin/acfsutil sec save -m /acfsmounts/acfs1 -p my_metadata_file.xml
Command Description
acfsutil encr info (page 16-108) Displays encryption-related information about Oracle ACFS file
systems.
acfsutil encr init (page 16-109) Creates storage for encryption keys.
acfsutil encr off (page 16-110) Disables encryption for an Oracle ACFS file system.
acfsutil encr rekey (page 16-112) Generates a new key and re-encrypts an Oracle ACFS file system.
acfsutil encr set (page 16-113) Sets or changes encryption parameters for an Oracle ACFS file system.
Purpose
Displays encryption-related information about Oracle ACFS file systems, directories,
or files.
Option Description
-m mount_point Specifies the directory where the file system is mounted.
If -m is specified without a path, the encryption status, algorithm, and key length are
displayed for the file system level.
If -r is specified with a path, the encryption status, algorithm, and key length are
displayed for all objects under the directory specified by path.
The acfsutil encr info command displays encryption status and parameters for
files in a snapshot if the files are specified with the path option.
This command fails when it is run on realm-secured objects.
Any user can run this command to display encryption information about a file system,
directory, or file.
If the acfsutil encr info command is run as a system administrator, then the
output displays the types of keystore used. The types are single-sign-on wallet in the
OCR (SSO), password-protected wallet in the OCR (PKS), and Oracle Key Vault as the
key store (OKV).
Examples
The following are examples of the use of acfsutil encr info.
Example 16-71 Using the acfsutil encr info command
# /sbin/acfsutil encr info -m /acfsmounts/acfs1
Purpose
Creates storage for encryption keys.
Option Description
-p Creates PKCS (password-protected) storage for keys.
The acfsutil encr init command must be run before any other encryption
acfsutil commands can be run. This command must be run once for each cluster on
which Oracle ACFS encryption is run.
If you plan to use Oracle Key Vault as the key store, then you still must run acfsutil
encr init first.
See Also:
Oracle Key Vault Administrator's Guide for information about Oracle Key Vault
If the -p option is specified, you must provide a password when prompted. The
password must conform to the format that is described in "acfsutil sec init
(page 16-83)".
If the -p option is not specified, a single sign-on (SSO) wallet is created.
Only a user with root or system administrator privileges can run this command.
Examples
The following is an example of the use of acfsutil encr init.
Example 16-72 Using the acfsutil encr init command
# /sbin/acfsutil encr init
Purpose
Disables encryption for an Oracle ACFS file system, directories, or individual files.
Option Description
-m mount_point Specifies the directory where the file system is mounted.
Examples
The following are examples of the use of acfsutil encr off.
acfsutil encr on
Purpose
Encrypts an Oracle ACFS file system, directories, or individual files.
Option Description
-m mount_point Specifies the directory where the file system is mounted.
Only a user with root or system administrator privileges can run this command to
enable encryption on a file system. The file owner can also run this command to enable
encryption on a directory or file.
Examples
The following are examples of the use of acfsutil encr on.
Example 16-74 Using the acfsutil encr on command
# /sbin/acfsutil encr on -m /acfsmounts/acfs1
Purpose
Generates a new key and re-encrypts volume or file.
Option Description
-m mount_point Specifies the directory where the file system is mounted.
-f [-r] path ... Generates a new file encryption key for the specified path and
then encrypts the data with the new key.
If -r is specified, the rekey operation is performed recursively
under path.
path specifies the absolute or relative path of a directory.
Multiple path values are allowed.
-k key_length Specifies the key length for the directory or file specified by
path.
The default values for the -a and -k are determined by the volume parameters
specified when acfsutil encr set was run.
The path option can specify a path to a file or directory in a read-write snapshot. If
the -r option is specified with the command on the root directory, the command does
not transverse the snapshots under the .ACFS directory. If a rekey operation is
specified at the file system level, then the operation does not process files and
directories of snapshots in the .ACFS/snaps/ directory.
If Oracle Key Vault is the key store for the file system, then the Oracle Key Vault home
environmental variable (OKV_HOME) must be set when using the -v option to generate
a new volume key. If the client was configured to use a password with Oracle Key
Vault, then the same password must be entered when prompted.
See Also:
Oracle Key Vault Administrator's Guide for information about Oracle Key Vault
Only a user with root or system administrator privileges can run this command with
the -v option. The file owner can also run this command with the -f option to rekey
encryption on the directory or file.
Examples
The following are examples of the use of acfsutil encr rekey.
Example 16-75 Using the acfsutil encr rekey command
# /sbin/acfsutil encr rekey -m /acfsmounts/acfs1 -v
Purpose
Sets or changes encryption parameters for an Oracle ACFS file system.
Option Description
-a algorithm Specifies the algorithm. Advanced Encryption Standard (AES)
is the default value and the only encryption supported for this
release. The algorithm must be specified if -k is specified.
Table 16-83 (Cont.) Options for the acfsutil encr set command
Option Description
-k {128|192|256} Specifies the key length. The key length is set at the volume
level. The default is 192. Must be specified if -a is specified.
Before running the acfsutil encr set command, you must first run the acfsutil
encr init command.
The acfsutil encr set command configures encryption parameters for a file
system, transparently generates a volume encryption key, and stores that the
generated key in the key store that was previously configured with the acfsutil
encr init command.
If auditing is initialized on a cluster, this command also enables an Oracle ACFS
encryption auditing source on the file system. The actions performed when enabling
this audit source are the same as those done when the acfsutil audit enable
command is run directly. For more information, refer to "acfsutil audit enable
(page 16-72)".
In addition acfsutil encr set creates the mount_point/.Security/
encryption/logs/ directory that contains the log file (encr-
hostname_fsid.log) that collects auditing and diagnostic data.
Password requirements when storing the key are dependent on how the encryption
key storage was configured. If -p was specified with acfsutil encr init, then a
password is required to run this command.
Before using the -e option to specify Oracle Key Vault as the key store, Oracle Key
Vault must be configured first. If you want to choose Oracle Key Vault as the key store
for the file system, then the Oracle Key Vault home environmental variable
(OKV_HOME) must be set when running the command with the -e option. If the client
was configured to use a password with Oracle Key Vault, then the same password
must be entered when prompted.
See Also:
Oracle Key Vault Administrator's Guide for information about configuring
Oracle Key Vault
The acfsutil encr set –u command is not allowed if any snapshots exist in the file
system.
Only a user with root or system administrator privileges can run the acfsutil encr
set command.
Examples
The following example shows the use of acfsutil encr set command.
Example 16-76 Using the acfsutil encr set command
# /sbin/acfsutil encr set -a AES -k 256 -m /acfsmounts/acfs1
Purpose
Migrates the encryption keystore.
Option Description
-p Converts the encryption keystore from a SSO wallet to a PKCS
wallet.
If the -p option is specified, acfsutil keystore migrate converts the SSO wallet
to a PKCS wallet. If the -p option is not specified, acfsutil keystore migrate
converts the PKCS wallet to a SSO wallet.
Only a user with root or system administrator privileges can run this command.
Examples
The following is an example of the use of acfsutil keystore migrate.
Example 16-77 Using the acfsutil keystore migrate command
# /sbin/acfsutil keystore migrate
backslash (\) with the drive letter, such as in M:\, to avoid the possibility of triggering
a Windows path substitution to the last accessed path on the specified drive.
NOT_SUPPORTED
Command Description
acfsdbgNOT_SUPPORTED Debugs an Oracle ACFS file system.
acfsutil info fileNOT_SUPPORTED Displays information for a file in an Oracle ACFS file system.
acfsutil info fsNOT_SUPPORTED Displays detailed Oracle ACFS file system information.
acfsutil info idNOT_SUPPORTED Displays Oracle ACFS file system information for a specified file
identifier and mount point.
acfsutil plugin infoNOT_SUPPORTED Displays information about the Oracle ACFS plug-in infrastructure.
acfsutil registryNOT_SUPPORTED Adds, deletes, or displays entries in the Oracle ACFS mount registry.
acfsutil snap createNOT_SUPPORTED Creates a snapshot of an Oracle ACFS file system or an existing
snapshot.
acfsutil snap infoNOT_SUPPORTED Displays information about Oracle ACFS file system snapshots.
acfsdbg
Purpose
Debugs an Oracle ACFS file system.
Table 16-86 (page 16-117) contains the options available with the acfsdbg command.
Option Description
-h Prints out the usage message which displays the various
options that are available when invoking the acfsdbg
command, then exits.
-l Processes kernel log files. The default is to not process the log
files.
Subcommands
Table 16-87 (page 16-117) lists the subcommands of acfsdbg.
fenum Displays the specified File Entry TAble fenum [-f | -e | -d] FETA_entry_number
(FETA) entry
-f Displays all on disk structures related to
this structure
-e Displays all on disk extent information
related to this structure
-d Casts the structure as a directory and
displays its contents
FETA_entry_number The File Entry Table
number used to identify a file on the file
system
offset Displays structure at disk offset offset [-c cast] [-f | -d] disk_offset
-f Displays all on disk structures related to
this structure
-d Casts the structure as a directory and
displays its contents
disk_offset Disk offset to display. The
value can be an expression as used by the
calculate subcommand
write Writes hexadecimal, octal, or decimal values write [-1 | -2 | -4 | -8 | -c | -s] [-C | -
at the disk offset, estimating how many bytes CE] offset value
to write based on value size or number of
-1 Write byte value
digits in leading 0 hexadecimal values
-2 Write 2 byte (short) value
The disk offset can be an expression used by
-4 Write 4 byte (int) value
the calculate subcommand
-8 Write 8 byte (long) value
Numeric values can also be an expression as
-c Write text (no null termination). Enclose
used by the calculate subcommand
string in single-quotes (')
This command is disabled in read-only mode -s Write null-terminated string. Enclose
string in quotes (")
-C Regenerate normal structure checksum
-CE Regenerate extent structure checksum
offset Disk offset to write. The value can
be an expression used by the calculate
subcommand
value The value to write. If numeric, the
value can be an expression as used by the
calculate subcommand
Examples
Example 16-78 (page 16-119) shows the use of the acfsdbg subcommand.
Example 16-78 Using the acfsdbg command
$ /sbin/acfsdbg /dev/asm/voume1-123
acfsdbg: version = 11.2.0.3.0
Oracle ASM Cluster File System (ACFS) On-Disk Structure Version: 39.0
The ACFS volume was created at Mon Mar 2 14:57:45 2011
acfsdbg>
1111:0000:0000:0000
Purpose
Displays information for a file in an Oracle ACFS file system.
Option Description
-d Displays detailed extent information, from Oracle ACFS to the
Oracle ASM devices in the disk group.
-o acfs_extent_offset Narrows the extent display to the Oracle ACFS file offset
specified.
The acfsutil info file command displays information about a file in an Oracle
ACFS file system. The information includes the extent map which details the locations
of the blocks comprising the file and the used versus allocated storage for a file.
Tagging information is also displayed for a file.
You must have read access to the specified file to run acfsutil info file.
Examples
The following is an example of acfsutil info file.
Example 16-79 Using the acfsutil info file command
$ /sbin/acfsutil info file /acfsmounts/acfs1/myfile
acfsutil info fs
Purpose
Displays detailed Oracle ACFS file system information.
Option Description
-o Displays the specific file system item from the following list:
• freespace - Amount of free space available in the file
system
• totalspace - Size of the file system
• mountpoints - Mount points associated with file
systems.
• volumes - Number of volumes associated with the file
system
• primaryvolume - Path name of the device associated
with file system
• available - Length of time the file system has been
available
• isadvm - 1 if an Oracle ADVM volume is present, 0 if not
• ismountpoint - 1 if path is the mount point, 0 if path is
not a mount point
• isavailable - 1 if the file system is available, 0 if file
system is not available
• iscorrupt - 1 if the file system is corrupt, 0 if file system
is not corrupt
• isreplprimary - 1 if primary file system, 0 if not
• isreplstandby - 1 if standby file system, 0 if not
• diskgroup - Name of the disk group associated with
path
• redundancy - Type of redundancy used by the Oracle
ADVM volume
• replication - 1 if file system has been initialized for
replication as the primary or standby file system, 0 if not
initialized for replication
• resizeincrement - Allocation unit size in bytes of the
Oracle ADVM volume used by path
• stripewidth - Stripe width for the Oracle ADVM
volume used by path
• stripecolumns - Stripe set columns for the Oracle
ADVM volume used by path
• fetasize - File entry table size which is the amount of
storage consumed by the on disk metadata for inodes
Option Description
-s [interval [count] [- Displays file system statistics.
d]] The optional interval parameter specifies the amount of time
in seconds between each report. The first report contains
statistics for the time since the file system mount. Each
subsequent report contains statistics collected during the
interval since the previous report.
The optional count parameter can be specified with the
interval parameter. If the count parameter is specified, the
value of count determines the number of reports generated at
interval seconds apart.
If the interval parameter is specified without the count
parameter, the command generates reports continuously until
you break out of the command with Ctrl+c.
The optional -d option displays more detailed statistical
information.
mount_point Specifies the directory where the file system is mounted. Not a
valid option for replication data.
acfsutil info fs displays information and statistics about Oracle ACFS file
systems. If replication has been initiated on a file system, additional flags and status
information are displayed. The values for the replication status field are primary,
standby, or disabled.
The -o item option displays file system information for the item specified.
The -s option displays the amount and rate of change currently on a file system for
the node that the command is run on.
With no option specified, the command displays file system information that includes
the volume device name, the size of the file system, the amount of space available on
the volume device, the file system mount time on this node, the state of the file system,
the user specified block size, the number of Oracle ACFS snapshots, the space
consumed by snapshots in the file system, and the optional name or volume label
associated with the file system. The possible file system states are displayed in the
flags line. These states include:
• Offline indicates that the underlying devices are not accessible, possibly due to
an Oracle ASM instance failure, disk group forced dismount, or an irrecoverable
I/O error. The file system on this node can only be dismounted. All other
attempts at access result in errors.
• Corrupt indicates that the file system should be checked and repaired at the
earliest possible convenience to correct a detected inconsistency. For example, run
the fsck command on Linux or the acfschkdsk command on Windows to
check and repair the file system. Ensure that you run the command in repair
mode to correct the problem. For more information, refer to "fsck (page 16-23)"
and "acfschkdsk (page 16-44)".
When viewing space usage values with acfsutil info fs on Windows systems, the
values may differ from sizes in Windows folders. The mechanism used by Folder
Properties on Windows systems only accounts for files and should be considered an
approximate value.
Any user can run acfsutil info fs.
Examples
The following are examples of the use of acfsutil info fs.
Example 16-80 (page 16-123) displays information about an Oracle ACFS file system in
a Linux environment.
Example 16-80 Using the acfsutil info fs command on Linux
$ /sbin/acfsutil info fs
/primary
ACFS Version: 11.2.0.2.0
flags: MountPoint,Available,Replication
mount time: Mon Oct 25 12:11:03 2010
volumes: 1
total size: 5368709120
total free: 4144230400
primary volume: /dev/asm/pvol-74
label:
flags: Primary,Available,ADVM
on-disk version: 40.0
allocation unit: 4096
major, minor: 252, 37889
size: 5368709120
free: 4144230400
ADVM diskgroup REPLDG
ADVM resize increment: 268435456
ADVM redundancy: unprotected
ADVM stripe columns: 4
ADVM stripe width: 131072
number of snapshots: 0
snapshot space usage: 0
replication status: primary
/standby
ACFS Version: 11.2.0.2.0
flags: MountPoint,Available,Replication
mount time: Mon Oct 25 12:11:03 2010
volumes: 1
total size: 5368709120
total free: 5263945728
primary volume: /dev/asm/svol-74
label:
flags: Primary,Available,ADVM
on-disk version: 40.0
allocation unit: 4096
major, minor: 252, 37890
size: 5368709120
free: 5263945728
ADVM diskgroup REPLDG
ADVM resize increment: 268435456
ADVM redundancy: unprotected
ADVM stripe columns: 4
ADVM stripe width: 131072
number of snapshots: 0
Example 16-81 (page 16-124) illustrates the use of acfsutil info fs in a Windows
environment.
Example 16-81 Using the acfsutil info fs command on Windows
C:\oracle>acfsutil info fs /o freespace c:\oracle\acfsmounts\acfs1
968667136
Example 16-82 (page 16-124) illustrates the use of acfsutil info fs with -s option
to display the current amount and rate of change on a file system.
Example 16-82 Using the acfsutil info fs command with the -s option
$ /sbin/acfsutil info fs -s /acfsmounts/acfs1
amount of change since mount: 359.22 MB
average rate of change since mount: 3 KB
acfsutil info id
Purpose
Displays Oracle ACFS file system information for a specified file identifier number
and mount point.
Option Description
mount_point Specifies the directory where the file system is mounted.
file_identifier Specifies the Oracle ACFS file identifier number reported by the
Oracle ACFS driver. The file identifier number should be
specified in decimal format.
You can use acfsutil info id to translate an internal numeric Oracle ACFS file
identifier to a path name in the file system. This is useful when the Oracle ACFS driver
reports I/O errors to the system event logger associated with a particular file in an
Oracle ACFS and identifies it by its internal identifier. You must have administrator
privileges or you must be a member of the Oracle ASM administrator group to run
acfsutil info id.
Examples
The following is an example of acfsutil info id.
Example 16-83 Using the acfsutil info id command
$ /sbin/acfsutil info id 117 /acfsmounts/acfs1
Purpose
Disables the Oracle ACFS plug-in infrastructure for an Oracle ACFS file system.
Option Description
mount_point Specifies the directory where the file system is mounted.
acfsutil plugin disable disables the collection of Oracle ACFS plug-in metrics
and the associated communication with a plug-in application.
Administrator privileges are required to use this command or you must be a member
of the Oracle ASM administrator group.
Examples
Example 16-84 (page 16-126) shows the use of the acfsutil plugin disable
command. After monitoring has completed for the Oracle ACFS file metric data for the
file system mounted on the /humanresources, the command in Example 16-84
(page 16-126) disables the subsequent collection of summary data in the Oracle ACFS
driver.
Example 16-84 Disabling the Oracle ACFS driver
# /sbin/acfsutil plugin disable /humanresource
Purpose
Enables the Oracle ACFS plug-in infrastructure for an Oracle ACFS file system.
Option Description
-t tag, ... An optional list of tag names selecting Oracle ACFS files that
you want to be monitored. The maximum number of tags is 12.
The names are separated by commas. The default is to monitor
all files in the Oracle ACFS file system.
Table 16-92 (Cont.) Options for the acfsutil plugin enable command
Option Description
-i interval [s|m] Selects posting message delivery and the posting interval. The
Oracle ACFS plug-in mechanism posts a metrics message
during each specified message interval.
An interval is the maximum amount of time which can pass
before metrics are posted. The application blocks in the API call
to retrieve metrics until a posting occurs.
The interval can be specified as an integer value in s seconds or
m minutes. The default is minutes. The maximum value allowed
for an interval is 60 minutes or 3600 seconds.
If an interval is specified, then Oracle ACFS is requested to post
metrics messages to the plug-in application on an interval basis.
If an interval is not specified, then the application polls for
metrics updates from the Oracle ACFS file system. This is the
default action.
acfsutil plugin enable enables an Oracle ACFS file system for application plug-
in service. Oracle ACFS plug-ins are enabled for single nodes only, either a standalone
host or one or more individual nodes of a Grid Cluster. After enabled for plug-ins, the
Oracle ACFS file system begins collecting metric information for either the set of
specified tagged files or all files in the Oracle ACFS file system, and transmits callout
messages to the plug-in application based upon the selected message payload and
delivery parameters. Metrics are reset after every delivery to the application (whether
through polling or posting).
In general, metrics are collected from the point of view of a user application. I/O for
metadata or internal Oracle ACFS activities; such as snapshot copy-on-writing,
encrypting, and replicating files; are not included. Metrics are collected for user I/O to
both files in the original file system and snapshot files. Memory mapping of files that
results in I/O operations is recorded in the metrics. Replication related files under
the .ACFS/repl directory are not included in the metrics.
Oracle ACFS provides the acfsmetric1 pre-defined metric type. For information
about the pre-defined metric types, refer to "Oracle ACFS Pre-defined Metric Types
(page 18-7)".
Administrator privileges are required to use this command or you must be a member
of the Oracle ASM administrator group.
Examples
Example 16-85 (page 16-127) shows the use of the acfsutil plugin enable
command to provide additional storage usage metrics to a monitoring application.
Example 16-85 Enabling the Oracle ACFS driver for storage visibility: poll model
# /sbin/acfsutil plugin enable -m acfsmetric1 -t HRDATA /humanresource
which means that the application plug-in polls to request metric data update
messages. No interval is specified with polled message delivery.
When the command in Example 16-85 (page 16-127) completes, the Oracle ACFS file
system mounted on the /humanresources mount point is enabled for plug-in
communication and begins collecting Oracle ACFS file access metrics for files tagged
with HRDATA. Oracle ACFS maintains metrics collecting a summary of read and write
activity. Each time the associated application plug-in module polls for the metrics,
Oracle ACFS sends a message with the data as defined in the ACFS_METRIC1
structure that is a summary of the selected Oracle ACFS activity since either the Oracle
ACFS driver plug-in functionality was enabled or since the last delivery of metric data.
Example 16-86 (page 16-128) shows the use of the acfsutil plugin enable
command to monitor movie file updates.
Example 16-86 Enabling the Oracle ACFS driver for storage visibility: post on
interval model
# /sbin/acfsutil plugin enable -m acfsmetric1 -t FILECONTENT -i 120s /moviemods
An Oracle ACFS file system mounted on /moviemods is enabled for plug-in service
and is configured to record and deliver storage usage messages to a monitoring
application. On an interval basis, the Oracle ACFS file system sends a wakeup on a
driver event on which the application API call is waiting. The application then collects
a summary of read and write activity on the files.
The message payload type is acfsmetric1 and the files to be monitored are movie
files that have been tagged with the FILECONTENT tag. The message delivery type is
post, which means that Oracle ACFS posts messages containing the metrics to the
plug-in application for the specified interval of 120 seconds.
When the command in Example 16-86 (page 16-128) completes, the Oracle ACFS file
system mounted on the /moviemods mount point is enabled for plug-in
communication and begins collecting Oracle ACFS storage visibility metrics for files
tagged with FILECONTENT. On each interval, Oracle ACFS posts one or more
messages to the application plug-in containing the storage visibility information.
Purpose
Displays information about the Oracle ACFS plug-in infrastructure for an Oracle
ACFS file system.
Option Description
mount_point Specifies the directory where the file system is mounted.
acfsutil plugin info displays information about the state of the Oracle ACFS
plug-in mechanism.
Administrator privileges are required to use this command or you must be a member
of the Oracle ASM administrator group.
Examples
Example 16-87 (page 16-129) shows the use of the acfsutil plugin info command.
Example 16-87 Displaying information about the Oracle ACFS driver
# /sbin/acfsutil plugin info /humanresource
acfsutil registry
Purpose
Adds, deletes, or displays entries in the Oracle ACFS mount registry.
Option Description
-a Add the device, mount point, and associated moptions to the
Oracle ACFS mount registry. The Oracle ADVM volume device
specified must exist on the local node to add the information to
the mount registry.
The arguments represent all the information needed to mount
the file system. At Oracle ACFS startup time these file systems
are automatically mounted.
Duplicate device entries are not allowed. Duplicate mount
points are allowed but must be include the -n option for
disjoint node-specific mounts.
-m device Lists the registered mount point, if one exists, associated with
the specified device. The mount point is only returned if the
Oracle ACFS file system has been registered or has been
previously mounted.
-n { nodes | all} This option, used in combination with -a and -c, specifies an
optional comma-delimited list of nodes, or the all keyword.
This specifies which nodes should attempt to mount this device
on the specified mount point. Host names should be specified.
The all keyword is functionally equivalent to not specifying a
list of nodes and indicates that the device should be mounted
on all nodes. Mounting on all nodes is the default behavior.
-o moptions Specifies the mount options for use when mounting the file
system. Valid for Linux, Solaris, and AIX. Used in combination
with -a and -c. For specific -o moptions, refer to the mount
command for each operating system. All the options for each
operating system are available except the all option.
-r Displays all registered file systems, not just file systems with
auto_start=always.
Option Description
-u user Specifies a user that is allowed to mount or umount (start and
stop) the file system. This option, used in combination with -a
and -c, is useful for creating a registered file system that can be
started or stopped by someone other than root.
device Specifies an Oracle ACFS device file that has been formatted.
acfsutil registry adds, deletes, or displays a file system from the Oracle ACFS
persistent mount registry. The mount registry is a global registry that is used at Oracle
ACFS startup on each node to mount all file systems specified in it. root or
asmadmin privileges are required to modify the registry. For information about
operating system group privileges, see "About Privileges for Oracle ASM (page 3-47)".
Any user is allowed to display the contents of the registry. To mount all the file
systems in the Oracle ACFS mount registry, use the platform specific mount command
with the all option. This is done automatically at Oracle ACFS startup on each node.
Note:
Examples
The following examples show the use of acfsutil registry. The first example
shows how to add the volume device file and file system mount point to the registry.
The second example shows how to list the registered mount point associated with the
specified volume device file. The third example shows how to delete the specified
volume device file from the registry.
Example 16-88 Using the acfsutil registry command
$ /sbin/acfsutil registry -a /dev/asm/volume1-123 /acfsmounts/acfs1
acfsutil rmfs
Purpose
Removes an Oracle ACFS file system.
Option Description
device Specifies an Oracle ACFS device file that has been formatted.
You can use acfsutil rmfs to remove an Oracle ACFS that is dismounted. When the
command is run, the superblock of the file system is disabled. root or asmadmin
privileges are required to run this command. For information about operating system
group privileges, see "About Privileges for Oracle ASM (page 3-47)".
After acfsutil rmfs runs successfully, the MOUNTPATH and USAGE columns in the V
$ASM_VOLUME view are cleared for the device. The removed Oracle ACFS can be
restored using fsck or acfschkdsk. The device can be reformatted with a new
Oracle ACFS using the mkfs or acfsformat commands.
Examples
The following example shows the use of acfsutil rmfs to remove the specified
volume device file and associated file system.
Example 16-89 Using the acfsutil rmfs command
$ /sbin/acfsutil rmfs /dev/asm/volume1-123
acfsutil size
Purpose
Resizes an Oracle ACFS file system.
Option Description
[+|-]n Specifies the new size for the Oracle ACFS file system where n
is a valid positive whole number greater than zero. The number
can be preceded by a + or - to indicate the amount to add or
decrease. If no operand exists, the new size is the absolute size.
K|M|G|T|P Specifies that the integer supplied for size is in the units of K
(Kilobytes), M (Megabytes), G (Gigabytes), T (Terabytes), or P
(Petabytes). If the unit indicator is specified, then it must be
appended to the integer. If omitted, the default unit is bytes.
acfsutil size grows or shrinks the mounted Oracle ACFS and its underlying
Oracle ADVM storage to match the new size specified. This operation also resizes the
underlying Oracle ADVM volume file to match the new length that is specified.
However, the disk group must have enough free storage to accommodate any
requested increase to the file system size.
Reducing a file system size returns unused storage space located at the end of the file
system to the disk group. Shrinking in this release is intended for accidents when the
wrong initial size or resize increment was specified, and before the storage was
actually used. After storage has been used for user data or file system metadata, it may
not be possible to shrink the file system, even if the files using that storage have been
deleted.
Note:
The size value is rounded up based on the block size of the file system and the
allocation unit of the Oracle ADVM volume device file. To determine the Oracle
ADVM volume device resize increment, examine the RESIZE_UNIT_MB field in the V
$ASM_VOLUME view, Resize Unit in the output of asmcmd volinfo, or ADVM
resize increment in the output of acfsutil info fs.
There is no limit to the number of times a file system can be expanded for a disk group
with the ADVM compatibility attribute set to 11.2.0.4 or higher.
For a disk group with the ADVM compatibility attribute set to less than 11.2.0.4,
there is a limit of 5 extents for the file system's internal storage bitmap. This causes any
attempts to increase the file system to fail after it has been increased four or more
times. However, if after increasing the file system four times or more times the file
system size is decreased, then you may be able to increase the file system size again if
the size of the increase is less than the size of the decrease. When the limit on a file
system expansion has been reached, running fsck or acfschkdsk with the -a option
may consolidate the internal storage bitmap, allowing future file system expansion.
root or users who are members of the asmadmin group can run this command. For
information about operating system group privileges, see "About Privileges for Oracle
ASM (page 3-47)".
Examples
The following example shows the use of acfsutil size. This example increases the
primary device file of /acfsmounts/acfs1 file system by 500 MB.
Example 16-90 Using the acfsutil size command
$ /sbin/acfsutil size +500M /acfsmounts/acfs1
Purpose
Converts the type of an existing snapshot image from read-only to read-write or read-
write to read-only.
Option Description
-r Converts snapshot to read-only snapshot.
acfsutil snap convert converts the type of an existing snapshot image from a
read-only snapshot image to a read-write snapshot image, or from a read-write
snapshot image to a read-only snapshot image.
The type option (-r or -w) is required for the convert operation. Specifying a type
parameter that matches the type of the existing snapshot image results in no
conversion and no failure. An 11.2 read-only snapshot image can be converted to a
read-write snapshot image, but this conversion results in an update of the Oracle
ACFS on-disk structure version. After the Oracle ACFS on-disk structure version has
been updated, the updated version is not compatible with previous Oracle ACFS 11.2
versions.
Administrator privileges are required to use this command or you must be a member
of the Oracle ASM administrator group.
Examples
Example 16-91 (page 16-135) shows the use of the acfsutil snap convert
command.
Purpose
Creates a read-only or read-write snapshot of an Oracle ACFS file system or an
existing snapshot.
Option Description
-r Creates a read-only snapshot. This is the default setting.
snapshot Specifies a name for the snapshot. The name provided must be
a valid directory name. The.ACFS/snaps directory itself
cannot be snapped.
target is not modified during snap creation time. When an absolute path is used as the
target of the link, the link target of the snapshot still refers to the absolute path,
outside the newly-created snapshot namespace. Future modifications to the targeted
file can occur through the snapshot symlink, not to a new target inside the snapshot
namespace. The contents of the targeted file can also be changed outside of the
snapshot. Because of this behavior, you should use relative path targets for all
symlinks that are within the same file system.
Any user can access the snapshot directory by specifying the path name. However,
the .ACFS directory itself is hidden from directory listings of the root of the file system.
This prevents recursive commands, such as rm -rf or acfsutil tag set -r, from
the root of the file system inadvertently operating on snapshot files.
Snapshots usually use very little storage initially as they share file system blocks with
the original file system until a file changes.
Tools such as du report the total disk space usage of the snapshotted files, which
includes the storage shared with the original versions of the files. To determine the
total space used for the snapshots, use the acfsutil snap info or acfsutil info
fs command. See "acfsutil info fs (page 16-120)".
Oracle ACFS snapshots are immediately available for use after they are created. They
are always online under the.ACFS/snaps directory when the original file system is
mounted. No separate command is needed to mount them.
The acfsutil snap create operation fails if the cluster is in rolling migration.
Creation from an existing snapshot is not permitted if there are:
• Any snapshots present in the file system that were created with the ADVM
compatibility set to less than 12.1
• Any snapshots of the file system that were created after ADVM compatibility was
set to 12.1 but while 11.2 snapshots existed
• Any snapshot deletion cleanup operations still running in the background for the
above conditions
You can display pending snapshot operations with the acfsutil snap info
command. For information, refer to "acfsutil snap info (page 16-138)".
Administrator privileges are required to use this command or you must be a member
of the Oracle ASM administrator group.
For more information about Oracle ACFS snapshots, refer to "About Oracle ACFS
Snapshots (page 11-10)". For information about the number of snapshots supported,
refer to "Oracle ACFS Disk Space Usage (page 18-2)".
Examples
Example 16-92 (page 16-136) shows the use of the acfsutil snap create command
to create snapshots on a Linux platform.
Example 16-92 Using the acfsutil snap create command on Linux
$ acfsutil snap create -w midday_test1 /acfsmounts/critical_apps
$ ls /acfsmounts/critical_apps/.ACFS/snaps
midday_test1 midday_test2 payroll_report1 payroll_report2
Example 16-93 (page 16-137) shows the use of the acfsutil snap create command
to create snapshots on a Windows platform. This example shows the creation of a
snapshot from an existing snapshot.
Example 16-93 Using the acfsutil snap create command on Windows
$ /sbin/acfsutil snap create /w snap_1 e:
Purpose
Deletes a snapshot of an Oracle ACFS file system.
Option Description
snapshot Specifies a name for the snapshot.
acfsutil snap delete deletes the snapshot named snapshot in the Oracle ACFS
mounted on mount_point. After successful completion of the command, the
representation of the snapshot in the.ACFS/snaps directory is removed. The
command fails if any file within the snapshot is open on any cluster node. The disk
space used by the snapshot being deleted is freed by a background task after the
completion of the acfsutil snap delete command. If one of these background
threads is running to clean up a deleted snapshot, then the acfsutil snap info
command shows a pending delete operation. For information about the acfsutil
snap info command, refer to "acfsutil snap info (page 16-138)".
The acfsutil snap delete operation fails if the cluster is in rolling migration
Administrator privileges are required to use this command or you must be a member
of the Oracle ASM administrator group.
Examples
Example 16-94 (page 16-138) shows the use of the acfsutil snap delete command.
Purpose
Displays information about Oracle ACFS file system snapshots.
Option Description
-t Displays a tree structure for the specified snapshot and mount
point.
Examples
Example 16-95 (page 16-139) shows the use of the acfsutil snap info command on
a Linux platform when there is a pending delete operation. When the background
process finishes the clean up of the deleted snapshot, the delete pending row does not
appear in the output.
Example 16-96 (page 16-139) shows the use of the acfsutil snap info command on
a Windows platform. These commands were run after the acfsutil snap create
commands in Example 16-93 (page 16-137).
Example 16-96 Using the acfsutil snap info command on Windows
$ /sbin/acfsutil snap info e:
number of snapshots: 2
snapshot space usage: 65536
e: RW
snap_1 RW e:
snap_1-1 RW snap_1
snap_1 RW
snap_1-1 RW snap_1
acfsutil tune
Purpose
The acfsutil tune command displays the value of a specific tunable parameter or
all Oracle ACFS tunable parameters, or sets the value of a tunable parameter in a
persistent manner on a particular node.
Option Description
tunable_name Specifies the name of the tunable parameter.
The Oracle ACFS tunable parameter AcfsMaxOpenFiles limits the number of open
Oracle ACFS files on Windows and AIX. Normally you do not have to change the
value of this tunable parameter; however, you may want to consider increasing the
value if you have a large working set of files in your Oracle ACFS file systems.
The Oracle ACFS tunable parameter AcfsMaxCachedFiles sets the maximum
number of closed files that remain cached in memory on Windows and AIX. Normally
you do not have to change value of this tunable parameter; however, you many to
consider changing the value to get better performance.
Changing a tunable parameter has an immediate effect and persists across restarts.
You must be a root user or the Windows Administrator to change the value of a
tunable parameter.
Examples
The first command prints Oracle ACFS tunable parameters. The second command
changes the value of a tunable parameter.
Example 16-97 Using the acfsutil tune command
$ /sbin/acfsutil tune
advmutil canonical
Purpose
advmutil canonical displays the canonical name of the specified Oracle ADVM
device name.
Option Description
volume_device Specifies a string identifying an Oracle ADVM volume device.
There are several different formats that can identify an Oracle ADVM volume device,
but a normalized, unambiguous (canonical) name should be used when the volume
device name is used with other commands such as SRVCTL.
For example, on the Windows operating system you can use the following prefixes
with a volume device name: \\.\, \??\, \\?\
The advmutil canonical command would return the canonical name that another
utility would recognize without having to strip off extra characters. The command
would most likely be used in a script.
Examples
The following examples show the use of advmutil canonical on a Windows
operating system. For each example, the command returns the canonical name of the
volume device.
Example 16-98 Using advmutil canonical
[C:\]advmutil canonical asm-volume1-274
asm-volume1-274
advmutil tune
Purpose
advmutil tune displays the value of a specific Oracle ADVM parameter or sets the
value of a specific Oracle ADVM parameter.
Option Description
parameter Specifies the parameter for which you want to set or display the
value.
If a value is not provided, the advmutil tune command displays the value that is
currently assigned to the specified parameter.
The parameter that can be specified with advmutil tune is the maximum time in
minutes for the deadlock timer (deadlock_timer).
You must be a privileged user to set a parameter.
Note:
Examples
The first example changes the maximum time in minutes for the deadlock timer. The
second example queries the current setting of a parameter.
Example 16-99 Using advmutil tune
$ /sbin/advmutil tune deadlock_timer = 20
advmutil volinfo
Purpose
advmutil volinfo displays information about Oracle ADVM volume devices.
Option Description
volume_device Specifies an optional volume device name.
Option Description
-l Separates the Oracle ADVM volume device information by
field descriptions and colons on one line.
Examples
The first example displays information about an Oracle ADVM volume device, using
the advmutil volinfo command with the volume device name. The second
example displays information about the volume device using the -l option. The third
example displays information about the volume device using the -L option.
Example 16-100 Using advmutil volinfo
$ /sbin/advmutil volinfo /dev/asm/volume1-123
Device : /dev/asm/volume1-228
Interface Version: 1
Size (MB): 256
Resize Increment (MB): 32
Redundancy: mirror
Stripe Columns: 4
Stripe Width (KB): 128
Disk Group: DATA
Volume: VOLUME1
Compatible.advm : 11.2.0.0.0
See Also:
• A SYSAUX tablespace data file in disk group data. The tablespace is locally
managed with automatic segment-space management.
• A multiplexed online redo log with two online log groups, one member of each in
data and fra (fast recovery area).
The following example illustrates the usage of Oracle ASM with defaults. This
example enables Oracle ASM to create and manage the tablespace data file for you,
using Oracle supplied defaults that are adequate for most situations.
Assume the following initialization parameter setting:
DB_CREATE_FILE_DEST = +data
The following statement creates the tablespace and its data file:
SQL> CREATE TABLESPACE tblspace;
The following example creates a log file with a member in each of the disk groups
data1 and data2. These parameter settings are included in the initialization
parameter file:
DB_CREATE_ONLINE_LOG_DEST_1 = +data1
DB_CREATE_ONLINE_LOG_DEST_2 = +data2
See Also:
Oracle Database Administrator's Guide for information about managing archived
redo log files
NAME
----------------------------------------------------------------
+FRA/ORCL/ARCHIVELOG/2013_06_24/thread_1_seq_112.260.818960623
+FRA/ORCL/ARCHIVELOG/2013_06_24/thread_1_seq_113.261.818978423
+FRA/ORCL/ARCHIVELOG/2013_06_25/thread_1_seq_114.262.818993031
+FRA/ORCL/ARCHIVELOG/2013_06_25/thread_1_seq_115.263.819032439
+FRA/ORCL/ARCHIVELOG/2013_06_25/thread_1_seq_116.264.819047121
+FRA/ORCL/ARCHIVELOG/2013_06_25/thread_1_seq_117.265.819064815
+FRA/ORCL/ARCHIVELOG/2013_06_26/thread_1_seq_118.266.819079417
...
This appendix discusses Oracle Automatic Storage Management Cluster File System
(Oracle ACFS) advanced topics, including limits, advanced administration, and
troubleshooting.
See Also:
Note:
The only operation that succeeds on that node for that file system from that point
forward is a dismount operation. Another node recovers any outstanding metadata
transactions, assuming it can write the metadata out to the storage. It is possible to
remount the file system on the offlined node after the I/O condition is resolved.
It might not be possible for an administrator to dismount a file system while it is in the
offline error state if there are processes referencing the file system, such as a directory
of the file system being the current working directory for a process. To dismount the
file system in this case it would be necessary to identify all processes on that node with
references to files and directories on the file system and cause them to exit. The Linux
fuser or lsof commands or Window handle command list information about
processes and open files.
If Oracle ACFS detects inconsistent file metadata returned from a read operation,
based on checksum or expected type comparisons, Oracle ACFS takes the appropriate
action to isolate the affected file system components and generate a notification that
fsck or acfschkdsk should be run as soon as possible. Each time the file system is
mounted a notification is generated with a system event logger message until fsck or
acfschkdsk is run.
For information about ASMCMD commands to manage Oracle ADVM volumes, refer
to Managing Oracle ADVM with ASMCMD (page 15-1).
The check action for an Oracle ACFS file system resource verifies that the file system is
mounted. It sets the state of the resource to online status if mounted, otherwise the
status is set to offline.
The stop action for an Oracle ACFS file system resource attempts to dismount the file
system. If the file system cannot be dismounted due to open references, the stop action
displays and logs the process identifiers for any processes holding a reference.
Use of the srvctl start and stop actions to manage the Oracle ACFS file system
resources maintains their correct resource state.
• Mounting Oracle ACFS file systems listed in the Oracle ACFS mount registry
You can mount Oracle ACFS file systems manually with the mount command.
For information, refer to Managing Oracle ACFS with Command-Line Tools
(page 16-1).
acfsload
Purpose
acfsload loads or unloads Oracle ACFS, Oracle ADVM, and Oracle Kernel Services
Driver (OKS) drivers.
Syntax
acfsload { start | stop } [ -s ]
Table 18-1 (page 18-6) contains the options available with the acfsload command.
Option Description
start Loads the Oracle ACFS, Oracle ADVM, and OKS drivers.
stop Unloads the Oracle ACFS, Oracle ADVM, and OKS drivers.
Description
You can use acfsload to manually load or unload the Oracle ACFS, Oracle ADVM,
and OKS drivers.
Before unloading drivers with the stop option, you must dismount Oracle ACFS file
systems and shut down Oracle ASM. For information about dismounting Oracle ACFS
file systems, refer to "Deregistering_ Dismounting_ and Disabling Volumes and Oracle
ACFS File Systems (page 16-20)".
root or administrator privilege is required to run acfsload.
Examples
The following is an example of the use of acfsload to stop (unload) all drivers.
# acfsload stop
acfsdriverstate
Purpose
acfsdriverstate provides information on the current state of the Oracle ACFS,
Oracle ADVM, and Oracle Kernel Services Driver (OKS) drivers.
Syntax
acfsdriverstate [-orahome ORACLE_HOME ]
{ installed | loaded | version | supported }
Table 18-2 (page 18-6) contains the options available with the acfsdriverstate
command.
Option Description
-orahome ORACLE_HOME Specifies the Oracle Grid Infrastructure home in which the user
has permission to execute the acfsdriverstate command.
loaded Determines whether the Oracle ADVM, Oracle ACFS, and OKS
drivers are loaded in memory.
Option Description
supported Reports whether the system is a supported kernel for Oracle
ACFS.
Description
You can use acfsdriverstate to display detailed information on the current state
of the Oracle ACFS, Oracle ADVM, and OKS drivers.
Examples
The following is an example of the use of acfsdriverstate.
$ acfsdriverstate -orahome /users/12.1.0/grid/ version
ACFS-9325: Driver OS kernel version = 2.6.18-8.el5xen(x86_64)
ACFS-9326: Driver Oracle version = 120209
ub4 acfs_wbytes_per_sec;
ub8 acfs_timestamp;
ub8 acfs_elapsed_secs;
} ACFS_METRIC1;
acfsplugin
Purpose
The acfsplugin application programming interface (API) sends and receives
messages to and from the local plug-in enabled Oracle ACFS driver from the
application plug-in module.
Syntax
sb8 acfsplugin_metrics(ub4 metric_type,
ub1 *metrics,
ub4 metric_buf_len,
oratext *mountp );
Description
The Oracle ACFS plug-in API is used by an Oracle ACFS application plug-in module
to retrieve metrics from the Oracle ACFS driver. The Oracle ACFS driver must first be
enabled for plug-in communication using the acfsutil plugin enable command.
The selected application plug-in metric type model must match the plug-in
configuration defined with the Oracle ACFS plug-in enable command. For information
about the acfsutil plugin enable command, refer to "acfsutil plugin enable
(page 16-126)". The application must provide a buffer large enough to store the metric
structures described in "Oracle ACFS Pre-defined Metric Types (page 18-7)".
If the provided buffer is NULL and metric_buf_len = 0, the return value is the size
required to hold all the currently collected metrics. The application can first query
Oracle ACFS to see how big a buffer is required, then allocate a buffer of the necessary
size to pass back to Oracle ACFS.
The mount path must be provided to the API to identify the plug-in enabled Oracle
ACFS file system that is being referenced.
A nonnegative value is returned for success: 0 for success with no more metrics to
collect, 1 to indicate that more metrics are available, or 2 to indicate that no new
metrics were collected during the interval. In the case of an error, a negative value is
returned and errno is set on Linux environments or SetLastError is called on
Windows.
System administrator or Oracle ASM administrator privileges are required to send and
receive messages to and from the plug-in enabled Oracle ACFS file system driver.
Writing Applications
To use the plugin API, applications must include the C header file acfslib.h which
defines the API functions and structures.
#include <acfslib.h>
When building the application executable, the application must be linked with the
acfs12 library. Check the platform-specific documentation for information about
environment variables that must be defined. For example:
export LD_LIBRARY_PATH=${ORACLE_HOME}/lib:$
{LD_LIBRARY_PATH}
Examples
In Example 18-1 (page 18-9), the command enables an Oracle ACFS file system
mounted on /humanresources for the plug-in service.
Example 18-1 Application Plug-in for Storage Visibility: Poll Model
$ /sbin/acfsutil plugin enable -m acfsmetric1 -t HRDATA /humanresources
With this command, the application plug-in polls the Oracle ACFS plug-in enabled
driver for summary metrics associated with files tagged with HRDATA. The application
code includes the following:
#include <acfslib.h>
...
/* allocate message buffers */
ACFS_METRIC1 *metrics = malloc (sizeof(ACFS_METRIC1));
/* poll for metric1 data */
while (condition) {
/* read next summary message from ACFS driver */
if ((rc = acfsplugin_metrics(ACFS_METRIC_TYPE1,(ub1*)metrics,sizeof(*metrics),
mountp)) < 0) {
perror("….Receive failure … ");
break;
}
/* print message data */
printf ("reads %8llu ", metrics->acfs_nreads);
printf("writes %8llu ", metrics->acfs_nwrites);
printf("avg read size %8u ", metrics->acfs_avgrsize);
printf("avg write size %8u ", metrics->acfs_avgwsize);
printf("min read size %8u ", metrics->acfs_minrsize);
printf("max read size %8u ", metrics->acfs_maxrsize);
...
sleep (timebeforenextpoll);
}
In Example 18-2 (page 18-9), the command enables an Oracle ACFS file system
mounted on /humanresources for the plug-in service.
Example 18-2 Application Plug-in for File Content: Post Model
$ /sbin/acfsutil plugin enable -m acfsmetric1 -t HRDATA -i 5m /humanresources
With this command, every 5 minutes the Oracle ACFS plug-in enabled driver posts file
content metrics associated with files tagged with HRDATA. In the application code, the
call to acfsplugin_metrics() is blocked until the metrics are posted. The
application code includes the following:
#include <acfslib.h>
...
ACFS_METRIC1 *metrics = malloc (sizeof(ACFS_METRIC1));
last_seqno = metrics->acfs_seqno;
}
}
free(metrics);
• $ORACLE_HOME/usm/public/acfslib.h
• $ORACLE_HOME/usm/demo/acfstagsdemo.c
• $ORACLE_HOME/usm/demo/Makefile
Linux, Solaris, or AIX makefile for creating the demo utility.
• $ORACLE_HOME/usm/demo/MAKEFILE
Windows demo utility MAKEFILE (for use by the nmake utility) to create the
demo utility.
• numbers (0-9)
• hyphen (-)
• underscore (_)
• blank (space)
• ENODATA – The tag name does not exist for this file or directory.
• ERANGE - The value buffer is too small to hold the returned value.
• EACCES – Search permission denied for a directory in the path prefix of path; or
the user does not have permission on the file to read tag names.
• ERROR_INVALID_PARAMETER - The tag name does not exist for this file or
directory or the tag name is syntactically incorrect.
acfsgettag
Purpose
Retrieves the value associated with an Oracle ACFS file tag name.
Syntax
sb8 acfsgettag(const oratext *path, const oratext *tagname, oratext *value,
size_t size, ub4 flags);
Table 18-3 (page 18-12) contains the options available with the acfsgettag
command.
Option Description
path Specifies a pointer to a file or directory path name.
value Specifies the memory buffer to retrieve the Oracle ACFS tag
value.
size Specifies the byte size of the memory buffer that holds the
returned Oracle ACFS tag value.
Description
The acfsgettag library call retrieves the value string of the Oracle ACFS tag name.
The return value is the nonzero byte length of the output value string on success or
ACFS_TAG_FAIL on failure. For information about operating system-specific
extended error information values that may be obtained when an ACFS_TAG_FAIL is
returned, refer to "Oracle ACFS Tagging Error Values (page 18-11)".
Because Oracle ACFS tag names currently use a fixed value string of 0 (the number
zero character with a byte length of one) the value is the same for all Oracle ACFS tag
name entries. The size of the value buffer can be determined by calling acfsgettag
with a NULL value and 0 size. The library call returns the byte size necessary to
hold the value string of the tag name. acfsgettag returns an ENODATA error when
the tag name is not set on the file.
Examples
Example 18-3 (page 18-12) is an example of the use of the acfsgettag function call.
Example 18-3 Retrieving a file tag value
sb8 rc;
size_t size;
oratext value[2];
const oratext *path = "/mnt/dir1/dir2/file2";
const oratext *tagname = "patch_set_11_1";
size = 1; (byte)
memset((void *)value, 0, 2*sizeof(oratext));
rc = acfsgettag (path, tagname, value, size, 0);
If (rc == ACFS_TAG_FAIL)
/* check errno or GetLastError() to process error returns /*
acfslisttags
Purpose
Lists the tag names assigned to an Oracle ACFS file. For additional information, refer
to "acfsutil tag info (page 16-54)".
Syntax
sb8 acfslisttags(const oratext *path, oratext *list, size_t size, ub4 flags);
Table 18-3 (page 18-12) contains the options available with the acfslisttags
command.
Option Description
path Specifies a pointer to a file or directory path name.
size Specifies the size (bytes) of the memory buffer that holds the
returned Oracle ACFS tag name list.
Description
The acfslisttags library call retrieves all the tag names assigned to an Oracle
ACFS file. acfslisttags returns a list of tag names into the list memory buffer.
Each tag name in the list is terminated with a NULL. If a file has no tag names then the
list is empty. The memory buffer must be large enough to hold all of the tag names
assigned to an Oracle ACFS file.
An application must allocate a buffer and specify a list size large enough to hold all of
the tag names assigned to an Oracle ACFS file. An application can optionally obtain
the list buffer size needed by first calling acfslisttags with a zero value buffer size
and NULL list buffer. The application then checks for nonzero, positive list size return
values to allocate a list buffer and call acfslisttags to retrieve the actual tag name
list.
On success, the return value is a positive byte size of the tag name list or 0 when the
file has no tag names. On failure, the return value is ACFS_TAG_FAIL. For
information about operating system-specific extended error information values that
may be obtained when an ACFS_TAG_FAIL is returned, refer to "Oracle ACFS
Tagging Error Values (page 18-11)".
Examples
Example 18-4 (page 18-14) is an example of the use of the acfslisttags function
call.
Example 18-4 Listing file tags
sb8 listsize;
sb8 listsize2;
const oratext *path = "/mnt/dir1/dir2/file2";
oratext *list;
/* Determine size of buffer to store list */
listsize = acfslisttags (path, NULL, 0, 0);
if (listsize == ACFS_TAG_FAIL)
/* retrieve the error code and return */
if (listsize)
{
list = malloc(listsize)
/* Retrieve list of tag names */
listsize2 = acfslisttags (path, list, listsize, 0);
if (listsize2 == ACFS_TAG_FAIL)
/* check errno or GetLastError() to process error returns */
if (listsize2 > 0)
/* file has a list of tag names to process */
else
/* file has no tag names. */
}
else
/* file has no tag names. */
acfsremovetag
Purpose
Removes the tag name on an Oracle ACFS file.
Syntax
sb8 acfsremovetag(const oratext *path, const oratext *tagname, ub4 flags);
Table 18-5 (page 18-14) contains the options available with the acfsremovetag
command.
Option Description
path Specifies a pointer to a file or directory path name.
Description
The acfsremovetag library call removes a tag name on an Oracle ACFS file. The
return value is ACFS_TAG_SUCCESS or ACFS_TAG_FAIL. For information about
Examples
Example 18-5 (page 18-15) is an example of the use of the acfsremovetag function
call.
Example 18-5 Removing file tags
sb8 rc;
const oratext *path= "/mnt/dir1/dir2/file2";
const oratext *tagname = "patch_set_11_1";
rc = acfsremovetag (path, tagname, 0);
If (rc == ACFS_TAG_FAIL)
/* check errno or GetLastError() to process error returns */
acfssettag
Purpose
Sets the tag name on an Oracle ACFS file. For additional information, refer to "acfsutil
tag set (page 16-55)".
Syntax
sb8 acfssettag(const oratext *path, const oratext *tagname, oratext *value,
size_t size, ub4 flags);
Table 18-6 (page 18-15) contains the options available with the acfssettag
command.
Option Description
path Specifies a pointer to a file or directory path name.
value Specifies the memory buffer to set the Oracle ACFS tag value.
size Specifies the byte size of the Oracle ACFS tag value.
Description
The acfssettag library call sets a tag name on an Oracle ACFS file. The return value
is ACFS_TAG_SUCCESS or ACFS_TAG_FAIL. For information about operating system-
specific extended error information values that may be obtained when an
ACFS_TAG_FAIL is returned, refer to "Oracle ACFS Tagging Error Values
(page 18-11)".
Because Oracle ACFS tag names currently use a fixed value string of 0 (the number
zero character with a byte length of one) the value is the same for all Oracle ACFS tag
name entries.
Examples
Example 18-6 (page 18-16) is an example of the use of the acfssettag function call.
Example 18-6 Setting file tags
sb8 rc;
size_t size;
const oratext *value ;
const oratext *path= "/mnt/dir1/dir2/file2";
const oratext *tagname = "patch_set_11_1";
value = "0"; /* zero */
size = 1; (byte)
rc = acfssettag (path, tagname, (oratext *)value, size, 0);
If (rc == ACFS_TAG_FAIL)
/* check errno and GetLastError() to process error returns */
The italicized variables in the console message syntax correspond to the following:
• I/O failure
The operating system-specific error code, in Hex, seen by Oracle ACFS for a failed
I/O. This may indicate a hardware problem, or it might indicate a failure to
initiate the I/O for some other reason.
• Device
The device involved, usually the ADVM device file, but under some
circumstances it might be a string indicating the device minor number
• Operation name
The kind of operation involved:
user data, metadata, or paging
• Operation type
The type of operation involved:
synch read, synch write, asynch read, or asynch write
• Offset
The disk offset of the I/O, as a decimal number.
• Length of I/O
The length of the I/O in bytes, as decimal number.
– Sys.Dir.
Oracle ACFS-administered directory within the visible namespace
– sys.File
Oracle ACFS-administered file within the visible namespace
– MetaData
Oracle ACFS-administered resources outside of the visible namespace
• Operational context
A higher-level view of what code context was issuing the I/O. This is for use by
Oracle Support Services. For example:
Unknown, Read, Write, Grow, Shrink, Commit, or Recovery
• Snapshot
An indication of whether, if possible to determine, the data involved was from a
Snapshot. For example:
Yes, No, or ?
ASMLIB
ASMLIB is an application programming interface (API) developed by Oracle to
simplify the operating system–to-database interface and to exploit the capabilities of
vendors' storage arrays on Linux-based systems.
Oracle ASM Filter Driver is the recommended replacement for ASMLIB. For
information about Oracle ASM Filter Driver, refer to "Oracle ASM Filter Driver
(page 3-34)".
CSS Cluster
A CSS cluster is the cluster configuration defined by the CSS cluster membership
services. CSS maintains the authoritative membership for an Oracle cluster and
monitors nodes joining and leaving the cluster configuration. There is at most one CSS
cluster defined for a given set of nodes.
disk group
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 are evenly distributed, or
striped, to eliminate hot spots and to provide uniform performance across the disks.
Oracle ASM files may also be optionally mirrored within a disk group. The
performance of disks in a disk group is comparable to the performance of raw devices.
Glossary-1
Direct Attached Storage (DAS)
extent
An extent, also called data extent, is the raw storage used to hold the contents of a file.
Each extent consists of one or more allocation units (AU) on a specific disk.
extent map
An extent map is a list of extent pointers that point to all the data extents of a file. This
is the raw storage for the file. Each extent pointer gives the disk and allocation unit of
the data extent. For reliability, each extent pointer also includes a check byte to ensure
it has not been damaged. This is particularly important when using an in-memory
copy of the extent map to direct file I/O to a particular disk location.
fibre channel
Fibre channel is a set of standards that define the interface between computer systems
and peripherals. The fibre channel interface is a serial bus interface originally designed
to supersede the SCSI standard. However, both the fibre channel and SCSI interfaces
have evolved independently of each other and have benefited from the existence of the
other. Fibre is spelled with re rather than an er to indicate a distinction from terms
such as fiber optics. Both copper and optical fiber are commonly used as a media for
fibre channel.
file system
A file system is a software component providing structured access to disks. File
systems present objects, such as files, to application programs. Access to files is
generally specified with standard API defining operating system calls such as Open/
Close and Read/Write that the application program uses for accessing files. File
systems are usually provided as a component of an operating system, but may be
provided as an independent software component.
file
A file is an object presented to an application program by a file system. A file is
subdivided into blocks by the file system. A file system typically places what appears
to the application program as consecutive blocks, into nonconsecutive locations on
disks. The mapping of the file blocks to the locations on disks is kept in what is known
as an extent map.
Glossary-2
partition
mirroring
In storage systems, mirroring is a means for protecting the integrity of data by storing
copies of data on multiple disks. If a disk fails, then a secondary copy of the data is
available on a second or third disk. Generally, mirroring can be deployed in one of
two ways. In the most common case, as with a RAID storage array, a fixed amount of
physical storage space on a single disk is uniformly copied on multiple disks. Through
software on the storage array, the physically mirrored space on multiple devices is
presented to the host as a single disk. Another approach to mirroring is to copy fixed
segments of a file onto multiple disks. Oracle ASM uses the second approach for
maximum flexibility.
partition
Operating systems typically provide a means for splitting a disk into sections called
partitions. To an application, a partition appears as an independent disk, even though
that is not the case. The operating system provides a command for managing the size
and locations of partitions on a disk. This command writes a partition map onto the
disk in an area that is not visible to the application program.
Glossary-3
Redundant Array of Inexpensive Disks (RAID)
striping
In storage systems, striping is a means for spreading data across multiple disks as
opposed to storing the data on a single disk. Striping is usually done to improve
performance. Generally, striping can be deployed in one of two ways. In the most
common case, as with a RAID storage array, a fixed amount of physical storage space
that could have been stored on a single disk is uniformly striped across multiple disks.
Through software on the storage array, the physically striped space on multiple
devices is presented to the host as a single disk. Another approach to striping is to
stripe fixed segments of a file across multiple disks connected to the host. Oracle ASM
uses the second approach for maximum performance.
volume
In the storage realm, the meaning of volume has many related definitions. Volumes
are often thought of as the virtual entity represented as a Logical Unit Number
(LUN). Volumes often are presented as an aggregation of pieces from several disks. A
volume is managed by a software component called a volume manager.
volume manager
A volume manager is a software component that manages the mapping of the
collection of the pieces of the disks into a volume.
Glossary-4
Index
Index-1
acfsutil sec realm add command, 16-88 afd_dsset command (continued)
acfsutil sec realm audit disable command, 16-92 ASMCMD utility, 10-31
acfsutil sec realm audit enable command, 16-93 afd_filter command
acfsutil sec realm audit info command, 16-95 ASMCMD utility, 10-32
acfsutil sec realm clone command, 16-95 afd_label command
acfsutil sec realm create command, 16-97 ASMCMD utility, 10-32
acfsutil sec realm delete command, 16-98 afd_lsdsk command
acfsutil sec realm destroy command, 16-99 ASMCMD utility, 10-33
afd_scan command
acfsutil sec rule clone command, 16-99
ASMCMD utility, 10-33
acfsutil sec rule create command, 16-100
afd_state command
acfsutil sec rule destroy command, 16-102
ASMCMD utility, 10-34
acfsutil sec rule edit command, 16-102 afd_unlabel command
acfsutil sec ruleset clone command, 16-103 ASMCMD utility, 10-34
acfsutil sec ruleset create command, 16-104 AIX
acfsutil sec ruleset destroy command, 16-105 Oracle ACFS command-line tools, 16-37
acfsutil sec ruleset edit command, 16-106 alias file names
acfsutil sec save command, 16-106 Oracle ASM, 5-6
acfsutil size command, 16-132 aliases
acfsutil snap convert command, 16-134 adding for an Oracle ASM file name, 5-14
acfsutil snap create command, 16-135 dropping from a disk group, 5-14
acfsutil snap delete command, 16-137 ALL command rule, 16-89
acfsutil snap info command, 16-138 allocation units
acfsutil tag info command, 16-54 different sizes enabled by compatibility attributes,
acfsutil tag set command, 16-55 4-47
acfsutil tag unset command, 16-57 Oracle ASM, 1-7
acfsutil tune command, 16-139 size for disk groups, 4-3
active session history sampling ALTER DISKGROUP command, 4-15
Oracle Automatic Storage Management, 3-28 altering disk groups
adding aliases replacing disks, 4-18
Oracle ASM, 5-14 amdu_extract command
adding disks to a disk group, 1-12 ASMCMD utility, 10-36
adding disks to a disk group with Oracle Enterprise APPENDFILE command rule, 16-89
Manager, 7-8 archive log files
adding disks to an Oracle ASM disk group creating in Oracle ASM, 17-4
Oracle ASM Configuration Assistant, 9-15 ASM
adding objects to security realms See Oracle Automatic Storage Management
Oracle ACFS, 16-9 ASM SPFILE in a disk group
adding security administrators enabled by compatibility attributes, 4-47
Oracle ACFS file systems, 16-7 ASM_DISKGROUPS initialization parameter
adding templates to a disk group, 5-21 Oracle ASM instance, 3-8
administering ASM_DISKSTRING initialization parameter
disk groups, 4-1 discovering disks, 1-11
Oracle ACFS, 11-13 Oracle ASM instance, 3-9
advmutil canonical command, 16-140 ASM_POWER_LIMIT initialization parameter
advmutil dismount command, 16-50 Oracle ASM instance, 3-10
advmutil list command, 16-52 rebalancing process, 3-10
advmutil mount command, 16-52 values enabled by compatibility attributes, 4-47
advmutil tune command, 16-141 ASM_PREFERRED_READ_FAILURE_GROUPS
initialization parameter
advmutil volinfo command, 16-142
Oracle ASM instance, 3-11
afd_configure command
asmadmin group, 3-48
ASMCMD utility, 10-29
ASMCA
afd_deconfigure command
See Oracle ASM Configuration Assistant
ASMCMD utility, 10-30
ASMCMD utility
afd_dsget command
about, 10-1
ASMCMD utility, 10-31
afd_configure command, 10-29
afd_dsset command
afd_deconfigure command, 10-30
Index-2
ASMCMD utility (continued) ASMCMD utility (continued)
afd_dsget command, 10-31 mkusr command, 10-79
afd_dsset command, 10-31 mount command, 10-63
afd_filter command, 10-32 offline command, 10-63
afd_label command, 10-32 online command, 10-64
afd_lsdsk command, 10-33 orapwusr command, 10-16
afd_scan command, 10-33 passwd command, 10-79
afd_state command, 10-34 preparing to run, 10-6
afd_unlabel command, 10-34 pwcopy command, 10-17
aliases, and, 10-4 pwcreate command, 10-18
amdu_extract command, 10-36 pwd command, 10-44
cd command, 10-36 pwdelete command, 10-18
chdg command, 10-47 pwget command, 10-19
chgrp command, 10-72 pwmove command, 10-20
chkdg command, 10-49 pwset command, 10-21
chmod command, 10-73 rebal command, 10-65
chown command, 10-75 remap command, 10-66
chtmpl command, 10-68 rm command, 10-45
command-line utility, 10-1, 15-1 rmalias command, 10-46
cp command, 10-37 rmgrp command, 10-80
directories, and, 10-3 rmtmpl command, 10-71
disk group management commands, 10-46 rmusr command, 10-81
displaying the version number, 10-9 rpusr command, 10-81
dropdg command, 10-50 running in a database home, 10-7
dsget command, 10-12 running in an Oracle grid infrastructure home,
dsset command, 10-13 10-6
du command, 10-38 running in interactive mode, 10-7
exit command, 10-8 running in noninteractive mode, 10-9
file access control commands, 10-72 running without any options, 10-8
file management commands, 10-35 setattr command, 10-67
find command, 10-39 showclustermode command, 10-21
groups command, 10-75 showclusterstate command, 10-22
grpmod command, 10-76 showpatches command, 10-22
help command, 10-11 showversion command, 10-22
including directory in prompt, 10-9 shutdown command, 10-23
instance management commands, 10-11, 10-29 spbackup command, 10-24
iostat command, 10-51 spcopy command, 10-25
ls command, 10-40 specifying the verbose mode, 10-9
lsattr command, 10-53 spget command, 10-26
lsct command, 10-14 spmove command, 10-27
lsdg command, 10-54 spset command, 10-28
lsdsk command, 10-56 startup command, 10-28
lsgrp command, 10-77 syntax for starting in interactive mode, 10-7
lsod command, 10-58 SYSASM privilege, 10-8
lsof command, 10-42 system-generated file names, and, 10-2
lsop command, 10-15 template management commands, 10-68
lspwusr command, 10-15 type of connection, 10-8
lstmpl command, 10-69 umount command, 10-67
lsusr command, 10-77 using quotes for wildcards in noninteractive
md_backup command, 10-59 mode, 10-9
md_restore command, 10-60 using with absolute and relative paths, 10-4
mkalias command, 10-43 using with wildcard characters, 10-5
mkdg command, 10-61 volcreate command, 15-1
mkdir command, 10-44 voldelete command, 15-4
mkgrp command, 10-78 voldisable command, 15-4
mktmpl command, 10-70 volenable command, 15-5
Index-3
ASMCMD utility (continued) CELL.SPARSE_DG disk group attribute, 4-3
volinfo command, 15-6 changing tag names
volresize command, 15-7 Oracle ACFS, 16-13
volset command, 15-8 chdg command
volstat command, 15-9 ASMCMD utility, 10-47
volume management commands, 15-1 chgrp command
asmdba group, 3-48 ASMCMD utility, 10-72
ASMFD CHGRP command rule, 16-89
migrating, 3-36 chkdg command
asmoper group, 3-49 ASMCMD utility, 10-49
ASMSNMP user chmod command
for monitoring the Oracle ASM instance, 3-47 ASMCMD utility, 10-73
Oracle ASM, 9-2 CHMOD command rule, 16-89
Oracle ASM in Oracle Enterprise Manager, 7-4 chown command
attributes ASMCMD utility, 10-75
disk group compatibility, 4-42 CHOWN command rule, 16-89
disk groups, 4-2 chtmpl command
DISK_REPAIR_TIME, 4-35 ASMCMD utility, 10-68
for disk groups, 4-9 command rules
in templates for Oracle Automatic Storage ALL, 16-89
Management, 5-20 APPENDFILE, 16-89
list of for disk groups, 4-2 CHGRP, 16-89
setting for disk groups, 4-2 CHMOD, 16-89
viewing for disk groups, 4-2 CHOWN, 16-89
AU_SIZE disk group attribute CREATEFILE, 16-89
different sizes enabled by compatibility attributes, DELETEFILE, 16-89
4-47 EXTEND, 16-89
auditing IMMUTABLE, 16-89
Oracle ACFS audit trail file, 11-26 LINKFILE, 16-89
Oracle ACFS evaluation result events, 11-30 MKDIR, 16-89
Oracle ACFS file access events, 11-28 MMAPREAD, 16-89
Oracle ACFS privilege use events, 11-29 MMAPWRITE, 16-89
Oracle ACFS security and encryption, 11-24 OPENFILE, 16-89
authentication Oracle ACFS security, 16-89
operating system with Oracle ASM, 3-51 OVERWRITE, 16-89
Oracle ASM, 3-46 READ, 16-89
password file with Oracle ASM, 3-52 READDIR, 16-89
Automatic Storage Management RENAME, 16-89
home page on Oracle Enterprise Manager, 13-1 RMDIR, 16-89
SYMLINK, 16-89
B TRUNCATE, 16-89
WRITE, 16-89
backing up Oracle ASM files command utilities
Oracle Enterprise Manager, 7-27 Oracle ACFS, 16-115
backup and restore Oracle ACFS for auditing, 16-70
Oracle ACFS, 11-12 compatibility
bad block recovery in Oracle ASM disks disk groups, 4-41, 7-8
Oracle Enterprise Manager, 7-27 Oracle ASM and database instances, 3-1
reverting disk groups to previous settings, 4-46
C COMPATIBLE
database initialization parameter, 4-42
capacity COMPATIBLE.ADVM disk group attribute
managing in disk groups, 4-27 default value, 4-43
cd command COMPATIBLE.ASM disk group attribute
ASMCMD utility, 10-36 default value, 4-42
CELL.SMART_SCAN_CAPABLE disk group attribute, COMPATIBLE.RDBMS disk group attribute
4-3 default value, 4-43
Index-4
components D
Oracle ASM, 1-2
concepts data files
Oracle ASM, 1-1 moving between disk groups, 5-10
configuration page data files with alias names
Oracle ASM on Oracle Enterprise Manager, 7-3 Oracle ASM, 5-7
configuring an Oracle ASM instance database files
Oracle ASM Configuration Assistant, 9-10 Oracle ACFS on Oracle Exadata, 11-6
Oracle Enterprise Manager, 7-3 DB_CACHE_SIZE initialization parameter
configuring parameters for an Oracle ASM instance Oracle ASM instance, 3-11
Oracle ASM Configuration Assistant, 9-12 default configuration
content type of a disk group Oracle ADVM, 15-3, 18-3
enabled by compatibility attributes, 4-47 DELETEFILE command rule, 16-89
CONTENT.CHECK disk group attribute, 4-4 deleting Oracle ASM instances
CONTENT.TYPE disk group attribute, 4-4 Oracle ASM Configuration Assistant, 9-13
control file deregistering file systems
creating in Oracle ASM, 17-3 Oracle ACFS, 16-20
converting snapshots determining the volume device name
enabled by compatibility attributes, 4-48 Oracle ACFS, 16-2
converting to Oracle Flex ASM diagnostic directory
Oracle ASM Configuration Assistant, 3-31, 9-10 Oracle ASM instance, 3-12
cp command DIAGNOSTIC_DEST initialization parameter
ASMCMD utility, 10-37 Oracle ASM instance, 3-12
CREATEFILE command rule, 16-89 directories
creating a database home ACFS for snapshots, 11-10, 16-135
with Oracle ASMCA, 14-7 creating disk group, 5-15
creating a database using Oracle ASM, 17-1 dropping disk group, 5-16
creating a new directory managing disk group, 5-15
Oracle ASM, 5-15 Oracle ASM, 5-15
creating an Oracle ACFS file system renaming disk group, 5-16
Oracle ASM Configuration Assistant, 14-10 disabling a volume
creating an Oracle ADVM volume Oracle ACFS, 16-21
Oracle ASM Configuration Assistant, 14-9 disk discovery
creating an Oracle ASM disk group about, 4-25
Oracle ASM Configuration Assistant, 9-13 improving time, 4-27
creating disk groups, 4-7 in Oracle ASM, 4-25
creating disk groups and adding disks, 4-8 Oracle ASM, 1-11
creating disk groups and attributes, 4-8 rules, 4-26
creating disk groups and failure group types, 4-8 disk failures
creating disk groups and failure groups, 4-8 in Oracle Automatic Storage Management, 4-32
creating disk groups and redundancy level, 4-7 disk group compatibility
creating disk groups in a new installation, 4-10 configuring with Oracle Enterprise Manager, 7-16
creating files in the database considerations for replicated environments, 4-49
Oracle ASM, 5-8 considerations in a replicated environments, 4-49
creating files using a default file location Oracle ACFS features enabled by settings, 4-48
Oracle ASM, 5-8 Oracle ASM features enabled by settings, 4-47
creating from existing snapshots setting, 4-43
enabled by compatibility attributes, 4-48 setting in Oracle Enterprise Manager, 7-8
creating Oracle ACFS file systems, 16-3 setting with ALTER DISKGROUP, 4-45
creating security realms setting with CREATE DISKGROUP, 4-44
Oracle ACFS, 16-8 valid combinations, 4-44
creating security rule sets viewing compatibility settings, 4-45
Oracle ACFS, 16-9 disk group management commands
creating security rules ASMCMD utility, 10-46
Oracle ACFS, 16-9 disk group properties
configuring with Oracle Enterprise Manager, 7-15
disk group repair time
Index-5
disk group repair time (continued) disk groups (continued)
configuring with Oracle Enterprise Manager, 7-17 moving data files between, 5-10
disk group smart scan compatibility names, 4-7
configuring with Oracle Enterprise Manager, 7-17 Oracle ASM, 1-6
disk groups Oracle Cluster Registry (OCR), and, 4-13
access control, 4-50 performance and scalability, 4-39
ACCESS_CONTROL.ENABLED attribute, 4-52 performance characteristics when grouping disks,
ACCESS_CONTROL.UMASK attribute, 4-52 4-39
adding disks to with Oracle ASM Configuration preferred read, 3-11
Assistant, 9-15 quorum failure groups, 4-13
adding disks to with Oracle Enterprise Manager, rebalancing, 1-12
7-8 redundancy, 4-30
adding templates to, 5-21 renamedg, 4-58
administering, 4-1 renaming, 4-58
allocation unit size, 4-3 renaming disks, 4-18
altering membership of, 4-15 replacing disks, 4-18
attributes, 4-2, 4-9 resizing disks in, 4-21
checking internal consistency, 4-56 reverting compatibility, 4-46
compatibility, 4-41 scrubbing, 4-24
compatibility attributes, 4-42 sector size, 4-11
creating, 4-7 setting attributes, 4-2
creating and adding disks, 4-8 storage limits, 4-39
creating and attributes, 4-8 tracking the replication status, 4-6
creating and failure group types, 4-8 undropping disks in, 4-21
creating and failure groups, 4-8 validations for sector size, 4-12
creating and redundancy level, 4-7 viewing attributes, 4-2
creating for a new installation, 4-10 voting files, and, 4-13
creating Oracle Enterprise Manager, 7-6 when to use external, normal, or high
creating with Oracle ASM Configuration redundancy, 4-33
Assistant, 9-13 disk partitions
creating with SQL*Plus, 4-7 storage resources, 2-1
determining the number of, 4-39 disk regions
directories, 5-15 intelligent data placement, 4-20
discovering disks, 4-25 Oracle Automatic Storage Management, 4-20
dismounting, 1-11 rebalance operations, and, 4-21
dismounting with Oracle Enterprise Manager, DISK_REPAIR_TIME disk group attribute
7-14 fast disk resync, 4-35
dropping, 4-57 disks
dropping disks from, 4-19 adding to a disk group, 1-12
dropping disks with Oracle Enterprise Manager, discovering, 1-11, 4-25
7-12 dropping from a disk group, 1-12
dropping in Oracle Enterprise Manager, 7-13 Oracle ASM, 1-7
even read, 4-37 regions, 4-20
failure groups, 4-30, 4-31 dismounting disk groups, 1-11
list of attributes, 4-2 dismounting file systems
managing a shared password file, 3-53 Oracle ACFS, 16-20
managing capacity in, 4-27 dismounting or shutting down
manually rebalancing, 4-21 Oracle ACFS, 11-19
mirroring, 4-30 displaying encryption information
monitoring disk space usage in Oracle Enterprise Oracle ACFS, 16-12
Manager, 7-14 displaying security information
mounting, 1-11 Oracle ACFS, 16-10
mounting and dismounting, 4-55 displaying tagging information
mounting at startup, 3-25 Oracle ACFS, 16-13
mounting with force, 4-56 driver commands
mounting with Oracle Enterprise Manager, 7-14 acfsdriverstate, 18-6
acfsload, 18-5
Index-6
driver commands (continued) Extended Attributes (continued)
Oracle ACFS, 18-5 requirements for tagging, 11-33
driver model extents
Oracle ACFS, 11-9 Oracle ASM, 1-7, 1-8
drivers resource variable size, 1-7, 1-8, 4-29, 4-47
Oracle ACFS, 18-4 external tables
dropdg command and Oracle ACFS, 11-13
ASMCMD utility, 10-50
dropping a directory
Oracle ASM, 5-16
F
dropping aliases FAILGROUP_REPAIR_TIME disk group attribute
Oracle ASM, 5-14 fast disk resync, 4-36
dropping aliases from a disk group, 5-14 failure groups
dropping disk groups, 4-57 about, 4-31
dropping disks from a disk group, 1-12, 4-19 disk failures, 4-32
dropping disks from disk groups in Oracle Enterprise guidelines, 4-32
Manager, 7-12 how many to create, 4-33
dropping files from a disk group minimum recommended, 4-32
Oracle ASM, 5-14 mirroring, and, 4-30
dropping Oracle ASM templates, 5-22 Oracle ASM, 1-6
dsget command preferred read, 4-37
ASMCMD utility, 10-12 quorum type, 4-13
dsset command
simultaneous failure, 4-33
ASMCMD utility, 10-13 when to use external, normal, or high
du command
redundancy, 4-33
ASMCMD utility, 10-38 fast mirror resync
dynamic views, 6-1, 12-1 enabled by compatibility attributes, 4-47
managing with Oracle Enterprise Manager, 7-10,
E 7-11
file access and security
enabling encryption Oracle ACFS, 11-13
Oracle ACFS, 16-12 file access control
encrypting file systems enabled by compatibility attributes, 4-47
Oracle ACFS, 16-11 enabling with Oracle Enterprise Manager, 7-17
encrypting secure file systems
managing with SQL statements, 4-52
Oracle ACFS, 16-8
Oracle Automatic Storage Management, 4-50
encryption
restricting access to files, 4-50
configuring with Oracle ASMCA, 14-5
setting up for files in a disk group, 4-51
enabled by compatibility attributes, 4-48
setting with SQL statements, 4-51
Oracle ACFS, 11-22
file management commands
Oracle ACFS and snapshots, 11-11
ASMCMD utility, 10-35
encryption keys
file names
Oracle ACFS, 11-22
Oracle ASM, 5-3
Enterprise Manager
See Oracle Enterprise Manager Oracle Automatic Storage Management, 5-3
Enterprise Manager Cloud Control file names in SQL statements
See Oracle Enterprise Manager Oracle ASM, 5-10
error handling file names with template form
Oracle ACFS, 18-2 Oracle ASM, 5-7
even read file templates
disk groups, 4-37 understanding, 1-11
distributing data reads, 4-37 file types supported
Exadata storage Oracle ASM, 5-1
enabled by compatibility attributes, 4-47 files
exit command Oracle ASM, 1-7
ASMCMD utility, 10-8 templates, 1-11
EXTEND command rule, 16-89 filter driver
Extended Attributes Oracle ASM, 3-35
Index-7
find command initialization parameters (continued)
ASMCMD utility, 10-39 Oracle ASM instance, 3-8
fsck command Oracle Automatic Storage Management, 3-2
AIX, 16-37 setting for Oracle ASM instance, 3-6
Linux environments, 16-23 initializing encryption on file systems
Solaris, 16-30 Oracle ACFS, 16-11
fully qualified file names initializing security
Oracle ASM, 5-4 Oracle ACFS file systems, 16-6
instance management commands
ASMCMD utility, 10-11, 10-29
G INSTANCE_TYPE initialization parameter
greater than 2 TB Oracle ASM disks Oracle ASM instance, 3-12
enabled by compatibility attributes, 4-48 instances
grid infrastructure configuration Oracle ASM, 1-3
Oracle ACFS, 11-14 intelligent data placement
grid infrastructure installation disk regions, 4-20
Oracle ACFS, 11-14 enabled by compatibility attributes, 4-47
grid plug and play (GPnP) rebalance operations, and, 4-21
retrieving the location of an ASM SPFILE, 10-26 iostat command
setting the location of the ASM SPFILE, 10-28 ASMCMD utility, 10-51
groups
OSASM, 3-47, 3-50–3-52
groups command
K
ASMCMD utility, 10-75 keys
grpmod command encryption, 11-22
ASMCMD utility, 10-76
L
H
LARGE_POOL_SIZE initialization parameter
help command Oracle ASM instance, 3-12
ASMCMD utility, 10-11 limits
High Availability NFS for Oracle Grid Home Oracle ACFS, 18-1
notes, 11-37 Oracle ADVM, 18-3
Oracle ACFS, 11-37 LINKFILE command rule, 16-89
setting up for an Oracle ACFS file system, 11-37 Linux environments
Oracle ACFS command-line tools, 16-22
logical unit number
I storage resources, 2-1
I/O failure console messages logical volumes
Oracle ACFS, 18-16 storage resources, 2-1
IDP.BOUNDARY disk group attribute, 4-5 ls command
IDP.TYPE disk group attribute, 4-5 ASMCMD utility, 10-40
IMMUTABLE command rule, 16-89 lsattr command
incomplete file name form ASMCMD utility, 10-53
Oracle ASM, 5-8 lsct command
incomplete file name template form ASMCMD utility, 10-14
Oracle ASM, 5-8 lsdg command
individual file system resource ASMCMD utility, 10-54
Oracle ACFS, 18-4 lsdsk command
initialization parameter files ASMCMD utility, 10-56
backing up, copying, and moving, 3-4 lsgrp command
creating an SPFILE in a disk group, 3-5 ASMCMD utility, 10-77
Oracle ASM, 3-3 lsod command
search order for Oracle ASM, 3-3 ASMCMD utility, 10-58
initialization parameters lsof command
COMPATIBLE, 4-42 ASMCMD utility, 10-42
lsop command
database for use with Oracle ASM instance, 3-14
ASMCMD utility, 10-15
Index-8
lspwusr command mkfs command (continued)
ASMCMD utility, 10-15 AIX, 16-39
lstmpl command Linux environments, 16-24
ASMCMD utility, 10-69 Solaris, 16-31
lsusr command mkgrp command
ASMCMD utility, 10-77 ASMCMD utility, 10-78
mktmpl command
ASMCMD utility, 10-70
M
mkusr command
managing a shared password file in a disk group ASMCMD utility, 10-79
enabled by compatibility attributes, 4-48 MMAPREAD command rule, 16-89
managing aliases MMAPWRITE command rule, 16-89
Oracle ASM, 5-13 modifying a file
managing capacity in disk groups, 4-27 disk regions, 4-21
managing file access control monitoring Oracle ASM performance
Oracle Enterprise Manager, 7-21 Oracle Enterprise Manager, 7-26
managing file access control for disk groups mount command
Oracle Enterprise Manager, 7-21 AIX, 16-41
managing Oracle ASM files ASMCMD utility, 10-63
Oracle Enterprise Manager, 7-22 Linux environments, 16-26
managing Oracle ASM templates Solaris, 16-33
Oracle Enterprise Manager, 7-23 mount model
managing Oracle ASM templates page Oracle ACFS, 11-5
Oracle Enterprise Manager, 7-23 mount registry
managing templates Oracle ACFS, 11-9
Oracle Automatic Storage Management, 5-19 mounting and dismounting disk groups, 4-55
managing users mounting disk groups
Oracle ASM in Oracle Enterprise Manager, 7-4 using force, 4-56
md_backup command mounting Oracle ACFS file systems, 16-4
ASMCMD utility, 10-59 moving data between disk groups
md_restore command Oracle ASM, 8-9
ASMCMD utility, 10-60 multipathing
memory management with Oracle ASM, 2-3
Oracle Automatic Storage Management, 3-7 multiple file creation form
migrating a database Oracle ASM, 5-4
to Oracle ASM, 3-55
migrating data
Oracle ASM with Recovery Manager, 8-1 N
migrating data to alternative storage namespace
Oracle ASM, 8-9 Oracle ACFS, 11-5
migrating data to Oracle ASM naming
with Recovery Manager, 8-6 disk groups, 4-7
migrating to Oracle ASM network file systems
Oracle Enterprise Manager, 7-28 storage resources, 2-2
mirror NFS
fast resync, 4-34, 7-10, 7-11 and Oracle ACFS, 18-3
mirroring NOWAIT keyword
failure groups, and, 4-30 in REBALANCE clause, 4-15
Oracle ASM, 1-6
with failure groups, 1-6
mkalias command O
ASMCMD utility, 10-43 OCR in disk groups
mkdg command
enabled by compatibility attributes, 4-47
ASMCMD utility, 10-61 offline command
mkdir command
ASMCMD utility, 10-63
ASMCMD utility, 10-44 online command
MKDIR command rule, 16-89 ASMCMD utility, 10-64
mkfs command open files
Index-9
open files (continued) Oracle ASM Dynamic Volume Manager (continued)
and chgrp command, 10-73 overview, 11-1
and chmod command, 10-74 Oracle ASM file access control commands
and chown command, 10-75 ASMCMD utility, 10-72
OPENFILE command rule, 16-89 Oracle ASM Filter Driver
operating system authentication about, 3-35
for Oracle Automatic Storage Management, 3-51 and Oracle ASMLIB, 3-35
Oracle ASM, 3-51 configuring, 3-36
SYSASM, 3-51 deconfiguring, 3-44
ora.diskgroup.volume.acfs file system resource determining the state, 3-41
Oracle ACFS, 11-16 managing labels, 3-43
ora.drivers.acfs drivers resource manged by Oracle Enterprise Manager, 7-24
Oracle ACFS, 11-15 migrating, 3-36, 3-39
Oracle ACFS updating AFD_DISKSTRING, 3-42
See Oracle Automatic Storage Management Cluster updating ASM_DISKSTRING, 3-42
File System Oracle ASM performance
Oracle ACFS security Oracle Enterprise Manager, 7-26
command rules, 16-89 Oracle ASM preferred read
Oracle ADVM failure groups, 4-37
See Oracle Automatic Storage Management Oracle ASM proxy instance
Dynamic Volume Manager
Oracle ACFS and Oracle ADVM, 3-17
Oracle ADVM volume devices
Oracle Automatic Storage Management
creating, 16-2
accessing files with the XML DB virtual folder,
Oracle ASM
5-16
See Oracle Automatic Storage Management
Oracle ASM Configuration Assistant active session history sampling, 3-28
about, 9-1, 14-1 adding aliases, 5-14
addDisk command, 9-15 administering, 3-1
commands, 9-9, 14-9 administering Oracle Flex ASM, 3-19
configureASM command, 9-10 alias file names, 5-6
configureParameter command, 9-12 aliases, 5-13
configuring an Oracle ACFS, 14-3 and Oracle Enterprise Manager, 7-1
ASM_POWER_LIMIT initialization parameter,
configuring an Oracle ADVM volume, 14-2
3-10
configuring disk groups, 9-5
ASM_PREFERRED_READ_FAILURE_GROUPS
configuring Oracle ACFS encryption, 14-5
initialization parameter, 3-11
configuring Oracle ACFS for a database home,
ASMSNMP, 9-2
14-7
ASMSNMP user in Oracle Enterprise Manager,
configuring Oracle ACFS security, 14-5
7-4
converting to Oracle Flex ASM, 3-31
authentication, 3-46
convertToFlexASM command, 9-10
backing up initialization parameter files, 3-4
createACFS command, 14-10
command-line utility, 10-1, 15-1
createDiskGroup command, 9-13
components, 1-2
createVolume command, 14-9
concepts, 1-1
creating a database home on Oracle ACFS, 14-7
configuring initialization parameters, 3-2
creating an Oracle ACFS file system, 14-4
connecting to an instance, 3-22
creating an Oracle ADVM volume, 14-2
converting to Oracle Flex ASM, 3-31
creating an Oracle ASM instance, 9-2
copying initialization parameter files, 3-4
creating disk groups, 9-6
creating a database example, 17-1
deleteASM command, 9-13
creating a database in, 17-1
mounting or dismounting an Oracle ACFS, 14-4
creating a new directory, 5-15
running in command-line mode, 9-8
creating archive log files in, 17-4
running in silent mode, 9-8
creating control file example, 17-3, 17-4
starting, 9-1
creating control file in, 17-3
updating Oracle ASM instance parameters, 9-3
creating files in the database, 5-8
upgradeASM command, 9-12
creating files using a default file location, 5-8
upgrading an Oracle ASM instance, 9-4
creating redo logs in, 17-2
Oracle ASM Dynamic Volume Manager
Index-10
Oracle Automatic Storage Management (continued) Oracle Automatic Storage Management (continued)
creating SPFILE in a disk group, 3-5 one operating system group for all privileges,
creating tablespaces in, 17-2 3-48
data files with alias names, 5-7 operating system authentication for, 3-51
database initialization parameters, 3-14 Oracle Database file mapping, 5-11
DB_CACHE_SIZE initialization parameter, 3-11 Oracle Flex ASM, 3-16
diagnostic directory, 3-12 ORACLE_HOME, 3-22
DIAGNOSTIC_DEST initialization parameter, ORACLE_SID, 3-22
3-12 overview, 1-1
directories, 5-15 password file authentication for, 3-52
discovering disks, 1-11, 4-25 preparing storage resources, 2-2
disk discovery, 4-25 privileges, 3-47
disk discovery string, 1-11 PROCESSES initialization parameter, 3-13
disk failures in, 4-32 recommendations for storage preparation, 2-4
disk groups, 1-6 Recovery Manager, and, 8-1, 8-2
disk partitions for storage resources, 2-1 referencing files in the database, 5-8
disk regions, 4-20 REMOTE_LOGIN_PASSWORDFILE initialization
disks, 1-7 parameter, 3-13
dropping a directory, 5-16 renaming a directory, 5-16
dropping aliases, 5-14 renaming aliases, 5-14
dropping files, 5-14 rolling patches, 3-30
extents, 1-8 rolling upgrades, 3-29
failure groups, 4-31 search order for initialization parameter files, 3-3
failure groups recommendations, 4-32 separate operating system groups for privileges,
file access control, 4-50 3-48
file names, 5-3 setting initialization parameters, 3-6
file names with template form, 5-7 setting up Oracle Flex ASM, 3-18
file templates, 1-11 SHARED_POOL_SIZE initialization parameter,
file types supported, 5-1 3-14
files, 1-7 shutting down an instance, 3-25
fully qualified file names, 5-4 shutting down an instance with OCR or voting
home page on Oracle Enterprise Manager, 7-2 files in a disk group, 3-26
shutting down an instance with Oracle ACFS,
incomplete file name form, 5-8
3-27
incomplete file name template form, 5-8
single file creation form, 5-4
initialization parameter files, 3-3
starting up an instance, 3-22
initialization parameters, 3-8
starting up an instance with incorrect SPFILE
INSTANCE_TYPE initialization parameter, 3-12
path, 3-24
instances, 1-3
storage considerations, 2-1
integration with Oracle ACFS, 11-12
storage limits, 4-39
LARGE_POOL_SIZE initialization parameter,
storage resources, 2-1
3-12
striping, 1-9
logical volumes for storage resources, 2-1
upgrading an instance with Oracle ASM
LUNs for storage resources, 2-1
Configuration Assistant, 9-4
managing aliases, 5-13
users page in Oracle Enterprise Manager, 7-4
memory management, 3-7
using file names in SQL statements, 5-10
migrating a database to, 3-55
views, 6-1
migrating data, 8-1, 8-2
XML DB virtual folder, 5-16
migrating data to, 8-6 Oracle Automatic Storage Management Cluster File
migrating data to alternative storage, 8-9 System
mirroring and failure groups, 1-6 about, 11-4
moving data between disk groups, 8-9 accelerator volume, 16-26
moving initialization parameter files, 3-4 adding objects to security realms, 16-9
multipathing, 2-3 adding security administrators, 16-7
multiple file creation form, 5-4 administering, 11-13
network file systems for storage resources, 2-2 and external tables on Windows, 11-13
Index-11
Oracle Automatic Storage Management Cluster File System (continued)
Oracle Automatic Storage Management Cluster File System (continued)
and NFS, 18-3 individual file system resource, 18-4
and Oracle Enterprise Manager, 13-1 initializing encryption on file systems, 16-11
and Oracle Restart, 18-5 initializing security on file systems, 16-6
auditing files and Oracle Database homes, 11-8 integration with Oracle ASM, 11-12
auditing security and encryption, 11-24 limit on the number of snapshots, 18-2
backup and restore, 11-12 limits, 18-1
basic steps to access a file system, 16-4 mount model, 11-5
basic steps to create a file system, 16-2 mount point and Oracle Database homes, 11-7
basic steps to deregister, dismount, and disable a mount registry, 11-9
volume and file system, 16-20 mounting file systems, 16-4
basic steps to manage snapshots, 16-5 namespace, 11-5
basic steps to manage with command-line tools, ora.diskgroup.volume.acfs file system resource,
16-1 11-16
basic steps to remove a file system and volume, ora.drivers.acfs drivers resource, 11-15
16-21 Oracle ADVM, 11-39
changing tag names, 16-13 Oracle ADVM volume devices, 16-2
command-line tools, 16-1 Oracle ASM proxy instance, 3-17
creating file systems, 16-3 Oracle Clusterware resource types, 11-15
creating security realms, 16-8 Oracle Database homes, and, 11-7
creating security rule sets, 16-9 overview, 1-2, 11-1
creating security rules, 16-9 plug-in API, 18-7
creating snapshots with Oracle Enterprise plugins, 11-36
Manager, 13-6 preparing security on file systems, 16-7
creating volumes and file systems with Oracle read-only and read-write snapshots, 11-10
Enterprise Manager, 13-2 read-write snapshots, 11-10
database files with Oracle Exadata, 11-6 registering file systems, 16-3
deregistering file systems, 16-20 registry resource, 18-4
determining the Oracle ADVM volume device
removing tag names, 16-13
name, 16-2
replicating file systems, 16-14
disabling a volume, 16-21
replication, 11-30
disk group compatibility, 16-2
replication with auditing, encryption, and
dismount or shut down, 11-19 security, 11-35
dismounting file systems, 16-20 restrictions for storage resource, 2-2
displaying encryption information, 16-12 saving security information, 16-10
displaying security information, 16-10 securing file systems, 16-6
displaying tagging information, 16-13 security, 11-19
driver commands, 18-5 setting encryption parameters, 16-11
driver model, 11-9 snapshots, 16-135, 16-137, 16-138
drivers resource, 18-4 space usage, 18-2
enabling encryption, 16-12 specifying tag names for file systems, 16-13
encrypting file systems, 16-11 supported file types, 11-1
encrypting secure file systems, 16-8 system-created security realms, 16-87
encryption, 11-22 tagging, 11-33
encryption keys, 11-22 tagging API, 18-10
error handling, 18-2 tagging file systems, 16-12
file access and security, 11-13 viewing and modifying snapshots with Oracle
file mapping, 12-7 Enterprise Manager, 13-6
file systems on other nodes, 16-4 viewing and modifying volumes and file systems
grid infrastructure configuration, 11-14 with Oracle Enterprise Manager, 13-4
grid infrastructure installation, 11-14 views, 12-1
High Availability NFS for Oracle Grid Home, Oracle Automatic Storage Management Dynamic
11-37 Volume Manager
I/O failure console messages, 18-16 accelerator volume, 16-26
important considerations with database files, 11-5 default configuration, 15-3, 18-3
important general considerations, 11-3 limits, 18-3
Index-12
Oracle Automatic Storage Management Dynamic Volume ManagerOracle Flex ASM (continued)
(continued)
Oracle ACFS, 11-39 direct Oracle ASM clients, 3-17
overview, 11-9, 11-39 INSTANCE_TYPE initialization parameter, 3-18
Oracle Cluster Registry (OCR) local Oracle ASM clients, 3-17
in disk groups, 4-13 multiple Oracle ASM instances, 3-16
Oracle Clusterware resource types Oracle ASM proxy instance, 3-17
Kernel Services Driver (OKS), 11-15 overview, 3-16
Oracle ACFS, 11-15 relocating clients, 3-20
Oracle ADVM, 11-15 setting up, 3-18
Oracle Database file mapping Oracle Home user on Windows
with Oracle ACFS, 12-7 lower privileged user, 3-28
with Oracle ASM, 5-11 Oracle Restart
Oracle Database homes about, 3-21
Oracle ACFS, and, 11-7 and Oracle ACFS, 18-5
Oracle Enterprise Manager standalone server, 3-21
accessing the Oracle ASM home page, 7-2, 13-1 with Oracle ASM, 3-21
adding disks to a disk group, 7-8 ORACLE_HOME
and Oracle ACFS, 13-1 Oracle ASM, 3-22
and Oracle ASM, 7-1 ORACLE_SID
backing up Oracle ASM files, 7-27 Oracle ASM, 3-22
bad block recovery in Oracle ASM disks, 7-27 orapwusr command
creating disk groups, 7-6 ASMCMD utility, 10-16
creating Oracle ACFS file systems, 13-2 OSASM group, 3-47, 3-48, 3-50–3-52
creating Oracle ACFS snapshots, 13-6 OSDBA group, 3-48
creating Oracle ACFS volumes, 13-2 OSOPER group, 3-49
disk group compatibility, 7-16 OSTMG10048, 4-25
disk group file access control, 7-17 overview
disk group properties, 7-15 Oracle ACFS, 1-2, 11-1
disk group repair time, 7-17 Oracle ACFS and Oracle ADVM, 11-1
disk group smart scan compatibility, 7-17 Oracle ADVM, 11-9
dismounting disk groups, 7-14 Oracle ASM, 1-1
dropping disk groups, 7-13 OVERWRITE command rule, 16-89
dropping disks from disk groups, 7-12
managing fast mirror resync, 7-10 P
managing file access control for disk groups, 7-21
managing Oracle ASM files, 7-22 passwd command
managing Oracle ASM Filter Driver, 7-24 ASMCMD utility, 10-79
managing Oracle ASM templates, 7-23 password file authentication
migrating to Oracle ASM, 7-28 for Oracle Automatic Storage Management, 3-52
monitoring Oracle ASM disk group space usage, Oracle ASM, 3-52
7-14 performance and scalability improvements for ls and
find
mounting disk groups, 7-14
enabled by compatibility attributes, 4-48
Oracle ASM configuration page, 7-3
PHYS_META_REPLICATED disk group attribute, 4-6
Oracle ASM performance page, 7-26
plug-in API
Oracle ASM users page, 7-4
acfsplugin, 18-8
setting disk group compatibility, 7-8
Oracle ACFS, 18-7
support workbench for Oracle ASM, 7-29, 7-31
Oracle ACFS pre-defined metric type, 18-7
viewing and modifying Oracle ACFS snapshots,
plugins
13-6
Oracle ACFS, 11-36
viewing and modifying Oracle ACFS volumes
Oracle ADVM, 11-36
and file systems, 13-4
pre-defined metric type
Oracle Flex ASM
Oracle ACFS plug-in API, 18-7
administering, 3-19
preferred read
configuring, 3-18
failure groups, 4-37
converting to, 3-31
preferred read failure groups
database clients, 3-16
administering, 4-38
Index-13
preparing security on file systems rebalancing process
Oracle ACFS, 16-7 ASM_POWER_LIMIT initialization parameter,
privileges 3-10
ASMCMD utility, 10-8 recommendations for storage preparation
for one operating system group, 3-48 for Oracle ASM, 2-4
Oracle ASM, 3-47 recovery
separate operating system groups, 3-48 read errors, 4-33
SYSASM, 3-49, 3-50, 3-52 write errors, 4-34
SYSASM and Oracle Enterprise Manager, 7-3, 7-5 redo logs
SYSASM in Oracle Enterprise Manager, 7-6, 7-9 creating in Oracle ASM, 17-2
SYSDBA with Oracle ASM, 3-50 referencing files in the database
PROCESSES initialization parameter Oracle ASM, 5-8
Oracle ASM instance, 3-13 regions
pwcopy command intelligent data placement, 4-20
ASMCMD utility, 10-17 registering
pwcreate command Oracle ACFS file system, 16-3
ASMCMD utility, 10-18 registry resource
pwd command Oracle ACFS, 18-4
ASMCMD utility, 10-44 remap command
pwdelete command ASMCMD utility, 10-66
ASMCMD utility, 10-18 REMOTE_LOGIN_PASSWORDFILE initialization
pwget command parameter
ASMCMD utility, 10-19 Oracle ASM instance, 3-13
pwmove command removing tag names
ASMCMD utility, 10-20 Oracle ACFS, 16-13
pwset command RENAME command rule, 16-89
ASMCMD utility, 10-21 renamedg tool
renaming disk groups, 4-58
updating resources, 4-60
Q renaming a directory
Oracle ASM, 5-16
quorum failure group, 4-13
renaming aliases
Oracle ASM, 5-14
R renaming disk groups
renamedg and updating resources, 4-60
READ command rule, 16-89
renaming disks in a disk group, 4-18
read errors
replacing disks
recovery, 4-33
altering disk groups, 4-18
read-only snapshots
replacing disks in a disk group, 4-18
enabled by compatibility attributes, 4-48
replicated environments
read-write snapshots
disk group compatibility considerations, 4-49
enabled by compatibility attributes, 4-48
replicating file systems
READDIR command rule, 16-89
calculating storage requirements, 16-14
realms
configuring the site hosting the primary file
system-created security, 16-87
system, 16-18
rebal command
configuring the site hosting the standby file
ASMCMD utility, 10-65
system, 16-17
rebalance
managing replication background processes,
and CONTENT.CHECK disk group attribute,
16-19
4-23
monitoring replication on the file system, 16-19
and THIN_PROVISIONED disk group attribute,
Oracle ACFS, 16-14
4-23
Oracle wallets, 16-16
REBALANCE NOWAIT clause, 4-15
pausing replication processes, 16-19
REBALANCE WAIT clause, 4-15
rebalancing setting up tags, 16-16
disk groups, 1-12, 4-21 unique service names for replicated file systems,
rebalancing disk groups 16-16
tuning, 4-23 user names and service names, 16-16
replication
Index-14
replication (continued) setattr command (continued)
enabled by compatibility attributes, 4-48 ASMCMD utility, 10-67
Oracle ACFS, 11-30 setting encryption parameters
storage requirements for Oracle ACFS file Oracle ACFS, 16-11
systems, 16-14 shared password file
using with Oracle ACFS auditing, encryption, and for Oracle ASM instance, 3-53
security, 11-35 managing in a disk group, 3-53
replication status of a disk group SHARED_POOL_SIZE initialization parameter
enabled by compatibility attributes, 4-48 Oracle ASM instance, 3-14
resizing disks in disk groups, 4-21 showclustermode command
restricting at startup, 3-25 ASMCMD utility, 10-21
resync showclusterstate command
fast mirror, 4-34, 7-10, 7-11 ASMCMD utility, 10-22
reverting compatibility settings showpatches command
disk groups, 4-46 ASMCMD utility, 10-22
rm command showversion command
ASMCMD utility, 10-45 ASMCMD utility, 10-22
rmalias command shutdown command
ASMCMD utility, 10-46 ASMCMD utility, 10-23
RMDIR command rule, 16-89 shutting down an Oracle ASM instance
rmgrp command about, 3-25
ASMCMD utility, 10-80 with OCR or voting files in a disk group, 3-26
rmtmpl command with Oracle ACFS file system mounted, 3-27
ASMCMD utility, 10-71 single file creation form
rmusr command Oracle ASM, 5-4
ASMCMD utility, 10-81 snapshots
rolling patches .ACFS directory, 11-10, 16-135
Oracle ASM, 3-30 converting format of an existing Oracle ACFS
rolling upgrades snapshot, 11-11
Oracle Automatic Storage Management, 3-29 creating from existing Oracle ACFS snapshot,
rpusr command 11-11
ASMCMD utility, 10-81 creating Oracle ACFS read-only, 16-135
running creating Oracle ACFS read-write, 16-135
ASMCMD utility, 10-6 limit on the number of, 18-2
ASMCMD utility in a database home, 10-7 Oracle ACFS, 11-10, 16-135, 16-137, 16-138
ASMCMD utility in an Oracle grid infrastructure, Oracle ACFS and encryption, 11-11
10-6 Oracle ACFS and security, 11-11
read-write in Oracle ACFS, 11-10
S snap directory, 11-10
snaps directory, 16-135
saving security information Solaris
Oracle ACFS, 16-10 Oracle ACFS command-line tools, 16-29
scrubbing disk groups, 4-24 space usage
sector size Oracle ACFS, 18-2
disk groups, 4-11 spbackup command
enabled by compatibility attributes, 4-47 ASMCMD utility, 10-24
validations for disk groups, 4-12 backing up an Oracle ASM SPFILE, 10-24
SECTOR_SIZE disk group attribute, 4-6 spcopy command
securing file systems ASMCMD utility, 10-25
Oracle ACFS, 16-6 copying an Oracle ASM SPFILE, 10-25
security specifying tag names for file systems
configuring with Oracle ASMCA, 14-5 Oracle ACFS, 16-13
enabled by compatibility attributes, 4-48 spget command
Oracle ACFS, 11-19 ASMCMD utility, 10-26
Oracle ACFS and snapshots, 11-11 retrieving the location of an ASM SPFILE, 10-26
system-created realms, 16-87 spmove command
setattr command ASMCMD utility, 10-27
Index-15
spmove command (continued) tagging (continued)
moving an Oracle ASM SPFILE, 10-27 Extended Attributes requirements, 11-33
spset command Oracle ACFS, 11-33
ASMCMD utility, 10-28 requirements for Oracle ACFS, 11-33
setting the location of an ASM SPFILE, 10-28 tagging API
standalone server Oracle ACFS, 18-10
Oracle Restart, 3-21 tagging error values
starting up an Oracle ASM instance Oracle ACFS, 18-11
about, 3-22 tagging file systems
with incorrect SPFILE path, 3-24 Oracle ACFS, 16-12
startup tagging name specification
mounting disk groups, 3-25 Oracle ACFS, 18-11
restricting disk groups, 3-25 template management commands
startup command ASMCMD utility, 10-68
ASMCMD utility, 10-28 templates
storage considerations adding to a disk group, 5-21
for Oracle ASM, 2-1 attributes, 5-20
storage limits dropping, 5-22
disk groups, 4-39 for specifying redundancy and striping, 5-23
Oracle ASM disks, 4-39 managing Oracle ASM, 5-19
Oracle Automatic Storage Management, 4-39 modifying an Oracle ASM, 5-22
storage resources Oracle ASM, 1-11
disk partitions and Oracle ASM, 2-1 user-defined for Oracle ASM, 5-23
for Oracle ASM, 2-1 THIN_PROVISIONED disk group attribute, 4-7
logical volumes and Oracle ASM, 2-1 tracking the replication status
LUNs and Oracle ASM, 2-1 for disk groups, 4-6
network file systems and Oracle ASM, 2-2 TRUNCATE command rule, 16-89
preparation for Oracle ASM, 2-2 tuning rebalance operations, 4-23
restrictions for Oracle ACFS, 2-2
STORAGE.TYPE disk group attribute, 4-6
storing data files and redo logs in Oracle ACFS file
U
systems umount command
enabled by compatibility attributes, 4-48 AIX, 16-43
striping ASMCMD utility, 10-67
files, 1-9 Linux environments, 16-28
Oracle ASM, 1-9 Solaris, 16-35
support for 1023 snapshots umountall command
enabled by compatibility attributes, 4-48 AIX, 16-43
support workbench for Oracle ASM Solaris, 16-35
Oracle Enterprise Manager, 7-29, 7-31 undropping disks in disk groups, 4-21
supported file types unlimited file system expansion
Oracle ACFS, 11-1 acfsutil size command, 16-133
SYMLINK command rule, 16-89 enabled by compatibility attributes, 4-48
SYSASM privilege upgrading an Oracle ASM instance
accessing the Oracle ASM home page in Oracle
Oracle ASM Configuration Assistant, 9-12
Enterprise Manager, 7-3
Oracle Enterprise Manager, 7-5, 7-6, 7-9
SYSDBA privilege with Oracle ASM, 3-50 V
system-created realms
V$ASM_ACFS_ENCRYPTION_INFO view, 12-1
security, 16-87
V$ASM_ACFS_SEC_ADMIN view, 12-2
V$ASM_ACFS_SEC_CMDRULE view, 12-2
T V$ASM_ACFS_SEC_REALM_FILTER view, 12-2
V$ASM_ACFS_SEC_REALM_GROUP view, 12-2
tablespaces
V$ASM_ACFS_SEC_REALM_USER view, 12-2
creating in Oracle ASM, 17-2
tagging V$ASM_ACFS_SEC_RULESET_RULE view, 12-2
enabled by compatibility attributes, 4-48 V$ASM_ACFSSNAPSHOTS view, 12-2
V$ASM_ACFSTAG view, 12-2
Index-16
V$ASM_ACFSVOLUMES view, 12-2 voldelete command (continued)
V$ASM_ALIAS view, 6-1 voldisable command
V$ASM_ATTRIBUTE view ASMCMD utility, 15-4
enabled by compatibility attributes, 4-47 volenable command
V$ASM_AUDIT_CLEAN_EVENTS view, 6-1, 12-2 ASMCMD utility, 15-5
V$ASM_AUDIT_CLEANUP_JOBS view, 12-2 volinfo command
V$ASM_AUDIT_CONFIG_PARAMS view, 6-1, 12-2 ASMCMD utility, 15-6
V$ASM_AUDIT_LAST_ARCH_TS view, 12-2 volresize command
V$ASM_CLIENT view, 6-2 ASMCMD utility, 15-7
volset command
V$ASM_DISK view, 6-2
ASMCMD utility, 15-8
V$ASM_DISK_IOSTAT view, 6-2
volstat command
V$ASM_DISK_STAT view, 6-2
ASMCMD utility, 15-9
V$ASM_DISKGROUP view, 4-45, 6-2 volume management commands
V$ASM_DISKGROUP_STAT view, 6-2 ASMCMD utility, 15-1
V$ASM_ESTIMATE view, 6-2 volumes
V$ASM_FILE view, 6-2 enabled by compatibility attributes, 4-48
V$ASM_FILESYSTEM view, 12-2 voting files in disk groups
V$ASM_OPERATION view, 6-2 enabled by compatibility attributes, 4-47
V$ASM_TEMPLATE view, 6-2
V$ASM_USER view, 6-2
V$ASM_USERGROUP view, 6-2
W
V$ASM_USERGROUP_MEMBER view, 6-2 WAIT keyword
V$ASM_VOLUME view, 12-2 in REBALANCE clause, 4-15
V$ASM_VOLUME_STAT view, 12-2 wildcard characters
variable size extents using quotes in ASMCMD commands, 10-9
enabled by compatibility attributes, 4-47 WRITE command rule, 16-89
views write errors
displaying Oracle ACFS information, 12-1 recovery, 4-34
displaying Oracle ASM information, 6-1
volcreate command
ASMCMD utility, 15-1
X
voldelete command XML DB
ASMCMD utility, 15-4 virtual folder for Oracle ASM, 5-16
Index-17
Index-18