rbd multipath by export iscsi gateway

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



HI All,

I try to configure multipath  by export two iscsi gateway on two host
with same one rbd volume,   The steps is below:

one host1:
    1)   mapped a rbd volume as a local blockdevice
         rbd map fastpool/vdisk

      as  /dev/rbd0

     2) export /dev/rbd0 as iscsi taget:
          [root@zk23-03 ~]# targetcli / ls
o- / .........................................................................................................................
[...]
  o- backstores
..............................................................................................................
[...]
  | o- block ..................................................................................................
[Storage Objects: 1]
  | | o- fastpool_vdisk
................................................................
[/dev/rbd0 (195.3GiB) write-thru activated]
  | o- fileio .................................................................................................
[Storage Objects: 0]
  | o- pscsi ..................................................................................................
[Storage Objects: 0]
  | o- ramdisk ................................................................................................
[Storage Objects: 0]
  o- iscsi ............................................................................................................
[Targets: 1]
  | o- iqn.2016-05.com.zettakit.www:fastpool.vdisk
.......................................................................
[TPGs: 1]
  |   o- tpg1 ...............................................................................................
[no-gen-acls, no-auth]
  |     o- acls
..........................................................................................................
[ACLs: 1]
  |     | o- iqn.2016-05.com.zettakit:node2202.local1
............................................................. [Mapped
LUNs: 1]
  |     |   o- mapped_lun0
........................................................................
[lun0 block/fastpool_vdisk (rw)]
  |     o- luns
..........................................................................................................
[LUNs: 1]
  |     | o- lun0
...............................................................................
[block/fastpool_vdisk (/dev/rbd0)]
  |     o- portals
....................................................................................................
[Portals: 0]
  o- loopback .........................................................................................................
[Targets: 0]
  o- srpt .............................................................................................................
[Targets: 0]




one host2, do the same:
  one host1:
    1)   mapped a rbd volume as a local blockdevice
         rbd map fastpool/vdisk

      as  /dev/rbd0

     2) export /dev/rbd0 as iscsi taget:

[root@zk23-01 ~]# targetcli / ls
o- / .........................................................................................................................
[...]
  o- backstores
..............................................................................................................
[...]
  | o- block ..................................................................................................
[Storage Objects: 1]
  | | o- fastpool_vdisk
................................................................
[/dev/rbd0 (195.3GiB) write-thru activated]
  | o- fileio .................................................................................................
[Storage Objects: 0]
  | o- pscsi ..................................................................................................
[Storage Objects: 0]
  | o- ramdisk ................................................................................................
[Storage Objects: 0]
  o- iscsi ............................................................................................................
[Targets: 1]
  | o- iqn.2016-05.com.zettakit.www:fastpool.vdisk
.......................................................................
[TPGs: 1]
  |   o- tpg1 ...............................................................................................
[no-gen-acls, no-auth]
  |     o- acls
..........................................................................................................
[ACLs: 1]
  |     | o- iqn.2016-05.com.zettakit:node2202.local1
............................................................. [Mapped
LUNs: 1]
  |     |   o- mapped_lun0
........................................................................
[lun0 block/fastpool_vdisk (rw)]
  |     o- luns
..........................................................................................................
[LUNs: 1]
  |     | o- lun0
...............................................................................
[block/fastpool_vdisk (/dev/rbd0)]
  |     o- portals
....................................................................................................
[Portals: 0]
  o- loopback .........................................................................................................
[Targets: 0]
  o- srpt .............................................................................................................
[Targets: 0]


After building connection to the two targets by iscsi-initiator,  it
will have two iscsi dev: /dev/sdm and /dev/sdn,

but the multipath doesn't recognize it was  same device.


By leaning multipath , I know it will use  scsi_id to recognize as the
same device, how to use targetcli to export a rbd volume with the same
scsi_id ?
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux