Isilon:如何移動管理員主目錄

Summary: Isilon:如何移動管理員主目錄

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

簡介

將系統管理員主目錄保留在 /ifs 下有一些安全性隱患。以下過程將其移出群集一致的 /ifs/home/admin,並使其成為 /admin 中的特定節點。

程序

確認目錄空間

  1. 在叢集的任何節點上開啟 SSH 連線,然後使用「root」帳戶登入。
  2. 執行下列命令,確認每個節點都有空間容納 /ifs/home/admin 目錄的內容:

    du -sh /ifs/home/admin
    isi_for_array df -h /

應顯示類似以下內容的輸出:

root@OneFS-1 ~ # du -sh /ifs/home/admin
28K    /ifs/home/admin

root@OneFS-1 ~ # isi_for_array df -h /
OneFS-3: Filesystem          Size  Used Avail Capacity Mounted on
OneFS-3: /dev/mirror/root0 1.9G 740M 1.0G 42% /
OneFS-2: Filesystem          Size  Used Avail Capacity Mounted on
OneFS-2: /dev/mirror/root0 1.9G 847M 912M 48% /
OneFS-1: Filesystem          Size  Used Avail Capacity Mounted on
OneFS-1: /dev/mirror/root0 1.9G 1.1G 641M 64% /

注意:確保每個節點的 可用 大小大於 從 du 命令列出的大小。 

建立本機主目錄並複製內容

  1. 建立新的空管理主目錄:

    isi_for_array 'mkdir /admin'

 

  • 複製現有的管理員主目錄:

    isi_for_array cp -rp /ifs/home/admin/ /admin

 

  • 指派擁有權和權限:

    isi_for_array  chown admin /admin; chmod 700 /admin

 

確認目錄的內容

isi_for_array 'diff /ifs/home/admin /admin && echo directories match || echo directories do not match'
 
Output similar to the following should display:

OneFS-2: directories match
OneFS-1: directories match
OneFS-3: directories match

修改使用者

isi auth users modify admin --home-directory=/admin

移除舊目錄

rm -rf /ifs/home/admin

Affected Products

Isilon

Products

Isilon, PowerScale OneFS
Article Properties
Article Number: 000158102
Article Type: How To
Last Modified: 18 Sept 2025
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.