[OpenAFS] howto release all projects by cron

Lars Schimmer l.schimmer@cgv.tugraz.at
Mon, 25 Jan 2010 14:56:28 +0100


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alena Manova wrote:
> Hello,
>=20
> does anyone have some clue how to release all volumes proj.* periodical=
ly using the BOS cron?
>=20
> If 'vos release' took something like -prefix (similar to backupsys) I c=
ould release all project easily, but 'vos release'  doesn't work like thi=
s. so I need to iterate through all proj.* volumes.
>=20
> I would like to have it as BOS cron job without calling some external s=
cripts, so I tried something like this:
>=20
> bos create <myserver> releaseproj cron -cmd "/bin/bash -c 'for volume i=
n \$(/usr/sbin/vos listvldb -quiet | grep proj); do /usr/sbin/vos release=
 \$volume -localauth; done'" "10:49"
>=20
> it creates nice record (which should work) in BosConfig:
>=20
> parm /bin/bash -c 'for volume in $(/usr/sbin/vos listvldb -quiet | grep=
 proj); do /usr/sbin/vos release $volume -localauth; done'
> ...
>=20
> but it doesn't work - seems like the cron-inline_bash interaction fails.
>=20
> any ideas?

I created a few shell scripts and just start those shell scripts from
bos config.
In those bash scripts I just run:
for i in `vos listvldb -quiet -localauth|grep -i "user\."`;do vos
release -id $i -localauth; done

That will vos release user\.*

> thanks, Nick.

MfG,
Lars Schimmer
- --
- -------------------------------------------------------------
TU Graz, Institut f=FCr ComputerGraphik & WissensVisualisierung
Tel: +43 316 873-5405       E-Mail: l.schimmer@cgv.tugraz.at
Fax: +43 316 873-5402       PGP-Key-ID: 0x4A9B1723
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAktdowwACgkQmWhuE0qbFyNF/QCff9w2mHf9XV1EFdijyKk+WHdB
mSMAnAjDws/QUDq+u0r8yC5xTkdqPNi2
=3D5tg4
-----END PGP SIGNATURE-----