Date: Sat, 04 Nov 2006 13:39:48 +0100 From: "O. Hartmann" <ohartman@mail.zedat.fu-berlin.de> Cc: freebsd-stable@freebsd.org Subject: Re: adding an extra hard disk and adding space to /usr Message-ID: <454C8A14.1010405@mail.zedat.fu-berlin.de> In-Reply-To: <20061104123353.b9710e70.torfinn.ingolfsen@broadpark.no> References: <20061103120052.75B4916A6D5@hub.freebsd.org> <000001c6ff95$dfcd6df0$0201a8c0@bedroom> <20061104123353.b9710e70.torfinn.ingolfsen@broadpark.no>
next in thread | previous in thread | raw e-mail | index | archive | help
Torfinn Ingolfsen wrote: > On Fri, 03 Nov 2006 17:17:33 -0500 > Matt Smith <ratman6@charter.net> wrote: > > >> Hello all, >> I have a machine that just had a new HD added to it as ad1 and I >> want to ADD this new disk onto the already existing /usr partition. >> What's the best and safest way to do it? >> > > In my experience, there are only a handful of directories in /usr that > uses lots of disk space. > And they are related to two things: > - building the system (/usr/src and /usr/obj) > - building ports (/usr/ports, more specifically /usr/ports/distfiles) > > Of course, YMMV. > > Anyway, it is quite easy to install the new disk under a new > mountpoint, say .. /extra1 > Then you can copy the data from the directories in question with your > favorite combination of cp, tar or find / cpio. > Example: > /usr/ports/distfiles --> /etxtra1/distfiles > /usr/src --> /extra1/usr/src > /usr/obj --> /extra1/usr/obj (it is perhaps easier to just blow away > obj and recreate it - > your choice) > and so on. > > Finally, you symlink the new directories to their old place using 'ln > -s'. > Note: I prefer to rename the old directory first instead of removing > it, in case something doesn't work. > > After testing that the new setup works, you can safely remove the old > renamed directories. > > Please also note that this is just one way of doing things - there are > others. > > You should also put /usr/src and /usr/obj on different devices, prefereably /usr/obj not on the system or any high I/O data device (if not on RAID). This speeds up buildworld! -- O. Hartmann Freie Universitaet Berlin Institut fuer Geowissenschaften Fernerkundung der Erde und Planeten Malteser-Str. 74 - 100/Haus D D-12249 Berlin Tel.: +49 (0) 30 838 70 508 FAX: +49 (0) 30 838 70 837
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?454C8A14.1010405>