Don't try and SMART monitor a non-HP disk behind an HP RAID
authorTom Hughes <tom@compton.nu>
Fri, 13 Mar 2015 00:47:00 +0000 (00:47 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 13 Mar 2015 00:47:00 +0000 (00:47 +0000)
cookbooks/hardware/recipes/default.rb

index 2e99eb21d94707805859b8dbec347cbd461c12b3..05d5c0794b2f69da68711e7bd73cfe492e220b2a 100644 (file)
@@ -262,7 +262,7 @@ end
 if status_packages["cciss-vol-status"]
   status_packages["cciss-vol-status"].each do |device|
     IO.popen(["cciss_vol_status", "-V", "/dev/#{device}"]).each do |line|
-      disks << { :device => device, :driver => "cciss", :id => Regexp.last_match[1].to_i - 1 } if line =~ / bay ([0-9]+) /
+      disks << { :device => device, :driver => "cciss", :id => Regexp.last_match[1].to_i - 1 } if line =~ / bay ([0-9]+) +HP /
     end
   end
 end