RE[3]: [OpenAFS] vos command error while creating first AFS volume on Tru64 5.1A

Jean-Pierre Vorlet Jean-Pierre.Vorlet@unifr.ch
Tue, 16 Apr 2002 10:28:45 MET_DST


>Jean-Pierre Vorlet <Jean-Pierre.Vorlet@unifr.ch> writes:
>
>> >could you exec the following command also:
>> ># vos parti <server>
>> 
>> 1) List partitions:
>> 
>> $ ./vos listpar siuf.unifr.ch -noauth              
>> The partitions on the server are:
>>     /vicepa 
>> Total: 1
>
>In other words, the fileserver has found and attached to the partition.
>
>> But still no idea why the "./vos create" command return I/O error !
>
>Ok, here's a discusting advice, which has helped me occationaly. If you
>unmount the filesystem and then dd zeros to the first megabyte or so of the
>partition, and then create a new filesystem, it might work. I've seen this
>work a few times, but every time I've seen it I've been too much in a hurry
>to debug it :(
>
>Before you try this you may want to look in the logs and possibly turn
>debugging on in the volserver (send signal TSTP to the volserver process a
>couple of times) and try to create a volume. Then please send the output
>from that here. /usr/afs/logs/VolserLog is the relevant logfile, as Derrick
>said.
>
>Typical dd command is:
>
>dd if=/dev/zero of=/dev/rdsk/dsk1c bs=1024k count=1
>
>Make sure you do it on the correct device :)
>
>/mattiasa

No good news at all:

1) $ umount /vicepa
2) dd if=/dev/zero of=/dev/rdisk/dsk1c bs=1024k count=10
   dd write error: Read-only file system
   1+0 records in
   0+0 records out
3) $ dd if=/dev/zero of=/dev/disk/dsk1c bs=1024k count=10
   10+0 records in
   10+0 records out
4) $ newfs /dev/disk/dsk1c
   Warning: /dev/rdisk/dsk1c is marked in use for 4.2BSD in the disklabel.
   If you continue with the operation you can 
   possibly destroy existing data.
   CONTINUE? [y/n] y
   Warning: 2048 sector(s) in last cylinder unallocated
   /dev/rdisk/dsk1c: 8378368 sectors in 2046 cylinders of 128 tracks, 32 sectors
    4091.0MB in 128 cyl groups (16 c/g, 32.00MB/g, 7680 i/g)
   super-block backups (for fsck -b #) at:
    32, 65600, 131168, 196736, 262304, 327872, 393440, 459008,
    524576, 590144, 655712, 721280, 786848, 852416, 917984, 983552,
    1049120, 1114688, 1180256, ....
5) $ mount -av -t ufs
   /dev/disk/dsk1c on /vicepa type ufs (rw)
6) $ ./vos create siuf.unifr.ch /vicepa root.afs -cell unifr.cht -noauth
   Failed to create the volume root.afs 536870993 
   : I/O error
   Error in vos create command.
   : I/O error

As you can see, same result. The "vos create" command does not work !!

Content of the Volserver log file (/usr/afs/logs/VolserLog):

Tue Apr 16 10:20:49 2002 Starting AFS Volserver 2.0 (/usr/afs/bin/volserver)    
Tue Apr 16 10:20:51 2002 VCreateVolume: Header file /vicepa/V0536870996.vol alre
ady exists!                                                                     
Tue Apr 16 10:20:51 2002 1 Volser: CreateVolume: Unable to create the volume; ab
orted, error code 104                                                           
Tue Apr 16 10:20:51 2002 : Error 104 occurred.                                  


I have no idea what the problem is. Any help is appreciated...
------------------------------------------------------------------
Jean-Pierre Vorlet   Jean-Pierre.Vorlet@unifr.ch   +41 26 300 7218
 System Manager      University of Fribourg            Switzerland