[Openstack] Launching an instance by using NFS shared volume
Turbo Fredriksson
turbo at bayour.com
Mon Jun 27 13:56:27 UTC 2016
On Jun 27, 2016, at 2:32 PM, Jean-Pierre Ribeauville wrote:
> As told page 17 of this document :
>
> If you specify NFS, you must specify a list of NFS exports to mount. For example:
> ip-address:/export-name
> Enter a single or comma seprated list of NFS exports to use
> with Cinder [^([\d]{1,3}\.){3}[\d]{1,3}:/.*]:
>
>
> 1) Do I have to specify a different volume for each instance or one volume is enough ?
One is enough. Each instance will create a file on that share/volume.
> 2) By doing that , does it mans that LVM is not enabled and that all instances will be located on NFS ?
You can select that at creation time. Well, you're supposed to. I haven't figured
out how to do that in the web GUI.
But I have both LVM and NFS enabled, and I can at least create a OS Volume
on either of them and then attach that to the instance..
bladeA01b:~# cinder service-list
+------------------+---------------+------+---------+-------+----------------------------+-----------------+
| Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+------------------+---------------+------+---------+-------+----------------------------+-----------------+
| cinder-backup | bladeA01b | nova | enabled | up | 2016-06-27T13:50:22.000000 | - |
| cinder-scheduler | bladeA01b | nova | enabled | up | 2016-06-27T13:50:19.000000 | - |
| cinder-volume | bladeA01b at lvm | nova | enabled | up | 2016-06-27T13:50:18.000000 | - |
| cinder-volume | bladeA01b at nfs | nova | enabled | up | 2016-06-27T13:50:22.000000 | - |
+------------------+---------------+------+---------+-------+----------------------------+-----------------+
So I should be able to specify host=bladeA01b at lvm or host=bladeA01b at nfs
(bladeA01 is my controller with everything but Nova Compute on it) when
creating a volume..
I think LVM is my default (because I have that in the "default_volume_type"
setting in cinder.conf).
To have them both, I use:
/etc/cinder/cinder.conf:enabled_backends = lvm,nfs
And then the lvm/nfs block in the same file:
[lvm]
volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver
volume_group = blade_center
iscsi_protocol = iscsi
#iscsi_helper = tgtadm
iscsi_helper = lioadm
volume_backend_name = LVM_iSCSI
lvm_type = default
# NFS driver
[nfs]
volume_driver = cinder.volume.drivers.nfs.NfsDriver
volume_group = blade_center
volume_backend_name = nfsbackend
nfs_shares_config = /etc/cinder/nfs.conf
nfs_sparsed_volumes = true
#nfs_mount_options =
You might need more, but those are the most obvious things.
> 3) Is possible to deploy by using default Packstack parameters and set cinder and nova storages to NFS afterwards ?
I have heard so much bad things of all these different installers, so when
I started my Openstack adventure (and it have been an adventure!! :), I
decided NOT to use any such thing.
I chose to do this manually! By hand! Well, almost. I use Debian GNU/Linux
Sid (unstable) which come with Mitaka and those packages do a lot automatically.
But I still have had to do _A LOT_ (!!) manually.
So I can't really answer that question..
--
Try not. Do. Or do not. There is no try!
- Yoda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160627/e750e99d/attachment.html>
More information about the Openstack
mailing list