Steps to remove NetBackup Media Server Deduplication Pool (MSDP) configuration from a NetBackup environment

Problem

Steps to remove NetBackup Media Server Deduplication Pool (MSDP) configuration from a NetBackup environment

Solution

Warning: These steps will expire all images associated with the MSDP that is to be removed!

Note: For NetBackup version 7.0.1, the script in step 13 is only available with the latest dedup bundle from ET2233961 / TECH153190.  For version 7.1.0.1, only with the latest dedup bundle from ET2412409.  Delivered in 7.1.0.2 and higher and in version 7.5. Please upgrade to obtain this functionality.

All commands are located in the admincmd directory unless mentioned otherwise:

Unix:   /usr/openv/netbackup/bin/admincmd
Windows:  <install path>\NetBackup\bin\admincmd

Ensure a full backup of the NetBackup catalog has completed successfully before proceeding with next steps. Subsequent steps walk the administrator through deleting the Storage Lifecycle Policies (SLP), Storage Units (STU), and Image references in the NetBackup Catalog.

  1. Ensure backup policies do not target the MSDP STU to be decommissioned, either directly from the policy or indirectly using SLPs.
  2. Either delete the SLP or update the SLP such that they do not target the MSDP disk pool to be decommissioned.
  3. Use the nbstlutil command to cancel processing on any image copies that may be targeting the MSDP disk pool to be decommissioned.
  4. Expire only the images from the catalog that reside on the MSDP Disk Pool to be removed.
  • From the NetBackup administration console, expand NetBackup Management, select Catalog, choose 'Verify' from the Action selection list, choose 'PureDisk' from the 'Disk type' selection list, and the 'disk pool name' from the 'Disk Pool' selection list.
  • Set the start date to a value to accommodate the oldest images on the MSDP pool, and click 'Search Now'.
  • Select all the images found, right-click and click 'Expire' to mark that particular image copy as Expired.
  • Allow the NetBackup 'Image Cleanup'-type jobs to complete; this marks the data for removal from the MSDP storage.

 Some additional steps may be needed if the following error is received during image expiration. This typically occurs if SLPs are utilized.

NetBackup status code: 1573
Message: Backup image cannot be expired because its SLP processing is not yet complete
Explanation: You tried to expire one or more copies of an SLP-managed image. The SLP processing that depends on those copies is not complete. The image cannot be expired.

Recommended Action: Do one of the following:

  • Wait until SLP processing for that image is complete, then retry the expiration operation.
  • Use the nbstlutil -cancel command to cancel further processing on the relevant image. Then retry the expiration operation.
  • Add the -force_not_complete option to the bpexpdate command to force expiration even if the image-copy is not SLP complete.

Examples:

Use the parameter   -notimmediate  if there are multiple images to be deleted. Refer to HOWTO43656 for more details. To expire a single backup image, execute as follows.
bpexpdate -backupid <backup_image_id> -d 0 -M <Master_server_name> -force_not_complete

To expire ALL backup images on the disk pool, execute:
bpexpdate -stype PureDisk -dp MSDP_DiskPoolName -force_not_complete

Proceed once all the backup images associated on the disk pool to decommissioned have been expired from the NetBackup catalog and Image Cleanup job has completed successfully on this MSDP disk pool.

  1. Delete any SLPs that target the MSDP as a destination. Alternately, update the SLP to remove the MSDP storage unit as a target/destination from all versions of the SLP. Review all SLP versions using the command:
    nbstl -L -all_versions

Note: If the 'CLEANUP_SESSION_INTERVAL_HOURS' SLP parameter has not been altered on the master server, old SLP versions may exist 14 days (default) after a new SLP version is created.  Review TECH172249 and HOWTO68320 for additional information.

  1. Delete any storage units that target the MSDP disk pool.
  2. Expire images using nbdelete and bpimage commands.

nbdelete -allvolumes -force
bpimage -cleanup -allclients

  1. Mark the Disk Pool state as DOWN using nbdevconfig command.

nbdevconfig -changestate -stype PureDisk -dp MSDP_DiskPoolName -dv PureDiskVolume -state DOWN

  1. Locate the NDMP machinetype entry corresponding to the MSDP storage server to be decommissioned from the output of the following command from the master server:

nbemmcmd -listhosts

  1. Delete the MSDP Disk Pool from under Devices Disk Pools in the NetBackup Administration Console.

  2. Delete the storage server credentials, storage server and the storage server NDMP machinetype entry from the EMM database using the following commands:

tpconfig -delete -storage_server MSDP_StorageServerName -stype PureDisk -sts_user_id root

tpconfig command is located at:

Unix:     /usr/openv/volmgr/bin/
Windows:  <install path>\Volmgr\bin\

The remaining commands are executed from the admincmd folder.

nbdevconfig -deletedp -stype PureDisk -dp MSDP_DiskPoolName
nbdevconfig -deletests -storage_server MSDP_StorageServerName -stype PureDisk
nbemmcmd -deletehost -machinename MSDP_StorageServerName -machinetype ndmp

Note: The above tpconfig and nbdevconfig commands may fail if the storage server and NDMP credentials (i.e. machinetypeentry) were previously deleted from the NetBackup Administration Console/GUI. Continue to the next step.

  1. Stop NetBackup services on the MSDP server.

  2. Execute the PDDE_deleteConfig script to remove the MSDP configurations:

