I compiled openafs-1.2.6 on AIX 4.3.3 with the --enable-namei-fileserver flag. While the fileserver itself seems to be working, running salvager destroys the data. The underlying /vicepa filesystem is a standard JFS created by AIX 4.3.3.
Any ideas what might be going wrong would be highly appreciated. Below is a demonstration of the problem, which occurs even on a newly created, empty volume. Interestingly enough, no visible files in /vicepa are deleted, nor does the number of used inodes change during the run of salvager. Nevertheless, the volume is no longer accessible. With actual data in the volume, I have even seen the fileserver refuse to attach the volume at all after salvaging. # find /vicepa /vicepa /vicepa/lost+found /vicepa/Lock /vicepa/Lock/vicepa /vicepa/AFSIDat /vicepa/AFSIDat/README # df /vicepa Filesystem 512-blocks Free %Used Iused %Iused Mounted on /dev/lv02 262144 253808 4% 21 1% /vicepa # vos create vorab /vicepa test Volume 536870986 created on partition /vicepa of vorab # find /vicepa /vicepa /vicepa/lost+found /vicepa/Lock /vicepa/Lock/vicepa /vicepa/AFSIDat /vicepa/AFSIDat/README /vicepa/AFSIDat/8= /vicepa/AFSIDat/8=/8=++U /vicepa/AFSIDat/8=/8=++U/special /vicepa/AFSIDat/8=/8=++U/special/zzzz5 /vicepa/AFSIDat/8=/8=++U/special/zzzz9 /vicepa/AFSIDat/8=/8=++U/special/zzzzD /vicepa/AFSIDat/8=/8=++U/special/zzzzP /vicepa/AFSIDat/8=/8=++U/+ /vicepa/AFSIDat/8=/8=++U/+/+ /vicepa/AFSIDat/8=/8=++U/+/+/= /vicepa/V0536870986.vl # df /vicepa Filesystem 512-blocks Free %Used Iused %Iused Mounted on /dev/lv02 262144 253720 4% 32 1% /vicepa # fs mkm /afs/.t/test test # ls -ld /afs/.t/test drwxrwxrwx 2 root system 2048 Aug 27 17:36 /afs/.t/test # bos salvage vorab /vicepa Note: Operation is performed on cell test.zurich.ibm.com bos: shutting down fs. Starting salvage. bos: salvage completed bos: restarting fs. # bos getlog vorab SalvageLog Fetching log file 'SalvageLog'... Note: Operation is performed on cell test.zurich.ibm.com @(#) OpenAFS 1.2.6 built 2002-08-21 08/27/2002 17:37:31 STARTING AFS SALVAGER 2.4 (/usr/afs/bin/salvager -f /vicepa) 08/27/2002 17:37:31 SALVAGING FILE SYSTEM PARTITION /vicepa (device=vicepa) 08/27/2002 17:37:31 ***Forced salvage of all volumes on this partition*** 08/27/2002 17:37:32 SALVAGING VOLUME 536870986. 08/27/2002 17:37:32 test (536870986) not updated (created 08/27/2002 17:36) 08/27/2002 17:37:32 Vnode 1: vnode.unique, 1, does not match inode unique, 0; fixed, but status will be wrong 08/27/2002 17:37:32 Vnode 1: link count incorrect (was 2, now 0) 08/27/2002 17:37:32 Salvaged test (536870986): 1 files, 2 blocks 08/27/2002 17:37:32 SALVAGING OF PARTITION /vicepa COMPLETED # bos getlog vorab FileLog Fetching log file 'FileLog'... Note: Operation is performed on cell test.zurich.ibm.com Tue Aug 27 17:37:36 2002 File server starting Tue Aug 27 17:37:37 2002 afs_krb_get_lrealm failed, using test.zurich.ibm.com. Tue Aug 27 17:37:37 2002 Partition /vicepa: attached 1 volumes; 0 volumes not attached Tue Aug 27 17:37:37 2002 Getting FileServer name... Tue Aug 27 17:37:37 2002 FileServer host name is 'vorab.zurich.ibm.com' Tue Aug 27 17:37:37 2002 Getting FileServer address... Tue Aug 27 17:37:37 2002 FileServer vorab.zurich.ibm.com has address 9.4.3.252 (0x90403fc or 0x90403fc in host byte order) Tue Aug 27 17:37:37 2002 File Server started Tue Aug 27 17:37:37 2002 # find /vicepa /vicepa /vicepa/lost+found /vicepa/Lock /vicepa/Lock/vicepa /vicepa/AFSIDat /vicepa/AFSIDat/README /vicepa/AFSIDat/8= /vicepa/AFSIDat/8=/8=++U /vicepa/AFSIDat/8=/8=++U/special /vicepa/AFSIDat/8=/8=++U/special/zzzz5 /vicepa/AFSIDat/8=/8=++U/special/zzzz9 /vicepa/AFSIDat/8=/8=++U/special/zzzzD /vicepa/AFSIDat/8=/8=++U/special/zzzzP /vicepa/AFSIDat/8=/8=++U/+ /vicepa/AFSIDat/8=/8=++U/+/+ /vicepa/AFSIDat/8=/8=++U/+/+/= /vicepa/V0536870986.vl # ls -ld /afs/.t/test ls: 0653-341 The file /afs/.t/test does not exist. # df /vicepa Filesystem 512-blocks Free %Used Iused %Iused Mounted on /dev/lv02 262144 253720 4% 32 1% /vicepa -- Michael Niksch /Zurich/IBM @ IBMCH IBM Zurich Research Laboratory [EMAIL PROTECTED] Saeumerstrasse 4 http://www.zurich.ibm.com/~nik/ CH-8803 Rueschlikon / Switzerland P: +41-1-724-8913 F: +41-1-724-8080 _______________________________________________ OpenAFS-devel mailing list [EMAIL PROTECTED] https://lists.openafs.org/mailman/listinfo/openafs-devel
