You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you have a logical volume with more than one extent (eg when you resize it after adding another logical volume), the command to report the stripe size gives a number per extent. While this should be the same number, this is still giving extra output.
/Stage[main]/Logical_volume[datavg-test]/stripes stripes changed "2\n 2" to 2 (corrective)
Expected Behavior
If all numbers reported are the same, report only this single number
defstripes# Run the lvs command with the -o option to get only the stripes countraw=(lvs'-o','stripes','--noheadings',path)output_array=raw.split(/\n/).map(&:strip).to_ireturnoutput_array.firstifoutput_array.uniq.length == 1output_arrayenddefstripes=(new_stripes_count)current_stripes=stripes# Changing stripes is not supported for existing logical volumesreturnunlessnew_stripes_count.to_i != current_stripesraise(Puppet::Error,"Changing stripes from #{current_stripes} to #{new_stripes_count} is not supported for existing logical volumes")end
The text was updated successfully, but these errors were encountered:
Describe the Bug
When you have a logical volume with more than one extent (eg when you resize it after adding another logical volume), the command to report the stripe size gives a number per extent. While this should be the same number, this is still giving extra output.
Expected Behavior
If all numbers reported are the same, report only this single number
Steps to Reproduce
Environment
Additional Context
Fixed with:
The text was updated successfully, but these errors were encountered: