[Linux] Combining partitions
Aaron Wolfe
linux@flux.org
Tue, 19 Aug 2008 11:12:55 -0400
> -----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 part=
ions 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
>
>