NTNX>日記

個人的な趣味による Nutanix Community Edition 日記。Japanese のみですみません。

Nutanix CVM の afs コマンドで FSVM に接続してみる。

Nutanix AOS の CVM と、Nutanix Files の FSVM には、afs コマンドがインストールされています。Nutanix Advent Calendar 2021 で話題にあがっていたので、ためしに、CVM の afs コマンドから FSVM に接続してみます。

smzklab.net

 

今回の内容です。

今回の環境

Nutanix CE で、Nutanix Files を利用しています。

Nutainx CE

  • バージョン: 2020.09.16
  • 1ノード クラスタ
  • 管理ネットワーク IP アドレス: 192.168.20.52

Nutanix Files

  • バージョン: 3.8.1.1
  • 1ノード クラスタ
  • 管理ネットワーク IP アドレス: 192.168.20.91

 

afs コマンドの実体

afs コマンドの実体は、シェル スクリプトで、CVM と FSVM ではほぼ同じものが使用されています。そして、接続先によって実行できるサブコマンドが変わるようです。

CVM の afs コマンドです。

nutanix@NTNX-624676c4-A-CVM:192.168.20.52:~$ which afs
~/minerva/bin/afs
nutanix@NTNX-624676c4-A-CVM:192.168.20.52:~$ echo ~/minerva/bin/afs
/home/nutanix/minerva/bin/afs
nutanix@NTNX-624676c4-A-CVM:192.168.20.52:~$ file /home/nutanix/minerva/bin/afs
/home/nutanix/minerva/bin/afs: Bourne-Again shell script, ASCII text executable

FSVM の afs コマンドです。

nutanix@NTNX-192-168-20-91-A-FSVM:~$ which afs
/usr/local/nutanix/minerva/bin/afs
nutanix@NTNX-192-168-20-91-A-FSVM:~$ file /usr/local/nutanix/minerva/bin/afs
/usr/local/nutanix/minerva/bin/afs: Bourne-Again shell script, ASCII text executable

デフォルトの接続先はどちらも localhost のようですが、ポート番号は異なります。

CVM では、接続先ポートが 7501 です。

nutanix@NTNX-624676c4-A-CVM:192.168.20.52:~$ cat /home/nutanix/minerva/resources/afs_port
7501

一方、FSVM では接続先ポートが 7502 です。

nutanix@NTNX-192-168-20-91-A-FSVM:~$ cat /home/nutanix/minerva/resources/afs_port
7502

CVM / FSVM でローカル接続した afs コマンド

CVM で afs を対話モード実行して、TAB キー補完でサブ コマンドを表示してみました。

nutanix@NTNX-624676c4-A-CVM:192.168.20.52:~$ afs
<afs>
core     CLI control.
exit     Exits the CLI.
get      Gets the current value of the given configuration options.
help     Provides help text for the named object.
info     CVM related CLI.
infra    CVM related CLI.
quit     Exits the CLI.
set      Sets the value of the given configuration options.
task     Task management commands.

一方、FSVM での afs のサブ コマンドです。

nutanix@NTNX-192-168-20-91-A-FSVM:~$ afs
<afs>
ad          Active directory.
audit       Audit events.
av          Antivirus.
bk          Backup related management commands(cross-nvm).
cache       Minerva nvm cache.
core        CLI control.
dns         File Server DNS Entries.
dr          Utility for DR workflows
exit        Exits the CLI.
fb          File Blocking.
fs          File server.
get         Gets the current value of the given configuration options.
ha          High availability.
help        Provides help text for the named object.
idf         Interact with IDF entities in afs.
idmap       MP Idmapping
job         Job releated apis
lb          Load balancing.
misc        Miscellaneous.
mscan       Metadata scan tools.
msidinfo    Metadata scan id resolution tools.
net         Minerva nvm netowrk related commands (such as QoS, etc.)
nfs         NFS config editor.
nlm         NLM state.
quit        Exits the CLI.
quota       Minerva nvm quota.
rsyslog     CLI for rsyslog server management
set         Sets the value of the given configuration options.
share       Minerva nvm share.
smb         Samba related management commands.
snapshot    Snapshot management commands
sync        Utility for Smart Sync entities
task        Task management commands.
user        AFS local user management commands
version     Print AFS build version.
vg          Minerva vg expansion.

CVM の afs コマンドで FSVM に接続

そして、CVM から FSVM に接続(-H 192.168.20.91:7502)して TAB キー補完すると、FSVM と同様のサブ コマンドが表示されます。

nutanix@NTNX-624676c4-A-CVM:192.168.20.52:~$ afs -H 192.168.20.91:7502
<afs>
ad          Active directory.
audit       Audit events.
av          Antivirus.
bk          Backup related management commands(cross-nvm).
cache       Minerva nvm cache.
core        CLI control.
dns         File Server DNS Entries.
dr          Utility for DR workflows
exit        Exits the CLI.
fb          File Blocking.
fs          File server.
get         Gets the current value of the given configuration options.
ha          High availability.
help        Provides help text for the named object.
idf         Interact with IDF entities in afs.
idmap       MP Idmapping
job         Job releated apis
lb          Load balancing.
misc        Miscellaneous.
mscan       Metadata scan tools.
msidinfo    Metadata scan id resolution tools.
net         Minerva nvm netowrk related commands (such as QoS, etc.)
nfs         NFS config editor.
nlm         NLM state.
quit        Exits the CLI.
quota       Minerva nvm quota.
rsyslog     CLI for rsyslog server management
set         Sets the value of the given configuration options.
share       Minerva nvm share.
smb         Samba related management commands.
snapshot    Snapshot management commands
sync        Utility for Smart Sync entities
task        Task management commands.
user        AFS local user management commands
version     Print AFS build version.
vg          Minerva vg expansion.

 

以上。

©2023 gowatana
クリエイティブ・コモンズ・ライセンスこの 作品 は クリエイティブ・コモンズ 表示 4.0 国際 ライセンスの下に提供されています。