mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Type needs to be striped for raid0
This commit is contained in:
@@ -968,7 +968,8 @@ sub create_raid_volume
|
||||
{
|
||||
local ($lv) = @_;
|
||||
local $cmd = "lvcreate -y -n".quotemeta($lv->{'name'})." ";
|
||||
$cmd .= " --type ".quotemeta($lv->{'raid'});
|
||||
$cmd .= " --type ".
|
||||
quotemeta($lv->{'raid'} eq 'raid0' ? 'striped' : $lv->{'raid'});
|
||||
if ($lv->{'raid'} eq 'raid1') {
|
||||
$cmd .= " --mirrors ".$lv->{'mirrors'};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user