undo LVM
Tom H
tomh0665 at gmail.com
Sun May 16 21:42:46 UTC 2010
On Sun, May 16, 2010 at 4:21 PM, Michel Racic <michel.racic at gmail.com> wrote:
>
> Someone on #LVM channel (freenode) meant that pvremove could help as
> it wipes the LVM headers for that disc if I used pcvreate for the
> creation.
>
> Does someone know what exactly the alternate installer does on the
> step in manual partition if you create a LVM group and ad a disk to
> it?
I have not followed this thread from the beginning so I am only
commenting on the post above.
If you want to run pvremove make sure that you precede it with a
pvmove and vgremove.
If you are creating a VG manually (and I assume that the installer
does this in the background), you
- run pvcreate to turn a partition into an LVM physical volume
- run vgcreate to add the newly created PV to a VG (or vgextend if
adding a PV to an existing VG)
- run lvcreate to carve out a logical volume in that VG
If you want to remove a partition from a VG, you
- run pvmove to move any data ("physical extents") from that PV to another PV
- run vgreduce to remove that PV from the VG
- run pvremove to remove that PV from LVM
Just running pvremove will not work - or if does work, will leave you
with an LVM mess.
More information about the ubuntu-users
mailing list