Click to See Complete Forum and Search --> : Adding to var


jdvilla
06-17-2004, 04:14 PM
I just installed a hard drive because I want to have instances of a database server. I have one installed in /var which is it's own partition on hda. I already have a /usr/local and this is where I want to install the secondary db to. however /usr/local is a part of /

with the newly installed hd - hdb- is it possible and safe to simply create /usr/local on hdb.

If so, how will this affect the current /usr/local on hda. Will it simply expand it?

*And this is one of the few things in which I need to restart the server no?

mdwatts
06-18-2004, 01:13 PM
Create a new partition on hdb that will contain /usr/local, copy the contents of the original /usr/local to the new, add a entry to /etc/fstab for the new /usr/local

i.e.

/dev/hdb1 /usr/local .. etc.

remount the filesystems with

mount -a

check to see if /usr/local is mounted to hdb1 using

mount

and if everything looks ok, remove the original /usr/local on hda.