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=4)
-   -   Move /var to new drive on Debian Etch running ISPConfig (http://www.howtoforge.com/forums/showthread.php?t=19323)

McMadd 11th January 2008 15:13

Move /var to new drive on Debian Etch running ISPConfig
 
Hello,

I'm running a Debian Etch server (build according to the Perfect Setup HOWTO) with the latest ISPConfig and recently added a second (bigger) hard drive.
Now I want to move /var to the new drive but obviously there are lots of processes accessing the dirs in /var constantly.

What would be the correct way to move /var?
How can I identify and stop those processes?
How can I be sure I've stopped them all?
Any suggestions on a new entry in fstab?

Some other remarks that might be helpful:
- I have no problem with a bit of downtime during the move.
- Please keep in mind I'm doing this remotely (ssh).
- Apart from the default "Perfect Setup" I also did this howto: "Server Monitoring With munin And monit On Debian Etch"

I hope anybody can guide me in making this a seamless move...

Tnx.

falko 12th January 2008 17:14

I'd create a new directory on the new hard drive, move everything from /var to that new directory (please make sure you preserve the permissions) and create a symlink from /var to the new directory.


All times are GMT +2. The time now is 11:03.

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