[Openstack] Launching an instance by using NFS shared volume

Tzach Shefi tshefi at redhat.com
Thu Jun 16 12:38:57 UTC 2016


Hey Jean,

Sorry I'm a bit late,  I'll try to guide/help you in the right direction.

First of all, let your peers know which which version of Openstack you're
using,  Juno(6) Kilo(7) Liberty(8) Mitaka(9)?

"I just add NFS as backend." -> cool nice job, but by this what do you
mean  NFS backend for what? For Cinder Glance or Nova or for all of them?

You want the instance to live migrate to another compute node right?
For this all you need shared Nova storage (if I recall you can do without
but it's easier with), no need to use Cinder volume for the instance,
unless you want to do so.
Check this link for migration stuff, check your version and which
hypervisor you use, each has it's own settings and special needs.
http://docs.openstack.org/admin-guide/compute-configuring-migrations.html

I didn't get this part  ( i.e. I boot from an .iso image )
You know that the image must be either a liveCD iso which is a bootable OS,
or a qcow2 image of a preinstalled OS.


>From your command I take if you want to boot an instance from an image
which will create a Cinder volume.

nova boot --image CentOS-7-ISO --block-device
source=blank,dest=volume,size=10,shutdown=preserve --nic
net-id=73d765a3-edca-4ac4-822d-1d0f30cc959b --flavor 2
CentOS-7-Bootable-Image


If your Cinder (or Nova in case you don't want/have to use a Cinder volume)
is configured to use NFS your done.
You don't have to tell Nova boot command to use NFS  it will automatically
use Cinder (or Nova) backend storage.
Say you have Nova running over NFS, if you nova boot an instance, it's disk
will be created on Nova's backend which is NFS.
Same for Cinder if the backend is configured for NFS, boot an instance
create a volume, the volume will be created on the NFS backend.

Hope I helped a bit.
If you have more questions fire away.

Tzach












On Fri, Jun 10, 2016 at 10:38 AM, Jean-Pierre Ribeauville <
jpribeauville at axway.com> wrote:

> Hi,
>
>
>
> I just add NFS as backend .
>
>
>
> Now, I want to launch an instance so it will be bootable from a nfs shared
> device .( and then ( it’s my hope) may migrate to another compute node)
>
> ( i.e. I boot from an .iso image )
>
>
>
>
>
> I don’t find how , in the following nova boot command, to specify that I
> want that a “nfs” volume will be created to hold this instance  :
>
>
>
>
>
> nova boot --image CentOS-7-ISO --block-device
> source=blank,dest=volume,size=10,shutdown=preserve --nic
> net-id=73d765a3-edca-4ac4-822d-1d0f30cc959b --flavor 2
> CentOS-7-Bootable-Image
>
>
>
>
>
> Thx for help
>
>
>
> Regards,
>
>
>
> Jean-Pierre RIBEAUVILLE
>
>
>
> +33 1 4717 2049
>
>
>
> [image: axway_logo_tagline_87px]
>
>
>
> _______________________________________________
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>


-- 
*Tzach Shefi*
Quality Engineer, Redhat OSP
+972-54-4701080 <callto:+972-52-4534729>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160616/004cec17/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 11720 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160616/004cec17/attachment.png>


More information about the Openstack mailing list