Class: MintPress::OracleGridInfrastructure::ASMDiskGroup

Inherits:
Object
  • Object
show all
Includes:
MintLogger, Mixins::Properties, ASMUtils
Defined in:
src/oracle-database/lib/oracle-database/model/grid/asm_diskgroup.rb

Properties (Read/Write)

  • #name ⇒ String
    "The ASM DiskGroup"

    Property Attributes
    • requiredtrue
    
    
    15
    # File 'src/oracle-database/lib/oracle-database/model/grid/asm_diskgroup.rb', line 15
    
    property :name, required: true, type: String, description: "The ASM DiskGroup"
  • #redundancy ⇒ String (Default Value: "NORMAL")
    "Redundancy type for the disk group: EXTERNAL NORMAL HIGH"

    Property Attributes
    • allowed_values%w{EXTERNAL NORMAL HIGH},
    • default"NORMAL"
    
    
    17
    # File 'src/oracle-database/lib/oracle-database/model/grid/asm_diskgroup.rb', line 17
    
    property :redundancy, type: String, allowed_values: %w{EXTERNAL NORMAL HIGH}, description: "Redundancy type for the disk group: EXTERNAL NORMAL HIGH"
  • #sector_size ⇒ Integer
    "Physical block size (in bytes)"

    Property Attributes
    
    
    18
    # File 'src/oracle-database/lib/oracle-database/model/grid/asm_diskgroup.rb', line 18
    
    property :sector_size, type: Integer, description: "Physical block size (in bytes)"
  • #block_size ⇒ Integer
    "Oracle ASM metadata block size (in bytes)"

    Property Attributes
    
    
    19
    # File 'src/oracle-database/lib/oracle-database/model/grid/asm_diskgroup.rb', line 19
    
    property :block_size, type: Integer, description: "Oracle ASM metadata block size (in bytes)"
  • #allocation_unit_size (Default Value: 1)
    "Allocation unit size to be used by ASM. Size unit is MB"

    Property Attributes
    • allowed_values[ 1, 2, 4, 8, 16, 32, 64]
    • default1
    
    
    20
    # File 'src/oracle-database/lib/oracle-database/model/grid/asm_diskgroup.rb', line 20
    
    property :allocation_unit_size, allowed_values: [ 1, 2, 4, 8, 16, 32, 64], default: 1, description: "Allocation unit size to be used by ASM. Size unit is MB"
  • #failgroup ⇒ MintPress::OracleGridInfrastructure::ASMDiskGroup
    "The Failure group of the diskgroup. Note: You cannot specify this clause if you are creating an EXTERNAL REDUNDANCY disk group."

    Property Attributes
    
    
    24
    # File 'src/oracle-database/lib/oracle-database/model/grid/asm_diskgroup.rb', line 24
    
    property :failgroup, type: MintPress::OracleGridInfrastructure::ASMDiskGroup, description: "The Failure group of the diskgroup. Note: You cannot specify this clause if you are creating an EXTERNAL REDUNDANCY disk group."
  • #discovery_string ⇒ String
    "Qualified Disk Clause. For each disk you are adding to the disk group, specify the operating system dependent search string that Oracle ASM will use to find the disk. The search_string must point to a subset of the disks returned by discovery using the strings in the ASM_DISKSTRING initialization parameter. If search_string does not point to any disks the Oracle Database user has read/write access to, then Oracle ASM returns an error. If it points to one or more disks that have already been assigned to a different disk group, then Oracle Database returns an error unless you also specify FORCE. For each valid candidate disk, Oracle ASM formats the disk header to indicate that it is a member of the new disk group."

    Property Attributes
    
    
    27
    # File 'src/oracle-database/lib/oracle-database/model/grid/asm_diskgroup.rb', line 27
    
    property :discovery_string, type: String, description: "Qualified Disk Clause. For each disk you are adding to the disk group, specify the operating system dependent search string that Oracle ASM will use to find the disk. The search_string must point to a subset of the disks returned by discovery using the strings in the ASM_DISKSTRING initialization parameter. If search_string does not point to any disks the Oracle Database user has read/write access to, then Oracle ASM returns an error. If it points to one or more disks that have already been assigned to a different disk group, then Oracle Database returns an error unless you also specify FORCE. For each valid candidate disk, Oracle ASM formats the disk header to indicate that it is a member of the new disk group."
  • #attributes ⇒ String
    property :disk_name, type: String, description: "The NAME clause is valid only if the search_string points to a single disk." property :disk_size, type: Integer, description: "Use this clause to specify in bytes the size of the disk." property :disk_force, type: [TrueClass, FalseClass ], default: false, description: "Specify FORCE if you want Oracle ASM to add the disk to the disk group even if the disk is already a member of a different disk group." property :disk_type, type: String, allowed_values: %w{QUORUM REGULAR}, default: "REGULAR", description: "If you specify neither keyword, then REGULAR is the default. Specify either QUORUM or REGULAR before the keyword FAILGROUP if you are explicitly specifying the failure group. If you are creating a disk group with implicitly created failure groups, then specify these keywords before the keyword DISK." property :drop_force, type: [TrueClass, FalseClass ], default: false, description: "Specify FORCE if you want Oracle ASM to force drop the disk" property :drop_contents, type: [TrueClass, FalseClass ], default: true, description: "Drop disk contents when executing 'drop'?"

    Property Attributes
    
    
    35
    # File 'src/oracle-database/lib/oracle-database/model/grid/asm_diskgroup.rb', line 35
    
    property :attributes, type: String
  • #grid ⇒ MintPress::OracleGridInfrastructure::Grid
    property :nodes, type: String, description: "Nodes on which to start diskgroup"

    Property Attributes
    
    
    39
    # File 'src/oracle-database/lib/oracle-database/model/grid/asm_diskgroup.rb', line 39
    
    property :grid, type: MintPress::OracleGridInfrastructure::Grid
  • #directories ⇒ Hash of ⇒ MintPress::OracleGridInfrastructure::ASMDirectory
    "ASM Directories for the disk group."

    Property Attributes
    
    
    41
    # File 'src/oracle-database/lib/oracle-database/model/grid/asm_diskgroup.rb', line 41
    
    property :directories, type: MintPress::OracleGridInfrastructure::ASMDirectory, hash: true, description: "ASM Directories for the disk group."
  • #disks ⇒ Hash of ⇒ MintPress::OracleGridInfrastructure::ASMDisk
    "ASM Disks for the disk group."

    Property Attributes
    
    
    42
    # File 'src/oracle-database/lib/oracle-database/model/grid/asm_diskgroup.rb', line 42
    
    property :disks, type: MintPress::OracleGridInfrastructure::ASMDisk, hash: true, description: "ASM Disks for the disk group."
  • #parent ⇒ MintPress::OracleGridInfrastructure::Grid

    Property Attributes
    
    
    44
    # File 'src/oracle-database/lib/oracle-database/model/grid/asm_diskgroup.rb', line 44
    
    property :parent, type: MintPress::OracleGridInfrastructure::Grid

