Editing LVM+DRBD+LVM+KVM+LVM Resize
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
== info == | == info == | ||
PV -> VG -> LV -> DRBD -> VG (clvmd) -> LV -> KVM Virt | PV -> VG -> LV -> DRBD -> VG (clvmd) -> LV -> KVM Virt | ||
== resize LVM backing device == | == resize LVM backing device == | ||
Line 27: | Line 27: | ||
Logical volume drbd_hopmon successfully resized | Logical volume drbd_hopmon successfully resized | ||
</source> | </source> | ||
== Resize DRBD (online) == | == Resize DRBD (online) == | ||
Line 34: | Line 32: | ||
# drbdadm resize <resource> | # drbdadm resize <resource> | ||
drbdadm resize hopmon | drbdadm resize hopmon | ||
</source> | </source> | ||
Line 52: | Line 45: | ||
== Shutdown/Start KVM Host == | == Shutdown/Start KVM Host == | ||
* shutdown the guest, then start the guest | * A reboot doesn't seem to notice the disk change | ||
* shutdown the guest, then start the guest | |||
== Resize GUEST lvm disk == | == Resize GUEST lvm disk == | ||
Line 77: | Line 70: | ||
/dev/vda2 1026048 16777215 7875584 8e Linux LVM | /dev/vda2 1026048 16777215 7875584 8e Linux LVM | ||
</source> | </source> | ||
<source> | <source> | ||
fdisk -u /dev/vda | fdisk -u /dev/vda | ||
Line 93: | Line 82: | ||
p | p | ||
Partition number (1-4): 2 | Partition number (1-4): 2 | ||
First sector (63-20971519, default 63): 1026048 | First sector (63-20971519, default 63): 1026048 | ||
Last sector, +sectors or +size{K,M,G} (1026048-20971519, default 20971519): | Last sector, +sectors or +size{K,M,G} (1026048-20971519, default 20971519): | ||
Using default value 20971519 | Using default value 20971519 | ||
Line 127: | Line 114: | ||
</source> | </source> | ||
* And another reboot for the guest to see the disk change? odd | |||
* | |||
<source> | <source> | ||
pvs | pvs |