<div dir="ltr">Hi,<div><br></div><div style>I&#39;ve installed drbd version 8.3.13 on a couple of machines running centos 5.8. I already have data on a logical volume on the primary and I had no space for a meta disk, so I&#39;ve done the following:</div>
<div style><br></div><div style>* umount my data LV</div><div style>* full fsck of the LV</div><div style>* resize it down by 1GB</div><div style>* mount it successfully and write to it for a few days without error</div><div style>
<br></div><div style>And then I created a second 1GB LV out of the same VG for later use as the drbd meta disk.</div><div style><br></div><div style>And then tonight I did the following:</div><div style><br></div><div style>
* unmounted my LV</div><div style>* configured drbd to use meta data on a second LV (created out of the 1GB now free in the VG)</div><div style>* setup both primary and secondary</div><div style>* started the syncing in the correct direction.</div>
<div style><br></div><div style>At this point everything looked good (watching /proc/drbd). I&#39;m using protocol A and the sync is going to take a few days. </div><div style><br></div><div style>Then I tried to mount /dev/drbd1 and use it, the mount worked ok but writing to it changed it to be RO.<br>
</div><div style><br></div><div style>A bit of poking around shows that a fdisk -l of /dev/drbd1 shows a very different size to that of the underlying LV:</div><div style><br></div><div style><div>[root@nhr-b02 /]# fdisk -l /dev/DataVG01/DataLV01</div>
<div><br></div><div>Disk /dev/DataVG01/DataLV01: 5988.1 GB, 5988119740416 bytes</div><div>255 heads, 63 sectors/track, 728014 cylinders</div><div>Units = cylinders of 16065 * 512 = 8225280 bytes</div><div><br></div><div>Disk /dev/DataVG01/DataLV01 doesn&#39;t contain a valid partition table</div>
<div>[root@nhr-b02 /]# fdisk -l /dev/drbd1</div><div><br></div><div>Disk /dev/drbd1: 4396.8 GB, 4396838551552 bytes</div><div>255 heads, 63 sectors/track, 534551 cylinders</div><div>Units = cylinders of 16065 * 512 = 8225280 bytes</div>
<div><br></div><div>Disk /dev/drbd1 doesn&#39;t contain a valid partition table</div><div><br></div><div style>As you can see the drbd device is 1.5TB less than the underlying LV!</div><div style><br></div><div>[root@nhr-b02 /]# lvdisplay  /dev/DataVG01/DataLV01</div>
<div>  --- Logical volume ---</div><div>  LV Name                /dev/DataVG01/DataLV01</div><div>  VG Name                DataVG01</div><div>  LV UUID                YoBNvQ-IP2p-tCh8-6rwp-emaq-QVYo-nrw4sI</div><div>  LV Write Access        read/write</div>
<div>  LV Status              available</div><div>  # open                 1</div><div>  LV Size                5.45 TB</div><div>  Current LE             1427679</div><div>  Segments               1</div><div>  Allocation             inherit</div>
<div>  Read ahead sectors     auto</div><div>  - currently set to     256</div><div>  Block device           253:2</div><div><br></div><div style>This is the meta disk device, 1GB </div><div><br></div><div>[root@nhr-b02 /]# lvdisplay  /dev/DataVG01/DataLV01-meta</div>
<div>  --- Logical volume ---</div><div>  LV Name                /dev/DataVG01/DataLV01-meta</div><div>  VG Name                DataVG01</div><div>  LV UUID                hGkn51-vxpj-fz9N-t2Lh-GDOL-9nwe-PELT95</div><div>
  LV Write Access        read/write</div><div>  LV Status              available</div><div>  # open                 1</div><div>  LV Size                1.00 GB</div><div>  Current LE             256</div><div>  Segments               1</div>
<div>  Allocation             inherit</div><div>  Read ahead sectors     auto</div><div>  - currently set to     256</div><div>  Block device           253:3</div><div><br></div><div style>Does anybody know what is likely to cause this? I&#39;ve halted the sync until I can figure this out!</div>
<div style><br></div><div style>r.</div><div style><br></div><div><br></div><div><br></div></div></div>