Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
08-03-2011, 10:03 AM
|
#1
|
LQ Newbie
Registered: Aug 2011
Posts: 9
Rep: 
|
move VolGroup-lv-home to VolGroup-lv-root
Hello,
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.
[root@localhost]# df -h
Filesystem size used avail use% mounted on
/dev/mapper/VolGroup-lv_root
50g 1.1g 46g 3% /
tmpfs 5.9g 0 5.9g 0% /dev/shm
/dev/sda1 485m 58m 403m 13% /boot
/dev/mapper/VolGroup-lv-home
83g 184m 79g 1% /home
any help would be appreciated.
thanks
Last edited by dmb2002man; 08-03-2011 at 12:36 PM.
|
|
|
08-05-2011, 01:32 PM
|
#3
|
LQ Newbie
Registered: Aug 2011
Posts: 9
Original Poster
Rep: 
|
Quote:
Originally Posted by chrism01
|
hey thanks,
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.
|
|
|
08-09-2011, 10:18 AM
|
#4
|
LQ Newbie
Registered: Aug 2011
Posts: 9
Original Poster
Rep: 
|
Ok so i am completely lost now. I tried running the vgmerge command
vgmerge VolGroup-lv_root VolGroup-lv_home but was giving me this error:
Volume Group "VolGroup-lv-home" not found.
I removed the /dev/mapper/VolGroup-lv_home by running this command.
umount /dev/VolGroup/lv_home
lvremove /dev/VolGroup/lv_home
Then did a pvscan and it shows this.
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.
|
|
|
08-12-2011, 08:54 AM
|
#5
|
LQ Newbie
Registered: Aug 2011
Posts: 9
Original Poster
Rep: 
|
Can someone please help me with this. Still having issues.
|
|
|
08-15-2011, 01:18 PM
|
#6
|
LQ Newbie
Registered: Aug 2011
Posts: 9
Original Poster
Rep: 
|
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.
|
|
|
08-17-2011, 10:15 AM
|
#7
|
LQ Newbie
Registered: Aug 2011
Posts: 9
Original Poster
Rep: 
|
when i try vgmerge i get this error and not sure why.
root@localhost#df -h
/dev/mapper/VolGroup-lv_root
/dev/mapper/VolGroup-lv_home
so when i run this: vgmerge VolGroup-lv_home VolGroup-lv_root
Volume group "VolGruop-lv_home" not found
|
|
|
08-17-2011, 06:25 PM
|
#8
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,442
|
So, is that typo something you did here, or did you type it in wrong on your system?
Try copy and pasting what you see, do not re-write by hand.
|
|
|
08-18-2011, 01:08 PM
|
#9
|
LQ Newbie
Registered: Aug 2011
Posts: 9
Original Poster
Rep: 
|
Quote:
Originally Posted by chrism01
So, is that typo something you did here, or did you type it in wrong on your system?
Try copy and pasting what you see, do not re-write by hand.
|
not sure why i would really have to do that. Why doesn't the merge command work?
|
|
|
08-18-2011, 01:48 PM
|
#10
|
Member
Registered: Sep 2008
Distribution: Fedora
Posts: 129
Rep:
|
Quote:
Originally Posted by dmb2002man
not sure why i would really have to do that. Why doesn't the merge command work?
|
Because it didn't work. I know it's more work for you but I think chrism01 is going down the right track.
Quote:
Originally Posted by chrism01
|
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.)
|
|
|
08-18-2011, 01:56 PM
|
#11
|
LQ Newbie
Registered: Aug 2011
Posts: 9
Original Poster
Rep: 
|
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.
|
|
|
08-19-2011, 08:22 AM
|
#12
|
LQ Newbie
Registered: Aug 2011
Posts: 9
Original Poster
Rep: 
|
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.
|
|
|
All times are GMT -5. The time now is 01:00 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|