SUSE / lrbd

GNU Lesser General Public License v2.1
24 stars 19 forks source link

[Question] Lun number & sync config overall iSCSI gateways #11

Open phucvinh52 opened 7 years ago

phucvinh52 commented 7 years ago

Hi team,

Actually, I'm looking for a storage solution for my system kubernetes. I need authenticate and I have a farm ceph. Because i choose iSCSI and project Lrbd for this solution. I have some questions.

Thanks team <3.

swiftgist commented 7 years ago

On Friday, April 21, 2017 01:10:46 AM phucvinh52 wrote:

Hi team,

Actually, I'm looking for a storage solution for my system kubernetes. I need authenticate and I have a farm ceph. Because i choose iSCSI and project Lrbd for this solution. I have some questions. - When i run command "#lrbd -H gw". It automation map lun to image ceph, Have ever lun number changed? if I clear "#lrbd -C" and generate "#lrbd -H gw" again. - I used command "#lrbd -f config.json". When I change my config.json, I must change config.json all gateways iSCSI then run "#lrbd -H gw". Do you have sync config overall gateways iSCSI.

Thanks team <3.

If no luns are specified in the configuration, then they can change on subsequent runs especially when images have been removed. See https://github.com/SUSE/lrbd/wiki#optional-settings for an example of hardcoding a lun number.

With respect to the configuration, it resides in Ceph itself and not on any of the iSCSI gateways. So, you do not need to save the configuration on each gateway. As far as applying the configuration, that does need to run on each gateway.

phucvinh52 commented 7 years ago

Hi Eric,

Thank you,now I can set static lun and configuration on overall iSCSI. But It does not apply config all gateway.

And I get "ERROR: list index out of range" when my configuration is set

"tgp":[
  {"image":"im1"},{"image":"im2"},...,{"image":"im50"}
]

Can I increase this limitation.

When i create "targetcli /backstores/rbd create im16 /dev/rbd/pool1/im16" without lrbd. I get error "Device /dev/rbd/pool1/im16 is not a TYPE_DISK rbd device"