Hello,<br><br>i have to grow one VM that is mirrored with drbd.<br>We use LVM partitions for drbd.<br><br>Will the following steps be enough?<br><br>shutdown vm<br>shutdown drbd devices<br>lvresize on both servers<br>connect drbd devices<br>
<br>now im stuck because I resize the root FS.<br>Can i boot into the VM and that fdisk the root to the new size and than do an resize2f?<br>Or can I do that resize when its offline? Like with kpartx?<br>When i do that I see this partition table:<br>
<br> kpartx -av /dev/drbd10 <br>add map drbd10p1 : 0 20964762 linear /dev/drbd10 63<br>[root@dev1.fr.internal:~]# fdisk -l /dev/mapper/drbd10p1 <br><br>Disk /dev/mapper/drbd10p1: 10.7 GB, 10733958144 bytes<br>255 heads, 63 sectors/track, 1304 cylinders<br>
Units = cylinders of 16065 * 512 = 8225280 bytes<br><br>Disk /dev/mapper/drbd10p1 doesn't contain a valid partition table<br><br><br>I created these VM with virt-install. looks like it doesnt create a valid partition.<br>
Will it still be possible to resize this?<br><br><br>here the resource definiton:<br><br>resource PL {<br> protocol C;<br> startup { <br> degr-wfc-timeout 120; # 2 minutes.<br> degr-wfc-timeout 120; ## 2 minutes. <br>
}<br> disk {<br> on-io-error detach;<br> }<br> net {<br> after-sb-0pri disconnect;<br> after-sb-1pri disconnect;<br> after-sb-2pri disconnect;<br>#<br>## allow-two-primaries;<br> after-sb-0pri discard-zero-changes;<br>
after-sb-1pri discard-secondary; <br> timeout 60;<br>## connect-int 10;<br>## ping-int 10; <br>## max-buffers 2048;<br>## max-epoch-size 2048;<br> }<br> syncer {<br>## group 100;<br>
al-extents 257;<br> rate 20M; <br> }<br> <br> on dev1.fr.internal {<br> device /dev/drbd10;<br> disk /dev/vg02/lv_pl;<br> address <a href="http://192.168.60.101:7798">192.168.60.101:7798</a>; <br>
meta-disk internal;<br> }<br> <br> on dev2.fr.internal {<br> device /dev/drbd10;<br> disk /dev/vg02/lv_pl;<br> address <a href="http://192.168.60.102:7798">192.168.60.102:7798</a>; <br> meta-disk internal;<br>
}<br>} <br><br>thnx<br><br>.r<br>