How to move directories
DISCLAIMER:
You are following these suggestions at your own risk. We do not claim them to be correct, complete or working for you. We will not support the instructions. We will not be bound by any liabilities neither direct nor implied. YOU ARE ACTING AT YOUR OWN RISK. If you are not sure of what you are doing we suggest you contact an expert. Otherwise we are happy to be of service and your comments are appreciated: support@blue.net.au
- Shutdown all programs (servers) that would write to or read from the directory to be moved. The example I am using is: move /var/log to a new location (/aux —->>> see also how to add a new harddisk). So shutdown syslog and squid and httpd with:
/etc/r*/*/squid stop
/etc/r*/*/httpd stop
/etc/r*/*/syslog stop
(there might be others. Please check and don’t forget your users, if you move /home or /usr) - Type:
mv /var/log /aux/var/log - Create a link from the old to the new location:
ln -s /aux/var/log /var/log - Start the servers you shut down
/etc/r*/*/squid start
/etc/r*/*/httpd start
/etc/r*/*/syslog start - Done. All should now work as before. Examine your disk space with:
df -h.
Disclaimer:
By reading and/or using the information within this web page you agree to hold the author, publisher and all related entities harmless from any claim directly or indirectly related to the information given or the use of any part of the information on this web site. Use at own risk. No responsibility taken.