Skip to content

Commit

Permalink
fix SAT warning on Linux (unknown if this breaks SAS disks)
Browse files Browse the repository at this point in the history
fix template .to_i error from trying to convert an array into an integer

This is the SAT error:

/dev/sdc [megaraid_disk_14] [SAT]: Device open changed type from 'megaraid' to 'sat'
Smartctl open device: /dev/sdc [megaraid_disk_14] [SAT] failed: SATA device detected,
MegaRAID SAT layer is reportedly buggy, use '-d sat+megaraid,N' to try anyhow
  • Loading branch information
Joshua Hoblitt committed May 14, 2013
1 parent f2042c3 commit 93d1ef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/smartd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ megaraid_drives = megaraid_drives.nil? ? [] : megaraid_drives.split(/,/)
if megaraid_device and megaraid_device != '' and
megaraid_adapters and megaraid_adapters.to_i > 0 -%>
<% megaraid_drives.each do |drive| -%>
<%= megaraid_device %> -d megaraid,<%= megaraid_drives.to_i -%>
<%= megaraid_device %> -d sat+megaraid,<%= drive.to_i %>
<% if @device_opts.has_key?('megaraid') -%>
<%= @device_opts['megaraid'] -%>
<% end #newline here, please %>
Expand Down

0 comments on commit 93d1ef5

Please sign in to comment.