Class: MintPress::OracleGridInfrastructure::ASMDisk

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

Properties (Read/Write)

  • #name ⇒ String

    Property Attributes
    • requiredtrue
    
    
    16
    # File 'src/oracle-database/lib/oracle-database/model/grid/asm_disk.rb', line 16
    
    property :name, required: true, type: String
  • #label ⇒ String

    Property Attributes
    • requiredtrue
    
    
    17
    # File 'src/oracle-database/lib/oracle-database/model/grid/asm_disk.rb', line 17
    
    property :label, required: true, type: String
  • #path ⇒ Pathname

    Property Attributes
    • requiredtrue
    • fromString
    
    
    18
    # File 'src/oracle-database/lib/oracle-database/model/grid/asm_disk.rb', line 18
    
    property :path, required: true, type: Pathname, from: String
  • #size ⇒ Integer
    "Use this clause to specify in bytes the size of the disk."

    Property Attributes
    • requiredtrue
    
    
    20
    # File 'src/oracle-database/lib/oracle-database/model/grid/asm_disk.rb', line 20
    
    property :size, required: true, type: Integer, description: "Use this clause to specify in bytes the size of the disk."
  • #force ⇒ [TrueClass, FalseClass ] (Default Value: false)
    "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 Attributes
    • defaultfalse
    
    
    21
    # File 'src/oracle-database/lib/oracle-database/model/grid/asm_disk.rb', line 21
    
    property :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."
  • #type ⇒ String (Default Value: "REGULAR")
    "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 Attributes
    • allowed_values%w{QUORUM REGULAR},
    • default"REGULAR"
    
    
    22
    # File 'src/oracle-database/lib/oracle-database/model/grid/asm_disk.rb', line 22
    
    property :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."
  • #parent ⇒ MintPress::OracleGridInfrastructure::ASMDiskGroup
    property :os_mb, type: Integer, description: "Size of the disk (in megabytes) as reported by the host operating system." property :total_mb, type: Integer, description: "Total capacity of the disk (in megabytes)." property :free_mb, type: Integer, description: "Unused capacity of the disk (in megabytes)." property :hot_used_mb, type: Integer, description: "Number of used megabytes in the hot region." property :cold_used_mb, type: Integer, description: "Number of used megabytes in the cold region."

    Property Attributes
    • prop_name:disks
    
    
    47
    # File 'src/oracle-database/lib/oracle-database/model/grid/asm_disk.rb', line 47
    
    property :parent, type: MintPress::OracleGridInfrastructure::ASMDiskGroup, prop_name: :disks

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, #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 = {}) ⇒ ASMDisk

Returns a new instance of ASMDisk.

Instance Method Details

#add_label(admin_transport:, installation:) ⇒ Object

#clobber_device(admin_transport:) ⇒ Object

#create(admin_transport:) ⇒ Object

#delete(admin_transport:) ⇒ Object

#disk_numberObject

#exists?(admin_transport:) ⇒ Boolean

Returns:

  • (Boolean)

#group_numberObject

#header_statusObject

#incarnationObject

#mode_statusObject

#partition_device(admin_transport:) ⇒ Object

#redundancyObject

#remove_label(admin_transport:, installation:) ⇒ Object

#stateObject

#statusObject

#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: