1 |
On Thursday 23 February 2006 02:22 pm, CR Little wrote: |
2 |
> I'm having a problem with LVM. |
3 |
> |
4 |
> I setup a volume group it had 5.91G in Free PE/Size now states 0/0 |
5 |
> |
6 |
> --- Volume group --- |
7 |
> |
8 |
> VG Name vg |
9 |
> |
10 |
> |
11 |
> VG Size 55.91 GB |
12 |
> |
13 |
> PE Size 4.00 MB |
14 |
> |
15 |
> Total PE 14313 |
16 |
> |
17 |
> Alloc PE / Size 14313 / 55.91 GB |
18 |
> |
19 |
> Free PE / Size 0 / 0 |
20 |
> |
21 |
> |
22 |
> |
23 |
> |
24 |
> I have a logical volume inside that I tried to extend |
25 |
> |
26 |
> --- Logical volume --- |
27 |
> |
28 |
> LV Name /dev/vg/home |
29 |
> |
30 |
> VG Name vg |
31 |
> |
32 |
> LV UUID vx9591-nXtD-0Yj6-F0ah-TjcH-5jEq-BGFIze |
33 |
> |
34 |
> LV Write Access read/write |
35 |
> |
36 |
> LV Status available |
37 |
> |
38 |
> # open 1 |
39 |
> |
40 |
> LV Size 10.91 GB |
41 |
> |
42 |
> Current LE 2793 |
43 |
> |
44 |
> Segments 3 |
45 |
> |
46 |
> Allocation inherit |
47 |
> |
48 |
> Read ahead sectors 0 |
49 |
> |
50 |
> Block device 253:1 |
51 |
> |
52 |
> |
53 |
> |
54 |
> It now states 10.91 GB for LV Size. This lv is mounted to /home when |
55 |
> I ran lvextend -L+5.91G /dev/vg/home it extended the lv but when you |
56 |
> run df-h it doesn't show an increased size. |
57 |
> |
58 |
> |
59 |
> |
60 |
> /dev/mapper/vg-home 5.0G 1.6G 3.2G 33% /home |
61 |
> |
62 |
> |
63 |
> |
64 |
> Apparently I missed a step and can't find any information on how to |
65 |
> fix this. Doesn't it need to know how to format and add the LV |
66 |
> extention? |
67 |
|
68 |
Assuming you are using a reiserfs filesystem, resizing it is a 2-step |
69 |
process. The first step is what you have accomplished. The second step |
70 |
is: |
71 |
|
72 |
resize_reiserfs -f /dev/vg/home |
73 |
|
74 |
However, given the output of your "vgdisplay" with particular reference |
75 |
to the lines below, I doubt that you can resize any logical volumes in |
76 |
your volume group: |
77 |
|
78 |
> VG Size 55.91 GB |
79 |
> |
80 |
> Total PE 14313 |
81 |
> |
82 |
> Alloc PE / Size 14313 / 55.91 GB |
83 |
> |
84 |
> Free PE / Size 0 / 0 |
85 |
|
86 |
|
87 |
|
88 |
-- |
89 |
gentoo-user@g.o mailing list |