1 |
On Wed, 23 Nov 2011 13:07:55 -0600, Dale wrote: |
2 |
|
3 |
> I think we have a problem: |
4 |
> |
5 |
> root@fireball / # pvmove -v /dev/sdb1 |
6 |
> Finding volume group "data" |
7 |
> Archiving volume group "data" metadata (seqno 4). |
8 |
> Creating logical volume pvmove0 |
9 |
> Moving 59604 extents of logical volume data/data1 |
10 |
> Insufficient free space: 59604 extents needed, but only 118 available |
11 |
> Unable to allocate mirror extents for pvmove0. |
12 |
> Failed to convert pvmove LV to mirrored |
13 |
> root@fireball / # pvdisplay |
14 |
> --- Physical volume --- |
15 |
> PV Name /dev/sdb1 |
16 |
> VG Name data |
17 |
> PV Size 232.83 GiB / not usable 2.55 MiB |
18 |
> Allocatable yes (but full) |
19 |
> PE Size 4.00 MiB |
20 |
> Total PE 59604 |
21 |
> Free PE 0 |
22 |
> Allocated PE 59604 |
23 |
> PV UUID Nxvrjn-BuaK-RGsF-F32S-0EaI-W4xe-H6Lnjl |
24 |
> |
25 |
> --- Physical volume --- |
26 |
> PV Name /dev/sdc1 |
27 |
> VG Name data |
28 |
> PV Size 698.64 GiB / not usable 4.84 MiB |
29 |
> Allocatable yes |
30 |
> PE Size 4.00 MiB |
31 |
> Total PE 178850 |
32 |
> Free PE 118 |
33 |
> Allocated PE 178732 |
34 |
> PV UUID NF6I4G-L1L5-0VDE-HyUc-ESH3-CfV3-eUo676 |
35 |
|
36 |
You need to move 59604 extents but you only have 116 free on the |
37 |
destination. |
38 |
|
39 |
> root@fireball / # df |
40 |
> Filesystem 1K-blocks Used Available Use% Mounted on |
41 |
> /dev/mapper/data-data1 |
42 |
> 960906608 275263224 636841120 31% /data |
43 |
|
44 |
> So, I got space left on sdc but it won't move the data off sdb. Did |
45 |
> this run off into the ditch? :/ |
46 |
|
47 |
You have space in the filesystem, but the volume containing that |
48 |
filesystem is too large to move. You must first reduce the filesystem |
49 |
size, with resize2fs or whatever suits your fs, then shrink the LV with |
50 |
lvresize. That will free up enough extents to be able to fit them all on |
51 |
one disk. |
52 |
|
53 |
Look at the output from lvs to see what is taking up all the space. |
54 |
|
55 |
|
56 |
-- |
57 |
Neil Bothwick |
58 |
|
59 |
Men who have playful kittens shouldn't sleep in the nude. |