Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-30-2012, 07:45 AM   #1
LQ Newbie
Registered: Dec 2012
Posts: 6

Rep: Reputation: Disabled
I'm in a bit of a jam having botched my /var relocation project...

My first foray into virtualization yielded fruit two days ago. I stood up a 30G image based qemu running Ubuntu svr 12.04 and newznab. Newznab has been rather frisky and had nearly consumed my mere 30GB image file so I started searching for solutions. I settled on a two step process:
1. Move /var to a Logical Volume (LV) on a Volume Group (VG) on seperate drives so that i would have much more room available to increase the aforementioned image size.
2. Resize the image to make room for resizing in the virtual machine(VM).

The hiccup: All my shinanigans were accomplished with the use of the system disk in rescue mode with a command prompt only. When i created the LV i used an M where it should have been a G. The following mv /mnt/sda2/var /mnt/varlv yielded alot of "no space left on device" errors. (in my defense, i intended to recreate /var as a mount point for the relocated contents) Now i have my /var spread all over the place.

I did a lvextend -L200G /dev/datavg/varlv and resized the ext3 files system... ok, here's the newbie question: How do i merge the folders /mnt/sda2/var and /mnt/varlv considering that i have a limited set of tools available (no rsync)?

Normally i would just do a re-install, but the last install started a day or two before xmas and it was ugly. (server inst / virtualization setup / create VM / load config newsnab / tweak all the settings to populate data, etc...) I would like to save this puppy if i can.
Old 12-31-2012, 08:28 AM   #2
Registered: Feb 2007
Location: UK
Posts: 150

Rep: Reputation: 19
You have rsync, just on the broken install. Run it directly from that bin directory after you mount it.
Old 12-31-2012, 10:31 AM   #3
LQ Newbie
Registered: Dec 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
I .. err... fixed it. I'm off to the virtualization thread to ask about how to create a vm with adequate size up front.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Run php web project on apache2 using /var/www fortran Linux - Server 6 03-29-2012 07:34 AM
Help! I botched LVM and botched most of system!!! Labyrinth Linux - Newbie 7 01-08-2008 04:50 AM
Installing "Jam" in Suse 10.0 64 bit dolphans1 SUSE / openSUSE 1 01-16-2006 03:47 AM
jam PIayer Linux - Software 3 01-04-2005 06:11 PM
The AMD 64 Bit Project Starts Tonight silverbullet Mandriva 4 09-24-2004 06:58 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:18 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration