Mike Sheinberg on 10 Dec 2009 11:35:40 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] LVM partition re-arrangement?




On Thu, Dec 10, 2009 at 11:19 AM, Richard Freeman <r-plug@thefreemanclan.net> wrote:
On 12/10/2009 09:31 AM, Mike Sheinberg wrote:
> and I want to move the /var and /tmp partitions (only) to a new
> hard-disk. Can anyone provide me with some pointers on the best way to
> accomplish this? Is there anything inherently wrong with just copying
> over that data and remounting the /var to the new disk? Obviously I want
> to ensure the /home partition doesn't break from the LV.

Just to confirm - I take it that you're not just going to add the new
disk to the old volume group?  If you do that then you can actually use
LVM to move the partitions while they're still mounted.


Did some digging after posting the question and seems there is a lot for me to read up on regarding LVM :) Sounds like I can do a lot of stuff live with this set-up but I'm probably gonna dd the drive before-hand as a backup. I don't mind adding the new drive to the old volume group if that's the most straight-forward approach and doesn't cause any performance degradation. This machine will be an email server and I need the mail directories which are under var on their own drive for performance reasons.

In response to what Gordon mentioned about system-rescue-cd I've utilized partimage before to try to take an image but had some issues trying to restore it to another machine, but alas that issue is for another day.

Thanks guys,
Mike


___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug