1 |
On Sat, 21 Jul 2012 14:11:03 -0700, walt wrote: |
2 |
|
3 |
> I have a 500gig disk that is split roughly in half between two volume |
4 |
> groups, each containing four physical volumes, and each vg is formatted |
5 |
> into an ext4 filesystem of roughly 250GB. |
6 |
|
7 |
This doesn't make sense, VGs don't have filesystems, they contain LVs |
8 |
and they have the filesystems. |
9 |
|
10 |
> What I plan to do is merge the two volume groups into one, containing |
11 |
> one big ext4 filesystem, which will contain all of the files currently |
12 |
> on the disk. |
13 |
|
14 |
> |
15 |
> Can this be done without copying one of the existing ext4 filesystems |
16 |
> to a separate drive first, and then copying it back after extending |
17 |
> the remaining vg/filesystem? (One filesystem has 24GB free and the |
18 |
> other has 25GB free.) |
19 |
|
20 |
It can, by moving data from an LV on one VG to an LV on the other, then |
21 |
reducing one LV and VG and increasing the other. But with so little free |
22 |
space, it would take forever, and you'd still end up with a 90%+ full |
23 |
filesytem. |
24 |
|
25 |
If you have a spare drive, I'd add a partition on that to the VG you want |
26 |
to keep, increase the LV size and move everything over. Then remove the |
27 |
VGs from the second disk, add it to the first VG and use pvmove to move |
28 |
everything off the spare disk before removing it from the VG. You can |
29 |
continue to use the system while this runs, so this gives the least |
30 |
downtime with minimal hassle. |
31 |
|
32 |
|
33 |
-- |
34 |
Neil Bothwick |
35 |
|
36 |
Never underestimate the bandwidth of a station wagon full of tapes! |