1 |
On Saturday 09 April 2011 00:28:20 Dale wrote: |
2 |
> OK. I learned something. Check this out: |
3 |
> |
4 |
> root@fireball / # df |
5 |
> Filesystem 1K-blocks Used Available Use% Mounted on |
6 |
> << SNIP >> |
7 |
> /dev/mapper/sdb--vg-test |
8 |
> 51606140 48910048 74652 100% /mnt/temp |
9 |
> root@fireball / # |
10 |
> |
11 |
> This is what I am doing here. As I posted a while ago, I created a 50Gb |
12 |
> LV. I attempted to copy about 75Gbs to it which filled it up but I |
13 |
> wanted to make sure it would. lol Then I used lvextend -L100G |
14 |
> /dev/mapper/sdb--vg-test to make it larger. I read I could do the same |
15 |
> thing with lvresize but the example I was reading showed lvextend. This |
16 |
> is what I got now: |
17 |
> |
18 |
> root@fireball / # lvdisplay |
19 |
> --- Logical volume --- |
20 |
> LV Name /dev/sdb-vg/test |
21 |
> VG Name sdb-vg |
22 |
> LV UUID mixhOb-La6D-BwG4-Uz3l-P0ci-oGg5-YI3mN8 |
23 |
> LV Write Access read/write |
24 |
> LV Status available |
25 |
> # open 1 |
26 |
> LV Size 100.00 GiB |
27 |
> Current LE 25600 |
28 |
> Segments 1 |
29 |
> Allocation inherit |
30 |
> Read ahead sectors auto |
31 |
> - currently set to 256 |
32 |
> Block device 254:0 |
33 |
> |
34 |
> root@fireball / # |
35 |
> |
36 |
> So, according to that it is 100Gbs which is what I wanted. Thing was, |
37 |
> it didn't work. So, hmmmm. Light bulb moment. Resize the file system |
38 |
> silly. After that, success. So, I created something that wasn''t big |
39 |
> enough, filled it up, made it bigger, fixed the file system and now it |
40 |
> is working. All while online too. That is the weird part. |
41 |
> |
42 |
> Still not comfy putting a OS on it but it is cool so far. |
43 |
|
44 |
Nice :) |
45 |
|
46 |
Btw, instead of specifying "final" size after resizing, you can actually tell |
47 |
it to "add" 20GB by doing: |
48 |
lvrextend -L+20G /dev/sdb-vg/test |
49 |
|
50 |
-- |
51 |
Joost |