4.2. 信頼できるストレージプールからのサーバーの削除

警告
信頼されているストレージプールからピアをデタッチする前に、クライアントがノードを使用しないことを確認してください。backup-volfile-servers オプションを使用してバックアップサーバーがマウント時に設定されていない場合は、信頼できるストレージプールの別のサーバーの IP アドレスまたは FQDN を使用してクライアントにボリュームを再マウントし、不整合を回避します。
gluster peer detach server を実行して、ストレージプールからサーバーを削除します。

信頼できるストレージプールからの 1 台のサーバーの削除

信頼できるストレージプールからサーバーを 1 台削除し、ストレージプールのピアステータスを確認します。

前提条件

  • ストレージプールから削除される場合は、glusterd サービスがサーバーで実行している必要があります。サービスの起動および停止の手順については、22章glusterd サービスの起動と停止 を参照してください。
  • ターゲットサーバーのホスト名は DNS で解決できる必要があります。
  1. gluster peer detach [server] を実行して、信頼できるストレージプールからサーバーを削除します。
    # gluster peer detach (server)
    All clients mounted through the peer which is getting detached needs to be remounted, using one of the other active peers in the trusted storage pool, this ensures that the client gets notification on any changes done on the gluster configuration and if the same has been done do you want to proceed? (y/n) y
    peer detach: success
  2. 以下のコマンドを使用して、すべてのサーバーからピアのステータスを確認します。
    # gluster peer status
    Number of Peers: 2
    
    Hostname: server2
    Uuid: 5e987bda-16dd-43c2-835b-08b7d55e94e5
    State: Peer in Cluster (Connected)
    
    Hostname: server3
    Uuid: 1e0ca3aa-9ef7-4f66-8f15-cbc348f29ff7