Mounted ext3+, reiser, xfs and jfs logical volumes can now have their filesystem size increased, without needing an un-mount. Thanks to Caspar Smit for the suggestions and patches to implement this.
When editing a logical volume that is already in /etc/fstab, don't allow the filesystem to format it as to be changed, to prevent a mismatch.
When editing a physical volume, its size can be increased to match the underlying device, such as a partition that has been grown.
+---- Changes since 1.530 ----
+When creating a new striped logical volume, the strip size can now be selected.
print &ui_table_row($text{'lv_stripe'},
&ui_opt_textbox("stripe", undef, 4, $text{'lv_nostripe'},
$text{'lv_stripes2'}), 3);
+
+ # And strip size
+ print &ui_table_row($text{'lv_stripesize'},
+ &ui_select("stripesize", undef,
+ [ [ undef, $text{'default'} ],
+ map { [ $_, $_." kB" ] }
+ map { 2**$_ } (2 .. 9) ]));
}
elsif (!$lv->{'is_snap'}) {
# Show current striping
lv_nostripe=Disabled (always allocate from start)
lv_stripes=Stripe across $1 physical volumes
lv_stripes2=Physical volumes to stripe across
+lv_stripesize=Stripe size
lv_err=Failed to save logical volume
lv_ename=Missing or invalid volume name
lv_esame=A logical volume with the same name already exists
else {
$cmd .= " -p ".quotemeta($_[0]->{'perm'});
$cmd .= " -C ".quotemeta($_[0]->{'alloc'});
- $cmd .= " -i ".quotemeta($_[0]->{'stripe'}) if ($_[0]->{'stripe'});
+ $cmd .= " -i ".quotemeta($_[0]->{'stripe'})
+ if ($_[0]->{'stripe'});
+ $cmd .= " -I ".quotemeta($_[0]->{'stripesize'})
+ if ($_[0]->{'stripesize'} && $_[0]->{'stripe'});
$cmd .= " ".quotemeta($_[0]->{'vg'});
}
$cmd .= $suffix;
$lv->{'perm'} = $in{'perm'};
$lv->{'alloc'} = $in{'alloc'};
$lv->{'stripe'} = $in{'stripe'} if (!$in{'stripe_def'});
+ $lv->{'stripesize'} = $in{'stripesize'};
}
$err = &create_logical_volume($lv);
&error("<pre>$err</pre>") if ($err);