Netbackup: verschil tussen versies
Uit Documents
| Regel 11: | Regel 11: | ||
/opt/openv/volmgr/bin/vmchange -new_mt hcart2_clean -m <media> #change the media type to HC2_CLN | /opt/openv/volmgr/bin/vmchange -new_mt hcart2_clean -m <media> #change the media type to HC2_CLN | ||
/opt/openv/volmgr/bin/vmchange -m <media> -n 50 #change number of remaining cleanings | /opt/openv/volmgr/bin/vmchange -m <media> -n 50 #change number of remaining cleanings | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | Expire backup images: | ||
| + | <syntaxhighlight lang="bash"> | ||
| + | cd /opt/openv/netbackup | ||
| + | for i in `./bin/admincmd/bpimagelist -d 03/07/2011 11:01:18 -e 03/08/2011 04:48:31 -L |grep "Backup ID" |cut -d ":" -f 2`; do ./bin/admincmd/bpexpdate -backupid $i -d 0 -force;done; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Versie van 8 mrt 2011 om 11:28
Netbackup cheatsheet
Check Drive status:
/opt/openv/volmgr/bin/vmoprcmd -dpScan bus:
/opt/openv/volmgr/bin/sgscanAdd cleaning type:
/opt/openv/volmgr/bin/vmchange -p 0 -m <media> #change the pool to none
/opt/openv/volmgr/bin/vmchange -new_mt hcart2_clean -m <media> #change the media type to HC2_CLN
/opt/openv/volmgr/bin/vmchange -m <media> -n 50 #change number of remaining cleaningsExpire backup images:
cd /opt/openv/netbackup
for i in `./bin/admincmd/bpimagelist -d 03/07/2011 11:01:18 -e 03/08/2011 04:48:31 -L |grep "Backup ID" |cut -d ":" -f 2`; do ./bin/admincmd/bpexpdate -backupid $i -d 0 -force;done;