[OpenAFS] HP-UX namei fileserver

Stephen Pearson stephen@hplb.hpl.hp.com
08 Jul 2004 16:37:13 +0100


I'm trying to get the namei fileserver to work on hp-ux 11i (64bit).
I built using '--enable-namei-fileserver' and it seemed to build ok,
although I did need to include an flock wrapper to lockf (hp-ux
doesn't have flock) and I had to change all the u_int64_t to
uint_64_t.  I'm using openafs-1.2.11 and the HP ansic compiler.

Initially afsd caused the kernel to panic as soon as it started.  I'm
not too concerned by this though because I only really want the
fileserver/volserver and I'm already running the db servers and the
client on a Linux host.  I removed afsd and tried again.

Most things appear to work.  I can create and mount volumes and I can
vos move a volume from a Linux fileserver to the hp-ux fileserver.
However, when I try to move a volume away from the hp-ux fileserver
it fails and corrupts the volume:

vos move -id user.stephen -fromserver afs-br1 -frompartition a
-toserver afsmaster-br1 -topartition a
Failed to clone the source volume 536870925
   Volume needs to be salvaged
vos move: operation interrupted, cleanup in progress...
clear transaction contexts
move incomplete - attempt cleanup of target partition - no guarantee
cleanup complete - user verify desired result

.. and in the VolserLog on afs-br1 (hp-ux):

Thu Jul  8 11:16:59 2004 Starting AFS Volserver 2.0
(/usr/afs/bin/volserver)
Thu Jul  8 11:21:03 2004 1 Volser: CreateVolume: volume 536870925
(user.stephen) created
Thu Jul  8 11:41:34 2004 VAttachVolume: Error reading smallVnode vol
header
/vicepa/V0536870928.vl; error=101
Thu Jul  8 11:41:34 2004 VAttachVolume: Error attaching volume
/vicepa/V0536870928.vl; volume needs salvage; error=101
Thu Jul  8 11:41:34 2004 1 Volser: Clone: Couldn't create new volume;
clone
aborted
Thu Jul  8 11:41:34 2004 VAttachVolume: Error reading namei vol header
/vicepa/V0536870925.vl; error=101
Thu Jul  8 11:41:34 2004 VAttachVolume: Error attaching volume
/vicepa/V0536870925.vl; volume needs salvage; error=101
Thu Jul  8 11:41:34 2004 VAttachVolume: Error reading smallVnode vol
header
/vicepa/V0536870928.vl; error=101
Thu Jul  8 11:41:34 2004 VAttachVolume: Error attaching volume
/vicepa/V0536870928.vl; volume needs salvage; error=101


.. which means nothing to me!  The salvager can't help; it runs
without error, but the volume is still corrupted.  The only
way to clean up the partition is to trash it and start again.

-- 
[(hp)]   : Stephen Pearson <stephen@hp.com>
invent   : RIT Platforms, HP Labs Bristol, UK