Hi,

If my understanding is correct :


1)      To make NFS available for Cinder, I may follow this article :

https://access.redhat.com/articles/1323213



2)      If I wish only use NFS for nova storage, is it enough to modify 
nova.conf line :

                instances_path=$state_path/instances

                on both nodes (identical mount point) by changing for this kind 
of value :

                instances_path=/nfs_mount_path/instances

                Then boot from image (without "creating volume") will 
instantiate an instance
                 I may migrate between my two compute nodes .

Am I wrong ?

Thx for help.

Regards,

J.P.

From: Tzach Shefi [mailto:tsh...@redhat.com]
Sent: jeudi 16 juin 2016 14:39
To: Jean-Pierre Ribeauville <jpribeauvi...@axway.com>
Cc: openstack@lists.openstack.org
Subject: Re: [Openstack] Launching an instance by using NFS shared volume

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 
<jpribeauvi...@axway.com<mailto:jpribeauvi...@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<tel:%2B33%201%204717%202049>

[axway_logo_tagline_87px]


_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : 
openstack@lists.openstack.org<mailto:openstack@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>
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to