https://bugzilla.novell.com/show_bug.cgi?id=842919
https://bugzilla.novell.com/show_bug.cgi?id=842919#c4
Michael Chang changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
InfoProvider| |snwint@suse.com
--- Comment #4 from Michael Chang 2013-10-01 10:15:48 UTC ---
Above patch doesn't work.
It seems to me that yast has subtle definition that md array MUST be created in
exact "two disks" to enable redundancy ..
========
Observing from my installation logs.
8125 2013-10-01 17:52:48 <1> 147.2.211.25(6662) [Ruby]
modules/BootStorage.rb:1445 Devices for analyse of redundacy md array:
["/dev/md1"]
8126 2013-10-01 17:52:48 <1> 147.2.211.25(6662) [Ruby]
modules/BootStorage.rb:1378 Device: /dev/md1 doesn't contain 2 partitions:
["/dev/vda2", "/dev/vdb2", "/dev/vdc2"]
8127 2013-10-01 17:52:48 <1> 147.2.211.25(6662) [Ruby]
modules/BootStorage.rb:1396 device: /dev/md1 is based on md_physical_disks: []
is not valid for enable redundancy
8128 2013-10-01 17:52:48 <1> 147.2.211.25(6662) [Ruby]
modules/BootStorage.rb:1452 Skip enable redundancy of md arrays
=======
And the code snippet causing above message
modules/BootStorage.rb
# FATE#305008: Failover boot configurations for md arrays with redundancy
# Check if device are build from 2 partitions with same number but from
different disks
#
# @param [Hash{String => map}] tm taregte map from storage
# @param [String] device (md device)
# @return true if device is from 2 partisions with same number and
different disks
def checkMDDevices(tm, device)
...
...
@md_physical_disks = []
# find partitions in target map
Builtins.foreach(Ops.get_list(tm_dm, "partitions", [])) do |p|
if Ops.get_string(p, "device", "") == device
if Ops.get_string(p, "raid_type", "") == "raid1"
p_devices = Ops.get_list(p, "devices", [])
if Builtins.size(p_devices) == 2
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ret = checkDifferentDisks(p_devices)
else
Builtins.y2milestone(
"Device: %1 doesn't contain 2 partitions: %2",
device,
p_devices
)
end
else
Builtins.y2milestone(
"Device: %1 is not on raid1: %2",
device,
Ops.get_string(p, "raid_type", "")
)
end
end
end
=======
It's very clear that yast creates such requirement, but I really don't know
why?
Steffen do you have any other better idea ? Thanks.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.