Properties (Read Only)

Constant Summary

Constants included from MintLogger

MintLogger::DEBUG, MintLogger::ERROR, MintLogger::FATAL, MintLogger::INFO, MintLogger::UNKNOWN, MintLogger::VERBOSE, MintLogger::WARN

Instance Attribute Summary

Attributes included from Mixins::Properties

#autopush_set_cache, #dynamic_create, #harvest_on_access, #harvest_undefined_only, #harvested, #tree_root

Instance Method Summary collapse

Methods included from ASMUtils

#asm_device_exists?, #asm_disk_exists?, #asmcmd_runner, #asmsql_runner, #clobber_device, #createdisk, #deletedisk, #diskgroup?, #diskgroup_add_disk, #diskgroup_alter, #diskgroup_create, #diskgroup_delete, #diskgroup_directory_create, #diskgroup_directory_delete, #diskgroup_directory_exist?, #get_block_device_id, #get_partition, #initialize_device, #oracleasm_cmd, #oracleasm_runner, #querydisk, #renamedisk

Methods included from Mixins::Properties

#[], #[]=, #add_validate_report_result, #armour_set_property, #array_contains?, #array_is_a?, #check_autopush, #check_stack_overflow, #clone_property_object, #cloner_handle_single_property, #coerce_single, #contains_as_string?, #display_validate_report_result, #double_initialize?, #dump_to_hash, #find_parent, #find_parent_by_identity, #generate_accessor_functions, #get_canonical_renamed, #get_from_opts, #get_my_name, #get_property, #get_property_item, #has?, included, #initialize_validate_report, #inspect, #is_cloned_object?, #is_mintpress_object?, #is_probably_canonical?, #is_set?, #local_debug, #local_info, #local_verbose, #mintpress_property_definitions, #place_object_by_identity, #process_properties, #prop_set?, #property, #property_definitions, #property_details, #property_is_simple_object?, #push_root!, #require_property, #require_update, #retrieve_docstring, #sanitize, #set_map_dirty, #set_property, #set_property_item, #show_short_array, #strip_defaults!, #synchronize, #uncloned_property_definitions, #update_map, #validate, #validate_generic, #validate_properties, #validate_property, #validate_required, #version_allowed?, #weakref

Methods included from MintLogger::Utils::Common

#boolean_val, #has_value?, #no_value?, #nvl, #path_as_symbol, #ruby_level_to_send

Constructor Details

#initialize(opts = {}) ⇒ ASMDiskGroup

Returns a new instance of ASMDiskGroup.

Instance Method Details

#createObject

#deleteObject

#exists?Boolean

Returns:

  • (Boolean)

#running?Boolean

Returns:

  • (Boolean)

#stateObject

State of the disk group relative to the instance: CONNECTED - Disk group is in use by the database instance BROKEN - Database instance lost connectivity to the Oracle ASM instance that mounted the disk group UNKNOWN - Oracle ASM instance has never attempted to mount the disk group DISMOUNTED - Disk group was cleanly dismounted by the Oracle ASM instance following a successful mount MOUNTED - Instance is successfully serving the disk group to its database clients QUIESCING - CRSCTL utility attempted to dismount a disk group that contains the Oracle Cluster Registry (OCR). The disk group cannot be dismounted until Cluster Ready Services (CRS) exits, because the disk group contains the OCR

#statusObject

Status of the diskgroup

#to_hashHash

Return a Hash representation for the class and all its sub-classes.

Returns:

  • (Hash)
    the object in Hash format

#usageString

Example usage of the class

Returns: