* [gentoo-user] How do I get LVM2 off a drive?
@ 2005-08-30 23:04 Mark Knecht
2005-08-31 0:03 ` [gentoo-user] " Mark Knecht
2005-08-31 9:50 ` [gentoo-user] " Petteri Räty
0 siblings, 2 replies; 4+ messages in thread
From: Mark Knecht @ 2005-08-30 23:04 UTC (permalink / raw
To: gentoo-user
I did an experiment with LVM2 to see how it worked, but I put it
inside of partition 3. I then wanted to remove it and put it in
partition 4 instead. (More like Neil's setup.) However, the system
keeps finding the old vg1 volume group. I went so far as to remove all
partitions, put on a new partition, make a new file system, then
remove that filesystem and do my final ones with LVM2 in partition 4
but the system still finds the old vg1 volume group and complains that
sda3 is too small.
I guess this is in the partition table? If so how do I completely
remove the LVM2 data and set the table back to default?
Thanks in advance,
Mark
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-user] Re: How do I get LVM2 off a drive?
2005-08-30 23:04 [gentoo-user] How do I get LVM2 off a drive? Mark Knecht
@ 2005-08-31 0:03 ` Mark Knecht
2005-08-31 1:44 ` Alvin A ONeal Jr
2005-08-31 9:50 ` [gentoo-user] " Petteri Räty
1 sibling, 1 reply; 4+ messages in thread
From: Mark Knecht @ 2005-08-31 0:03 UTC (permalink / raw
To: gentoo-user
Answering self:
1) fdisk didn't seem to work
2) cfdisk did
- Mark
On 8/30/05, Mark Knecht <markknecht@gmail.com> wrote:
> I did an experiment with LVM2 to see how it worked, but I put it
> inside of partition 3. I then wanted to remove it and put it in
> partition 4 instead. (More like Neil's setup.) However, the system
> keeps finding the old vg1 volume group. I went so far as to remove all
> partitions, put on a new partition, make a new file system, then
> remove that filesystem and do my final ones with LVM2 in partition 4
> but the system still finds the old vg1 volume group and complains that
> sda3 is too small.
>
> I guess this is in the partition table? If so how do I completely
> remove the LVM2 data and set the table back to default?
>
> Thanks in advance,
> Mark
>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] Re: How do I get LVM2 off a drive?
2005-08-31 0:03 ` [gentoo-user] " Mark Knecht
@ 2005-08-31 1:44 ` Alvin A ONeal Jr
0 siblings, 0 replies; 4+ messages in thread
From: Alvin A ONeal Jr @ 2005-08-31 1:44 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 676 bytes --]
I don't think LVM2 cares about partitions. AFAIK you only use fdisk
(marking partitions as 8e? for lvm2) to be polite to other OSes that
don't auto-detect like Linux does.
I'm not exactly sure what's happening to you, but try this:
vgchange -a y; vgchange -a n
vgchange -a y; vgchange -a n
emerge -C lvm2; rm /etc/lvm/ -rf; emerge lvm2
vgchange -a y; vgchange -a n
vgchange -a y; vgchange -a n
I don't know what it does, but I got frustrated one time when copying an
imaged machine (the old partitions didn't match on the new machine) and
I think that was how I fixed it.
--
8^)
Laterz-
~Alvin
http://CoolAJ86.Havenite.net
---
Wow! You should get a gold star sticker!
[-- Attachment #2: coolaj86.vcf --]
[-- Type: text/x-vcard, Size: 323 bytes --]
begin:vcard
fn:Alvin A ONeal Jr
n:ONeal;Alvin
adr;dom:;;34 Fletcher Lane;Shelburne;VT;05482
email;internet:coolaj86@havenite.net
tel;work:1.802.877.2938
tel;home:1.802.985.5277
tel;cell:1.802.578.0599
note;quoted-printable:DoB: 19860616=0D=0A=
x-mozilla-html:FALSE
url:http://coolaj86.havenite.net
version:2.1
end:vcard
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] How do I get LVM2 off a drive?
2005-08-30 23:04 [gentoo-user] How do I get LVM2 off a drive? Mark Knecht
2005-08-31 0:03 ` [gentoo-user] " Mark Knecht
@ 2005-08-31 9:50 ` Petteri Räty
1 sibling, 0 replies; 4+ messages in thread
From: Petteri Räty @ 2005-08-31 9:50 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Mark Knecht wrote:
> I did an experiment with LVM2 to see how it worked, but I put it
> inside of partition 3. I then wanted to remove it and put it in
> partition 4 instead. (More like Neil's setup.) However, the system
> keeps finding the old vg1 volume group. I went so far as to remove all
> partitions, put on a new partition, make a new file system, then
> remove that filesystem and do my final ones with LVM2 in partition 4
> but the system still finds the old vg1 volume group and complains that
> sda3 is too small.
The easiest thing to move lvm partitions from one physical partition to
another is as follows:
1. pvcreate <new> (create lvm2 data on the partition)
2. vgextend <vg> <new> (adds the new partition to the volume group)
3. pvmove <old> (moves the extends to the new partitions)
4. vgreduce <old> (removes the old partition from the volume group)
5. pvremove <old> (wipes the lvm2 markings from the partition)
>
> I guess this is in the partition table? If so how do I completely
> remove the LVM2 data and set the table back to default?
Hopefully this was what you were looking to do.
>
> Thanks in advance,
> Mark
>
Regards,
Petteri Räty
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDFX1/cxLzpIGCsLQRAqu2AJwNL5i9UJDejNPpC3eJiSwHsXNgEwCfbj58
8VKgQzOye3TLiAX2+Noex+8=
=7T7+
-----END PGP SIGNATURE-----
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-08-31 9:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-30 23:04 [gentoo-user] How do I get LVM2 off a drive? Mark Knecht
2005-08-31 0:03 ` [gentoo-user] " Mark Knecht
2005-08-31 1:44 ` Alvin A ONeal Jr
2005-08-31 9:50 ` [gentoo-user] " Petteri Räty
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox