[OpenAFS] Check if Volume is availabe
Paul Blackburn
mpb@est.ibm.com
Wed, 06 Nov 2002 11:44:55 +0000
Hello Klaas,
Perhaps, in addition to testing if the $volume may be "vos examine"ed,
you could also try to cd to the volume mountpoint.
If the volume is available, the cd will return a status code 0
and if not then it returns non-zero.
--
cheers
paul http://acm.org/~mpb
Klaas Hagemann wrote:
>Hi Paul,
>
>meanwhile i got the same idea...
>does vos examine does right, even if the whole file-server brakes down?
>
>Klaas
>----- Original Message -----
>From: "Paul Blackburn" <mpb@est.ibm.com>
>To: <openafs-info@openafs.org>
>Sent: Wednesday, November 06, 2002 12:26 PM
>Subject: Re: [OpenAFS] Check if Volume is availabe
>
>
>
>
>>Hello Klaas,
>>
>>would this do it?
>>
>>vos examine $volume
>>if [ $? = 0 ]; then
>> echo "volume $volume is available"
>>else
>> echo "volume $volume is not available" >&2
>>fi
>>--
>>cheers
>>paul http://acm.org/~mpb
>>
>>Klaas Hagemann wrote:
>>
>>
>>
>>>Hi,
>>>
>>>i use afs for home directories. Every user's home directory is one
>>>
>>>
>volume.
>
>
>>>Therefor i do not have any read-only replicas of these volumes conaining
>>>
>>>
>a
>
>
>>>home directory.
>>>How can i check on the client, if the volume with the home-directory is
>>>available? I want to use a startupscript, which checks the avaiability
>>>
>>>
>for
>
>
>>>the volume with the home directory and creates a local home-directory if
>>>
>>>
>the
>
>
>>>afs-volume is not available.
>>>
>>>Any ideas?
>>>
>>>_______________________________________________
>>>OpenAFS-info mailing list
>>>OpenAFS-info@openafs.org
>>>https://lists.openafs.org/mailman/listinfo/openafs-info
>>>
>>>
>>>
>>>
>>
>>_______________________________________________
>>OpenAFS-info mailing list
>>OpenAFS-info@openafs.org
>>https://lists.openafs.org/mailman/listinfo/openafs-info
>>
>>
>
>
>