Gentoo Archives: gentoo-user

From: "Petteri Räty" <petteri.raty@××××××××××.fi>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How do I get LVM2 off a drive?
Date: Wed, 31 Aug 2005 09:59:59
Message-Id: 43157D81.9000904@saunalahti.fi
In Reply to: [gentoo-user] How do I get LVM2 off a drive? by Mark Knecht
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Mark Knecht wrote:
5 > I did an experiment with LVM2 to see how it worked, but I put it
6 > inside of partition 3. I then wanted to remove it and put it in
7 > partition 4 instead. (More like Neil's setup.) However, the system
8 > keeps finding the old vg1 volume group. I went so far as to remove all
9 > partitions, put on a new partition, make a new file system, then
10 > remove that filesystem and do my final ones with LVM2 in partition 4
11 > but the system still finds the old vg1 volume group and complains that
12 > sda3 is too small.
13
14 The easiest thing to move lvm partitions from one physical partition to
15 another is as follows:
16 1. pvcreate <new> (create lvm2 data on the partition)
17 2. vgextend <vg> <new> (adds the new partition to the volume group)
18 3. pvmove <old> (moves the extends to the new partitions)
19 4. vgreduce <old> (removes the old partition from the volume group)
20 5. pvremove <old> (wipes the lvm2 markings from the partition)
21
22 >
23 > I guess this is in the partition table? If so how do I completely
24 > remove the LVM2 data and set the table back to default?
25
26 Hopefully this was what you were looking to do.
27
28 >
29 > Thanks in advance,
30 > Mark
31 >
32
33 Regards,
34 Petteri Räty
35 -----BEGIN PGP SIGNATURE-----
36 Version: GnuPG v1.4.2 (GNU/Linux)
37 Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
38
39 iD8DBQFDFX1/cxLzpIGCsLQRAqu2AJwNL5i9UJDejNPpC3eJiSwHsXNgEwCfbj58
40 8VKgQzOye3TLiAX2+Noex+8=
41 =7T7+
42 -----END PGP SIGNATURE-----
43 --
44 gentoo-user@g.o mailing list