本頁說明如何確保備份和災難復原服務的 NFS 連線。
在 Red Hat RHEL 6 或 CentOS Linux 主機上安裝 NFS 用戶端
執行 # rpm -qa | grep nfs,確認是否已安裝用戶端。
這應該會傳回類似下列的內容:
nfs-utils-lib-1.1.5-9.el6.x86_64
nfs-utils-1.2.3-54.el6.x86_64
- 如果沒有看到任何內容,請使用 yum 安裝 NFS 用戶端套件。
跑步:
# yum install nfs-utils nfs-utils-lib - 確認 Linux 主機上已安裝 rpcbind /portmapper 套件。
跑步:
# rpm -qa | grep rpcbind
這應該會傳回類似下列內容:rpcbind-0.2.0-11.el6.x86_64
- 如果沒有看到任何內容,請使用 yum 安裝 rpcbind。
執行:
# yum install rpcbind
在 SLES Linux 主機上安裝 NFS 用戶端
如要查看是否已安裝用戶端,請執行:
# rpm -qa | grep nfs這時應會傳回類似下列的內容:
nfs-client-1.2.1-2.6.6 yast2-nfs-common-2.17.7-1.1.2 yast2-nfs-client-2.17.12-0.1.81如果找不到 nfs-client 或 yast2-nfs-xxxx 套件,請使用 YaST 或 zypper 安裝 NFS 用戶端套件。
- 使用 YaST:
# yast2 --install yast2-nfs-client # yast2 --install yast2-nfs-common- 使用 Zypper:
# zypper install nfs-client
確認 Linux 主機上已安裝 rpcbind 或 portmapper 套件。執行:
# rpm -qa | grep rpcbind這應該會傳回類似 rpcbind-0.1.6+git20080930-6.15 的內容如果沒有看到任何內容,請使用 YaST 或 zypper 安裝套件:
- 使用 YaST:
# yast2 --install rpcbind - 使用 Zypper:
# zypper install rpcbind
- 使用 YaST:
從 Linux 主機瞭解 NFS 用戶端資訊
主機上必須安裝 Backup and DR 核准的 NFS 用戶端套件和版本。
確認 portmapper 或 rpcbind 服務是否正在執行。執行:
# sudo service rpcbind status- Red Hat RHEL 6 或 CentOS Linux 主機應會傳回類似下列內容:
rpcbind (pid 1591) is running... - SLES Linux 主機應會傳回類似如下的內容:
Checking for service rpcbind running
- Red Hat RHEL 6 或 CentOS Linux 主機應會傳回類似下列內容:
如果 rpcbind 服務未在 Linux 主機上執行,請使用下列指令啟動:
# sudo service rpcbind start使用 rpcinfo 列出已註冊的 RPC 程式或服務。Portmapper 必須註冊並執行。
# sudo rpcinfo -p program vers proto port service 100000 4 tcp 111 portmapper 100000 3 tcp 111 portmapper 100000 2 tcp 111 portmapper 100000 4 udp 111 portmapper 100000 3 udp 111 portmapper 100000 2 udp 111 portmapper使用下列指令,檢查 Linux 主機是否能對備份/還原裝置上的 rpcbind 和 NFS 程式發出 RPC 呼叫。
# sudo rpcinfo -T tcp <#vm internal IP> rpcbind program 100000 version 2 ready and waiting program 100000 version 3 ready and waiting program 100000 version 4 ready and waiting # sudo rpcinfo -T tcp <#vm internal IP> nfs program 100003 version 2 ready and waiting program 100003 version 3 ready and waiting
如果上述指令傳回先前顯示的輸出內容,表示 Linux 主機與備份/復原裝置之間的 NFS 連線良好。
規劃暫存磁碟大小
對於某些大型檔案系統,您可能必須手動設定檔案系統的暫存磁碟大小。預設暫存磁碟大小為 NAS capacity + 20%,但有兩種情況可能不夠用:
NFS 和 SMB 網路檔案系統有時會誤報容量過大。如果檔案系統回報大小超過 128 TiB,備份和災難復原代理程式就會備份失敗,並顯示錯誤代碼 5289:「The reported size of the protected volume requires that the staging disk size is specified for this application」(受保護磁碟區回報的大小需要為這個應用程式指定暫存磁碟大小)。這項錯誤可避免備份和災難復原服務分配不需要或大於備份/復原裝置可處理的巨大磁碟。
即使 NAS 在磁碟上使用重複資料刪除和壓縮功能,備份和災難復原服務 也不會刪除重複資料或壓縮暫存磁碟上的備份資料。NAS 可能會回報 5 TB 的用量,但暫存磁碟上的備份可能會佔用更多空間。此外,管理員也必須指定手動暫存磁碟大小。這可能會導致「暫存磁碟已滿」錯誤。
如果看到任一錯誤,請在「應用程式詳細資料和設定」中手動設定暫存磁碟大小。
.snapshot 目錄中的虛擬快照
有時 NAS 上會有 .snapshot 目錄,其中包含 NAS 內容的完整副本。這是 NAS 的虛擬快照。備份和災難復原代理程式會嘗試複製所有快照,但空間不足。如要修正這個問題,請使用 .snapshot 或 ~snapshot (NAS 使用的名稱) 的排除模式。請參閱「排除模式」。
準備檔案系統主機的其他資訊
如要進一步瞭解如何準備檔案系統主機以進行保護,請參閱「管理主機及其連線的應用程式」。