<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br>Dear Lars<br><br>Thank you for your answer.<br><br>I will build next configuration.<br><br>Primary Storage1 -FC- DRBD-tgt(iSCSI target Driver)- iSCSI -Winodows2008R2<br> |<br> LAN<br> |<br>Secondary Srorage2 -FC- DRBD<br><br>I created partitions from Windows2008R first.<br><br>Windows2008R created MS data partition(mpathap2) with MS reserved partition(mpathap1).<br><br>I hope to replicate MS data(mpathp2) by DRBD.<br><br>Please
help me<br><br><br>--- On <b>Wed, 2014/5/14, Lars Ellenberg <i><lars.ellenberg@linbit.com></i></b> wrote:<br><blockquote class="jp_replyForwardContainer" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br><div class="plainMail">On Wed, May 14, 2014 at 02:07:21PM +0900, <a ymailto="mailto:kad76oglz0qh@yahoo.co.jp" href="/mc/compose?to=kad76oglz0qh@yahoo.co.jp" target="_self">kad76oglz0qh@yahoo.co.jp</a> wrote:<br>> Dear Lars<br>> <br>> Thank you for your answer.<br>> <br>> >Something already claimed mapatha.<br>> >Maybe you need to exclude kpartx from mapping internal partitions,<br>> >or adjust the lvm filter to exclude that device.<br>> <br>> >What's supposed to be on that device?<br>> >File system? VM image? LVM PV?<br>> <br>> I didn't use LVM.<br>> <br>> device are /dev/sda and /dev/sdb.<br>> # df<br>> Filesystem
1K-ブロック 使用 使用可 使用% マウント位置<br>> /dev/sdc3 10079084 6286048 3281036 66% /<br>> tmpfs 6158340 88 6158252 1% /dev/shm<br>> /dev/sdc1 198337 51717 136380 28% /boot<br>> /dev/sdc5 100125432 12501716 82537548 14% /home<br>> <br>> # chkconfig --list multipathd<br>> multipathd 0:off 1:off 2:off 3:off 4:off 5:off 6:off<br>> <br>> But I reboot system and I checked
under /dev/mapper.<br>> #ls /dev/mapper<br>> controll mpatha mpathap1 mpathap2<br><br>That's your problem right there.<br><br>mpathap1 and p2 are device mapper targets created by kpartx<br>on top of the multipath target mpatha.<br>These claim mpatha (correctly),<br>thereby preventing DRBD from claiming them.<br><br>If that was not the case, you would have both<br>the partition mappings and DRBD accessing the lower level devices,<br>concurrently, but only DRBD would replicate,<br>the partition mappings would bypass DRBD,<br>and you'd become soon very very disappointed<br>(and likely would blame DRBD...).<br><br><br>Why did you think you want partitions there?<br><br>Did you mean to have DRBD use one of those partitions?<br><br>I suggest you either use one DRBD per "partition",<br>or you get rid of the partitions completely<br>and put DRBD on the whole device.<br><br>If you need "partitions" inside of one DRBD<br>I recommend to use DRBD as PV
(physical volume)<br>for a LVM VG (volume group).<br><br>Hth,<br> Lars<br><br>> I started drbd. Same error occured.<br>> <br>> <br>> <br>> <br>> --- On Tue, 2014/5/13, Lars Ellenberg <<a ymailto="mailto:lars.ellenberg@linbit.com" href="/mc/compose?to=lars.ellenberg@linbit.com" target="_self">lars.ellenberg@linbit.com</a>> wrote:<br>> <br>> On Thu, May 08, 2014 at 06:43:58PM +0900, <a ymailto="mailto:kad76oglz0qh@yahoo.co.jp" href="/mc/compose?to=kad76oglz0qh@yahoo.co.jp" target="_self">kad76oglz0qh@yahoo.co.jp</a> wrote:<br>> > Hi everybody<br>> > <br>> > I set up device-mapper under centOS6.3.<br>> > I started drbd but drbd didn't start.<br>> > <br>> > #/etc/rc.d/init.d/drbd start<br>> > Starting DRBD resources: [<br>> > create res: r0<br>> > prepare disk: r0<br>> > adjust disk:
r0:failed(attach:10)<br>> > adjust net: r0<br>> > ]....<br>> > <br>> > multipath<br>> > # multipath -ll<br>> > mpatha dm-0 IFT,DS S16F-R1440<br>> > size=7.6T features='0' hwhandler='0' wp=rw<br>> > |-+- policy='round-robin 0' prio=1 status=active<br>> > | `- 5:0:0:0 sdb 8:16 active ready running<br>> > `-+- policy='round-robin 0' prio=1 status=enabled<br>> > `- 1:0:0:0 sda 8:0 active ready running<br>> > <br>> > /etc/multipath.conf<br>> > defaults {<br>> > user_friendly_names yes<br>> > }devices {<br>> > device {<br>> > vendor "IFT "<br>> >
product "DS S16F-R1440"<br>> > path_grouping_policy multibus<br>> > #path_grouping_policy failover<br>> > getuid_callout "/lib/udev/scsi_id --whitelisted --device<br>> > =/dev/%n"<br>> > path_checker readsector0<br>> > path_selector "round-robin 0"<br>> > hardware_handler "0"<br>> >
failback 15<br>> > rr_weight priorities<br>> > no_path_retry 15<br>> > #no_path_retry queue<br>> > }<br>> > }<br>> > blacklist{<br>> > devnode "^drbd*"<br>> > # devnode *<br>> > device {<br>> > vendor "SEAGATE"<br>> > product "*"<br>> >
}<br>> > device {<br>> > vendor "Dell"<br>> > product "*"<br>> > }<br>> > device {<br>> > vendor ""iDRAC<br>> > product "*"<br>> > }<br>> > }<br>> > <br>> > drbd Ver8.4.4<br>> > <br>> > /etc/drbd.conf<br>> > <br>> > # more /etc/drbd.conf<br>> > #<br>> > # please have a a look at the example configuration file
in<br>> > # /usr/share/doc/drbd83/drbd.conf<br>> > #<br>> > common {<br>> > disk {<br>> > max-bio-bvecs 1;<br>> > #on-io-error call-local-io-erro;<br>> > }<br>> > }<br>> > <br>> > resource r0 {<br>> > protocol C;<br>> > <br>> > <br>> > net {<br>> > sndbuf-size 512K;<br>> > ping-int 10;<br>> > ping-timeout 10;<br>> > connect-int 10;<br>> > timeout 80;<br>> > ko-count 0;<br>> > max-buffers 8000;<br>> > max-epoch-size 8000;<br>> > }<br>> > <br>> > syncer {<br>>
> rate 80M;<br>> > verify-alg md5;<br>> > al-extents 3833;<br>> > }<br>> > <br>> > on centos1 {<br>> > device /dev/drbd0;<br>> > disk /dev/mapper/mpatha;<br>> > address 172.26.24.153:7790;<br>> > flexible-meta-disk /dev/sdc6;<br>> > }<br>> > on centos2 {<br>> > device /dev/drbd0;<br>> > disk /dev/mapper/mpatha;<br>> > address 172.26.24.155:7790;<br>> > flexible-meta-disk /dev/sdc6;<br>> > }<br>> > }<br>> > <br>> > /var/log/messages<br>> > May 8 16:16:56 centos1 kernel: drbd:
initialized. Version: 8.4.4 (api:1/proto:86-101)<br>> > May 8 16:16:56 centos1 kernel: drbd: GIT-hash: 74402fecf24da8e5438171ee8c19e28627e1c98a build by root@centos63, 2014-04-25 21:53:13<br>> > May 8 16:16:56 centos1 kernel: drbd: registered as block device major 147<br>> > May 8 16:16:56 centos1 kernel: drbd r0: Starting worker thread (from drbdsetup [5231])<br>> > May 8 16:16:56 centos1 kernel: block drbd0: open("/dev/mapper/mapatha") failed with -16<br>> <br>> Something already claimed mapatha.<br>> Maybe you need to exclude kpartx from mapping internal partitions,<br>> or adjust the lvm filter to exclude that device.<br>> <br>> What's supposed to be on that device?<br>> File system? VM image? LVM PV?<br>> <br>> > May 8 16:16:56 centos631 kernel: block drbd0: drbd_bm_resize called with capacity == 0<br>> > May 8 16:16:56 centos631 kernel: drbd r0:
Terminating drbd_w_r0<br>> > <br>> > Please help me.<br>> > <br>> > Regards<br>> > Masahiko Kawase<br>> <br>> <br>> -- <br>> : Lars Ellenberg<br>> : LINBIT | Your Way to High Availability<br>> : DRBD/HA support and consulting <a href="http://www.linbit.com" target="_blank">http://www.linbit.com</a><br>> <br>> DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.<br>> __<br>> please don't Cc me, but send to list -- I'm subscribed<br>> _______________________________________________<br>> drbd-user mailing list<br>> <a ymailto="mailto:drbd-user@lists.linbit.com" href="/mc/compose?to=drbd-user@lists.linbit.com" target="_self">drbd-user@lists.linbit.com</a><br>> <a href="http://lists.linbit.com/mailman/listinfo/drbd-user" target="_blank">http://lists.linbit.com/mailman/listinfo/drbd-user</a><br><br>>
_______________________________________________<br>> drbd-user mailing list<br>> <a ymailto="mailto:drbd-user@lists.linbit.com" href="/mc/compose?to=drbd-user@lists.linbit.com" target="_self">drbd-user@lists.linbit.com</a><br>> <a href="http://lists.linbit.com/mailman/listinfo/drbd-user" target="_blank">http://lists.linbit.com/mailman/listinfo/drbd-user</a><br><br><br>-- <br>: Lars Ellenberg<br>: LINBIT | Your Way to High Availability<br>: DRBD/HA support and consulting <a href="http://www.linbit.com" target="_blank">http://www.linbit.com</a><br><br>DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.<br>__<br>please don't Cc me, but send to list -- I'm subscribed<br>_______________________________________________<br>drbd-user mailing list<br><a ymailto="mailto:drbd-user@lists.linbit.com" href="/mc/compose?to=drbd-user@lists.linbit.com" target="_self">drbd-user@lists.linbit.com</a><br><a
href="http://lists.linbit.com/mailman/listinfo/drbd-user" target="_blank">http://lists.linbit.com/mailman/listinfo/drbd-user</a><br></div></blockquote></td></tr></table>