Wednesday, October 5, 2011

Re: [BLUG] How to utilize these unused spaces?

One tip I'd like to make about LVM. Don't feel the need to use up or
allocate all your physical volume space at once. You should grow it as
needed. This is important because AFAIK none of the commonly available
filesystems out there for Linux let you shrink the filesystem size, so
once you've grown it, you can't go back.

I see some people setup LVM and then allocate all their space to one
large root partition or something like that. Granted, there are other
uses for LVM. But I think they are missing the point, which is
flexibility.


On Wed, Oct 05, 2011 at 05:20:41PM GMT, Shei, Shing-Shong [shei@cs.indiana.edu] said the following:
> <html>
> <head>
> <meta content="text/html; charset=ISO-8859-1"
> http-equiv="Content-Type">
> </head>
> <body bgcolor="#FFFFFF" text="#000000">
> <tt>Thanks, Thomas.&nbsp; So you don't need to extend the physical volume
> first and the </tt><tt class="computeroutput">lvextend will
> magically know which free space to use (since in this case there
> are 4 possibilities here)?&nbsp; I was trying to find a way to extend
> the pv on each disk first before trying to use lvextend (so that
> lvextend sees extra space to use).<br>
> <br>
> Thanks,<br>
> Shing-Shong<br>
> </tt><br>
> On 10/5/2011 1:14 PM, Thomas Smith wrote:
> <blockquote
> cite="mid:CAHCWDdawRgPQFs3-V5VUnXv0zKq_Hxh6L_y3q9=8_qaC3i5vLw@mail.gmail.com"
> type="cite">Yes!<br>
> <br>
> Here is the page I've used to do this before:<br>
> <br>
> <a moz-do-not-send="true"
> href="http://tldp.org/HOWTO/LVM-HOWTO/extendlv.html">http://tldp.org/HOWTO/LVM-HOWTO/extendlv.html</a><br>
> <br>
> Hope this helps,<br>
> -Thomas<br>
> <br>
> <div class="gmail_quote">
> On Wed, Oct 5, 2011 at 12:58 PM, Shei, Shing-Shong <span
> dir="ltr">&lt;<a moz-do-not-send="true"
> href="mailto:shei@cs.indiana.edu">shei@cs.indiana.edu</a>&gt;</span>
> wrote:<br>
> <blockquote class="gmail_quote" style="margin:0 0 0
> .8ex;border-left:1px #ccc solid;padding-left:1ex;">
> <div bgcolor="#FFFFFF" text="#000000"> <tt>Hi,<br>
> <br>
> I have a lvm2 system that's currently not utilizing all
> available disk space as shown in the following pvs output:<br>
> <br>
> # pvs<br>
> &nbsp; PV&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Fmt&nbsp; Attr PSize&nbsp;&nbsp; PFree &nbsp;<br>
> &nbsp; /dev/sdb1&nbsp; pool_vg lvm2 a-&nbsp;&nbsp; 931.51g <font
> color="#ff0000">118.26g</font><br>
> &nbsp; /dev/sdc1&nbsp; pool_vg lvm2 a-&nbsp;&nbsp; 931.51g&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 <br>
> &nbsp; /dev/sdd1&nbsp; pool_vg lvm2 a-&nbsp;&nbsp; 931.51g <font
> color="#ff0000">528.00m</font><br>
> &nbsp; /dev/sde1&nbsp; pool_vg lvm2 a-&nbsp;&nbsp; 931.51g <font
> color="#ff0000">150.26g</font><br>
> &nbsp; /dev/sdf1&nbsp; pool_vg lvm2 a-&nbsp;&nbsp; 931.51g <font
> color="#ff0000">150.26g</font><br>
> <br>
> Is it possible to incorporate the free spaces into the
> existing logical volume?<br>
> <br>
> Thanks,<br>
> <font color="#888888"> Shing-Shong</font></tt> </div>
> <br>
> _______________________________________________<br>
> BLUG mailing list<br>
> <a moz-do-not-send="true" href="mailto:BLUG@linuxfan.com">BLUG@linuxfan.com</a><br>
> <a moz-do-not-send="true"
> href="http://mailman.cs.indiana.edu/mailman/listinfo/blug"
> target="_blank">http://mailman.cs.indiana.edu/mailman/listinfo/blug</a><br>
> <br>
> </blockquote>
> </div>
> <br>
> <br clear="all">
> <br>
> -- <br>
> <a moz-do-not-send="true" href="http://resc.smugmug.com/">http://resc.smugmug.com/</a><br>
> <br>
> <fieldset class="mimeAttachmentHeader"></fieldset>
> <br>
> <pre wrap="">_______________________________________________
> BLUG mailing list
> <a class="moz-txt-link-abbreviated" href="mailto:BLUG@linuxfan.com">BLUG@linuxfan.com</a>
> <a class="moz-txt-link-freetext" href="http://mailman.cs.indiana.edu/mailman/listinfo/blug">http://mailman.cs.indiana.edu/mailman/listinfo/blug</a>
> </pre>
> </blockquote>
> </body>
> </html>

> _______________________________________________
> BLUG mailing list
> BLUG@linuxfan.com
> http://mailman.cs.indiana.edu/mailman/listinfo/blug


--
Mark Krenz
Bloomington Linux Users Group
http://www.bloomingtonlinux.org/

Sent from Mutt using Linux
_______________________________________________
BLUG mailing list
BLUG@linuxfan.com
http://mailman.cs.indiana.edu/mailman/listinfo/blug

No comments: