1 |
On Sat, 15 Dec 2012 10:16:05 +0200 |
2 |
nunojsilva@×××××××.pt (Nuno J. Silva) wrote: |
3 |
|
4 |
> On 2012-12-14, Mark Knecht wrote: |
5 |
> |
6 |
> > I guess the other question that's lurking here for me is why do you |
7 |
> > have /usr on a separate partition? What's the usage model that |
8 |
> > drives a person to do that? The most I've ever done is |
9 |
> > move /usr/portage and /usr/src to other places. My /usr never has |
10 |
> > all that much in it beyond those two directories, along with |
11 |
> > maybe /usr/share. Would it not be easier for you in the long run to |
12 |
> > move /usr back to / and not have to deal with this question at all? |
13 |
> |
14 |
> I may be wrong in this one, but the idea I have is that your regular |
15 |
> applications (so, most of them) all lie under /usr/ -- /lib /bin and |
16 |
> others are for essential system tools. |
17 |
> |
18 |
|
19 |
That was the original reason for having / and /usr separate, and it |
20 |
dates back to the early 70s. The other reason that stems from that time |
21 |
period is the size of disks we had back then - they were tiny and often |
22 |
a minimal / was all that could really fit on the primary system drive. |
23 |
|
24 |
Gradually over time this setup became the norm and people started to |
25 |
depend on it, and more importantly, started to believe it was important |
26 |
to retain it. It's their right to believe that. |
27 |
|
28 |
Recently I decided to measure if I still needed a separate /usr (I was |
29 |
a long time advocate of retaining it). I'm in the lucky position of |
30 |
having ~200 Linux machines, all distinctly different, at my disposal, |
31 |
so I trawled through memory and incident logs looking for cases where a |
32 |
separate /usr was crucial to recovery after any form of error. To my |
33 |
surprise, I found none at all and those logs go back 5 years. |
34 |
|
35 |
So I got to change my mind (not something I do very often I admit) and |
36 |
concluded that separate base and user systems (/ and /usr) was no |
37 |
longer something I needed to do - the "system" - disks, hardware and |
38 |
the software on the disks - was very reliable, and what I really needed |
39 |
was ability to boot from USB rescue disks. I did find, not |
40 |
unsurprisingly, that I also really needed /usr/local on a separate |
41 |
partition but that's because of how we install our in-house software |
42 |
here, plus our backup policies. |
43 |
|
44 |
It also goes without saying that these days we |
45 |
need /home, /var, /var/log and /tmp to all be on their own filesystem, |
46 |
and we need that more than ever. |
47 |
|
48 |
I thought I should just toss that in the ring for people who are |
49 |
undecided where they stand on the debate of separate / vs /usr. It's |
50 |
what I found on our production, dev and staging servers, plus a whole |
51 |
lot of people's personal workstations (sysadmins and devs). The |
52 |
environment is a large corporate ISP that defies categorization, we |
53 |
almost have at least one of every imaginable use-case for running on |
54 |
Linux except something in the Top 100 SuperComputer list. I reckon it's |
55 |
about as representative as I'm ever gonna see. |
56 |
|
57 |
People are free to draw their own conclusions as always, and real data |
58 |
is valuable in arriving at those conclusions. YMMV. |
59 |
|
60 |
|
61 |
-- |
62 |
Alan McKinnon |
63 |
alan.mckinnon@×××××.com |