[DRBD-user] Problems converting DRBD to v8

Lars Ellenberg lars.ellenberg at linbit.com
Fri Nov 30 11:49:27 CET 2007

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


On Fri, Nov 30, 2007 at 10:58:25AM +0100, Andreas Haase - evolver group wrote:
> Hi list,
> 
> I tried to convert a drbd ressource from version 0.7.25 to 8.0.7 following 
> Florians upgrade guide. Problem is that drbdadm does not recognize the v07 
> Magic number and offers to generate a new meta data block.

could you please send me (private mail) the output of
xxd -s -$[128*1024*1024+4096] -l 8192 -a /dev/cciss/c0d0p1

thanks.

> I've attached drbd.conf files for both versions. What can I do to convert 
> the drbd ressource without risk of data loss?

after you send me the output of xxd,
if you make sure you have had them Connected Secondary/Secondary before,

you can well let drbdmeta create new meta data, no problem.
so, send me that xxd output,
create the new meta data on both nodes,
chose e.g. rmcfs01, and say

  rmcfs01# drbdadm attach r0
	 # drbdadm -- -o primary r0
	 # drbdadm adjust r0

  rmcfs02# drbdadm adjust r0

  and you'd get a full sync from rmcfs01 -> rmcfs02.
  you can mount and use it on rmcfs01 already
  right after you made it primary.

sorry for that,
likely the last "fix" for external meta data conversion
broke internal meta data conversion again.

> global { usage-count no; }
> common {
>   syncer { rate 100M; }
>  
>   protocol C;
>   handlers {

you are aware that these handlers will, if they ever are triggered,
 **switch of the box hard**
immediately! so you better mean it.

>     pri-on-incon-degr "echo o > /proc/sysrq-trigger ; halt -f";
>     pri-lost-after-sb "echo o > /proc/sysrq-trigger ; halt -f";
>     local-io-error "echo o > /proc/sysrq-trigger ; halt -f";
>   }
> 
>   disk {
>     on-io-error call-local-io-error;
>   }
> 
>   net {
>     max-buffers 2048;

you probably want more like 20000 there.

>     ko-count 4;
>   }
> }
> 
> resource r0 {
>   on rmcfs01 {
>     device    /dev/drbd0;
>     disk      /dev/cciss/c0d0p1;
>     address   172.17.4.1:7789;
>     meta-disk  internal;
>   }
> 
>   on rmcfs02 {
>     device    /dev/drbd0;
>     disk      /dev/cciss/c0d0p1;
>     address   172.17.4.2:7789;
>     meta-disk  internal;
>   }
> }

cheers,


-- 
: Lars Ellenberg                            Tel +43-1-8178292-55 :
: LINBIT Information Technologies GmbH      Fax +43-1-8178292-82 :
: Vivenotgasse 48, A-1120 Vienna/Europe    http://www.linbit.com :



More information about the drbd-user mailing list