Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 16th May 2012, 06:58
cfuze cfuze is offline
Junior Member
 
Join Date: May 2012
Posts: 13
Thanks: 2
Thanked 0 Times in 0 Posts
Default LVM - Reassign space to other partitions

So, I am running Debian Squeeze and I know I should be running LVM (at least I think I should so I can add physical volumes later on if need be). I am new to LVM overall and have everything up and going, but I ran the volume report and found this:

Code:
Filesystem	Type	Size	Used	Available	Use%	Mounted on
/dev/mapper/server1-root						
ext3	322M	133M	173M	44%	/
tmpfs	tmpfs	7.9G	0	7.9G	0%	/lib/init/rw
udev	tmpfs	7.9G	156K	7.9G	1%	/dev
tmpfs	tmpfs	7.9G	0	7.9G	0%	/dev/shm
/dev/sda1	ext2	228M	16M	201M	8%	/boot
/dev/mapper/server1-home						
ext3	1.4T	198M	1.3T	1%	/home
/dev/mapper/server1-tmp						
ext3	368M	28M	322M	8%	/tmp
/dev/mapper/server1-usr						
ext3	8.3G	961M	6.9G	12%	/usr
/dev/mapper/server1-var						
ext3	2.8G	464M	2.2G	18%	/var
So basically my /var mount is 18% full and the /home partition has all the space. I will not be using the /home partition for users as this is a web server. What is the best way to reassign that space to the var partition or will it auto expand as needed?

Thanks and apologies but I am a quasi-noob to certain parts of linux especially when using it as a server.

Last edited by cfuze; 16th May 2012 at 06:59. Reason: Better title
Reply With Quote
Sponsored Links
  #2  
Old 17th May 2012, 13:17
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
 
Default

What you can try is: Move all stuff from /home to some backup folder (so that /home is completely empty), then copy everything from /var to the /home folder, unmount /home and /var, and mount /dev/mapper/server1-home to /var (don't forget to modify /etc/fstab if this works). Then copy the home stuff from the backup folder back to /home.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 9.10 with KVM and copying KVM disk image to LVM yowzator HOWTO-Related Questions 3 8th March 2010 14:29
Ubuntu 8.04 LTS - RAID 1 + LVM + XEN atjensen11 HOWTO-Related Questions 1 20th January 2009 21:35
Unable to repair/re-install ubunt svr ubuntu 8.04/8.10 on RAID 5 LVM lucy_t Installation/Configuration 5 19th December 2008 21:59
debian, lvm, raid, grub, custom kernel koi Installation/Configuration 4 3rd November 2007 11:39
Xen: Smp & Lvm zokahn HOWTO-Related Questions 5 27th January 2006 11:28


All times are GMT +2. The time now is 21:34.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.