This issue came up in a separate thread on a different topic and wanted to discuss it separately.<div><br></div><div>I have a two node setup both running 8.2.6</div><div><br></div><div>I increased the sizes of the physical disks on both nodes but DRBD is still only showing the old sizes.</div>
<div><br></div><div>My DRBD meta-data is on it's own external partition and always has been.</div><div><br></div><div>How can I have DRBD use the full size available?</div><div><br></div><div><br></div><div>Here was my procedure:</div>
<div>I was out of disk space so I took secondary offline, rebuild it's array with larger disks, reinstalled the OS and built the correct partition scheme, installed DRBD and ran:</div><div><br></div><div>drbdadm create-md r0<br>
drbdadm attach r0<br>
drbdadm syncer r0<br>
drbdadm connect r0</div><div><br></div><div>It started to sync to the original primary and completed.</div><div><br></div><div>I reinstalled all services and made secondary primary.</div><div><br></div><div>I then rebuilt the new secondary with the same larger disks and matched all to the new primary. I installed DRBD and then ran:</div>
<div><br></div><div>drbdadm create-md r0<br>drbdadm attach r0<br>drbdadm syncer r0<br>drbdadm connect r0</div><div><br></div><div>It synced completely.</div><div><br></div><div>I have up to date on both but df -h on primary shows the old partition size still!!!</div>
<div><br></div><div>You can see the old /dev/drbd1 saw 261G for sda5 and sda5 on new has much more space (as seen in parted) that is not available when mounted now.</div><div><br></div><div>Here is info from primary:</div>
<div><br></div><div><div>[root@web002 ~]# df -h</div><div>Filesystem Size Used Avail Use% Mounted on</div><div>/dev/sda2 9.7G 4.6G 4.7G 50% /</div><div>/dev/sda1 99M 18M 77M 19% /boot</div>
<div>tmpfs 3.9G 0 3.9G 0% /dev/shm</div><div>/dev/drbd1 261G 227G 21G 92% /data</div><div>[root@web002 ~]# parted</div><div>GNU Parted 1.8.1</div><div>Using /dev/sda</div><div>Welcome to GNU Parted! Type 'help' to view a list of commands.</div>
<div>(parted) print </div><div><br></div><div>Model: DELL PERC 6/i Adapter (scsi)</div><div>Disk /dev/sda: 599GB</div><div>Sector size (logical/physical): 512B/512B</div>
<div>Partition Table: msdos</div><div><br></div><div>Number Start End Size Type File system Flags</div><div> 1 32.3kB 107MB 107MB primary ext3 boot </div><div> 2 107MB 10.8GB 10.7GB primary ext3 </div>
<div> 3 10.8GB 19.4GB 8587MB primary linux-swap </div><div> 4 19.4GB 599GB 579GB extended </div><div> 5 19.4GB 595GB 575GB logical ext3 </div><div> 6 595GB 599GB 4294MB logical </div>
<div><br></div><div>(parted) quit </div><div>Information: Don't forget to update /etc/fstab, if necessary. </div><div><br></div><div>[root@web002 ~]# cat /etc/drbd.conf </div>
<div>global {</div><div> usage-count yes;</div><div>}</div><div>common {</div><div> protocol C;</div><div>}</div><div>resource r0 {</div><div> syncer {</div><div> rate 110M;</div><div> }</div><div> on <a href="http://web001.example.com">web001.example.com</a> {</div>
<div> device /dev/drbd1;</div><div> disk /dev/sda5;</div><div> address <a href="http://10.0.114.2:7789">10.0.114.2:7789</a>;</div><div> meta-disk /dev/sda6[0];</div><div> }</div><div> on <a href="http://web002.example.com">web002.example.com</a> {</div>
<div> device /dev/drbd1;</div><div> disk /dev/sda5;</div><div> address <a href="http://10.0.114.3:7789">10.0.114.3:7789</a>;</div><div> meta-disk /dev/sda6[0];</div><div> }</div><div>}</div></div><div>
<br></div><div><br></div><div><br></div><div>What can I do to have DRBD see all available space on /dev/sda5???</div><div><br></div><div>Thanks!</div><div><br></div>