1 |
Philip Webb schrieb: |
2 |
> Does anyone have advice based on experience using LVM ? |
3 |
> I sb partitioning a new 320 GB hard drive soon for a simple desktop box. |
4 |
> That is 8 times the size of the HDD in my present machine, |
5 |
> which I haven't exhausted by any means. LVM seems more professional |
6 |
> & allows flexibility for unforeseen storage needs, |
7 |
> but it adds a layer of complexity & potential problems arising therefrom. |
8 |
> I wonder whether LVM slows down disk access |
9 |
> & whether there's a disaster lurking unseen if anything goes wrong with LVM: |
10 |
> a bad package update, a damaged config file or file storing LVM's layout |
11 |
> would seem to risk losing everything on the HDD & require re-installation. |
12 |
> |
13 |
|
14 |
|
15 |
Simple pros and cons? |
16 |
|
17 |
Pro: |
18 |
More flexible, especially when using a special setup [1], can easily be |
19 |
expanded to RAID1 and/or RAID0 (even both at the same time!). |
20 |
|
21 |
Cons: |
22 |
- Can't be used with Windows. Even worse, Windows sees the partition as |
23 |
unformatted rather than unknown and therefore might have no problem |
24 |
formatting it without warning. |
25 |
- Can't be used for /boot, usage for / needs initrd (my advice: keep |
26 |
/boot, /bin, /sbin and /etc on a normal partition). |
27 |
- It's one more thing that can break. |
28 |
- You can't use *parted to resize the underlying partitions. |
29 |
- I had trouble mounting my lvm /home partition (mirrored) with Ubuntu, |
30 |
possibly a missing kernel module in the default kernel or missing use |
31 |
flag. I didn't try to fix it, though. |
32 |
- You loose bit performance, but not much, you won't feel it without |
33 |
benchmarks. |
34 |
|
35 |
[1] |
36 |
Some simple advices: Create small logical volumes. It's easier to expand |
37 |
them than to shrink them (expanding reiserfs takes less than 5 minutes). |
38 |
If you are not shure wether you might need more space on ordinary dos |
39 |
partitions later on, don't create one big partition for lvm but several |
40 |
smaller. That makes management a bit more complicated (especially when |
41 |
you are unfamiliar with the tools and/ or have several physical disks) |
42 |
but you can simply reformat one of them if the need arises (see "man |
43 |
pvmove" for more information). |
44 |
-- |
45 |
gentoo-user@g.o mailing list |