[OpenAFS] Re: RClone - Volume already exists

Nicolas DEFFAYET nicolas-ml@deffayet.com
Wed, 16 Oct 2013 11:19:09 +0000


On Tue, 2013-10-15 at 10:08 -0400, Andrew Deason wrote: 
> On Tue, 15 Oct 2013 11:37:50 +0000
> Nicolas DEFFAYET <nicolas-ml@deffayet.com> wrote:
> 
> > I have troubles with some volumes during the vos release:
> > # vos release backups -verbose -localauth
> 
> What version of OpenAFS is 'vos'? What version is the volserver?

I use: openafs 1.6.1-3+deb7u1 amd64 (Debian Wheezy)

> > backups 
> >     RWrite: 536870926     ROnly: 536870936     Backup: 536870946
> > RClone: 536870936 
> >     number of sites -> 2
> >        server primary partition /vicepa RW Site  -- New release
> >        server secondary partition /vicepa RO Site  -- Old release
> > This is a complete release of volume 536870926
> > Cloning RW volume 536870926 to temporary RO...Failed to clone the RW
> > volume 536870926
> > Volume already exists
> > Error in vos release command.
> > Volume already exists
> 
> What's happening here is that the volserver said "volume 536870936
> doesn't exist", and when we tried to clone to volume 536870936, the
> volserver said "you can't do that, because 536870936 already exists".
> At least, that is what it means with newer versions, I'm not sure if
> various older versions are in play.
> 
> So of course, that's a little confusing. Can you run on the 'primary':
> 
> # ls -l /vicepa/V0536870936.vol
> # volinfo /vicepa 536870936

# ls -l /vicepa/V0536870936.vol
-rw-r--r-- 1 root root 76 Oct 14 13:17 /vicepa/V0536870936.vol
#

> volinfo may be in /usr/afs/bin, if you can't find it. And can you look
> in VolserLog and FileLog on "primary" to see if new messages appear when
> you try to perform the release? Can you try salvaging the volume
> 536870926 on "primary", and provide what SalvageLog says? (or SalsrvLog
> if you are running DAFS)

# volinfo /vicepa 536870936
Volinfo: Error attaching volume header V0536870936.vol
#

# bos salvage -server 127.0.0.1 -partition /vicepa -volume 536870936
-localauth
Starting salvage.
bos: salvage completed
# 

SalvageLog
---
@(#) OpenAFS 1.6.1-3+deb7u1-debian built  2013-07-25 
STARTING AFS SALVAGER 2.4 (/usr/lib/openafs/salvager /vicepa 536870936)
namei_ListAFSSubDirs: warning: VG 536870936 does not have a link table;
salvager will recreate it.
536870936 is a read-only volume; not salvaged
---


Thanks for your help


-- 
Nicolas DEFFAYET