From owner-freebsd-questions Wed Jun 17 01:53:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA06291 for freebsd-questions-outgoing; Wed, 17 Jun 1998 01:53:23 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from lucy.bedford.net (lucy.bedford.net [206.99.145.54]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA06282 for ; Wed, 17 Jun 1998 01:53:19 -0700 (PDT) (envelope-from listread@lucy.bedford.net) Received: (from listread@localhost) by lucy.bedford.net (8.8.8/8.8.8) id EAA23977; Wed, 17 Jun 1998 04:42:10 -0400 (EDT) (envelope-from listread) Message-Id: <199806170842.EAA23977@lucy.bedford.net> Subject: Re: adding drive & filesystem facelift In-Reply-To: from Dave at "Jun 16, 98 10:50:18 pm" To: dave@gregory.dyn.ml.org (Dave) Date: Wed, 17 Jun 1998 04:42:10 -0400 (EDT) Cc: questions@FreeBSD.ORG X-no-archive: yes Reply-to: djv@bedford.net From: CyberPeasant X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dave wrote > > As I am finding myself running out of /var and swap space, I would like to > redo my current setup. I have a 3 Gigger and 850 meg: > > #df -k > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/wd0s1a 31775 16754 12479 57% / > /dev/wd0s1f 2864414 967950 1667311 37% /usr > /dev/wd0s1e 29727 12828 14521 47% /var > procfs 4 4 0 100% /proc > /dev/wd2c 805199 155051 585733 21% /usr/src > ... > I believe that somebody confirmed that FreeBSD will use more than one swap > partititions - are there any special concerns here or do I just create a > swap partition, add an fstab entry and be done with it? I believe that to be the case. But if the disks are of radically different speed, then swap and /tmp should preferentially go on the faster disk. (Especially in the case of IDE drives, which are not as optimizable as SCSI.) /usr/src and /usr are good choices for the pig. > Secondly, what the heck to I do about the old /var currently mounted on > /dev/wd0s1e? I really want to avoid repartioning that drive. Well, that depends. It's only 1% of the drive. you could just forget it. It looks like it borders on the high end of swap. Maybe you could use more swap on that drive. (Boot single user, and use disklabel -e to enlarge the swap parition. Carefully :) You could remount it on /root, maybe. /tmp is another likely candidate. Yeah. Mount it on /tmp is my vote. maybe / could be mounted read-only in this case. Here's a question for someone else: if you duped / onto it, could you make it boot (as an emergency measure) from that partition? This can be /quite/ handy for standalone use, or if wd0s1a gets corrupted. Make a small self-contained BSD in it. > Thirdly, and this idea was brought on by an earlier thread, am I better > off with a real /home rather than /usr/home? This seems advantageous to me > (and I'm really not trying to start a debate). The advantage of one big partition is more flexible storage use. Your free space is always in one place, not 10 megs here, 20 megs there. (Less problems like that orphaned /var). The disadvantage is that "one shot kills 'em all". Depending on how you backup, large partitions can be annoying. I'm a partisan of small partitions; the goal being to localize things, and to enable as much of the system as possible to be mounted read-only. > Lastly, am I overlooking a better solution? I'm thinking that maybe I can > implement some sort of optimization strategy in which I spread the > filesystems over the two disks to increase speed by utilizing my disks > more efficiently. Clearly this would have been much easier if I had a little easier > both disks installed when I installed FreeBSD, but if someone has a > suggestion, please point me in the right direction. Unfortunately, the big wins in optimization strategy come with SCSI disks. If you can, try putting the second IDE drive on a second controller channel, if your card|board has one. Ah, I see you already did that. Dave -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message