Archive for: July, 2008

netbackup enterprise troubleshooting “unable to allocate new media for backup, storage unit has none available”

Jul 29 2008 Published by aaron under Sysadmin

I will fully admit that I am not a professional about NetBackup but I have found some nice utilities to use when getting "unable to allocate new media for backup, storage unit has none available" in my email reports.

If you have not guessed by now, there is no media available. Kind of blantent. Anyways, first you want to see a list of what status your tapes are in with the command:

/usr/openv/netbackup/bin/goodies/available_media

This will print out a list of your media and what status they are in (e.x. AVAILABLE, FULL, ACTIVE...). If some of your media is marked "ACTIVE" (like mine was), then I have found that to be a situation of where NetBackup did not move the media to the scratch pool to be queued up for use in the next backup job.

I ran this command:

/usr/openv/netbackup/bin/admincmd/bpexpdate -deassignempty

To grab all of the "ACTIVE" media and move it to the scratch pool since the images on each of the "ACTIVE" media is expired.

Run the job manually, and backups are flying.

Here are some other commands that I have found useful if you are low on budget and do not have a barcode scanning tape changer:

/usr/openv/volmgr/bin/vmphyinv -rn 0 -verbose

I have found using this command will do a physical inventory of your tapes is better than using the GUI interface with the possibility of the "use barcode rules" is turned on by default and then it adds new media to your catalog (when you really have not done so).

No responses yet

using subversion and pre-hooks to prevent unwanted characters in your file names

Jul 25 2008 Published by aaron under Sysadmin

After having developers upload files that contain harmful characters such as blank spaces, ('s and ['s I decided to make a script and put it in the pre-commit hook to stop the files from being submitted. Here is the script. If you have any suggestions as how to accomplish this better, please make your post to this article :D

#!/bin/sh
 
REPOS=${1}
TXN=${2}
TMP="/tmp/svn.hook.changes.tmp"
SVNLOOK="/usr/local/bin/svnlook"
GREP="/usr/bin/grep"
 
# check for files with weird characters
LINES=`$SVNLOOK changed -t ${TXN} ${REPOS} | colrm 1 4 | grep -c '[\ |\(|\)]' `
 
if [ $LINES -eq "0" ]; then
	# All checks passed, so allow the commit.
	exit 0
else
	# All checks did not pass
	echo "" >&2
	echo "!!!Your file(s) contain bad characters!!!" >&2
	echo "We only need characters between A-Z or a-z or 0-9 or _" >&2
	echo "" >&2 
 
	# Show the actual paths:
	${SVNLOOK} changed -t ${TXN} ${REPOS} | grep '[\ |\(|\)]' | cut -c5- >&2
	echo "" >&2 
 
	# cancel commit
	exit 1
fi

No responses yet

fun flash games from a japanese genius

Jul 24 2008 Published by aaron under Fun

If you are feeling bored or want to have some fun with friends, here are some interesting games that someone in Japan created in Flash.

update 2008-07-25

I just got home and tried out one of these games from list. When you are moving a cat around and shooting at other cats ... something out of it's tail... with the sound effects of people... omg that made my day end very nice.

update 2008-07-26

here is the other game I really suggest you try out! all about trying to find the star

No responses yet

Wonderful dinner topped with sake

Jul 23 2008 Published by aaron under Travel

Tonight we went out fer sushi!! Blaberd about our times at work over a nice bottle of Nigori. Mmmmmmm!

photo

No responses yet

Art is funny, sometimes

Jul 22 2008 Published by aaron under Fun

I found this picture to be quite amusing but can't explain why.

photo

No responses yet

Older posts »