linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Easy way to expend to the maximum length???
@ 1999-05-11  1:51 XxEDGExX
  0 siblings, 0 replies; 2+ messages in thread
From: XxEDGExX @ 1999-05-11  1:51 UTC (permalink / raw)
  To: linux-lvm


Is there an easy way to expand to the maximum length of a lv?
I used lvexpand until it wouldn't allow me to continue, but I figure there
has to be an easy way to simple expand to maximum.

Thanks
-jeremy


http://www.xxedgexx.com | jeremy@xxedgexx.com
---------------------------------------------
Y2K.  We're all gonna die.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [linux-lvm] Easy way to expend to the maximum length???
@ 1999-05-11  9:17 Heinz Mauelshagen
  0 siblings, 0 replies; 2+ messages in thread
From: Heinz Mauelshagen @ 1999-05-11  9:17 UTC (permalink / raw)
  To: linux-lvm


> 
> 
> Is there an easy way to expand to the maximum length of a lv?
> I used lvexpand until it wouldn't allow me to continue, but I figure there
> has to be an easy way to simple expand to maximum.
> 

Sorry, no direct support for that with LVM commands today.


But if you have next free allocation policy (as oposed to
contiguous/striped etc.), you can solve your need by

lvextend -l+`vgdisplay YourVG|awk '{if(/^Free PE/){print $3}}'` \
   /dev/YourVG/YourLV

If you put it into a script and do some parameter magic to parse
the VG name etc. -> that's it.

Have to implement an option for that in lvextend ;*)

Regards,
Heinz
--

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Systemmanagement C/S                             Deutsche Telekom AG
                                                 Entwicklungszentrum Darmstadt
Heinz Mauelshagen                                Otto-Roehm-Strasse 71c
Senior Systems Engineer                          Postfach 10 05 41
                                                 64205 Darmstadt
mge@ez-darmstadt.telekom.de                      Germany
                                                 +49 6151 886-425
                                                          FAX-386
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-05-11  9:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-05-11  1:51 [linux-lvm] Easy way to expend to the maximum length??? XxEDGExX
1999-05-11  9:17 Heinz Mauelshagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).