Sha256: 90e3e433f8f104f5d85555b1fae9192e58791d4217af2d62169bcb4f26953a65
Contents?: true
Size: 578 Bytes
Versions: 27
Compression:
Stored size: 578 Bytes
Contents
require 'manageiq-gems-pending' require 'ostruct' require 'disk/MiqDisk' require 'VolumeManager/MiqVolumeManager' require 'logger' $vim_log = $log = Logger.new(STDERR) $log.level = Logger::DEBUG begin volMgr = MiqVolumeManager.fromNativePvs puts puts "Volume Groups:" volMgr.vgHash.each do |vgName, vgObj| puts "\t#{vgName}: seq# = #{vgObj.seqNo}" end puts puts "Logical Volumes:" volMgr.lvHash.each do |key, lv| puts "\t#{key}\t#{lv.dInfo.lvObj.lvName}" end volMgr.closeAll rescue => err puts err.to_s puts err.backtrace.join("\n") end
Version data entries
27 entries across 27 versions & 1 rubygems