Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
/ 2006-08-10 15:13:21 +0200 \ MP: > >/ Hi, > />/ />/ I have 2 server in StandAlone mode. Is there a way how to tell server > />/ 1 to by the Primary and the server 2 will be secondary. > />/ />/ In server 2 is new hdd the old one was dead. On server 1 are the data > />/ that should synchronize to the server 2. Before the hdd from server 2 > />/ die the drbd works fine. Nothing change to the config. > / your mail client does very funny quoting... > > you have: > > cat /proc/drbd > > (all StandAlone Secondary/Unknown) > > > > you should: > > good server: drbdadm primary all > > cat /proc/drbd # verify all are Primary drbdadm connect all > > cat /proc/drbd # verify all are WFConnection Primary > > > > bad server: drbdadm connect all > > > > watch cat /proc/drbd > > drbd should connect now, and likely do a full sync. > > > > in case it does not do a full sync, > > you can "bad server# drbdadm invalidate all" (since you replaced the disk, you obviously need a full sync, there is > > no data to base an "incremental" sync on) > I do all that what you recommend but without avail. > Aug 10 15:08:03 hpedi2 kernel: drbd0: I am(P): 1:00000014:00000002:0000005e:00000012:10 > Aug 10 15:08:03 hpedi2 kernel: drbd0: Peer(S): 1:0000001b:00000002:0000004f:00000012:00 > Aug 10 15:08:03 hpedi2 kernel: drbd0: Current Primary shall become sync TARGET! Aborting to prevent data corruption. right. > hpedi1 at root#/root > drbdadm invalidate all > ioctl(,INVALIDATE,) failed: Operation now in progress > Only in 'Connected' cstate possible. > Command '/sbin/drbdsetup /dev/nb0 invalidate' terminated with exit code 20 > drbdsetup exited with code 20 ok, that error message is just misleading. invalidate is possible in standalone, too. so: bad node# drbdadm disconnect all; drbdadm invalidate all; drbdadm connect all good node# drbdadm connect all -- : Lars Ellenberg Tel +43-1-8178292-0 : : LINBIT Information Technologies GmbH Fax +43-1-8178292-82 : : Schoenbrunner Str. 244, A-1120 Vienna/Europe http://www.linbit.com : __ please use the "List-Reply" function of your email client.