Hi all,
thank you. It has seemed to me that the solution is to clear the bitmap and let 
DRBD consider data consistent on both disks.
Indeed I followed the steps showed in 
http://www.drbd.org/users-guide-8.3/re-drbdsetup.html and it works fine!

After I've disabled MD raid and configured DRBD resource based on the former 
raid disks I started drbd in this way:

1.On both nodes, initialize meta data and configure the device.
drbdadm -- --force create-md res

2.They need to do the initial handshake, so they know their sizes.
drbdadm up res

3.They are now Connected Secondary/Secondary Inconsistent/Inconsistent. 
Generate a new current-uuid and clear the dirty bitmap.
drbdadm -- --clear-bitmap new-current-uuid res

4.They are now Connected Secondary/Secondary UpToDate/UpToDate. Make one side 
primary and create a file system.
drbdadm primary res

Hoping this can help somebody else,
Cheers

Pierpaolo



----------------------------------------------------------------------

Da:                      "Florian Haas" flor...@hastexo.com
A:               "pierpaolo.fasano" pierpaolo.fas...@coritel.it
Cc:           drbd-user@lists.linbit.com
Data Fri, 16 Mar 2012 14:27:00 +0100
Oggetto: Re: [DRBD-user] Switch from MD to DRBD

> On Fri, Mar 16, 2012 at 1:32 PM, pierpaolo.fasano
> <pierpaolo.fas...@coritel.it> wrote:
> > Hi,
> > I'm in the middle of switching from a software RAID1 based on MD to another 
> > one based on DRBD but using the same disks.
> > I've verified that no data loss occurs during this operation, but I'm 
> > wondering if it's possible to avoid the initial full synchronization 
> > between disks since I'm sure the two disks are already mirrored by MD.
> > Is it possible to achieve it and in which way?
> 
> http://www.drbd.org/users-guide-8.3/s-using-truck-based-replication.html
> 
> Cheers,
> Florian
> 
> -- 
> Need help with High Availability?
> http://www.hastexo.com/now
> 

_______________________________________________
drbd-user mailing list
drbd-user@lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-user

Reply via email to