跳过导航链接 | |
退出打印视图 | |
![]() |
Sun QFS 文件系统 5.3 配置和管理指南 Sun QFS and Sun Storage Archive Manager 5.3 Information Library (简体中文) |
要执行共享文件系统的初始安装和配置,请按照《Sun QFS 和 Sun Storage Archive Manager 5.3 安装指南》中的第 5 章 "安装 Sun QFS 和 SAM-QFS"中的说明操作。本节的许多示例都要使用该文档引入的主机名和配置信息。
将非共享文件系统转换为共享文件系统的过程包括两个任务:
转换元数据服务器。
将每台客户机添加到元数据服务器。本节就将介绍此过程。
您必须具有 root 权限才能完成此过程中的步骤。
根据您的软件,这些文件可能包括 mcf、archiver.cmd、defaults.conf、samfs.cmd 或 inquiry.conf 文件。为所有文件系统备份这些文件。此外,确保备份了 /etc/opt/SUNWsamfs 目录中以及 /var/opt/SUNWsamfs 目录中的文件副本。
应根据站点的策略定期对文件系统进行备份。如果您对已有的文件系统备份文件感到满意,则现在无需再对其进行备份。
有关说明,请参见《Sun QFS 和 Sun Storage Archive Manager 5.3 安装指南》中的"卸载文件系统"。
其中,family-set-name 用于指定文件系统(即正在转换为新的共享文件系统的文件系统)的系列集名称。例如:
# samfsck -S -F sharefs1
例如:
# Equipment Eq Eq Family Dev Add # Identifier Ord Type Set State Params # ---------- --- ---- ------ ----- ------ sharefs1 10 ma sharefs1 on shared /dev/dsk/c2t50020F23000065EEd0s6 11 mm sharefs1 on /dev/dsk/c7t50020F2300005D22d0s6 12 mr sharefs1 on /dev/dsk/c7t50020F2300006099d0s6 13 mr sharefs1 on /dev/dsk/c7t50020F230000651Cd0s6 14 mr sharefs1 on
例如:
# File /etc/vfstab # FS name FS to fsck Mnt pt FS type fsck pass Mt@boot Mt params sharefs1 - /sharefs1 samfs - no shared
例如:
# File /etc/opt/SUNWsamfs/hosts.sharefs1 # Host Host IP Server Not Server # Name Addresses Priority Used Host # ---- ------------------------------ -------- ---- ----- titan titan-ge 0 1 - server tethys tethys-ge 0 2 - server
有关创建主机配置文件的更多信息,请参见《Using Sun QFS and Sun Storage Archive Manager with Oracle Solaris Cluster》中的"Creating the Shared Hosts File on the Metadata Server"。
例如:
# samsharefs -u -R sharefs1
注 - 如果看到此命令的错误消息,您大概可以忽略此消息。
# samd config
例如:
# mkdir /sharefs1
如果您的 Sun QFS 共享主机系统有多个主机接口,则可能需要执行此步骤。本地主机配置文件定义了主机接口。元数据服务器和客户机主机可以在访问文件系统时使用这些接口。您可以使用此文件指定文件系统在环境的公共网络和专用网络上的通信模式。
以下代码示例显示了本地主机配置文件样例。
# This is file /etc/opt/SUNWsamfs/hosts.sharefs1.local # Host Name Host Interfaces # --------- --------------- titan 172.16.0.129 tethys 172.16.0.130
有关创建本地主机文件的更多信息,请参见创建本地主机配置文件。
应根据站点的策略定期对文件系统进行备份。如果您对已有的文件系统备份文件感到满意,则现在无需再对其进行备份。
有关说明,请参见《Sun QFS 和 Sun Storage Archive Manager 5.3 安装指南》中的"卸载文件系统"。
例如:
# File /etc/vfstab # FS name FS to fsck Mnt pt FS type fsck pass Mt@boot Mt params sharefs1 - /sharefs1 samfs - no *shared*
以下代码示例显示了文件样例。
# File /etc/opt/SUNWsamfs/hosts.sharefs1 # Host Host IP Server Not Server # Name Addresses Priority Used Host # ---- --------- -------- ---- ----- titan titan-ge0 1 - server tethys tethys-ge0 2 - server
有关创建主机配置文件的更多信息,请参见《Using Sun QFS and Sun Storage Archive Manager with Oracle Solaris Cluster》中的"Creating the Shared Hosts File on the Metadata Server"。