diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-11-10 08:32:17 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-11-10 08:32:17 +0000 |
commit | 3777ec91ebb1937a80f95369ad4cba324e781d8a (patch) | |
tree | ce6587a6cb59c0087b1e63dd45b9a6914b011b38 /perl-install | |
parent | 84f9a30da5fddd60a141fd4aa9ef6a31168ca4ee (diff) | |
download | drakx-backup-do-not-use-3777ec91ebb1937a80f95369ad4cba324e781d8a.tar drakx-backup-do-not-use-3777ec91ebb1937a80f95369ad4cba324e781d8a.tar.gz drakx-backup-do-not-use-3777ec91ebb1937a80f95369ad4cba324e781d8a.tar.bz2 drakx-backup-do-not-use-3777ec91ebb1937a80f95369ad4cba324e781d8a.tar.xz drakx-backup-do-not-use-3777ec91ebb1937a80f95369ad4cba324e781d8a.zip |
when calling dmraid, replace -ccs and -ccr with -s -c -c and -r -c -c
(the former doesn't work anymore with dmraid 1.0.0 RC9) (cf #19654, thanks a lot to Thomas Backlund)
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/fs/dmraid.pm | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/perl-install/fs/dmraid.pm b/perl-install/fs/dmraid.pm index 954d727f7..ecfd919cb 100644 --- a/perl-install/fs/dmraid.pm +++ b/perl-install/fs/dmraid.pm @@ -47,7 +47,7 @@ sub _raid_devices_raw() { log::l("got: $_"); my %l; @l{qw(pv format vg level status size)} = split(':'); if_(defined $l{size}, \%l); - } call_dmraid('-ccr'); + } call_dmraid('-r', '-c', '-c'); } sub _raid_devices() { @@ -68,7 +68,7 @@ sub _sets_raw() { log::l("got: $_"); my %l; @l{qw(name size stride level status subsets devs spares)} = split(':'); if_(defined $l{spares}, \%l); - } call_dmraid('-ccs'); + } call_dmraid('-s', '-c', '-c'); } sub _sets() { @@ -127,14 +127,14 @@ if ($ENV{DRAKX_DEBUG_DMRAID}) { # devs : 2 # spares : 0 - '-ccs' => "isw_ffafgbdhi_toto:234441216:256:mirror:ok:0:2:0\n", + '-s' => "isw_ffafgbdhi_toto:234441216:256:mirror:ok:0:2:0\n", # dmraid -r #################### #/dev/sda: isw, "isw_ffafgbdhi", GROUP, ok, 488397166 sectors, data@ 0 #/dev/sdb: isw, "isw_ffafgbdhi", GROUP, ok, 234441646 sectors, data@ 0 - '-ccr' => "/dev/sda:isw:isw_ffafgbdhi:GROUP:ok:488397166:0\n" . - "/dev/sdb:isw:isw_ffafgbdhi:GROUP:ok:234441646:0\n", + '-r' => "/dev/sda:isw:isw_ffafgbdhi:GROUP:ok:488397166:0\n" . + "/dev/sdb:isw:isw_ffafgbdhi:GROUP:ok:234441646:0\n", }, pdc => { @@ -149,21 +149,21 @@ if ($ENV{DRAKX_DEBUG_DMRAID}) { # devs : 2 # spares : 0 - '-ccs' => "pdc_bcefbiigfg:80043200:128:mirror:ok:0:2:0\n", + '-s' => "pdc_bcefbiigfg:80043200:128:mirror:ok:0:2:0\n", # dmraid -r #################### # /dev/sda: pdc, "pdc_bcefbiigfg", mirror, ok, 80043200 sectors, data@ 0 # /dev/sdb: pdc, "pdc_bcefbiigfg", mirror, ok, 80043200 sectors, data@ 0 - '-ccr' => "/dev/sda:pdc:pdc_bcefbiigfg:mirror:ok:80043200:0\n" . + '-r' => "/dev/sda:pdc:pdc_bcefbiigfg:mirror:ok:80043200:0\n" . "/dev/sdb:pdc:pdc_bcefbiigfg:mirror:ok:80043200:0\n", }, bad_sil => { - '-ccs' => "sil_aeacdidecbcb:234439600:0:mirror:ok:0:1:0\n", + '-s' => "sil_aeacdidecbcb:234439600:0:mirror:ok:0:1:0\n", # ERROR: sil: only 3/4 metadata areas found on /dev/sdb, electing... - '-ccr' => "/dev/sdb:sil:sil_aeacdidecbcb:mirror:broken:234439600:0\n", + '-r' => "/dev/sdb:sil:sil_aeacdidecbcb:mirror:broken:234439600:0\n", # ERROR: sil: only 3/4 metadata areas found on /dev/sdb, electing... }, |