1 |
Am 19.03.2010 23:40, schrieb Mark Knecht: |
2 |
[...] |
3 |
> |
4 |
> The LVM Install doc is pretty clear about not putting these in LVM: |
5 |
> |
6 |
> /etc, /lib, /mnt, /proc, /sbin, /dev, and /root |
7 |
> |
8 |
|
9 |
/boot shouldn't be there, either. Not sure about /bin |
10 |
|
11 |
> which seems sensible. From an install point of view I'm wondering |
12 |
> about RAID and how I should treat /, /boot and swap? As I'm planning |
13 |
> on software RAID it seems that maybe those part of the file system |
14 |
> should not even be part of RAID. Is that sensible? I always want / |
15 |
> available to mount the directories above. /boot on RAID means (I |
16 |
> guess) that I'd need RAID in the kernel instead of modular, and why do |
17 |
> I need swap on RAID? |
18 |
>[...] |
19 |
|
20 |
If you use kernel based software RAID (mdadm, not dmraid), you can put |
21 |
everything except of /boot on RAID. Even for /boot, there are |
22 |
workarounds. I think there was a thread about it very recently right on |
23 |
this list. |
24 |
|
25 |
If you don't want to use an initrd (and believe me, you don't), you |
26 |
cannot build the RAID components as modules, of course. But why would |
27 |
you want? You need it anyway all the time between bootup and shutdown. |
28 |
|
29 |
You don't need to put swap on a RAID. Swap has its own system for |
30 |
implementing RAID-1 or RAID-0-like functionality. Using a RAID-1 for it |
31 |
prevents the machine from crashing if the disk on which swap resides |
32 |
dies. RAID-0 would be faster, of course. |
33 |
|
34 |
I personally find it easier to put swap on LVM in order to make |
35 |
management easier. However, if you want to use suspend-to-disk (a.k.a. |
36 |
hibernate), you would need an initrd, again. |
37 |
|
38 |
Alternatively, you can also use LVM for mirroring (RAID-1) or striping |
39 |
(RAID-0) single volumes. I think this only makes sense if you just want |
40 |
to protect some single volumes. After using it for some time, I found it |
41 |
not worth the effort. With current disk prices, just mirror everything |
42 |
and live easy ;-) |
43 |
|
44 |
Hope this helps, |
45 |
Florian Philipp |