<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><div id="yiv1575120022"><table id="yiv1575120022bodyDrftID" class="yiv1575120022" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td id="yiv1575120022drftMsgContent" style="font:inherit;">Dear Lars<br><br>Thank you for your answer.<br><br>>What's supposed to be on that device?<br>>File system? VM image? LVM PV?<br><br>File system.Not use VM and LVM.<br>I used write partition by parted<br><br><br><br>--- On <b>Tue, 2014/5/13, Lars Ellenberg <i><lars.ellenberg@linbit.com></i></b> wrote:<br><blockquote class="yiv1575120022jp_replyForwardContainer" style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;"><br><div class="yiv1575120022plainMail">On Thu, May 08, 2014 at 06:43:58PM +0900, <a rel="nofollow">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 rel="nofollow" target="_blank" href="http://www.linbit.com">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 rel="nofollow">drbd-user@lists.linbit.com</a><br><a rel="nofollow" target="_blank" href="http://lists.linbit.com/mailman/listinfo/drbd-user">http://lists.linbit.com/mailman/listinfo/drbd-user</a><br></div></blockquote></td></tr></tbody></table></div></td></tr></table>