Oracle® Solaris での OpenStack (Juno) のインストールと構成

印刷ビューの終了

更新: 2016 年 6 月
 
 

ブロックストレージノードを構成する方法

この手順では、ブロックストレージの標準的な構成について説明します。ストレージコンポーネントを構成するためのその他のオプションについては、Cinder の構成と配備のためのオプションを参照してください。

  1. NTP クライアントを構成します。

    NTP クライアントの構成を参照してください。

  2. /etc/cinder/cinder.conf ファイルでパラメータをコメント解除または設定することで、Cinder を構成します。
    [DEFAULT]
    san_is_local=true
    volume_driver=cinder.volume.drivers.solaris.zfs.ZFSISCSIDriver
    my_ip=$VOLUME_IP
    rabbit_host=$CONTROLLER_ADMIN_NODE
    glance_host=$CONTROLLER_ADMIN_NODE
    zfs_volume_base=cinder/cinder
    
    [database]
    connection = mysql://cinder:service-password@$CONTROLLER_ADMIN_NODE/cinder
    
    [keystone_authtoken]
    auth_uri = http://$CONTROLLER_ADMIN_NODE:5000/v2.0
    identity_uri = http://$CONTROLLER_ADMIN_NODE:35357
    admin_user = cinder
    admin_password = service-password
    admin_tenant_name = service
    
    
  3. /etc/cinder/api-paste.ini ファイル内のパラメータを設定します。
    [filter:authtoken]
    admin_tenant_name = service
    admin_user = cinder
    admin_password = service-password
    
  4. ブロックストレージまたはボリュームノードに Cinder サービスアクセスを付与します。
    1. コントローラノードにアクセスします。
    2. 次のコマンドを入力します。
      controller# mysql -u root -p
      Enter password: MySQL-root-password
      mysql> grant all privileges on cinder.* to 'cinder'@'$VOLUME_IP' identified by 'service-password';
      mysql> flush privileges
      mysql> quit
  5. ストレージノード上で、Cinder サービスを起動します。
    storage# svcadm enable -rs cinder-db cinder-volume:default cinder-volume:setup
    storage# svcadm enable -rs iscsi/target