kuzushi 0.0.45 → 0.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/kuzushi.rb +5 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.46
|
data/lib/kuzushi.rb
CHANGED
@@ -56,6 +56,7 @@ class Kuzushi
|
|
56
56
|
@scripts = false
|
57
57
|
|
58
58
|
process :packages
|
59
|
+
task "stopping udev" do
|
59
60
|
process :volumes
|
60
61
|
|
61
62
|
execute_tasks
|
@@ -183,13 +184,15 @@ class Kuzushi
|
|
183
184
|
|
184
185
|
def handle_raid(r)
|
185
186
|
task "create raid #{r.device}", :init => true do
|
187
|
+
shell "service udev stop"
|
186
188
|
shell "mdadm --create #{r.device} -n #{r.drives.size} -l #{r.level} -c #{r.chunksize || 64} #{r.drives.join(" ")}"
|
189
|
+
shell "service udev start"
|
187
190
|
end
|
188
191
|
task "assemble raid #{r.device}" do ## assemble fails a lot with device busy - is udev to blame :(
|
189
192
|
if not dev_exists? r.device
|
190
|
-
shell "service stop
|
193
|
+
shell "service udev stop"
|
191
194
|
shell "mdadm --assemble #{r.device} #{r.drives.join(" ")}"
|
192
|
-
shell "service start
|
195
|
+
shell "service udev start"
|
193
196
|
end
|
194
197
|
end
|
195
198
|
add_package "mdadm"
|