drbd9資料 osc発表

Download Drbd9資料 osc発表

Post on 12-Jul-2015

514 views

Category:

Documents

0 download

Embed Size (px)

TRANSCRIPT

  • 1

    DRBD 9.0

    2013-02

  • 2

    ! DRBD Distributed Replicated Block Device

    DRBD

    Host2

    Network

    Host1

  • 3

    DRBD

    ! 4

    Host3 Host4

    Host1

    Host2

    Stacked

    Stacked

  • 4

    DRBD

    ! ! /dev/drbdN ! ! LVMMD

    ! Primary ! Secanday

    !

  • 5

    .1:

  • 6

    Primary

    Secondary

    Secondary

    ! : 112 (4)

    ! :

  • 7

    ! (create-md) ! ! 32 ! PrimarySecondary !

  • 8

    :

    1

    2

  • 9

    :

    3

    3

    6

    4

    n (

    n

    1 )

    2

    n

    1

    2

  • 10

    vs

    Secondary

    Secondary

    Primary

    Stacked

    Primary

    Stacked

    ! !

  • 11

    vs

    Secondary

    Primary

    Secondary

    ! !

  • 12

    ! 8.3 ! )

    ! 8.4 !

    ! 9.0 !

  • 13

    8.3 Objects

  • 14

    8.4 Objects

    1

    n

  • 15

    9.0 Objects

    1

    n

    1

    n

    1 m

    1 m

  • 16

    drbdadm arguments

    1

    n

    1

    n

    1 m

    1 mdrbdadm res ... drbdadm conn@res ...

    drbdadm conn@res...drbdadm res/0 ...

  • 17

  • 18

    : resource example { volume 0 {...} volume 1 {...} on alice { node-id 0; address 10.0.42.1:7001; } on bob { node-id 1; address 10.0.42.2:7002; } on rick { node-id 2; address 10.0.42.3:7003; } connection { host alice port 7001; host bob port 7002; } connection {

    host rick port 7003; } connection {...} }

    host bob port 7002;

  • 19

    : id ! 031 ! ! ! idDRBD

  • 20

    ! net ! ... ! ...

    !

  • 21

    .2:

  • 22

    8.x

    # drbdadm primary res Primary

    # mount /dev/drbd0

    ..

    # umount /dev/drbd0

    # drbdadm secondary resSecondary

  • 23

    9.0

    # mount /dev/drbd0

    ..

    # umount /dev/drbd0

    # drbdadm primary res Primary

    # drbdadm secondary resSecondary

  • 24

    ! Primary

    ! Primary ! ! Secondary ! Pacemaker

  • 25

    .3:

  • 26

    Source

    Target

    Target

    ! 1 ! (--force primary)

  • 27

    ! !

    Paused Source

    Target Paused

    Source

  • 28

    Primary

    Secondary

    Secondary

    ! Primary

  • 29

    ! Primary !

    Primary

    Secondary

    Secondary Target

    Source

  • 30

    .4:

  • 31

    ! drbdsetup status ! --statistics ! --verbose ! drbdadm status ! /proc/drbd DRBD

  • 32

    3

  • 33

  • 34

    ()

    ! 2 ! =

    ! ! 2Primary ! UDP multicast transport

  • 35

    www.3ware.co.jp