#1  
Old 2nd August 2012, 17:28
Unfaiir Unfaiir is offline
HowtoForge Supporter
 
Join Date: Jul 2012
Location: Orange County, CA, USA
Posts: 43
Thanks: 14
Thanked 4 Times in 2 Posts
Exclamation Disk Usage Help?

I followed the guide on installing ISPConfig 3 on a fresh CentOS 6 and its all up and running well now. When I goto "Monitor" => "Disk Usage" within ISPConfig I see this:

Code:
Filesystem 	Type 	Size 	Used 	Available 	Use% 	Mounted on
/dev/mapper/VolGroup-lv_root						
	ext4	50G	3.3G	44G	7%	/
tmpfs	tmpfs	1.8G	0	1.8G	0%	/dev/shm
/dev/sda1	ext4	485M	98M	362M	22%	/boot
/dev/mapper/VolGroup-lv_home						
	ext4	864G	269M	820G	1%	/home
Whenever I add a new site and all the files, it is going onto the / partition and not the /home partition. My /home partition has 820G and the / partition only has 44G. I'm not really sure what to do, apart from the guide I've never had to deal with mounting or partitioning myself, as I'm new at this.

Can someone please let me know what the optimal solution here is to either swap the capacities of the partitions or to change which partition the website files are stored on and how to do it?

Thank you.
Reply With Quote
Sponsored Links
  #2  
Old 2nd August 2012, 17:45
Athar Athar is offline
Junior Member
 
Join Date: Apr 2012
Location: France
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to Athar
Default

In theory, website files are stored in /var/www
So, it's normal that the file system in use here is / and not /home

I will install a multi server environment soon, so I will verify that.
Reply With Quote
  #3  
Old 2nd August 2012, 17:51
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,373
Thanks: 833
Thanked 5,478 Times in 4,313 Posts
Default

Website files are stored in /var/www and email files in /var/vmail, so a large /var partition is recommended.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 2nd August 2012, 18:17
Unfaiir Unfaiir is offline
HowtoForge Supporter
 
Join Date: Jul 2012
Location: Orange County, CA, USA
Posts: 43
Thanks: 14
Thanked 4 Times in 2 Posts
Default /var partition

I'm not sure how these partitions were setup in the first place, I just followed the guide. How do I setup a /var partition and reallocate all those gigabytes to the new /var partition from /home partition? Additionally, should I even create a /var partition or just increase the limit of the / partition?
Reply With Quote
  #5  
Old 3rd August 2012, 14:18
cfoe cfoe is offline
ISPConfig Developer
 
Join Date: Oct 2011
Location: NRW, Germany
Posts: 233
Thanks: 27
Thanked 57 Times in 32 Posts
Send a message via Skype™ to cfoe
Default

what kind of server are you using?
a machine at home/office? a dedicated/virtual server from a hosting company?

I also use CentOS 5 and 6 and with the standard partitioning selected on setup such a configuration should not occur.
__________________
Christian Foellmann

OpenSource-Projects - GitHub-Projects - SVN-Mirrors on GitHub - Foe Services
Reply With Quote
  #6  
Old 4th August 2012, 18:54
Unfaiir Unfaiir is offline
HowtoForge Supporter
 
Join Date: Jul 2012
Location: Orange County, CA, USA
Posts: 43
Thanks: 14
Thanked 4 Times in 2 Posts
Default

Quote:
Originally Posted by cfoe View Post
what kind of server are you using?
a machine at home/office? a dedicated/virtual server from a hosting company?

I also use CentOS 5 and 6 and with the standard partitioning selected on setup such a configuration should not occur.
Its a home server. I used the standard partitioning as well on setup, CentOS 6.3. Is there a way to fix this or do I need to wipe and re-install everything?
Reply With Quote
  #7  
Old 7th August 2012, 12:07
cfoe cfoe is offline
ISPConfig Developer
 
Join Date: Oct 2011
Location: NRW, Germany
Posts: 233
Thanks: 27
Thanked 57 Times in 32 Posts
Send a message via Skype™ to cfoe
Default

Windows is my domain although I love Linux/CentOS. In Windows I would know what to do.
Sorry.
__________________
Christian Foellmann

OpenSource-Projects - GitHub-Projects - SVN-Mirrors on GitHub - Foe Services
Reply With Quote
  #8  
Old 8th August 2012, 14:00
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

You could move the /home stuff to another directory (on the / partition, e.g. /home_tmp), delete the /dev/mapper/VolGroup-lv_home logical volume, extend the /dev/mapper/VolGroup-lv_root logical volume (make sure you extend the file system as well) and then rename /home/tmp to /home.

You can find instructions here: http://www.howtoforge.com/linux_lvm
__________________
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
  #9  
Old 19th September 2012, 17:09
Unfaiir Unfaiir is offline
HowtoForge Supporter
 
Join Date: Jul 2012
Location: Orange County, CA, USA
Posts: 43
Thanks: 14
Thanked 4 Times in 2 Posts
Default extend file system as well?

Quote:
Originally Posted by falko View Post
You could move the /home stuff to another directory (on the / partition, e.g. /home_tmp), delete the /dev/mapper/VolGroup-lv_home logical volume, extend the /dev/mapper/VolGroup-lv_root logical volume (make sure you extend the file system as well) and then rename /home/tmp to /home.

You can find instructions here: http://www.howtoforge.com/linux_lvm
Thank you for the great tutorial on LVM and the solution to fix the volume groups!

When trying to remove the /home entry from /etc/fstab I get this:

Code:
E325: ATTENTION
Found a swap file by the name "/etc/.fstab.swp"
          owned by: root   dated: Wed Sep 19 08:39:26 2012
         file name: /etc/fstab
          modified: YES
         user name: root   host name: myserver.com
        process ID: 20493
While opening file "/etc/fstab"
             dated: Sat Jul 21 11:53:34 2012

(1) Another program may be editing the same file.
    If this is the case, be careful not to end up with two
    different instances of the same file when making changes.
    Quit, or continue with caution.

(2) An edit session for this file crashed.
    If this is the case, use ":recover" or "vim -r /etc/fstab"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file "/etc/.fstab.swp"
    to avoid this message.
"/etc/fstab" 16L, 917C
Press ENTER or type command to continue
What should I do? Is ISP Config 3 or related app keeping this open?

Last edited by Unfaiir; 19th September 2012 at 18:17.
Reply With Quote
  #10  
Old 19th September 2012, 19:09
Unfaiir Unfaiir is offline
HowtoForge Supporter
 
Join Date: Jul 2012
Location: Orange County, CA, USA
Posts: 43
Thanks: 14
Thanked 4 Times in 2 Posts
 
Exclamation How to Unmount /dev/mapper/VolGroup-lv_root?

Hey Falko,

Following your suggestion I've successfully removed the /home LV and also removed it from /etc/fstab.

I'm now trying to increase the size of the / LV but it won't let me unmount it because it says:

"device is busy."

What can I do to the / LV?
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
Mailbox disk usage in ISPConfig3 Captain Installation/Configuration 2 13th July 2012 11:47
Disk Usage Amorphous Installation/Configuration 3 6th November 2011 00:29
Adding non-RAID backup disk to system with RAID 1... BorderAmigos Installation/Configuration 1 20th February 2010 20:50
Accessing Devices from Inside VPS i need help! swap-as Installation/Configuration 2 8th May 2009 14:45
chgrp error new user DKA General 15 28th July 2008 17:45


All times are GMT +2. The time now is 12:20.


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