Ask Your Question

Attach volume to instance running on different compute node

asked 2013-10-17 05:45:02 -0500

vladber gravatar image

I'm running a cinder on each compute node locally .

Is it possible to attach volume which resides on one compute node to instance is running on another one ?

I have the following problem .On the compute node #1 where instance is running I got this error while tried to attach some volume from compute node #2 :

Oct 17 10:43:50 compute02 kernel: [848806.148673] scsi16 : iSCSI Initiator over TCP/IP Oct 17 10:43:50 compute02 kernel: [848806.152548] connection12:0: detected conn error (1020) Oct 17 10:43:50 compute02 tgtd: conn_close(101) connection closed, 0x1522808 1 Oct 17 10:43:51 compute02 iscsid: conn 0 login rejected: initiator error - target not found (02/03)

If both instance and volume are on the same node attach works just fine .

Manually I succeeded to login from compoute02 to discover and login to the target using iscsiadm tool :

root@compute02:~# iscsiadm -m discovery -t st -p,1,1,1

root@compute02:~# iscsiadm -m node -T -p -l Logging in to [iface: default, target:, portal:,3260] Login to [iface: default, target:, portal:,3260]: successful

If I migrate instance to the volume compute node attachment works .


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2018-04-12 14:05:13 -0500


If you use LVM or ceph, that's possible. I am not sure about your environment architecture but normally target daemon is controlling compute's to find volumes. Please check if tgtd works. Also you can check volume id's from tgtadm --lld iscsi --mode target --op show.


edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-10-17 05:45:02 -0500

Seen: 1,146 times

Last updated: Oct 17 '13