Bryce Stenberg wrote, On 01/04/10 14:48:
I have two hard drives on this server.
Everything except /home is on the first drive.
/home is on the second drive, as configured during the install.

(so now the bit I don’t get):
I also want /var on the second drive.
I want /var and /home to be on the same partition on the second drive.
How do I go about that?
I get confused as /home is currently the mount point for that whole partition, so how do I add /var in at that level also? In windows I’d just add or move the directories on to the second drive, not sure what to do in linux.

If the home partition uses the complete second drive then you're stuffed.

You'll either have to reduce the size of the sdb1 partition to provide room on sdb for sdb2, or add a third drive.

You could move var into /home, but its a horrible answer. Package management can get terribly upset. As root, something like:

init 1
mkdir /home/var
rsync -avH /var /home/var
mv /var /var.old
ln -s /home/var /var
reboot


In the future use PVs and create enough space for what you need, with some spare extents for adding to LVs later, if needed.



--
Craig Falconer

Reply via email to