[Linux] Combining partitions

Tim Krabec linux@flux.org
Tue, 19 Aug 2008 11:58:18 -0400


------=_Part_35529_25377785.1219161498951
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

another way might be a date heirchy
photos/2005-months- days
          /2006-months
link/2007-months
    /2008
etc

On Tue, Aug 19, 2008 at 11:12 AM, Aaron Wolfe <Aaron@kdtsolutions.com>wrote:

>
>
> > -----Original Message-----
> > From: linux-admin@flux.org [mailto:linux-admin@flux.org] On
> > Behalf Of Steven Benmosh
> > Sent: Monday, August 18, 2008 11:36 PM
> > To: linux@flux.org
> > Subject: Re: [Linux] Combining partitions
> >
> > Wouldn't it be simpler to mount /free under /photos? I have
> > done it once several years ago, when I added a second drive.
> > I believe I mounted the new drive as a file under
> > /home/someuser, using the mount command.
> >
> > Someone more knowledgeable than myself, please add specifics
> > (mount --bind /free /photos/free?)!
> >
> > Z.
> >
>
> I don't think this would accomplish what the OP asked for, but it is a much
> simpler way to add space under a specific part of a directory structure.
>  Given the linear way photos tend to accumulate over time for most folks, it
> might be worth considering something along these lines.
>
> I had a situation where I ran out of space of a partition used for music.
>  Rather that deal with converting to LVM I just mounted the old and new
> partions under a main directory and called one A-M and the other N-Z :)
>
> Something to consider, but not exactly what he was asking for...
> -Aaron
>
>
>
> >
> >
> >
> > On Mon, Aug 18, 2008 at 2:19 PM, <kwan@digitalhermit.com> wrote:
> >
> >
> >       Quoting David Williams <dwilliams@dtw-consulting.com>:
> >
> >
> >
> >               I think what I am after is LVM, but now you've
> > got me wondering.  So, with
> >               this I can add other partitions to the logical
> > partition to increase the
> >               space on the logical partition ?
> >
> >               Do I then need to always access this via the
> > logical partition name ?
> >
> >
> >
> >       It sounds like LVM2 will do what you want, but there
> > are some clarifications:
> >
> >       You can't just "merge" the two partitions.. It is a
> > copy/delete operation that you will do. That is, if you don't
> > already have enough free space in the volume group or
> > filesystem associated with the destination partition, then
> > you will need to copy the source files elsewhere then copy them back.
> >       Say you have logical volumes lv_data1 and lv_data2 of
> > 20G apiece, mounted as /data1 and /data2. You want to merge
> > /data2 to be part of /data1. Both are in the volume group
> > vg_data, but vg_data has only 1G space available to
> > allocation. To "merge" the /data1 and /data2 partitions you'd
> > first need to copy /data2 to other storage. Next you'd
> > unmount /data2, delete the LV (thus freeing its LPs/PPs back
> > to the volume group), then expand /data1 with the space you
> > just reclaimed. Finally you can copy the original /data2
> > stuff to the resized /data1.
> >
> >
> >       _______________________________________________
> >       Linux mailing list
> >       Linux@flux.org
> >       http://www.flux.org/mailman/listinfo/linux
> >
> >
> >
> >
> >
> > --
> > Check out my web site - www.words2u.net
> >
> >
> _______________________________________________
> Linux mailing list
> Linux@flux.org
> http://www.flux.org/mailman/listinfo/linux
>



-- 
Tim Krabec
Kracomp
772-597-2349
kracomp.blogspot.com
www.kracomp.com

------=_Part_35529_25377785.1219161498951
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div dir="ltr">another way might be a date heirchy<br>photos/2005-months- days<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /2006-months<br>link/2007-months<br>&nbsp;&nbsp;&nbsp; /2008<br>etc<br><br><div class="gmail_quote">On Tue, Aug 19, 2008 at 11:12 AM, Aaron Wolfe <span dir="ltr">&lt;<a href="mailto:Aaron@kdtsolutions.com">Aaron@kdtsolutions.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d"><br>
<br>
&gt; -----Original Message-----<br>
&gt; From: <a href="mailto:linux-admin@flux.org">linux-admin@flux.org</a> [mailto:<a href="mailto:linux-admin@flux.org">linux-admin@flux.org</a>] On<br>
</div><div class="Ih2E3d">&gt; Behalf Of Steven Benmosh<br>
&gt; Sent: Monday, August 18, 2008 11:36 PM<br>
&gt; To: <a href="mailto:linux@flux.org">linux@flux.org</a><br>
&gt; Subject: Re: [Linux] Combining partitions<br>
&gt;<br>
</div><div class="Ih2E3d">&gt; Wouldn&#39;t it be simpler to mount /free under /photos? I have<br>
&gt; done it once several years ago, when I added a second drive.<br>
&gt; I believe I mounted the new drive as a file under<br>
&gt; /home/someuser, using the mount command.<br>
&gt;<br>
&gt; Someone more knowledgeable than myself, please add specifics<br>
&gt; (mount --bind /free /photos/free?)!<br>
&gt;<br>
&gt; Z.<br>
&gt;<br>
<br>
</div>I don&#39;t think this would accomplish what the OP asked for, but it is a much simpler way to add space under a specific part of a directory structure. &nbsp;Given the linear way photos tend to accumulate over time for most folks, it might be worth considering something along these lines.<br>

<br>
I had a situation where I ran out of space of a partition used for music. &nbsp;Rather that deal with converting to LVM I just mounted the old and new partions under a main directory and called one A-M and the other N-Z :)<br>

<br>
Something to consider, but not exactly what he was asking for...<br>
<font color="#888888">-Aaron<br>
</font><div><div></div><div class="Wj3C7c"><br>
<br>
<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Aug 18, 2008 at 2:19 PM, &lt;<a href="mailto:kwan@digitalhermit.com">kwan@digitalhermit.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; Quoting David Williams &lt;<a href="mailto:dwilliams@dtw-consulting.com">dwilliams@dtw-consulting.com</a>&gt;:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; I think what I am after is LVM, but now you&#39;ve<br>
&gt; got me wondering. &nbsp;So, with<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this I can add other partitions to the logical<br>
&gt; partition to increase the<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; space on the logical partition ?<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Do I then need to always access this via the<br>
&gt; logical partition name ?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; It sounds like LVM2 will do what you want, but there<br>
&gt; are some clarifications:<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; You can&#39;t just &quot;merge&quot; the two partitions.. It is a<br>
&gt; copy/delete operation that you will do. That is, if you don&#39;t<br>
&gt; already have enough free space in the volume group or<br>
&gt; filesystem associated with the destination partition, then<br>
&gt; you will need to copy the source files elsewhere then copy them back.<br>
&gt; &nbsp; &nbsp; &nbsp; Say you have logical volumes lv_data1 and lv_data2 of<br>
&gt; 20G apiece, mounted as /data1 and /data2. You want to merge<br>
&gt; /data2 to be part of /data1. Both are in the volume group<br>
&gt; vg_data, but vg_data has only 1G space available to<br>
&gt; allocation. To &quot;merge&quot; the /data1 and /data2 partitions you&#39;d<br>
&gt; first need to copy /data2 to other storage. Next you&#39;d<br>
&gt; unmount /data2, delete the LV (thus freeing its LPs/PPs back<br>
&gt; to the volume group), then expand /data1 with the space you<br>
&gt; just reclaimed. Finally you can copy the original /data2<br>
&gt; stuff to the resized /data1.<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; _______________________________________________<br>
&gt; &nbsp; &nbsp; &nbsp; Linux mailing list<br>
&gt; &nbsp; &nbsp; &nbsp; <a href="mailto:Linux@flux.org">Linux@flux.org</a><br>
&gt; &nbsp; &nbsp; &nbsp; <a href="http://www.flux.org/mailman/listinfo/linux" target="_blank">http://www.flux.org/mailman/listinfo/linux</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Check out my web site - <a href="http://www.words2u.net" target="_blank">www.words2u.net</a><br>
&gt;<br>
&gt;<br>
_______________________________________________<br>
Linux mailing list<br>
<a href="mailto:Linux@flux.org">Linux@flux.org</a><br>
<a href="http://www.flux.org/mailman/listinfo/linux" target="_blank">http://www.flux.org/mailman/listinfo/linux</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Tim Krabec<br>Kracomp<br>772-597-2349<br><a href="http://kracomp.blogspot.com">kracomp.blogspot.com</a><br><a href="http://www.kracomp.com">www.kracomp.com</a><br>

</div>

------=_Part_35529_25377785.1219161498951--