NetBackup How to expire backup images & move media to scratch pool

I have gone through a scenario when some of backup images were no longer required and we decided to discard those images and reuse the media. This is how we achive it.

 

  1. Verify if there are valid images on the tape.
  2. Expire images.
  3. Verify if the tape is assigned or not.
  4. De-assign media
  5. Change volume pool

 

Verify if there are valid images on the tape.

The bpmedialist command can then be used to determine if there are valid images still on the tape. If there are valid images still on the tape, then the tape cannot be moved to another volume pool until all valid images have expired.

 

<Install_Path>\Program Files\Veritas\netbackup\bin\admincmd\bpmedialist -m <media_id>

 

Expire Images

If a media has valid images, but that images are no longer desired, the following command may be run:

 

bpexpdate -m <media_id> -d 0 -force

Verify if the tape is assigned or not

 

The vmquery command can be used to determine if the tape is assigned or not. Check the "assigned:" entry to see if an assigned time has been set. If an assigned time has been set, the tape cannot be moved to another volume pool until all valid images have expired.

<Install_Path>\program files\veritas\volmgr\bin\vmquery –m <Media_Id>

 

De-assign media

In case where the tape is listed with an assigned date, but where NO valid images exist on the tape, the following command can be run:

C:\Program Files\Veritas\netbackup\bin\admincmd\bpexpdate -deassignempty -m <media_id>

 

Change volume pool

Now backup images are expired, media de-assigned, now we can change volume pool

vmchange –p <destination_pool_number> -m <media_id>

 

OST Image delete

/usr/openv/netbackup/bin/admincmd# ./bpimmedia 
IMAGE H13-215 10 H13-215_1506391579 LSU_Backup_001 0 all 0 1 1083 1507601179 0 0 0 0
FRAG 1 1 2984352 0 0 0 0 @aaaab H13-215 262144 0 0 -1 0 1;FalconStor;H13-97;LSU_Pool_Sol_001;LSU_sol_lsu_001;0 1507601179 0 1 6 *NULL* 0
IMAGE H13-215 10 H13-215_1506391563 LSU_Backup_002 0 all 0 1 185 1507601163 0 0 0 0
FRAG 1 1 5065728 0 0 0 0 @aaaab H13-215 262144 0 0 -1 0 1;FalconStor;H13-97;LSU_Pool_Sol_001;LSU_sol_lsu_001;0 1507601163 0 1 6 *NULL* 0

root@H13-215:/usr/openv/netbackup/bin/admincmd# ./bpexpdate -backupid  H13-215_1506391579 -d 0
Are you SURE you want to delete H13-215_1506391579 y/n (n)? y
root@H13-215:/usr/openv/netbackup/bin/admincmd# ./bpexpdate -backupid  H13-215_1506391563 -d 0
Are you SURE you want to delete H13-215_1506391563 y/n (n)? y
 

Read more

How to migrate Raspberry Pi 5 OS from micro SD to NVME m.2 SSD

首先我買了Raspberry Pi CM5後來買了Raspberry Pi CM5 I/O board來當個人電腦使用,系統是安裝在256GB SD卡上運行的很好。用久了在開啟較肥的程式像Web Browser或LiberOffice會有慢半拍的反應,而有了升級NVME m.2 SSD念頭。 因為Raspberry Pi 5支援的最快PCIe gen3 x 4就不去考慮快的Gen4 or Gen5 m.2 SSD。找了ADATA出的 LEGEND 710入門級的產品,會利用HMB(Host Memory Buffer)來加速I/O速度,因為是Raspberry Pi OS kernel會認不得而無法正常使用 事先在SD卡的/boot/firmware/cmdline.txt 加入 kernel command line參數如下,然後重開機m.

By Phillips Hsieh

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