[OpenAFS-devel] Suggestion for Linux init script

Neulinger, Nathan nneul@umr.edu
Wed, 21 Jan 2004 15:31:07 -0600


This is already in afsd (sortof, there is a specific check for
reiserfs), and it works just fine on other types of partitions - i.e.
ext2 and ext3 both work fine, and some people use on others without any
problem I believe. The only one it is known to have any problems with is
reiserfs.=20

-- Nathan

------------------------------------------------------------
Nathan Neulinger                       EMail:  nneul@umr.edu
University of Missouri - Rolla         Phone: (573) 341-6679
UMR Information Technology             Fax: (573) 341-4216
=20

> -----Original Message-----
> From: openafs-devel-admin@openafs.org=20
> [mailto:openafs-devel-admin@openafs.org] On Behalf Of Atro Tossavainen
> Sent: Wednesday, January 21, 2004 2:00 AM
> To: openafs-devel@openafs.org
> Subject: [OpenAFS-devel] Suggestion for Linux init script
>=20
> Hi all,
>=20
> Since the OpenAFS client has a hard time if the client disk cache is
> not on a particular type of partition (kernel oopses and=20
> machine panics),
> what about an addition to the init script that would check the type of
> the partition it's on and refuse to start if it's a known bad one?
>=20
> Something like (for Linux)
>=20
> cachepartition=3D`df /usr/vice/cache|grep -v Filesystem|cut -f1 -d" "`
> fstype=3D`mount | grep $cachepartition | cut -f5 -d" "`
>=20
> if [ "x$fstype" !=3D "xext2" ]; then
> 	# refuse to start afsd unless memcache is involved
> else
> 	# go about it as usual
> fi
>=20
> I've hacked something similar on a HP-UX box with Transarc AFS 3.4:
>=20
> LARGE=3D"-stat 2800 -dcache 2400 -daemons 5 -volumes 128"
> MEDIUM=3D"-stat 2000 -dcache 800 -daemons 3 -volumes 70"
> SMALL=3D"-stat 300 -dcache 100 -daemons 2 -volumes 50"
> OPTIONS=3D$MEDIUM
> MEMCACHE=3D`echo $OPTIONS | grep memcache`
> ...
> CACHE=3D`cut -f2 -d: /usr/vice/etc/cacheinfo`
> CACHEMNT=3D`df $CACHE | cut -f2 -d'(' | cut -f1 -d\ `
> CACHEFS_LOGGING=3D`mount | grep $CACHEMNT | grep log`
>=20
> if [ ! -z "$CACHEFS_LOGGING" -a -z "$MEMCACHE" ]; then
>     echo "$CACHE is on a VxFS partition, which is illegal."
>     echo "Memcache is :$MEMCACHE:"
>     echo "Running afsd would panic the machine. Not starting AFS."
>     exit 2
> fi
>=20
> I seem to remember I had something similar somewhere for Tru64 and
> AdvFS, but can't find it now.
>=20
> --=20
> Atro Tossavainen (Mr.)               / The Institute of=20
> Biotechnology at
> Systems Analyst, Techno-Amish &     / the University of=20
> Helsinki, Finland,
> +358-9-19158939  UNIX Dinosaur     / employs me, but my=20
> opinions are my own.
> < URL : http : / / www . helsinki . fi / %7E atossava / > NO=20
> FILE ATTACHMENTS
> _______________________________________________
> OpenAFS-devel mailing list
> OpenAFS-devel@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-devel
>=20
>=20