<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
You are mixing up the physical device and the drbd device (on which
you have an ext4 filesystem) which consists of several partitions on
physical disks.<br>
You do not need to format your physical device; you just need to
initialize it with drbd metadata. <br>
After this, your ext4 filesystem on the DRBD device will be
synchronized to you new physical device. <br>
In effect, it doas no harm to put an ext4 filesystem on the disk. It
will just be erased by the following sync process. <br>
<br>
What you need to do in your setup is initialize the <u>partition
table</u> of the replacement disk to match that of the failed
disk.<br>
Use your favorite partitioning tool to create sb1 and sb2 partitions
with the sector numbers listed below in your fdisk output. <br>
<br>
JC <br>
<br>
<br>
<div class="moz-cite-prefix">Am 08.02.2016 um 14:18 schrieb AALISHE:<br>
</div>
<blockquote
cite="mid:CAOG9y1X0cBNMZu3VvV_-XCk7s_mBDseWfHZXAW+Z3v4_nvgmaQ@mail.gmail.com"
type="cite">
<div dir="ltr">Thanks Jakob ..... all other volumes in that
resource are ext4 as I can see
<div><br>
</div>
<div><br>
</div>
<div>
<div>[Good-Node]$ df -T</div>
<div><br>
</div>
<div>/dev/drbd1 ext4 516045588 23803136
466028856 5% /mnt/drbd1</div>
<div>/dev/drbd2 ext4 516045588 15042836
474789156 4% /mnt/drbd2</div>
<div>/dev/drbd3 ext4 516045588 15045468
474786524 4% /mnt/drbd3</div>
<div>/dev/drbd4 ext4 516045588 15005716
474826276 4% /mnt/drbd4</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>$ sudo fdisk /dev/sdb</div>
<div><br>
</div>
<div>Command (m for help): p</div>
<div><br>
</div>
<div>Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes</div>
<div>255 heads, 63 sectors/track, 121601 cylinders</div>
<div>Units = cylinders of 16065 * 512 = 8225280 bytes</div>
<div>Sector size (logical/physical): 512 bytes / 4096 bytes</div>
<div>I/O size (minimum/optimal): 4096 bytes / 4096 bytes</div>
<div>Disk identifier: 0x00000000</div>
<div><br>
</div>
<div> Device Boot Start End Blocks
Id System</div>
<div>/dev/sdb1 1 65271 524288000
83 Linux</div>
<div>/dev/sdb2 65271 121602 452473560 83
Linux</div>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Feb 8, 2016 at 1:34 PM, Jakob
Curdes <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:jc@info-systems.de" target="_blank">jc@info-systems.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">I am in
doubt whether your step 1 is correct.<br>
DRBD is a block replication system. This typically works way
below the file system. Unless you have a very special setup,
you will not need or want to format your disk with ext4.<br>
You just replace the bad disk with the good one and after
creating metadata as your indicated you connect to the
primary which will initiate a resynchronisation of the
content.<br>
<br>
NB. For complex systems like a DRBD-setup it is always good
to have a test setup where you can simulate the behavior
before accidentally destroying data.<br>
<br>
<br>
Regards,<br>
<br>
Jakob Curdes
<div class="HOEnZb">
<div class="h5"><br>
<br>
_______________________________________________<br>
drbd-user mailing list<br>
<a moz-do-not-send="true"
href="mailto:drbd-user@lists.linbit.com"
target="_blank">drbd-user@lists.linbit.com</a><br>
<a moz-do-not-send="true"
href="http://lists.linbit.com/mailman/listinfo/drbd-user"
rel="noreferrer" target="_blank">http://lists.linbit.com/mailman/listinfo/drbd-user</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>