Joining physical volumes
For historical reasons, my hard drive has now 3 contiguous physical partitions, all managed by LVM for the same volume group.
I'd like to get rid of this silliness and turn those 3 partitions into just 1. I don't have much/any extra space available and I'd rather not have to resort to backup/format/restore.
Is there some clever way to do that? Ideally, I should be able to do the conversion without moving the actual data at all since the same sectors will be available.
Stefan
Quoted 11 lines · Stefan Monnier
For historical reasons, my hard drive has now 3 contiguous physical partitions, all managed by LVM for the same volume group.
I'd like to get rid of this silliness and turn those 3 partitions into just 1. I don't have much/any extra space available and I'd rather not have to resort to backup/format/restore.
Is there some clever way to do that? Ideally, I should be able to do the conversion without moving the actual data at all since the same sectors will be available.
I've been in the same situation before and never gotten around to doing anything about it, until I buy a new bigger disk :-)
If the partitions are truly contiguous (not DOS extended partitions for instance), then the PEs should all be aligned the same and it ought to be possible, in a similar fashion to what I describe in another thread here. I don't have a pvmerge on my boxes, but then I don't have a pvresize or a pvextend, so maybe I'm missing a few bits :-)
does parted do anything with HM LVM ?
backups are good :-)
Regards,
Paddy
Signature · 1 line
Perl 6 will give you the big knob. -- Larry Wall