1 |
On Monday, September 19, 2011 03:01:32 AM Dale wrote: |
2 |
> Alan McKinnon wrote: |
3 |
> > On Mon, 19 Sep 2011 13:51:03 +0700 |
4 |
> > |
5 |
> > Pandu Poluan<pandu@××××××.info> wrote: |
6 |
> >> I'm not sure if LVM by itself implement striping. Most likely not |
7 |
> >> because LVM usually starts with 1 HD then gets additional PVs added. |
8 |
> >> Plus there's the possibility that the second PV has a different size. |
9 |
> >> |
10 |
> >> I might be wrong, though, since all my experience with LVM involves |
11 |
> >> only one drive. |
12 |
> > |
13 |
> > LVM does do striping according to the man page. I've never tried it, |
14 |
> > mostly because LVM is the wrong place to do that IMHO. |
15 |
> > |
16 |
> > Use RAID for that instead and leave LVM to do what it's good at - |
17 |
> > managing storage volumes |
18 |
> |
19 |
> What I was thinking about is this. You have two drives that is one lv. |
20 |
> It has to be data stored on both drives at some point. Example, you |
21 |
> have a data base that is 500Gbs. You have two drives that are 300Gbs |
22 |
> each that are in the same lv. Well obviously 200Gbs has to be on a |
23 |
> different drive. Isn't that striping which would would result in a |
24 |
> speed increase? |
25 |
|
26 |
I think you're using the wrong names for the different pieces. |
27 |
The 2 300GB drives will be Physical Volumes (PV) |
28 |
These 2 PVs are in the Volume Group (VG) |
29 |
This VG has 1 LV for database. |
30 |
|
31 |
This LV, as it's at least 500GB will have parts on both PVs (harddrives) |
32 |
|
33 |
This will have increased performance when the data being read happens to be on |
34 |
2 physically different drives. If you just extend over 2 (or more) drives, |
35 |
this is not very likely as the first 300GB of data will still, physically, be |
36 |
on the same drive. |
37 |
|
38 |
To spread the data more equally (eg. sequential parts will be on alternating |
39 |
drives) you have 2 options: |
40 |
1) Merge the 2 drives in a single RAID0-device (for striping) |
41 |
2) Tell LVM to use striping for the LV when creating it. |
42 |
|
43 |
My personal preference would be option 1 as I agree with Alan that LVM should |
44 |
stick to managing LVs and leave striping and other options to RAID- |
45 |
devices/software. |
46 |
|
47 |
> Now if it is like me and is only one drive, then that won't happen. |
48 |
|
49 |
With only one drive, definitely not :) |
50 |
|
51 |
-- |
52 |
Joost |