Commit 67efc785 authored by Mike Hibler's avatar Mike Hibler

Stripe extra filesystems too.

parent 199edfa1
...@@ -846,7 +846,8 @@ sub createExtraFS($$$) ...@@ -846,7 +846,8 @@ sub createExtraFS($$$)
my $lvpath = "/dev/$vgname/$lvname"; my $lvpath = "/dev/$vgname/$lvname";
my $exists = `lvs --noheadings -o origin $lvpath > /dev/null 2>&1`; my $exists = `lvs --noheadings -o origin $lvpath > /dev/null 2>&1`;
if ($?) { if ($?) {
system("lvcreate -n $lvname -L $size $vgname") == 0 my $ns = computeStripeSize($vgname);
system("lvcreate -n $lvname -L $size -i$ns $vgname") == 0
or return -1; or return -1;
system("mke2fs -j -q $lvpath") == 0 system("mke2fs -j -q $lvpath") == 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment