[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> /2006-months<br>link/2007-months<br> /2008<br>etc<br><br><div class="gmail_quote">On Tue, Aug 19, 2008 at 11:12 AM, Aaron Wolfe <span dir="ltr"><<a href="mailto:Aaron@kdtsolutions.com">Aaron@kdtsolutions.com</a>></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>
> -----Original Message-----<br>
> 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">> Behalf Of Steven Benmosh<br>
> Sent: Monday, August 18, 2008 11:36 PM<br>
> To: <a href="mailto:linux@flux.org">linux@flux.org</a><br>
> Subject: Re: [Linux] Combining partitions<br>
><br>
</div><div class="Ih2E3d">> Wouldn't it be simpler to mount /free under /photos? I have<br>
> done it once several years ago, when I added a second drive.<br>
> I believe I mounted the new drive as a file under<br>
> /home/someuser, using the mount command.<br>
><br>
> Someone more knowledgeable than myself, please add specifics<br>
> (mount --bind /free /photos/free?)!<br>
><br>
> Z.<br>
><br>
<br>
</div>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.<br>
<br>
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 :)<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>
><br>
><br>
><br>
> On Mon, Aug 18, 2008 at 2:19 PM, <<a href="mailto:kwan@digitalhermit.com">kwan@digitalhermit.com</a>> wrote:<br>
><br>
><br>
> Quoting David Williams <<a href="mailto:dwilliams@dtw-consulting.com">dwilliams@dtw-consulting.com</a>>:<br>
><br>
><br>
><br>
> I think what I am after is LVM, but now you've<br>
> got me wondering. So, with<br>
> this I can add other partitions to the logical<br>
> partition to increase the<br>
> space on the logical partition ?<br>
><br>
> Do I then need to always access this via the<br>
> logical partition name ?<br>
><br>
><br>
><br>
> It sounds like LVM2 will do what you want, but there<br>
> are some clarifications:<br>
><br>
> You can't just "merge" the two partitions.. It is a<br>
> copy/delete operation that you will do. That is, if you don't<br>
> already have enough free space in the volume group or<br>
> filesystem associated with the destination partition, then<br>
> you will need to copy the source files elsewhere then copy them back.<br>
> Say you have logical volumes lv_data1 and lv_data2 of<br>
> 20G apiece, mounted as /data1 and /data2. You want to merge<br>
> /data2 to be part of /data1. Both are in the volume group<br>
> vg_data, but vg_data has only 1G space available to<br>
> allocation. To "merge" the /data1 and /data2 partitions you'd<br>
> first need to copy /data2 to other storage. Next you'd<br>
> unmount /data2, delete the LV (thus freeing its LPs/PPs back<br>
> to the volume group), then expand /data1 with the space you<br>
> just reclaimed. Finally you can copy the original /data2<br>
> stuff to the resized /data1.<br>
><br>
><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>
><br>
><br>
><br>
><br>
><br>
> --<br>
> Check out my web site - <a href="http://www.words2u.net" target="_blank">www.words2u.net</a><br>
><br>
><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--