On Sun, Jul 14, 2013 at 4:54 PM, Craig Sanders <[email protected]> wrote:
> On Sun, Jul 14, 2013 at 12:15:59PM +1000, Jeremy Visser wrote:> My volume
> group is /dev/vg_glimfeather. I haven?t interacted with the
> > raw PV, /dev/sda6, in over a year.
>
> here's an example from the lvextend man page:
>
> Extends the size of the logical volume "vg01/lvol10" by 54MiB on
> physi-
> cal volume /dev/sdk3. This is only possible if /dev/sdk3 is a
> member of
> volume group vg01 and there are enough free physical extents in it:
>
> lvextend -L +54 /dev/vg01/lvol10 /dev/sdk3
>
>
If you look at the synopsis for the man page, you'll realise that the
physical device is completely optional. It's for when you might have
multiple PVs and wish to force this extend to happen on one in particular.
For most use-cases you don't need to specify it at all.
> and another from lvresize:
>
> Extend a logical volume vg1/lv1 by 16MB using physical
> extents
> /dev/sda:0-1 and /dev/sdb:0-1 for allocation of extents:
>
> lvresize -L+16M vg1/lv1 /dev/sda:0-1 /dev/sdb:0-1
>
> to extend or resize the volume, you've got to tell it which disk(s) to
> allocate the free space from.
>
Nope. You can, but you don't have to.
/ Brett
_______________________________________________
luv-main mailing list
[email protected]
http://lists.luv.asn.au/listinfo/luv-main