On Sun, 2003-04-27 at 23:50, Ben Rosenberg wrote:
This is how my machine is layed out. :)
Filesystem 1K-blocks Used Available Use% Mounted on /dev/hda2 2071416 420560 1545632 22% / /dev/hdb1 59106972 9500192 46604236 17% /home /dev/hda1 5162796 1040640 3859900 22% /opt /dev/hda3 22185428 4294060 16764412 21% /usr
It is an alright layout, but personally I prefer something that splits off /var and /boot as well. A separate /usr is good, but you can not mount it r/o if you intend on using /usr/src and building your own things like kernel or the odd RPM. So a separate /usr/src might be handy as well. And for flexibility, use LVM, that way (with something like ReiserFS) you can grow and shrink your filesystems as you need it. Example: I started out with a 0.5GB /home. When I started filling it up, I added another 0.5GB. After a while that started to fill up, so I have added another 600MB. Should that prove to be to small, I'll add more. Beauty of LVM.
And yes, I've found that putting /opt on it's own slice at the beginning of the hard drive does speed things up. If one thinks about /opt is where KDE lives and those programs are quite large...so having them at the beginning of the disk does improve the speed. :)
Uhm, interesting observation. Commercial Unices like AIX advice you to put things you want to maximise access to on the Middle of the disk (with things running from Inner Edge to Outer Edge). Something about heads moving twice over the middle of the disk in a seek from inner edge to outer edge and back while achieving the best combination of data density and rotational speed.
And I got in the habit a couple years ago of putting /home on a seperate disk so I never had to worry about that kind of thing.
Best of all worlds if you can have it would be each LV on a separate disk, maximum of three disks per U320 SCSI bus and maximum of 6 disks per U320 adapter (if it has two buses). If your disks are 15k rpm your system will not likely have an I/O bottle neck after that.. ;-) Rgds, -- Anders Karlsson <anders@trudheim.com> Trudheim Technology Limited