Snapdrive for Unix
本繁體中文版使用機器翻譯,譯文僅供參考,若與英文版本牴觸,應以英文版本為準。

使用CLI將SD-主機名稱新增至儲存系統

貢獻者

儲存系統管理員可以使用useradmin命令來建立及設定SD-hostname使用者。

步驟
  1. 新增儲存設備。

    # dfm host add storage_array1
    Added host storage_array1.lab.eng.btc.xyz.in
  2. 設定主機的密碼。

    # dfm host password save -u root -p xxxxxxxx storage_array1
    Changed login for host storage_array1.lab.eng.btc.xyz.in to root.
    Changed Password for host storage_array1.lab.eng.xyz.netapp
    .in
  3. 在主機上建立角色。

    # dfm host role create -h storage_array1 -c "api-*,login-*" sd-unixhost-role
    Created role sd-unixhost-role on storage_array1
  4. 建立使用者群組。

    # dfm host usergroup create -h storage_array1 -r sd-unixhost-role sd-unixhost-ug
    Created usergroup sd-unixhost-ug(44) on storage_array1
  5. 建立本機使用者。

    # dfm host user create -h storage_array1 -p xxxxxxxx -g sd-unixhost-ug sd-unixhost
    Created local user sd-unixhost on storage_array1