Mike Sheinberg on 10 Dec 2009 06:31:49 -0800


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

[PLUG] LVM partition re-arrangement?


Hey all,

I was hoping someone could provide me with some advice on how to move a partition that is currently part of a LVM group on my CentOS box. Below is the current set-up:

LABEL=/                 /                       ext3    defaults        1 1
/dev/VolGroup00/home    /home                   ext3    defaults        1 2
/dev/VolGroup00/var     /var                    ext3    defaults        1 2
/dev/VolGroup00/tmp     /tmp                    ext3    defaults        1 2
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
LABEL=SWAP-sda3         swap                    swap    defaults        0 0

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.

Thanks!
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