[OpenAFS] Duplicate VLDB entries

Kim Kimball dhk@ccre.com
Wed, 16 Apr 2008 12:49:53 -0600


What does "vos exam <volumename>" show for any volume with a duplicate?

You might also try running "volinfo" to see what's on disk.  As root on 
fileserver, local command, my "volinfo" binary is in /usr/afs/bin but I 
don't know if that's a default location.

[root@satchmo ~]# which volinfo
/usr/afs/bin/volinfo
[root@satchmo ~]#


[root@satchmo ~]# volinfo /vicepa
Inode 2305976385262321663: Good magic 78a1b2c5 and version 1
Inode 2305976385329430527: Good magic 99776655 and version 1
Inode 2305976385396539391: Good magic 88664433 and version 1
Inode 2305976381302898687: Good magic 99877712 and version 1
Volume header for volume 536901966 (doc.readonly)
stamp.magic = 78a1b2c5, stamp.version = 1
inUse = 1, inService = 1, blessed = 1, needsSalvaged = 0, dontSalvage = 0
type = 1 (readonly), uniquifier = 35659, needsCallback = 0, destroyMe = 0
id = 536901966, parentId = 536901965, cloneId = 0, backupId = 0, 
restoredFromId = 0
maxquota = 8000000, minquota = 0, maxfiles = 0, filecount = 2833, 
diskused = 400305
creationDate = 1207071890 (2008/04/01.11:44:50), copyDate = 1164988760 
(2006/12/01.08:59:20)
backupDate = 1168294377 (2007/01/08.15:12:57), expirationDate = 0 
(1969/12/31.17:00:00)
accessDate = 0 (1969/12/31.17:00:00), updateDate = 1206115667 
(2008/03/21.10:07:47)
owner = 0, accountNumber = 0
dayUse = 8237; week = (0, 0, 0, 0, 0, 0, 0), dayUseDate = 1207116000 
(2008/04/02.00:00:00)

volinfo gives a record like the above for each volume it finds on the 
partition -- can't imagine that there really are two volumes with the 
same ID or two volumes with the same name on a single partition, but it 
can't hurt to look.

Kim


Jeff Quinn wrote:
> jax > vos listvol afsfs10 vicepa
> Total number of volumes on server afsfs10 partition /vicepa: 0 
>
> Total volumes onLine 0 ; Total volumes offLine 0 ; Total busy 0
>
> jax > vos syncvldb -server afsfs10 -part vicepa
> VLDB synchronized with state of server afsfs10 partition /vicepa
>
> jax > vos syncserv -server afsfs10 -part vicepa
> Server afsfs10 partition /vicepa synchronized with VLDB
>
> jax > vos listvldb -server afsfs10 -partition vicepa
> ...
> Total entries: 1988
>
> Seems like those commands aren't doing much to help. Any other ideas?
>
> Thanks again,
> -Jeff
>
> -----Original Message-----
> From: Stephen Joyce [mailto:stephen@physics.unc.edu] 
> Sent: Wednesday, April 09, 2008 3:11 PM
> To: Jeff Quinn
> Subject: Re: [OpenAFS] Duplicate VLDB entries
>
> Try
>
> vos syncvldb -server <server> -part <part>
> vos syncserv -server <server> -part <part>
>
> If any of the volumes are replicated, you'd want to sync all the 
> servers/parts which hold replicas too. Be sure to perform all the syncvldb 
> commands before the syncserv commands.
>
> In the steady- (non-problem) state, these commands should be 
> non-destructive and do nothing, otherwise, they will change info/volumes as 
> problems are corrected.
>
> Cheers, Stephen
> --
> Stephen Joyce
> Systems Administrator                                            P A N I C
> Physics & Astronomy Department                         Physics & Astronomy
> University of North Carolina at Chapel Hill         Network Infrastructure
> voice: (919) 962-7214                                        and Computing
> fax: (919) 962-0480                               http://www.panic.unc.edu
>
>    "Lazy Programmers know that if a thing is worth doing, it's worth
>    doing well -- unless doing it well takes so long that isn't worth
>    doing any more. Then you just do it 'good enough'"
>                   --- Programming Perl, p 282.
>
> On Wed, 9 Apr 2008, Jeff Quinn wrote:
>
>   
>> We recently lost a partition on one of our servers and restored from tape.
>> The volumes were all recovered, but when we did a vos exam on any of the
>> restored volumes, it would have 2 identical entries in the vldb:
>>
>>
>>
>>    number of sites -> 2
>>
>>       server afsfs10.cl.msu.edu partition /vicepa RW Site
>>
>>       server afsfs10.cl.msu.edu partition /vicepa RW Site
>>
>>
>>
>> After moving the volume:
>>
>>
>>
>>    number of sites -> 2
>>
>>       server afsfs5.cl.msu.edu partition /vicepa RW Site
>>
>>       server afsfs10.cl.msu.edu partition /vicepa RW Site
>>
>>
>>
>> We moved all of the volumes off of that partition, so now they all look
>>     
> like
>   
>> above.   A vos listvol of afsfs10 vicepa returns 0 volumes, but a vos
>> listvldb returns all 1989 of them.    We then tried to do a vos syncvldb
>> with a volume.  It reports that it has been synced, but there are still 2
>> entries in the vldb.  We have also tried vos syncserv with the whole
>> partition with the same result.
>>
>>
>>
>> We have also tried to manually remove an entry from the vldb using vos
>> delentry, but you cannot specify a server/partition AND a volume.  A vos
>> delentry on the volume removed both entries from the vldb.
>>
>>
>>
>> All volumes are accessible via their mount points.
>>
>>
>>
>> Any ideas on how to remedy the vldb discrepancy?
>>
>>
>>
>> Thanks,
>>
>> -Jeff Quinn
>>
>>
>>     
>
>
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-info
>
>
>