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% /

提醒:确保每个节点的 Avail 大小大于 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.