From owner-freebsd-questions Thu Aug 24 22: 9:12 2000 Delivered-To: freebsd-questions@freebsd.org Received: from srcso.globis.ru (globis.ru [212.248.80.7]) by hub.freebsd.org (Postfix) with ESMTP id 7E77C37B422 for ; Thu, 24 Aug 2000 22:09:08 -0700 (PDT) Received: from raduga.dyndns.org (raduga.sochi.net [212.248.82.76]) by srcso.globis.ru (8.9.3/8.9.3) with ESMTP id JAA03375 for ; Fri, 25 Aug 2000 09:24:25 +0400 (MSD) (envelope-from igor@raduga.dyndns.org) Received: (from igor@localhost) by raduga.dyndns.org (8.10.0/8.10.0) id e7P591o17314 for freebsd-questions@FreeBSD.ORG; Fri, 25 Aug 2000 09:09:01 +0400 Date: Fri, 25 Aug 2000 09:09:01 +0400 From: Igor Roboul To: freebsd-questions@FreeBSD.ORG Subject: Re: Re-partioning hard disk Message-ID: <20000825090901.E16762@linux.rainbow> Reply-To: igorr@crosswinds.net Mail-Followup-To: freebsd-questions@FreeBSD.ORG References: <39A5FA47.B5620A41@pop.jaring.my> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre4i In-Reply-To: <39A5FA47.B5620A41@pop.jaring.my>; from netline@pop.jaring.my on Fri, Aug 25, 2000 at 12:47:04PM +0800 X-Operating-System: Linux linux.rainbow 2.2.14-plus-SMP X-Best-Window-Manager: Window Maker (www.windowmaker.org) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Aug 25, 2000 at 12:47:04PM +0800, K H Tan wrote: > Hello, > > I've some questions : > > 1) I've decided to re-partition my hard disk, to allocate more space to > /var for e.g. Is there a way to do this or do I have to reinstall the > whole OS? > > 2) Currently I have one NIC installed. If I install another one and > connect both to a switching hub, will I get double bandwidth? > How do I go about making the NICs redundant - in case one fails, the > other takes over? > > Thank you. Step by step: 1) Copy content of /var to (for exampe) /usr/var_bak 2) remove /var from /etc/fstab (or comment it out) 3) modify /etc/rc: after mounting / add "rmdir /var ; ln -s /usr/var_bak /var" 4) reboot 5) now you can make new slice for /var 6) mount it on /mnt 7) cp from /usr/var_bak 8) remove your additions from /etc/rc 9) add entry for new /var into /etc/fstab 10) reboot 11) if all is Ok, then remove /usr/var_bak -- Igor Roboul, Unix System Administrator & Programmer @ sanatorium "Raduga" http://www.brainbench.com/transcript.jsp?pid=304744 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message