APLawrence - Information and Resources for Unix and Linux Systems, Bloggers and the self-employed
RSS Feeds Get APLawrence.com by RSS











(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Home > News Posts > file system layout - one big fs or divide?
Printer Friendly Version




News Group Posts

file system layout


There are a few basic reasons to have separate filesystems:

However, IMNSHO, there is damn little reason for this anymore, and I regularly and usually don't bother with separate fs's unless I have something specific in mind like /var/spool/tmp or some giant database.

However, one or more of these reasons may still apply:



  • There isn't space on the hard drive to fit everything you need. This, of course, was very common in the days of small hard drives, but seldom is an issue nowadays.

  • Related to that is the situation where you WANT the data on a separate drive for other reasons, but that forces a separate fs so it isn't a "reason", it's a requirement.

  • You want to control how much data gets put on a drive. For example, in some environments, I'll make /var/spool/lp/temp a small fs of its own. This causes it to fill up if there are too many unfulfilled print jobs, which calls attention to the problem before it really gets out of hand and fills up something more important. The idea here is that it's better not to print than not to work at all.

  • You can't fit an entire drive on your backup media, and want to keep volatile data on separate fs's to make it easier to use archaic backup programs like "dump". This is unlikely to be a problem nowadays except for the very largest systems.

  • You want to be able to do upgrades or reinstalls and leave some fs's untouched. This remains a valid reason for separating certain areas from others, but with the speed and capacity of modern backup systems, it is hardly as compelling as it used to be.

  • You want to be able to clean the fs in the event of a crash. Older large fs's, took a long time to clean and fsck needed more memory than was likely to be present, so it would need scratch files, which slowed it down further. It was not at all unusual for these fs's to get confused for no particular reason; not from a crash, just because, so it was obviously better to clean one or two small fs's now and then as opposed to having to clean one big fs every time this happened. Linux fs's still have that mentaility, btw, and will automatically run fsck after x number of boots and/or x number of days. Older Sun fs's would run it on EVERY boot. Modern fs's very seldom need to run fsck anyway, so this is not an issue. I imagine it won't be an issue for Linux, either, once it catches up in this area.

  • You want to contain the damage. On older systems, it was often observed that if you had physical or electronic damage, it was sometimes unrecoverable by fsck, but that it was very apt to be confined to one fs. Therefore, spreading the fs's out made it more likely that more of your data survived a crash. Again, this is unlikely to be an issue with modern fs's, and as we tend to back up more data more often from and to more reliable media, it's even less important.


If this page was useful to you, please click to help others find it:  

Your +1's can help friends, contacts, and others on the web find the best stuff when they search.

Comments?



Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.


My Troubleshooting E-Book will show you how to solve tough problems on Linux and Unix systems!


book graphic unix and linux troubleshooting guide


 I sell and support
 Kerio Mail server
g_face.jpg

This post tagged:

       - Disks/Filesystems




Unix/Linux Consultants

Skills Tests

Guest Post Here