AFS 配置(二)

    四个服务终于顺利运行了,原来问题以前遇到过,只不过给忘了而已。
  -/usr/afs/etc/CellServDB中的IP参数需要改为当前使用的IP,然后重启bos就可以得到

[root@jncc etc]# bos status jncc.edu.cn -noauth
Instance kaserver, currently running normally.
Instance buserver, currently running normally.
Instance ptserver, currently running normally.
Instance vlserver, currently running normally.

  好了,继续吧...

7、启动系统的安全机制

[root@jncc bin]# kas -cell jncc.edu -noauth
ka> create afs
initial_password:
Verifying, please re-enter initial_password:
ka> create admin
initial_password:
Verifying, please re-enter initial_password:
ka> examine afs

User data for afs
  key (0) cksum is 3095239578, last cpw: Fri Feb 26 18:22:25 2010
  password will never expire.
  An unlimited number of unsuccessful authentications is permitted.
  entry never expires.  Max ticket lifetime 100.00 hours.
  last mod on Fri Feb 26 18:22:25 2010 by <none>
  permit password reuse
ka>

   整个过程除了在密码输入时如果网络连接故障回导致无响应外,其他运行顺利。
   注意:admin和afs的名称是系统规定,不能自定义。

ka> setfields admin -flags admin
ka> examine admin

User data for admin (ADMIN)
  key (0) cksum is 836923159, last cpw: Fri Feb 26 18:22:40 2010
  password will never expire.
  An unlimited number of unsuccessful authentications is permitted.
  entry never expires.  Max ticket lifetime 25.00 hours.
  last mod on Fri Feb 26 18:27:01 2010 by <none>
  permit password reuse
ka>

   -用bos adduser 将 admin 使用者加入到 /usr/afs/etc/UserList。
[root@jncc bin]# bos adduser jncc.edu.cn admin -cell jncc.edu -noauth
 -# /usr/afs/bin/bos addkey  <server name> -kvno 0 -cell <cell name> -noauth
    input key:
    Retype input key:
    密码为afs设定的密码。
 -# /usr/afs/bin/pts createuser -name admin -cell <cell name> [-id <AFS UID>] -noauth
 -# /usr/afs/bin/pts adduser admin system:administrators -cell <cell name> -noauth
  # /usr/afs/bin/pts membership admin -cell <cell name> -noauth
      Groups admin (id: 1) is a member of:
        system:administrators
    -重启AFS相关服务# /usr/afs/bin/bos restart <server name> -all -cell <cell name> -noauth

    到此一切正常...



### AFS 系统概述 AFS(Andrew File System)是一种分布式文件系统,最初由 Carnegie Mellon University 开发并广泛应用于企业环境中的大规模数据共享需求。它通过提供高效的缓存机制和安全性保障,使得用户能够在跨地域的网络环境中访问集中存储的数据资源。 #### 工作原理 AFS 的核心设计理念在于其能够支持高可用性和高性能的数据访问能力。为了实现这一目标,AFS 使用了一种称为 **cell** 的逻辑单元结构来组织服务器群组[^1]。每个 cell 可以独立运行,并与其他 cells 形成联邦关系以便扩展容量和服务范围。此外,AFS 利用了 Kerberos 认证协议确保客户端与服务端之间的安全连接,而无需直接依赖 KDC(Key Distribution Center),这简化了部署流程[^3]。 #### 部署复杂度 尽管 AFS 提供了许多优势,但由于其配置过程较为繁琐以及对管理员技术水平的要求较高,因此即使是有经验的技术人员也需要花费较长时间完成新系统的初始化设置[^2]。这种较高的学习曲线可能是阻碍 AFS 更加普及的原因之一。 #### 应用领域 除了作为传统的企业级文件管理系统外,AFS 还被集成到了其他更复杂的解决方案当中。例如,在 SAP 环境下可以通过特定的功能包启用基于 ESOA 架构的支持[^4];而在汽车行业,则出现了利用 Matlab Simulink 对采用轮毂电机驱动方式的电动车实施主动前轮转向控制的研究案例[^5]。 ```python # 示例 Python 脚本展示如何模拟简单的 AFS 客户端行为 import os def afs_cache(file_name, server_address): cache_dir = "/afs/cache" full_path = f"{cache_dir}/{file_name}" if not os.path.exists(full_path): # 如果本地不存在则从远程获取 download_from_server(server_address, file_name) def download_from_server(server, filename): print(f"Downloading {filename} from {server}") ```
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值