On Fri, 2017-03-03 at 17:49 +0000, James Hawtin wrote: > On 03/03/17 09:51, Amjad Syed wrote: > > Hello, > > > > We are using RHEL 7.2 servers to create two node Active/Passive > > High available system with shared storage (SAN). We are using > > pacemaker. > > > > The existing Partition on HDD of Server is of standard type > > and we > > would like to move it to LVM type as we have just two nodes and we > > are > > not going to use clvm. > > > > The current partition on HDD is as follows > > / -> 50 GB > > swap -> 25 GB > > /u01 -> 200GB > > > > What is the best way to change the partition type to LVM without > > reinstallation? > > > > Its possible but its quite difficult It's not really that difficult, if he understands the mechanics of partitioning and resizing filesystems. He does need to have 200GB of free, unpartitioned space on his HDD to create a new partition to be his new PV. Or rather he needs as least as much free space in /u01 as he has consumed space in which case he can shrink the /u01 filesystem and partition and create a new partition to be his PV. > to do as you don't have a seperate > /boot partion. The / partition can become his /boot once he has evacuated it and shrunk it. As long as there is some usable amount of free space on the disk (in existing partitions or otherwise) this is all just a shell game of partitions and data, creating new partitions, resizing or deleting old, moving data around, etc. It all has to be done from some kind of live boot media though as you don't really want to be moving live data around. And really, I will refrain from describing the exact steps in this partition partition shell game as (a) I don't want to miss any and mess up his system and (b) if he cannot really come up with the procedure himself, he really shouldn't be carrying it out. > If I > was doing it I would use tar or dump to copy the information off the > disk. And yes, if he can't really come up with the recipe to do the partition shell-game, this is what he should do. Cheers, b.
Attachment:
signature.asc
Description: This is a digitally signed message part
_______________________________________________ linux-lvm mailing list linux-lvm@redhat.com https://www.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/