<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
Scenario: 2-node HA cluster has a DRBD resource that is connected
but the primary node is diskless and probably has corrupted
meta-data (stored internally), however when we try to detach/attach
or disconnect/connect and several other steps it does not succeed.
After all standard connect/attach procedures failed we tried to
recreate the internal meta-data with create-md which says we must
zero the drive or shrink the file system first...below are the
results of that command. <br>
<br>
Status: The secondary node has Up-To-Date files and is in control of
heartbeat, in production and functioning as desired.<br>
<br>
Question: If we zero that partition on primary will it destroy the
files on the local partition ONLY ... then we can create new
internal meta-data then sync it to secondary to get Up-To-Date files
back on primary? We want to make sure that secondary is not affected
by this procedure since it has the good files.<br>
<br>
<small><small>[root@primary ~]# drbdadm create-md mysql<br>
md_offset 72826589184<br>
al_offset 72826556416<br>
bm_offset 72824332288<br>
<br>
Found ext3 filesystem which uses 71119720 kB<br>
current configuration leaves usable 71117512 kB<br>
<br>
Device size would be truncated, which<br>
would corrupt data and result in<br>
'access beyond end of device' errors.<br>
You need to either<br>
* use external meta data (recommended)<br>
* shrink that filesystem first<br>
* zero out the device (destroy the filesystem)<br>
Operation refused.<br>
<br>
Command 'drbdmeta /dev/drbd0 v08 /dev/cciss/c0d1p1 internal
create-md' terminated with exit code 40<br>
drbdadm aborting</small></small><br>
<br>
Primary drbd-overview:<br>
0:mysql Connected Secondary/Primary Diskless/UpToDate C r---<br>
<br>
Secondary drbd-overview<br>
0:mysql Connected Primary/Secondary UpToDate/Diskless C r---
/shared ext3 67G 1.9G 62G 3%<br>
<br>
(FYI - drbd.conf should be attached - if it's not I will post a
reply if anyone wants to see it)<br>
<br>
Error logs:<br>
[root@primary ~]# drbdadm attach mysql<br>
/dev/drbd0: Failure: (111) Low.dev. smaller than requested DRBD-dev.
size.<br>
Command 'drbdsetup /dev/drbd0 disk /dev/cciss/c0d1p1
/dev/cciss/c0d1p1 internal --set-defaults --create-device
--on-io-error=detach' terminated with exit code 10<br>
<br>
<br>
</body>
</html>