1 |
On Sat, Mar 20, 2010 at 6:22 AM, Florian Philipp |
2 |
<lists@f_philipp.fastmail.net> wrote: |
3 |
> Am 19.03.2010 23:40, schrieb Mark Knecht: |
4 |
> [...] |
5 |
>> |
6 |
>> The LVM Install doc is pretty clear about not putting these in LVM: |
7 |
>> |
8 |
>> /etc, /lib, /mnt, /proc, /sbin, /dev, and /root |
9 |
>> |
10 |
> |
11 |
> /boot shouldn't be there, either. Not sure about /bin |
12 |
> |
13 |
>> which seems sensible. From an install point of view I'm wondering |
14 |
>> about RAID and how I should treat /, /boot and swap? As I'm planning |
15 |
>> on software RAID it seems that maybe those part of the file system |
16 |
>> should not even be part of RAID. Is that sensible? I always want / |
17 |
>> available to mount the directories above. /boot on RAID means (I |
18 |
>> guess) that I'd need RAID in the kernel instead of modular, and why do |
19 |
>> I need swap on RAID? |
20 |
>>[...] |
21 |
> |
22 |
> If you use kernel based software RAID (mdadm, not dmraid), you can put |
23 |
> everything except of /boot on RAID. Even for /boot, there are |
24 |
> workarounds. I think there was a thread about it very recently right on |
25 |
> this list. |
26 |
|
27 |
I'm thinking I'll keep it as simple as possibly and just spread out |
28 |
the Gentoo install over the multiple hard drives without using RAID, |
29 |
but maybe not. It would be nice to have everything on RAID but I don't |
30 |
know if I should byte that off for my first taste of building RAID. |
31 |
|
32 |
|
33 |
> |
34 |
> If you don't want to use an initrd (and believe me, you don't), you |
35 |
> cannot build the RAID components as modules, of course. But why would |
36 |
> you want? You need it anyway all the time between bootup and shutdown. |
37 |
|
38 |
No initrd. I've never used it in 10 years of running Linux and I |
39 |
wouldn't know how to start or even why I would use it. I suppose if I |
40 |
had hardware RAID then maybe I'd need to but that's not my plan. |
41 |
|
42 |
> |
43 |
> You don't need to put swap on a RAID. Swap has its own system for |
44 |
> implementing RAID-1 or RAID-0-like functionality. Using a RAID-1 for it |
45 |
> prevents the machine from crashing if the disk on which swap resides |
46 |
> dies. RAID-0 would be faster, of course. |
47 |
> |
48 |
> I personally find it easier to put swap on LVM in order to make |
49 |
> management easier. However, if you want to use suspend-to-disk (a.k.a. |
50 |
> hibernate), you would need an initrd, again. |
51 |
> |
52 |
> Alternatively, you can also use LVM for mirroring (RAID-1) or striping |
53 |
> (RAID-0) single volumes. I think this only makes sense if you just want |
54 |
> to protect some single volumes. After using it for some time, I found it |
55 |
> not worth the effort. With current disk prices, just mirror everything |
56 |
> and live easy ;-) |
57 |
> |
58 |
> Hope this helps, |
59 |
> Florian Philipp |
60 |
> |
61 |
> |
62 |
|
63 |
Very helpful. Thanks! |
64 |
|
65 |
Cheers, |
66 |
Mark |