1 |
On Sun, 22 Mar 2009 22:35:35 +0200 |
2 |
Alan McKinnon <alan.mckinnon@×××××.com> wrote: |
3 |
|
4 |
> On Sunday 22 March 2009 22:15:14 Momesso Andrea wrote: |
5 |
> > My current setup is: |
6 |
> > |
7 |
> > Device Boot Start End Blocks Id System |
8 |
> > /dev/sda1 * 1 2894 23246023+ 83 Linux |
9 |
> > /dev/sda2 2895 3381 3911827+ 82 Linux |
10 |
> > swap /Solaris |
11 |
> > /dev/sda3 3382 24804 172080247+ 83 Linux |
12 |
> > /dev/sda4 24805 30401 44957902+ 83 Linux |
13 |
> > |
14 |
> > where sda3 is an lvm volume and sda4 is free space. |
15 |
> > |
16 |
> > I'd like to to merge sda3 and sda4 into a single partition without |
17 |
> > losing the data on it, but I'm not sure if it is possible. |
18 |
> > |
19 |
> > My guess is that I can use fdisk to delete sda4 and sda3, create a |
20 |
> > sda3 partition starting at 3382 and ending at 30401, then use |
21 |
> > pvresize to enlarge it. |
22 |
> |
23 |
> Correct. That's all there is to it. |
24 |
> |
25 |
> > This is from man pvresize: |
26 |
> > "Expand the PV on /dev/sda1 after enlarging the partition with |
27 |
> > fdisk: pvresize /dev/sda1" |
28 |
> > |
29 |
> > Is that going to work or I'm going to lose all the data? |
30 |
> |
31 |
> Your data is safe if you do exactly the steps you said above. |
32 |
> |
33 |
pvresize /dev/sda3 |
34 |
/dev/sda3: too many metadata areas for pvresize |
35 |
|
36 |
Looks like I cannot expand it... |
37 |
|
38 |
--- |
39 |
TopperH |
40 |
http://topperh.blogspot.com |