Date: Wed, 14 Oct 1998 06:14:12 -0700 From: Graeme Tait <graeme@echidna.com> To: Greg Lehey <grog@lemis.com> Cc: FreeBSD Questions <questions@FreeBSD.ORG> Subject: Re: Disk Partitioning (was Clearing /var/mail) Message-ID: <3624A3A4.1E79@echidna.com> References: <75B246B6570BD211815E0060B05785010355DF@naeugnt1.netassociates.com> <75B246B6570BD211815E0060B057850148EF@naeugnt1.netassociates.com> <19981014113501.C21983@freebie.lemis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Greg Lehey wrote:
> It's difficult to do it with a symlink alone, since that would
> effectively rename the directory. You can move everything to a
> different file system and have symlink pointing to the new location;
> in fact, that's what I do. This is one reason why I recommend to have
> only one file system on a disk.
Could you please explain this?
I ask because I recently purchased a couple of systems from a supplier who
installed FreeBSD for us. Being a beginner, I accepted his recommendation (see
below), which seems to go to the other extreme.
I take it that the use of s1c in the original scheme is an oversight, and that
you can't do that?
But if you look at the final allocation of disk 1 below now, there are 7
partitions used and cylinders still unallocated. How can those cylinders be
allocated now?
The other thing I don't understand about this setup is that it is running CAM
(2.2.7-STABLE + CAM), but the SCSI disks turn up in disklabel as sd* rather than
da*. Does this matter? It seems you can refer to the disks as both sd* and da*
when you do disklabel -r, etc.
(Sorry for the verbose listings.)
His original recommendation was as follows (the disks are 4.5GB U2W SCSI):
---------------------------------------------------------------------------
As far as the install goes, the only info I'd want would be partitioning
info. Here is what I'd recommend, but feel free to tell me where to go if
it won't suit your needs:
Disk1: s1a / 200 MB will include /etc /stand /root, etc
s1b swap 128 MB need at least as much swap as RAM
s1c /usr 200 MB most of /usr will be below...
s1d,na /usr/src 250 MB system source code (kernel + apps)
s1e,na /usr/ports 300 MB Ports + room for src, compiles
s1f /tmp 300 MB
s1g /var 200 MB for mail, news, logs, etc.
s1h <unused> ~3000 MB /home, /public_html, ???
Disk2: s1a swap 128 MB using 2 disks for swap = 2x speed
s1b /usr/X11R6 300 MB X11 libs, exec, man, bin
s1c /usr/local 700 MB All apps from ports, pkg, & you
s1d /usr/obj 350 MB object files from make world
<unused> ~3000 MB ???
The above setup is the optimal for FreeBSD, but perhaps not the optimal
for administration. If these machines get hit hard and need really good
IO, above is the way to go. Splitting data across disks improves
perfomance (esp. /usr/src and /usr/obj, and different swaps). Having
/usr/ports, /usr/src, and /usr/obj on their own partition imporves
anything that searches for files, since you can unmount these directories
when not used (almost always!) and eliminate almost 100,000 files from the
tree.
---------------------------------------------------------------------------
As installed, it became:
---------------------------------------------------------------------------
# Device Mountpoint FStype Options Dump Pass#
/dev/da0s1b none swap sw 0 0
/dev/da1s1b none swap sw 0 0
/dev/da0s1a / ufs rw 1 1
/dev/da0s1h /tmp ufs rw 2 2
/dev/da0s1e /usr ufs rw 2 2
/dev/da1s1e /usr/obj ufs rw,noauto,async,noatime 2 2
/dev/da0s1g /usr/ports ufs rw,noauto,async,noatime 2 2
/dev/da0s1f /usr/src ufs rw,noauto,async,noatime 2 2
/dev/da0s1d /var ufs rw 2 2
/dev/cd0c /cdrom cd9660 ro,noauto 2 2
proc /proc procfs rw 0 0
---------------------------------------------------------------------------
# /dev/rda0c:
type: SCSI
disk: sd0s1
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 553
sectors/unit: 8888924
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 409600 0 4.2BSD 0 0 0 # (Cyl. 0 - 25*)
b: 524288 409600 swap # (Cyl. 25*- 58*)
c: 8888924 0 unused 0 0 # (Cyl. 0 - 553*)
d: 409600 5849088 4.2BSD 0 0 0 # (Cyl. 364*- 389*)
e: 3072000 933888 4.2BSD 0 0 0 # (Cyl. 58*- 249*)
f: 512000 4005888 4.2BSD 0 0 0 # (Cyl. 249*- 281*)
g: 716800 4517888 4.2BSD 0 0 0 # (Cyl. 281*- 325*)
h: 614400 5234688 4.2BSD 0 0 0 # (Cyl. 325*- 364*)
---------------------------------------------------------------------------
--
Graeme Tait - Echidna
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3624A3A4.1E79>
