← Back to team overview

openstack team mailing list archive

转发: 答复: 答复: Is there special setting to attach volume to instance on Nexenta server?

 


-----邮件原件-----
发件人: romi zhang [mailto:romizhang1968@xxxxxxx] 
发送时间: 2012年7月5日 星期四 15:56
收件人: 'Yuriy Taraday'
主题: 答复: 答复: [Openstack] 答复: Is there special setting to attach volume to instance on Nexenta server?

I did it just like your ideas,right now, dashboard status is always "attaching".
In the compute node log, there is only "Attaching volume 1 to /dev/vdc", but no error.

Romi

-----邮件原件-----
发件人: Yuriy Taraday [mailto:yorik.sar@xxxxxxxxx] 
发送时间: 2012年7月4日 星期三 22:12
收件人: romi zhang
抄送: openstack@xxxxxxxxxxxxxxxxxxx
主题: Re: 答复: [Openstack] 答复: Is there special setting to attach volume to instance on Nexenta server?

Have you removed quotes (not uncomment) in that flag? It should be like:
--nexenta_target_prefix=iqn.1986-03.com.sun:01:005008c802ff.4fb2f97d
NOT like:
--nexenta_target_prefix="iqn.1986-03.com.sun:01:005008c802ff.4fb2f97d"

Kind regards, Yuriy.


On Wed, Jul 4, 2012 at 7:22 AM, romi zhang <romizhang1968@xxxxxxx> wrote:
> Sorry,nova-volume was not stop clearly, when I uncomment --nexenta_target_prefix, create a volume is fine,but still could not attach it to instance, compute node log is just :
>
> ISCSI volume not yet found at: vdc. Will rescan & retry.  Try number: 0
>
> And in dashboard,it was failing into "attaching" status.
>
> Romi
>
> -----邮件原件-----
> 发件人: romi zhang [mailto:romizhang1968@xxxxxxx]
> 发送时间: 2012年7月4日 星期三 11:11
> 收件人: 'openstack@xxxxxxxxxxxxxxxxxxx'
> 抄送: 'Yuriy Taraday'
> 主题: 答复: [Openstack] 答复: Is there special setting to attach volume to instance on Nexenta server?
>
> Yuriy,
>
> Thanks for your reply.
>
> I try to uncomment --nexenta_target_prefix="iqn.1986-03.com.sun:01:005008c802ff.4fb2f97d" and then restart nova-volume, but the result is still error as same as before,volume service log has no error,but compute node brief log is:
>
> Attaching volume 1 to /dev/vdc
> ISCSI volume not yet found at: vdc. Will rescan & retry.  Try number: 0
> Attach failed /dev/vdc, removing
> ....
> Command: sudo iscsiadm -m node -T "iqn.1986-03.com.sun:01:005008c802ff.4fb2f97d"volume-00000001 -p 192.168.1.42:3260 --rescan
> Exit Code: 255
> Stdout: ' '
> Stderr: 'iscsiadm: No portal found.\n'
>
> But when I manually run " iscsiadm -m node -T "iqn.1986-03.com.sun:01:005008c802ff.4fb2f97d"volume-00000001 -p 192.168.1.42:3260 --rescan", it is ok.
>
> Regards,
>
> Romi
>
>
>
>
> -----邮件原件-----
> 发件人: Yuriy Taraday [mailto:yorik.sar@xxxxxxxxx]
> 发送时间: 2012年7月3日 星期二 17:12
> 收件人: romi zhang
> 抄送: openstack@xxxxxxxxxxxxxxxxxxx
> 主题: Re: [Openstack] 答复: Is there special setting to attach volume to instance on Nexenta server?
>
> Try to remove that quotes from nexenta_target_prefix flag. They seem
> to be the source of this problem.
>
> Kind regards, Yuriy.
>
>
> On Tue, Jul 3, 2012 at 12:45 PM, romi zhang <romizhang1968@xxxxxxx> wrote:
>> My nexenta configuration in nova.conf on nova-volume server is:
>>
>>
>>
>> #nova-volume
>>
>> --routing_source_ip=$my_ip
>>
>>
>>
>> --volume_driver=nova.volume.nexenta.volume.NexentaDriver
>>
>> --nexenta_host=192.168.1.42
>>
>> --nexenta_iscsi_target_portal_port=3260
>>
>> --nexenta_rest_port=80
>>
>> --nexenta_user=admin
>>
>> --nexenta_password=nexenta
>>
>> --nexenta_volume=nova-volumes
>>
>> --nexenta_target_prefix="iqn.1986-03.com.sun:01:005008c802ff.4fb2f97d"
>>
>>
>>
>> --use_local_volumes = false
>>
>>
>>
>> Regards,
>>
>>
>>
>> Romi
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~openstack
>> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~openstack
>> More help   : https://help.launchpad.net/ListHelp
>>
>
>