日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

linux afs3服务,AFS配置3

發(fā)布時間:2023/12/16 linux 22 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux afs3服务,AFS配置3 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

接上回。。。

今天終于成功的將linux端服務器啟動,并且于windows客戶端成功連接,實現(xiàn)了AFS的基本存儲、備份、帳戶管理等基本功能。

期間發(fā)現(xiàn)了之前的許多問題。為了保證思路的完整性,這里還是繼續(xù)沿用之前的敘述。后面再把完整的步驟整理出來。在這里

要感謝中科院高能物理研究所計算中心的許工!!因為有了他的幾次指點才讓后面的一些問題有了思路。

重啟完服務器之后。

啟動fs程序,主要包括:fileserve、volserver、salvager服務器。

# bos create fs fs /usr/afs/bin/fileserver /usr/afs/bin/volserver /usr/afs/bin/salvager -cell -noauth

用命令看看詳細的執(zhí)行情況:

[root@jncc work]# bos status jncc.edu.cn -long -noauth

Instance kaserver, (type is simple) currently running normally.

Process last started at Thu Mar 4 20:52:34 2010 (2 proc starts)

Last exit at Thu Mar 4 20:52:34 2010

Command 1 is '/usr/afs/bin/kaserver'

Instance buserver, (type is simple) currently running normally.

Process last started at Thu Mar 4 20:52:34 2010 (2 proc starts)

Last exit at Thu Mar 4 20:52:34 2010

Command 1 is '/usr/afs/bin/buserver'

Instance ptserver, (type is simple) currently running normally.

Process last started at Thu Mar 4 20:52:34 2010 (2 proc starts)

Last exit at Thu Mar 4 20:52:34 2010

Command 1 is '/usr/afs/bin/ptserver'

Instance vlserver, (type is simple) currently running normally.

Process last started at Thu Mar 4 20:52:34 2010 (2 proc starts)

Last exit at Thu Mar 4 20:52:34 2010

Command 1 is '/usr/afs/bin/vlserver'

Instance fs, (type is fs) currently running normally.

Auxiliary status is: file server running.

Process last started at Thu Mar 4 20:53:04 2010 (2 proc starts)

Command 1 is '/usr/afs/bin/fileserver'

Command 2 is '/usr/afs/bin/volserver'

Command 3 is '/usr/afs/bin/salvager'

好像沒有什么問題。

到這里服務器應該算是啟動了。

下面開始配置文件系統(tǒng)了

先建立根分區(qū),root.afs這是對應目錄中/afs目錄的分區(qū)。

[root@jncc work]# vos create jncc.edu.cn /vicepa root.afs -cell afs.server -noauth

Volume 536870912 created on partition /vicepa of jncc.edu.cn

然后啟動更新服務器

[root@jncc work]# bos create jncc.edu.cn upserver simple "/usr/afs/bin/upserver -crypt /usr/afs/etc -clear /usr/afs/bin" -cell afs.server.edu -noauth

設定文件頂層,/afs目錄的權限

[root@jncc work]# fs setacl /afs system:anyuser rl

fs:'/afs': Function not implemented

無法完成!(冷汗。。。)

到網上去搜,有人遇到過這個問題,但是解決方法是。。。。沒有!!!

算了,先放棄權限,繼續(xù)。。。。

建立root.cell分區(qū),并且將它掛載到/afs/并把讀寫掛到/afs/.?[root@jncc work]# vos create jncc.edu.cn /vicepa root.cell

vsu_ClientInit: Could not get afs tokens, running unauthenticated.

Volume 536870915 created on partition /vicepa of jncc.edu.cn

[root@jncc work]# fs mkmount /afs/afs.server.edu root.cell

[root@jncc work]# fs setacl /afs/afs.server.edu system:anyuser rl

fs:'/afs/afs.server.edu': Function not implemented

[root@jncc work]# fs mkmount /afs/.afs.server.edu root.cell -rw

[root@jncc work]#

貌似問題不少,首先是我沒有取得權限,然后是fs setacl仍然不能用。

不管,查看一下結果

[root@jncc etc]# vos listvol jncc.edu.cn

vsu_ClientInit: Could not get afs tokens, running unauthenticated.

Total number of volumes on server jncc.edu.cn partition /vicepa: 2

root.afs 536870912 RW 2 K On-line

root.cell 536870915 RW 2 K On-line

居然成功創(chuàng)建了分區(qū)。

服務器端難道就可以了嗎??

事實是,不行,windows客戶端無法連接上。

整個成功或失敗的操作,以及系統(tǒng)反饋如下

export PATH:$PATH:/usr/afs/bin

[root@jncc work]# bosserver -noauth &

[1] 3653

[root@jncc work]# bos setcellname jncc.edu.cn afs.server.edu -noauth

[1]+ Done bosserver -noauth

[root@jncc work]# bos create jncc.edu.cn kaserver simple /usr/afs/bin/kaserver -cell afs.server.edu -noauth

[root@jncc work]# bos create jncc.edu.cn buserver simple /usr/afs/bin/buserver -cell afs.server.edu -noauth

