[Openstack] Openstack Havana - cinder multibackend

Fiorenza Meini fmeini at esseweb.eu
Thu Feb 27 10:38:20 UTC 2014


Il 26/02/2014 19:08, Swapnil Kulkarni ha scritto:
> Did you follow steps similar to [1], if yes you should be able to see
> the backends listed as types in horizon dashboard, just select type
> while you create and you can create volumes specifying volume type in
> cinder create CLI.
>
> k$ cinder help create
> usage: cinder create [--snapshot-id <snapshot-id>]
>                       [--source-volid <source-volid>] [--image-id
> <image-id>]
>                       [--display-name <display-name>]
>                       [--display-description <display-description>]
>                       [--volume-type <volume-type>]
>                       [--availability-zone <availability-zone>]
>                       [--metadata [<key=value> [<key=value> ...]]]
>                       <size>
>
> Add a new volume.
>
> Positional arguments:
>    <size>                Size of volume in GB
>
> Optional arguments:
>    --snapshot-id <snapshot-id>
>                          Create volume from snapshot id (Optional,
>                          Default=None)
>    --source-volid <source-volid>
>                          Create volume from volume id (Optional,
> Default=None)
>    --image-id <image-id>
>                          Create volume from image id (Optional,
> Default=None)
>    --display-name <display-name>
>                          Volume name (Optional, Default=None)
>    --display-description <display-description>
>                          Volume description (Optional, Default=None)
> *--volume-type <volume-type>*
> *                        Volume type (Optional, Default=None)*
>    --availability-zone <availability-zone>
>                          Availability zone for volume (Optional,
> Default=None)
>    --metadata [<key=value> [<key=value> ...]]
>                          Metadata key=value pairs (Optional, Default=None)
>
>
> Also verify the volume types created with *cinder type-list*
>
>
> [1] http://docs.openstack.org/admin-guide-cloud/content//multi_backend.html
>
> Best Regards,
> Swapnil Kulkarni
> irc : coolsvap
> *"It's better to SHARE"*
>
>
> On Wed, Feb 26, 2014 at 7:35 PM, Fiorenza Meini <fmeini at esseweb.eu
> <mailto:fmeini at esseweb.eu>> wrote:
>
>     Hi there,
>     I'd like to have cinder working with two storage: NAS and local
>     disk, so that I can choose in Dashboard (or command line) where to
>     create the volume.
>     First I configured the mount of NAS device through NFS driver, and
>     it worked fine. Then I tried the multi backend option of cinder, but
>     I cannot see the local volume...
>
>     Any suggestion, please?
>
>     Regards
>     Fiorenza
>     --
>
>     Fiorenza Meini
>     Spazio Web S.r.l.
>
>     V. Dante Alighieri, 10 - 13900 Biella
>     Tel.: 015.2431982 - 015.9526066
>     Fax: 015.2522600
>     Reg. Imprese, CF e P.I.: 02414430021
>     Iscr. REA: BI - 188936
>     Iscr. CCIAA: Biella - 188936
>     Cap. Soc.: 30.000,00 Euro i.v.
>
>     _________________________________________________
>     Mailing list:
>     http://lists.openstack.org/__cgi-bin/mailman/listinfo/__openstack
>     <http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack>
>     Post to     : openstack at lists.openstack.org
>     <mailto:openstack at lists.openstack.org>
>     Unsubscribe :
>     http://lists.openstack.org/__cgi-bin/mailman/listinfo/__openstack
>     <http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack>
>
>

Thank for your response.
I get an error while issuing the command for linking the volume type to 
the backend name:

cinder --os-username admin --os-tenant-name admin type-key lvm set 
volume_backend_name=LVM_iSCSI


Error: ERROR: list() got an unexpected keyword argument 'search_opts'

regards
Fiorenza
-- 

Fiorenza Meini
Spazio Web S.r.l.

V. Dante Alighieri, 10 - 13900 Biella
Tel.: 015.2431982 - 015.9526066
Fax: 015.2522600
Reg. Imprese, CF e P.I.: 02414430021
Iscr. REA: BI - 188936
Iscr. CCIAA: Biella - 188936
Cap. Soc.: 30.000,00 Euro i.v.




More information about the Openstack mailing list