Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am looking to move a /dev/mapper/VolGroup-lv-home to /dev/mapper/volgroup-lv-root. Can i delete the volumeGroup-lv-home and add it to the VolGroup-lv-root? I am running centos 6 64 bit. Not sure if i can do this with the fdisk command. Here is my output df-h.
Was out sick yesterday from work and really busy today on other projects but will look into both these links. If i have any issues or questions i will definitely post back here for info.
PV /dev/sda2 VG VolGroup lvm2 148.01 gb 84.26 free (So where did the 148-84=64 go). I need to get that added back with VolGroup-lv_root now.
When i run mount i see this.
/dev/mapper/VolGroup-lv_root on / type ext4 (rw) - i was seeing the VolGroup-lv_home as well until i unmounted it and removed it. Also when i ran the command lvdisplay i would see /dev/VolGroup/lv_root, /dev/VolGroup/lv_home, /dev/VolGroup/lv_swap (now i just see the lv_root and lv_swap)
Last edited by dmb2002man; 08-09-2011 at 10:23 AM.
since i deleted VolGroup-lv-home, it corrupted the system so it wouldnt boot. Now reinstalled linux and see the root and home volgroups. Now i just need to know how to merge them in 1 volgroup. Here is what i show on reinstall.
root@localhost#lvs
lv_home VolGroup -wi-ao 84.26 g
lv_root VolGroup -wi-ao 50.00 g
lv_swap VolGroup -wi-ao 13.75 g
So how can i take the home content and move it to lv_root. Then merge the lv_home to lv_group? thanks
Last edited by dmb2002man; 08-15-2011 at 01:38 PM.
This way you know it will work. If you don't have enough disk space try moving the data to an external drive and then redoing the logical volumes (this may be why the merge is failing.)
everything i posted was all setup default when i installed centos 6.0 on it. I wonder if i did something wrong when installing it to create all these VolGroup and not just keep 1.
i tried running the cp -pr /dev/mapper/VolGroup-lv_home /dev/mapper/VolGroup-lv_root but it doesn't really do nothing. See i cant view the contents in VolGroup-lv_root or VolGroup-lv_home as it says there not valid directory. Really don't know how to get this finished. I have setup lots of linux machines but not this dept. Need to figure out the volgroups and not sure what im doing wrong. I followed the links above.
Last edited by dmb2002man; 08-22-2011 at 09:56 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.