Yes, you are right. iscsiadm does not wait to finish login/attach
devices procedure. So this Bug is invalid. In any case this is nice to
exist link to this from google. I found asks about this on forums but
nowhere was the answer about this. Thank you a lot.

Thank you a lot!

P.S. Some additional small question. I resolved this by: wait finish by
time out (30s) with retries each 5 seconds (iscsiadm -m session -P 3).
Criteria of success: number of LUNS == number of created devices on my
iSCSI target. Do you know more right way for sync? I did not find some
"wait" flag on iscsiadm for wait finish of login procedure. May be in
next version we will use libiscsi directly but I guess there is will be
same issues.

> and what are your targets running on?

We creates backups/restores for our VM's. For have access to Virtual
Machines disks of some hypervisor by creating/releasing "Volume Groups"
which is iSCSI targets. This is more grace & right way for this
hypervisor than mount file system of whole VM storage in hypervisor and
navigate by file system of VM storage for search VM disks. So create
"Volume Group" and this "Volume Group" contains all disks of specific VM
from hypervisor.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1712811

Title:
  iscsiadm sometimes does not show attached device (iscsiadm -m session)
  but device is really exist and attached

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/1712811/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to