Adding a Cinder node

asked 2018-03-02 06:00:33 -0500

Hi,

I have an existing cinder service running on the controller. I'm trying to add another Centos7 vm to act as a secondary storage node. I've created an volume group and followed the instructions from here. https://docs.openstack.org/newton/install-guide-rdo/cinder-storage-install.html (https://docs.openstack.org/newton/ins...)

Both storage node have the same backend name lvm. That backend is used for type iscsi. All I'm trying to achieve is to pool all available storage to a single entity and to have the scheduler create the volume on one of the nodes, depending on available space etc. Is there a way to create a volume and specify with backend to use? This just to test if I can actually create something on the second storage node. If I try to migrate a volume to the second node, the migrate status is error.

[root@controller ~]# cinder service-list +------------------+-----------------+------+---------+-------+----------------------------+-----------------+ | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | +------------------+-----------------+------+---------+-------+----------------------------+-----------------+ | cinder-backup | controller | nova | enabled | up | 2018-03-02T11:20:05.000000 | - | | cinder-scheduler | controller | nova | enabled | up | 2018-03-02T11:20:00.000000 | - | | cinder-volume | controller@lvm | nova | enabled | up | 2018-03-02T11:20:07.000000 | - | | cinder-volume | storage1@lvm1 | nova | enabled | up | 2018-03-02T11:20:03.000000 | - | +------------------+-----------------+------+---------+-------+----------------------------+-----------------+

[root@controller ~]# cinder get-pools +----------+-------------------+ | Property | Value | +----------+-------------------+ | name | storage1@lvm1#LVM | +----------+-------------------+ +----------+--------------------+ | Property | Value | +----------+--------------------+ | name | controller@lvm#lvm | +----------+--------------------+

(openstack) volume type show iscsi +---------------------------------+--------------------------------------+ | Field | Value | +---------------------------------+--------------------------------------+ | access_project_ids | None | | description | None | | id | 86268bc8-281a-489e-9ac9-34424e284da0 | | is_public | True | | name | iscsi | | os-volume-type-access:is_public | True | | properties | volume_backend_name='lvm' | | qos_specs_id | None | +---------------------------------+--------------------------------------+

(openstack) volume show 07128a1c-0c6c-44cf-b280-b17054ffe7d4 +--------------------------------+--------------------------------------+ | Field | Value | +--------------------------------+--------------------------------------+ | attachments | [] | | availability_zone | nova | | bootable | false | | consistencygroup_id | None | | created_at | 2018-03-02T11:37:59.000000 | | description | | | encrypted | False | | id | 07128a1c-0c6c-44cf-b280-b17054ffe7d4 | | migration_status | error | | multiattach | False | | name | test_vol1 | | os-vol-host-attr:host | controller@lvm#lvm | | os-vol-mig-status-attr:migstat | error | | os-vol-mig-status-attr:name_id | None | | os-vol-tenant-attr:tenant_id | edfeb0077be14c73ba9f954370b3998b | | properties | | | replication_status | disabled | | size | 50 | | snapshot_id | None | | source_volid | None | | status | available | | type | iscsi | | updated_at | 2018-03-02T11:39:40.000000 | | user_id | a8ff34ea29c84ed0b4818e622af7a611 | +--------------------------------+--------------------------------------+

edit retag flag offensive close merge delete