[root@jncc work]# bos create jncc.edu.cn ptserver simple /usr/afs/bin/ptserver -cell afs.server.edu -noauth

[root@jncc work]# bos create jncc.edu.cn vlserver simple /usr/afs/bin/vlserver -cell afs.server.edu -noauth

[root@jncc work]# 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.

[root@jncc work]# kas -cell afs.server.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 2450523212, last cpw: Thu Mar 4 20:47:07 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 Thu Mar 4 20:47:07 2010 by

permit password reuse

ka> setfields admin -flags admin

ka> examine admin

User data for admin (ADMIN)

key (0) cksum is 1361154845, last cpw: Thu Mar 4 20:47:22 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 Thu Mar 4 20:48:04 2010 by

permit password reuse

ka> quit

[root@jncc work]# bos adduser jncc.edu.cn admin -cell afs.server.edu -noauth

[root@jncc work]# bos addkey jncc.edu.cn -kvno 0 -cell afs.server.edu -noauth

input key:

Retype input key:

[root@jncc work]# pts createuser -name admin -cell afs.server.edu -noauth

User admin has id 1

[root@jncc work]# pts adduser admin system:administrators -cell afs.server.edu -noauth

[root@jncc work]# pts membership admin -cell afs.server.edu -noauth

Groups admin (id: 1) is a member of:

system:administrators

[root@jncc work]# bos restart jncc.edu.cn -all -cell afs.server.edu -noauth

[root@jncc work]# bos create jncc.edu.cn fs fs /usr/afs/bin/fileserver /usr/afs/bin/volserver /usr/afs/bin/salvager -cell afs.server.edu -noauth

[root@jncc work]# bos status jncc.edu.cn -long -noauth

Instance kaserver, (type is simple) currently running normally.

Process last started at Thu Mar 4 20:52:34 2010 (2 proc starts)

Last exit at Thu Mar 4 20:52:34 2010

Command 1 is '/usr/afs/bin/kaserver'

Instance buserver, (type is simple) currently running normally.

Process last started at Thu Mar 4 20:52:34 2010 (2 proc starts)

Last exit at Thu Mar 4 20:52:34 2010

Command 1 is '/usr/afs/bin/buserver'

Instance ptserver, (type is simple) currently running normally.

Process last started at Thu Mar 4 20:52:34 2010 (2 proc starts)

Last exit at Thu Mar 4 20:52:34 2010

Command 1 is '/usr/afs/bin/ptserver'

Instance vlserver, (type is simple) currently running normally.

Process last started at Thu Mar 4 20:52:34 2010 (2 proc starts)

Last exit at Thu Mar 4 20:52:34 2010

Command 1 is '/usr/afs/bin/vlserver'

Instance fs, (type is fs) currently running normally.Auxiliary status is: file server running.Process last started at Thu Mar 4 20:53:04 2010 (2 proc starts)Command 1 is '/usr/afs/bin/fileserver'Command 2 is '/usr/afs/bin/volserver'Command 3 is '/usr/afs/bin/salvager'[root@jncc work]# vos create jncc.edu.cn /vicepa root.afs -cell afs.server -noauthVolume 536870912 created on partition /vicepa of jncc.edu.cn[root@jncc work]# bos create jncc.edu.cn upserver simple "/usr/afs/bin/upserver -crypt /usr/afs/etc -clear /usr/afs/bin" -cell afs.server.edu -noauth[root@jncc work]# fs setacl /afs system:anyuser rlfs:'/afs': Function not implemented[root@jncc work]# vos create jncc.edu.cn /vicepa root.cellvsu_ClientInit: Could not get afs tokens, running unauthenticated.Volume 536870915 created on partition /vicepa of jncc.edu.cn[root@jncc work]# fs mkmount /afs/afs.server.edu root.cell[root@jncc work]# fs setacl /afs/afs.server.edu system:anyuser rlfs:'/afs/afs.server.edu': Function not implemented[root@jncc work]# fs mkmount /afs/.afs.server.edu root.cell -rw[root@jncc work]#?[root@jncc etc]# vos listvol jncc.edu.cnvsu_ClientInit: Could not get afs tokens, running unauthenticated.Total number of volumes on server jncc.edu.cn partition /vicepa: 2?root.afs 536870912 RW 2 K On-lineroot.cell 536870915 RW 2 K On-lineTotal volumes onLine 2 ; Total volumes offLine 0 ; Total busy 0到此,有一下幾個問題:1、fs 指令中大部分不能執(zhí)行[現(xiàn)在已經解決]2、系統(tǒng)重啟后CellServDB內容還原而導致系統(tǒng)無法正常使用[現(xiàn)在已解決]3、無法獲取令牌[現(xiàn)在已經解決]4、用klog登陸檢測客戶機,顯示錯誤[現(xiàn)在已經解決]5、系統(tǒng)啟動時,提示沒有加載openafs-client 模塊[現(xiàn)在已經解決]下面一篇將把問題如何解決的記錄一下。并且整理一下整個系統(tǒng)搭建的思路。

總結

以上是生活随笔為你收集整理的linux afs3服务,AFS配置3的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。