[DRBD-user] drbd+device mapper drbd didn't start.

kad76oglz0qh at yahoo.co.jp kad76oglz0qh at yahoo.co.jp
Wed May 14 02:37:48 CEST 2014

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Dear Lars

Thank you for your answer.

>What's supposed to be on that device?
>File system? VM image? LVM PV?

File system.Not use VM and LVM.
I used write partition by parted



--- On Tue, 2014/5/13, Lars Ellenberg <lars.ellenberg at linbit.com> wrote:

On Thu, May 08, 2014 at 06:43:58PM +0900, kad76oglz0qh at yahoo.co.jp wrote:
> Hi everybody
> 
> I set up device-mapper under centOS6.3.
> I started drbd but drbd didn't start.
> 
> #/etc/rc.d/init.d/drbd start
>
 Starting DRBD resources: [
>      create res: r0
>    prepare disk: r0
>     adjust disk: r0:failed(attach:10)
>      adjust net: r0
> ]....
> 
> multipath
> # multipath -ll
> mpatha dm-0 IFT,DS S16F-R1440
> size=7.6T features='0' hwhandler='0' wp=rw
> |-+- policy='round-robin 0' prio=1 status=active
> | `- 5:0:0:0  sdb 8:16 active ready  running
> `-+- policy='round-robin 0' prio=1 status=enabled
>   `- 1:0:0:0  sda 8:0  active ready  running
> 
> /etc/multipath.conf
> defaults {
>         user_friendly_names yes
> }devices {
>        device {
>                vendor                  "IFT 
   "
>                product                 "DS S16F-R1440"
>                path_grouping_policy    multibus
>                #path_grouping_policy    failover
>                getuid_callout          "/lib/udev/scsi_id --whitelisted --device
> =/dev/%n"
>                path_checker            readsector0
>                path_selector           "round-robin 0"
>                hardware_handler        "0"
>         
       failback                15
>                rr_weight               priorities
>                no_path_retry           15
>                #no_path_retry           queue
>        }
> }
> blacklist{
>          devnode "^drbd*"
> #         devnode *
>          device {
>                 vendor "SEAGATE"
>                 product "*"
>             
    }
>          device {
>                 vendor "Dell"
>                 product "*"
>                 }
>          device {
>                 vendor ""iDRAC
>                 product "*"
>                 }
>          }
> 
> drbd Ver8.4.4
> 
> /etc/drbd.conf
> 
> # more /etc/drbd.conf
> #
> # please have a a look at the example configuration file in
> # /usr/share/doc/drbd83/drbd.conf
> #
> common {
>        disk
 {
>             max-bio-bvecs 1;
>             #on-io-error call-local-io-erro;
>             }
> }
> 
> resource r0 {
>   protocol C;
> 
> 
>  net {
>    sndbuf-size 512K;
>    ping-int 10;
>    ping-timeout 10;
>    connect-int 10;
>    timeout 80;
>    ko-count 0;
>    max-buffers 8000;
>    max-epoch-size 8000;
>   }
> 
> syncer {
>   rate 80M;
>   verify-alg md5;
>   al-extents 3833;
> }
> 
>   on centos1 {
>    device     /dev/drbd0;
>   
 disk       /dev/mapper/mpatha;
>    address    172.26.24.153:7790;
>    flexible-meta-disk /dev/sdc6;
>   }
>   on centos2 {
>    device     /dev/drbd0;
>    disk       /dev/mapper/mpatha;
>    address    172.26.24.155:7790;
>    flexible-meta-disk /dev/sdc6;
>   }
> }
> 
> /var/log/messages
> May  8 16:16:56 centos1 kernel: drbd: initialized. Version: 8.4.4 (api:1/proto:86-101)
> May  8 16:16:56 centos1 kernel: drbd: GIT-hash: 74402fecf24da8e5438171ee8c19e28627e1c98a build by root at centos63, 2014-04-25 21:53:13
> May  8 16:16:56 centos1 kernel: drbd: registered as block device major 147
> May  8 16:16:56 centos1 kernel: drbd r0: Starting worker
 thread (from drbdsetup [5231])
> May  8 16:16:56 centos1 kernel: block drbd0: open("/dev/mapper/mapatha") failed with -16

Something already claimed mapatha.
Maybe you need to exclude kpartx from mapping internal partitions,
or adjust the lvm filter to exclude that device.

What's supposed to be on that device?
File system? VM image? LVM PV?

> May  8 16:16:56 centos631 kernel: block drbd0: drbd_bm_resize called with capacity == 0
> May  8 16:16:56 centos631 kernel: drbd r0: Terminating drbd_w_r0
> 
> Please help me.
> 
> Regards
> Masahiko Kawase


-- 
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
__
please don't Cc me, but send to
 list   --   I'm subscribed
_______________________________________________
drbd-user mailing list
drbd-user at lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20140514/754c75f8/attachment.htm>


More information about the drbd-user mailing list