Unix: /usr/openv/pdde/pdconfigure/scripts/installers/PDDE_deleteConfig.sh
Windows: <install_path>\Veritas\pdde\PDDE_deleteConfig.bat

  1. Remove any storage server configuration files referencing the MSDP storageserver from NetBackup media servers. The configuration files (named MSDP_StorageServerName.cfg) are located in the ost-plugins folder.

Unix: /usr/openv/lib/ost-plugins
Windows: <install-path>\NetBackup\bin\ost-plugins

Note: If there are other fingerprint load balancing media servers in the configuration, the storage server configuration file  MSDP_StorageServerName.cfg should be removed from the ost-plugins folder of those media servers as well.

  1. Delete the deduplication storage directory (and deduplication database path, if any).

Note: If this is a NetBackup appliance, do NOT delete /disk folder. It is easier to perform a Factory Reset when working on an appliance (HOWTO94245)

  1. Start the NetBackup services/processes

This concludes the removal of MSDP storage server and associated deduplication configuration files from a NetBackup media server. To reconfigure MSDP Storage again, re-run the Configure Disk Storage Servers wizard from the Administration Console. 

 

Terms of use for this information are found in Legal Notices.

Read more

How to document Home Lab and Network

運維機房和跨域的網路,會遇到各式需求與問題,用對工具才能分析問題,個人覺得最重要的是使用能處理問題的工具。 推薦目前想學和正在使用的平台與軟體,協助將公司/家用機房文件化 佈告欄任務管理 Focalboard 白板可管理任務指派 網路架構文件編寫 netbox 精細管理網路設備與連接線路 IP 資源管理 phpipam 專注網路IP分配 邏輯塊文件編寫 draw.io 視覺化概念圖 機房設備管理 ITDB 管理設備生命週期與使用者

By Phillips Hsieh

如何在Raspberry Pi4上安裝Proxmox for ARM64

第一步 準備好Raspberry Pi 4 / CM4 4GB RAM,這裡要留意CM4如果是買有內建eMMC storage會限制不能使用SD卡開機而限制本地空間容量,如果沒有NAS外接空間或使用USB開機的話,建議買CM4 Lite插上大容量SD卡 第二步 去Armbian官網下載最小化Debian bookworm image https://www.armbian.com/rpi4b/ Armbian 25.2.2 Bookworm Minimal / IOT 然後寫入SD/USB開機碟,寫入方法參考官方文件 https://github.com/raspberrypi/usbboot/blob/master/Readme.md Note: 官方提供的預先設定系統方法,可以在Armbian初次啟動自動化完成系統設定。連結在此 https://docs.armbian.com/User-Guide_Autoconfig/

By Phillips Hsieh

世界越快心越慢

在晚飯後的休息時間,我特別享受在客廳瀏灠youtube上各樣各式創作者的影音作品。很大不同於傳統媒體,節目多是針對大多數族群喜好挑選的,在youtube上我會依心情看無腦的動畫、一些旅拍記錄、新聞時事談論。 尤其在看了大量的Youtube的分享後,我真的感受到會限制我的是我的無知,特別是那些我想都沒想過的實際應用,在學習後大大幫助到我的生活和工作層面。 休息在家時,我喜歡想一些沒做過的菜,動手去設計生活和工作上的解決方案,自己是真的很難閒著沒事做。 如創作文章,陪養新的習慣都能感覺到成長的喜悅,是不同於吃喝玩樂的快樂的。 創作不去限制固定的形式,文字是創作、影像聲音也是創作,記錄生活也是創作,我想留下的就是創造—》實現—》回憶,這樣子的循環過程,在留下的足跡面看到自己一路上的成長、失敗、絕望、重新再來。 雖然大部份的時候去做這些創作也不明白有什麼特別的意義,但不去做也不會留下什麼,所以呀不如反事都去試試看,也許能有不一樣的水花也許有意想不到的結果,投資自己永遠不會是失敗的決定,不是嗎?先問問自己再開始計畫下一步,未來沒人說得準。 像最近看youtube仍大一群人在為DOS開

By Phillips Hsieh

知識管理的三個步驟:一小時學會把知識運用到生活上

摘錄瓦基「閱讀前哨站」文章作為自己學習知識管理的內容 Part1「篩選資訊」 如何從海量資訊中篩選出啟發性、實用性和相關性的精華,讓你在學習過程中不再迷失方向。 1. 實用性 2. 啟發性 Part2「提高理解」 如何通過譬喻法和應用法,將抽象的知識與日常生活和工作緊密結合,建立更深刻的理解。 1. 應用法 2. 譬喻法 Part3「運用知識」 如何連結既有知識,跟自己感興趣的領域和專案產生關聯,讓你在運用知識的路途上游刃有餘。 1. 跟日常工作專案、人際活動產生連結 # 為什麼要寫日記? * 寫日記是為了忘記,忘卻瑣碎事情,保持專注力 * 寫日記就像在翻譯這個世界,訓練自己的解讀能力 * 不只是透過日記來記錄生活,而是透過日記來發展生活 #如何寫日記? * 不要寫流水帳式的日記,而是寫覆盤式的日記 當我們試著記錄活動和感受之間的關聯,有助於辦認出真正快樂的事 日記的記錄方式要以過程為主,而非結果 * 感恩日記的科學建議,每日感恩的案例

By Phillips Hsieh