Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
And yet an other mal that went into my Drafts folder instead of being sent out :-( On Mon, Jun 11, 2012 at 08:36:03PM +0200, Dirk wrote: > Hi Lars, > > > Am 08.06.12 15:35, schrieb Lars Ellenberg: > >On Wed, Jun 06, 2012 at 09:28:33PM +0200, Dirk wrote: > >>Hi folks, > >> > >>on a freshly installed server pair I am activating 3 drbd volumes each. > >>The first two go without problem, the third returns > >>>[root at server-01 ~]# drbdadm create-md RESOURCE > >>>Writing meta data... > >>>initializing activity log > >>>NOT initialized bitmap > >>>New drbd meta data block successfully created. > >>>success > >>>Command 'drbdmeta 2 v08 /dev/sda7 internal write-dev-uuid > >>>B8B8EDD2900264FC' terminated with exit code 255 > >>The weird things about that are: > >>- /dev/sda7 is a freshly created partition with nothing on it > >>- this happens on both servers with exactly this partition > >> > >>Even disabling sanity-checks does not really work: > >No, nothing to do with those. > > > >>I am stuck. I do not google many hits with the above exit code and > >>find nothing in the docs about it - any hint or help is appreciated. > >maybe you can strace it, > >and/or run with an insane amount of "-v", like > > > >strace -o tmp.create.out \ > > drbdmeta 2 v08 /dev/sda7 internal create-md -vvvvvvvvvvv > >strace -o tmp.write-dev-uuid.out \ > > drbdmeta 2 v08 /dev/sda7 internal write-dev-uuid B8B8EDD2900264FC -vvvvvvvvvvv > > Both outputs are here: http://pastebin.com/6maszyJG create-md wrote: pwrite(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096, 4292866048) = 4096 note the "\4" in there, this is the "just created" UUID. If you had not truncated the strace output, or included stdout with sufficient -v, you'd see other non-NUL bytes there, too. And write-dev-uuid tries to find the meta data, but does only find zeros. pread(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096, 4292866048) = 4096 So: whatever is written to your sda7 seems to revert back to zeros immediately. You are very sure there is nothing "special" with your "sda7", like it is actually a ram disk, or a dm-zero target? -- : Lars Ellenberg : LINBIT | Your Way to High Availability : DRBD/HA support and consulting http://www.linbit.com DRBD® and LINBIT® are registered trademarks of LINBIT, Austria. __ please don't Cc me, but send to list -- I'm subscribed