Avamar:如何使用地圖工具
摘要: Avamar 有一個名為「mapall」的命令列工具,可向網格內的一或多個節點發出指令。本文說明如何使用這個工具。
本文章適用於
本文章不適用於
本文無關於任何特定產品。
本文未識別所有產品版本。
說明
本文示範如何使用 Avamar mapall 工具,將命令從工具節點發出到其他節點。
可使用 mapall 工具可以到達 probe.xml 檔案中所定義。
這些文稿是圍繞標準安全外殼 (ssh) 工具 (ssh) 和安全複製協定 (SCP)),並且都是用 Perl 編寫的。
mapall- 向多個節點傳送指令- SSN - 一個圍繞 ssh 的包裝器,它接受(物理)節點號而不是 IP 位址或主機名
- SCN - SCP周圍的包裝器,如上所述
MAPALL:
指定要在哪些節點上執行命令:
若要僅在選取節點上執行命令:
只在節點 0 上執行<命令>。0, 0.2 和 0.3:
mapall --nodes=0.0,0.2,0.3 <command>
要在除工具節點和 0.0 之外的所有節點上運行該 <命令,請執行以下操作> :
mapall --nodes=all+,-0.s,0.0 <command>
實用標誌:
以下是一些可用於這三個工具的有用標誌。(這些旗標完整記錄在 Avamar 技術附錄中)
如同所有 Avamar 命令列工作,執行時請務必小心。
如同所有 Avamar 命令列工作,執行時請務必小心。
-
--user=<username> : Specify the user on the remote system that runs the command. -
--verbose : Provides maximum information. -
--quiet : Disable all messages. -
--parallel : Runs the command on all nodes simultaneously. -
--noerror : Do not stop if an error occurs. (This flag should always be used) For legacy reasons, mapall command execution stops if an error occurs. -
--bg : Run the command in the background and does not wait for completion. -
--debug : Enable extended debugging information (for example, which nodes map to which IP addresses). -
--copy : Copies a file from the utility node to remote nodes. -
--get : Pulls a file to the utility node from remote nodes. -
--all : Issues the command on all the data nodes plus the utility node -
--all+ : Issues the command on all the nodes in probe.xml, including NDMP accelerator nodes, spare nodes so forth.
MAPALL 範例:
MAPALL 取得:這與複製命令相反。
抓取 GSAN 二進位,並將其複製到 Avamar 工具節點 /home/admin/0.*/gsan:
mapall --noerror get 'gsan'
MAPALL 文案:
複製 /etc/hosts 檔案至 /root/etc/hosts 在每個數據節點上。
mapall --noerror --user=root copy 'etc/hosts'
這在實踐中是如何工作的:
1.可使用
mapall 複製命令將建立 tarball 包含指定的檔。
2.用途
scp 若要推 tarball 到每個節點。
3.解壓縮
tarball 在使用者主目錄中。
其他資訊
SSN 範例:
連接到節點 0.1 並打開互動式 shell。
ssn 0.1
連線至節點 0.2 並發出日期命令。
ssn 0.2 'date'
SCN 範例:
複製 /home/admin/gsan 二進位從節點 0.1 到 btfix 目錄 (在 Avamar Utility Node 上)。
scn 0.1:/home/admin/gsan ./btfix
複製”testscript」 從工具節點的 /home/admin 目錄到節點 0.2,並將其放置為”runscript“ 在 /data01/cur:
scn testscript 0.2:/data01/cur/runscript
注意:可使用
必須在兩步操作中使用工具節點複製檔,或者使用
scn 命令不能用於將檔從一個數據節點複製到另一個數據節點。
必須在兩步操作中使用工具節點複製檔,或者使用
scp 直接在兩個節點之間傳輸檔。
受影響的產品
Avamar, Avamar Server產品
Avamar文章屬性
文章編號: 000156632
文章類型: How To
上次修改時間: 01 10月 2025
版本: 10
向其他 Dell 使用者尋求您問題的答案
支援服務
檢查您的裝置是否在支援服務的涵蓋範圍內。