1 |
On Thu, 2009-06-04 at 13:01 -0600, Maxim Wexler wrote: |
2 |
> Hi group, |
3 |
> |
4 |
> Creating LVM partitions on SSD and SD card using systemrescuecd-1.2.0 |
5 |
> while following doc, 'Gentoo LVM2 installation'. In the doc it says |
6 |
> to edit the 'filter =' statement in lvm.conf in order to scan the |
7 |
> correct devices. But just below it says to use #pvcreate with the |
8 |
> appropriate devices. But if you use pvcreate to specify the device |
9 |
> you're planning to partition what's the point in editing lvm.conf? |
10 |
> Edited it anyways. |
11 |
> |
12 |
> Now have: |
13 |
> ... |
14 |
> filter= [ "r|/dev/ndb.*|", "a|/dev/sd[ab]|" ] # only changed 'accept' line |
15 |
> ... |
16 |
> |
17 |
> /root % vgscan |
18 |
> Reading all physical volumes. This may take a while... |
19 |
> |
20 |
> Well, no, it was more or less instant. There was no further output and |
21 |
> the prompt reappeared. Does this mean everything is cool or that |
22 |
> vgscan found nothing? |
23 |
> |
24 |
|
25 |
You still need pvcreate to create PVs. What the filter parameter is for |
26 |
is for when LVM scans for PVs. Basically pvcreate puts a header on the |
27 |
device so that vgscan and friends knows that it's a PV. It may be |
28 |
undesirable to scan some devices (e.g. optical drives) for PVs. |
29 |
|
30 |
Having said that, usually the defaults for filter and exclude are fine |
31 |
and you don't need to play with them (as is the case for many defaults). |
32 |
|
33 |
You'll know if LVM has detected your PVs by running pvdisplay. If your |
34 |
PV doesn't show up either a: you didn't pvcreate it or b: it didn't get |
35 |
scanned due to your filter or exclude params. |
36 |
|
37 |
-a |