(Illustration by Gaich Muramatsu)
On Mon, Nov 08, 2004 at 09:01:42AM -0800, redirecting decoy wrote: > I ran into the same problem as you, where I could not > delete volumes. In order to get it working I did the > following: > > edit purgevol_rep: > right after line 45, add "$REPVOLNAME=$2", right > before "dryrun=0" > so it should look like this: > REPVOLNAME=$1 > if [ "$1" = "--kill" ] > then > REPVOLNAME=$2 #MINE > dryrun=0 > shift > else > dryrun=1 > echo "Only testing, use 'purgevol_rep --kill $1' > to really purge the volume" > fi Good catch, it looks like I moved the REPVOLNAME= up too far when removing the VSGDB dependencies. Normally the 'shift' drop the --kill argument and after this 'if/else/fi' statement $1 will always contain REPVOLNAME. > Also, change line 55 to: > SCM=`cat /vice/db/scm` > volinfo=`${exec_prefix}/bin/getvolinfo $SCM $REPVOLNAME` That shouldn't be necessary... Unless ofcourse you have bound your server to a specific IP-address. Hmm, that does create a bit of a problem, what if we have several servers running on the same machine (all bound to unique ip's). Which server to pick, maybe the $SCM one is the right server to contact here. JanReceived on 2004-11-08 14:46:08