We are in the process of migrating this forum. A new space will be available soon. We are sorry for the inconvenience.

change PE size of LVM cause server to boot in rescue mode (CentOS)


logicallayer
2017-01-18, 02:06 AM
Hi,

I'm trying to change the PE size to 32MB (CentOS). However, OVH Manager doesn't give that option which is fine.

Instead I'm trying to the following steps. Although when I take them the system tends to boot into rescue mode.

It is unusual. Cause all document online says that the steps are solid. Is this related to customized kernel by OVH? I would appreciate any level of help here cause I tried almost everything.


umount /dev/vg/vps
lvremove /dev/vg/vps
vgremove /dev/vg

vgcreate -s32 vg /dev/sda5 /dev/sdb5
lvcreate -l 5613 -n vps vg


Before:
=======
lvdisplay
--- Logical volume ---
LV Path /dev/vg/vps
LV Name vps
VG Name vg
LV UUID 30Wvjz-AwvZ-tHHA-YWiT-taHx-5erz-MalEds
LV Write Access read/write
LV Creation host, time rescue.ovh.net, 2017-01-18 00:31:51 -0500
LV Status available
# open 0
LV Size 179.62 GiB
Current LE 45982
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0

After:
======
* --- Logical volume ---
* LV Path* * * * * * * * /dev/vg/vps
* LV Name* * * * * * * * vps
* VG Name* * * * * * * * vg
* LV UUID* * * * * * * * hECekg-T6Gf-b0kN-PnJK-uJeO-hZ3D-P3VdJ1
* LV Write Access* * * * read/write
* LV Creation host, time XXxx.net, 2017-01-18 00:47:58 -0500
* LV Status* * * * * * * available
* # open * * * * * * * * 0
* LV Size* * * * * * * * 175.41 GiB
* Current LE * * * * * * 5613
* Segments * * * * * * * 1
* Allocation * * * * * * inherit
* Read ahead sectors * * auto
* - currently set to * * 256
* Block device * * * * * 253:0