Hi,
There's so much information relating to my current configuration, that I'm not
sure what I should post here. Let me start by saying that I had two Ubuntu
10.04 hosts configured in a DRBD relationship: sf02-nfs1 (primary) and
sf0-nfs2 (secondary). -nfs1 suffered a major filesystem fault. I had to make
-nfs2 primary and rebuild -nfs1. I want to eventually have all of my machines
on 12.04, so I took this as an opportunity to set -nfs1 on that OS.
Here is a copy of my main configuration file (/etc/drbd.d/nfs.res):
resource nfs { on sf02-nfs2 { device /dev/drbd0; disk
/dev/ubuntu/drbd-nfs; address 10.0.6.2:7789; meta-disk internal; } on
sf02-nfs1 { device /dev/drbd0; disk /dev/ubuntuvg/drbd-nfs;
address 10.0.6.1:7789; meta-disk internal; }}
I'm trying to re-introduce -nfs1 into the DRBD relationship and am having
trouble. I have:
1.) created the resource "nfs" on -nfs1 ('drbdadm create-md nfs')
2.) run 'drbdadm primary nfs' on -nfs2 and 'drbdadm secondary nfs' on -nfs1.3.)
run drbdadm -- --overwrite-data-of-peer primary all' from -nfs2.
But /var/log/kern.log shows:
=====
Dec 19 19:55:47 sf02-nfs2 kernel: [9284165.843938] block drbd0: Handshake
successful: Agreed network protocol version 91Dec 19 19:55:47 sf02-nfs2 kernel:
[9284165.843949] block drbd0: conn( WFConnection -> WFReportParams )Dec 19
19:55:47 sf02-nfs2 kernel: [9284165.844171] block drbd0: Starting asender
thread (from drbd0_receiver [2452])Dec 19 19:55:47 sf02-nfs2 kernel:
[9284165.844539] block drbd0: data-integrity-alg: <not-used>Dec 19 19:55:47
sf02-nfs2 kernel: [9284165.844610] block drbd0: The peer's disk size is too
small!Dec 19 19:55:47 sf02-nfs2 kernel: [9284165.844617] block drbd0: conn(
WFReportParams -> Disconnecting )Dec 19 19:55:47 sf02-nfs2 kernel:
[9284165.844626] block drbd0: error receiving ReportSizes, l: 32!Dec 19
19:55:47 sf02-nfs2 kernel: [9284165.844680] block drbd0: asender terminatedDec
19 19:55:47 sf02-nfs2 kernel: [9284165.844691] block drbd0: Terminating asender
threadDec 19 19:55:47 sf02-nfs2 kernel: [9284165.844746] block drbd0:
Connection closedDec 19 19:55:47 sf02-nfs2 kernel: [9284165.844755] block
drbd0: conn( Disconnecting -> StandAlone )Dec 19 19:55:47 sf02-nfs2 kernel:
[9284165.844791] block drbd0: receiver terminatedDec 19 19:55:47 sf02-nfs2
kernel: [9284165.844794] block drbd0: Terminating receiver thread=====
So, it seems that a difference in the size of drbd0 on the respective machines
is the source of my trouble. 'cat /proc/partitions' (output pasted at the end
of this message) on each machine tells me that -nfs2's partition is around
348148 blocks larger than -nfs1's. -nfs2 contains my company's Production
data, so I do not, of course, want to do anything destructive there. I can,
however, certainly recreate the resource on -nfs1.
Does anyone out there know what steps I need to take to make the partition
sizes match? Of course, I'm working under the belief that the "peer's disk
size is too small" message points up the source of my trouble. Let me know, of
course, if I need to post more information on my setup.
Thanks,
-Anthony
==========root@sf02-nfs1:/dev/ubuntuvg# cat /proc/partitions
major minor #blocks name
8 0 1952448512 sda
8 1 512000 sda1
8 2 1 sda2
8 5 1886388224 sda5
252 0 20971520 dm-0
252 1 5242880 dm-1
252 2 1706033152 dm-2
147 0 1705981052 drbd0
root@sf02-nfs2:/etc/drbd.d# cat /proc/partitions
major minor #blocks name
8 0 1952448512 sda
8 1 248832 sda1
8 2 1 sda2
8 5 1952196608 sda5
252 0 209715200 dm-0 ubuntuvg-root
252 1 36098048 dm-1 ubuntuvg-swap
252 2 1706381312 dm-2 ubuntuvg-drbd--nfs
147 0 1706329200 drbd0
_______________________________________________
drbd-user mailing list
[email protected]
http://lists.linbit.com/mailman/listinfo/drbd-user