HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Different partitions to store users' sites (http://www.howtoforge.com/forums/showthread.php?t=23620)

WeRReD 26th May 2008 13:10

Different partitions to store users' sites
 
Hello.

Recently I've installed ISPConfig and really like it.

My question is if there is any possibility to use two different partitions for user's home simultaneously?

To clarify a bit:
I have two partitions ( '/' and '/mnt/partition2'). By default the sites are located in '/var/www' which is ok for now, but in some time I think I will run out of space in '/', thus I will need to switch to '/mnt/partition2'.

till 26th May 2008 13:24

You can not use two partitions at the same time. But what you can do is:

1) Stop all services like postfix, apache and the pop3 daemon:
2) rename /var/www to e.g. /var/www_old
3) remount /mnt/partition2 to /var/www (dont forget to change the mountpoint in /etc/fstab too, so the partition is correctly mounted when you reboot the next time).
4) run mv -f /var/www_old/* /var/www/
5) Start the daemons again.

WeRReD 26th May 2008 13:47

Oh I see.
Thanks a lot!

jnsc 26th May 2008 16:14

Or If you use LVM partitions you can add a disk and resize them


All times are GMT +2. The time now is 19:48.

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