<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
Hi list,<br>
<br>
I realized I am using drbd now for more than ten years and is has
been a joy all the time.<br>
<br>
Now I have a request where I am really unsure how to deal with.<br>
<br>
I have to resize a volume offline. Mainly because the carppy
hypervisor does not allow to enalrge virtual disks while the vm ist
running.....<br>
<br>
I checked the <a moz-do-not-send="true"
href="https://linbit.com/drbd-user-guide/drbd-guide-9_0-en/#s-growing-offline">docs</a>
about offline resize. There are some questions remaining. It states
I have to edit the metadata file I created to match the sectors of
the new size. My question now is: where do I get this number from?<br>
<br>
I tried to firgure out and match the current size with the current
volume but there is a mismatch:<br>
===========================================<br>
root@drbd1:~# grep la-size metatada.drbd1<br>
la-size-sect 2306796728;<br>
root@backuppc41:~# fdisk -l /dev/vdb<br>
Disk /dev/vdb: 1,07 TiB, 1181116006400 bytes, 2306867200 sectors<br>
Units: sectors of 1 * 512 = 512 bytes<br>
Sector size (logical/physical): 512 bytes / 512 bytes<br>
I/O size (minimum/optimal): 512 bytes / 512 bytes<br>
===========================================<br>
<br>
So from where do I get the number of sectors (after having enlarged
the disk)?<br>
Are there any other pitfalls?<br>
<br>
Just to really make sure: There is no easier way to do? I mean how
does drbd recon the new size of the disk when online? <br>
So this won't work?<br>
-drbdadm down<br>
-shut down VM<br>
-enlarge disk<br>
-power on VM<br>
-start drbd realizing there is a new size ...<br>
<br>
However, any clue for the main question about how to get the
sectors?<br>
<br>
<br>
Thanks a lot!<br>
<br>
/Christian<br>
</body>
</html>