Class: MintPress::OracleGridInfrastructure::ASMDisk
- Inherits:
-
Object
- Object
- MintPress::OracleGridInfrastructure::ASMDisk
- 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- required ⇒ true
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- required ⇒ true
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- required ⇒ true
- from ⇒ String
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- required ⇒ true
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- default ⇒ false
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
- #add_label(admin_transport:, installation:) ⇒ Object
- #clobber_device(admin_transport:) ⇒ Object
- #create(admin_transport:) ⇒ Object
- #delete(admin_transport:) ⇒ Object
- #disk_number ⇒ Object
- #exists?(admin_transport:) ⇒ Boolean
- #group_number ⇒ Object
- #header_status ⇒ Object
- #incarnation ⇒ Object
-
#initialize(opts = {}) ⇒ ASMDisk
constructor
A new instance of ASMDisk.
- #mode_status ⇒ Object
- #partition_device(admin_transport:) ⇒ Object
- #redundancy ⇒ Object
- #remove_label(admin_transport:, installation:) ⇒ Object
- #state ⇒ Object
- #status ⇒ Object
-
#to_hash ⇒ Hash
Return a Hash representation for the class and all its sub-classes.
-
#usage ⇒ String
Example usage of the class.
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