CentOS on VMware question - need answer

Issues related to hardware problems
Post Reply
Rick_Smith
Posts: 87
Joined: 2011/10/07 11:32:23

CentOS on VMware question - need answer

Post by Rick_Smith » 2013/10/16 23:31:31

Instead of, as requested, VMware team expanded the only drive in the system(we had requested for an additional drive, which we would place in LVM control). Now that drive is partitioned at the os level into sda1, sda2, sda3 etc.

Questions:
1)What happens when we reboot?
2)How is the expanded disk space distributed - equally amongst all partitions or something else?
3)What can we do to remedy this situation?

Thanks in advance.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS on VMware question - need answer

Post by TrevorH » 2013/10/17 00:31:50

The extra space will be added outside any existing partition, at the end of the disk. You can create a new partition and use that extra space for that. If you then tag it as partition type 0x8e in fdisk and run pvcreate/vgcreate/lvcreate then it'll be under LVM control as you originally wanted. If you put anything critical on LVM volumes that were previously on a disk partition then you [u]might[/u] need to rebuild the initrd/initramfs - for example, if you moved /var onto an LV and mounted it, your current initrd would probably not contain LVM support so it wouldn't mount automatically on reboot. Rebuilding it will cure this.

Post Reply