Re: UFS Panic on 7.1 - ffs_valloc: dup alloc

2009-12-01 Thread Jaakko Heinonen
On 2009-11-30, Tom Judge wrote:
 kern/122380
 kern/133980
 
 Any ideas on a fix?

 panic: ffs_valloc: dup alloc

You may be hitting UFS2 32-bit inode limit bug. See this analysis by
Bruce Evans:

http://docs.freebsd.org/cgi/mid.cgi?20090508120355.S1497

-- 
Jaakko
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: UFS Panic on 7.1 - ffs_valloc: dup alloc

2009-12-01 Thread Tom Judge
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jaakko Heinonen wrote:
 On 2009-11-30, Tom Judge wrote:
 kern/122380
 kern/133980

 Any ideas on a fix?

 panic: ffs_valloc: dup alloc
 
 You may be hitting UFS2 32-bit inode limit bug. See this analysis by
 Bruce Evans:
 
 http://docs.freebsd.org/cgi/mid.cgi?20090508120355.S1497
 

I briefly read the information that you linked to.  It seems this is for
file systems that are very large or have strange tuning?  This is a
standard FS created by newfs with soft updates enabled.


Is either of the mentioned PR's relevant to this bug?  If so I can
submit an update.

- -- FS INFO --

df -i /usr/home
Filesystem   1K-blocks  UsedAvail Capacity iused   ifree %iused
 Mounted on
/dev/mirror/home  20308396 55764 18627962 0%   13419 26244031%
 /usr/home



dumpfs /dev/mirror/home | head -n18
magic   19540119 (UFS2) timeTue Dec  1 19:09:22 2009
superblock location 65536   id  [ 4b07e10b 31429cb7 ]
ncg 112 size10485759blocks  10154198
bsize   16384   shift   14  mask0xc000
fsize   2048shift   11  mask0xf800
frag8   shift   3   fsbtodb 2
minfree 8%  optim   timesymlinklen 120
maxbsize 16384  maxbpg  2048maxcontig 8 contigsumsize 8
nbfree  1265749 ndir3721nifree  2624403 nffree  324
bpg 11758   fpg 94064   ipg 23552   unrefs  0
nindir  2048inopb   64  maxfilesize 140806241583103
sbsize  2048cgsize  16384   csaddr  3000cssize  2048
sblkno  40  cblkno  48  iblkno  56  dblkno  3000
cgrotor 0   fmod0   ronly   0   clean   0
avgfpdir 64 avgfilesize 16384
flags   soft-updates
fsmnt   /usr/home
volname homeswuid   0


Tom

- --
TJU13-ARIN
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.13 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJLFWq6AAoJEMSwVS7lr0OdzqUIAJk4Qxq7H/Wuhefq5OSyx3UE
uZjCj59mYQm/nabr6qea9oDqXHmeqz8T0mbWxpsNElVEXVPHS5CJE6goUQYpYrGG
/XAhaT3Cq8wHJEXLHv7v7+z22VtUsVnwOfwcZUL0S0otx7xhErnjQseeWc5/i20K
ObkqaNJDhsNs7BISbBC0hKd8Ar+towcvVZlxDrX16vZucC/Vwi/08Af7bG05tgg/
03TDjrUf4w3wP31taeY4mTYaGtYibM1PMIIrXo8mjNY3LvlD290gvqi4OFQxslvU
K2IFHSQJAzsKqkJwn/wAfCTXa4wWlsjDva/I9jjsNCzN9KkypTkZaqpdT3VzLgA=
=saDl
-END PGP SIGNATURE-
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


UFS Panic on 7.1 - ffs_valloc: dup alloc

2009-11-30 Thread Tom Judge

Hi,

I had a panic today when someone created a symlink over NFS to a UFS 
file system.


There seem to be 2 open PRs on this already:

kern/122380
kern/133980

Any ideas on a fix?  I have not tried to repeat this crash but I have 
saved a snapshot of the file system so I can test if needed.  I also 
have the core file preserved.


# uname -a
FreeBSD mongo.XXX 7.1-RELEASE-p4 FreeBSD 7.1-RELEASE-p4 #0 @718:817M: 
Tue Nov 24 02:31:49 UTC 2009 
t...@dev-tj-7-1-amd64.xxx:/usr/obj/usr/src/sys/XXXv5  amd64





# kgdb /boot/kernel/kernel vmcore.0
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.

Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as amd64-marcel-freebsd...

Unread portion of the kernel message buffer:
mode = 0100600, inum = 2355296, fs = /usr/home
panic: ffs_valloc: dup alloc
cpuid = 0
Uptime: 5d13h10m53s
Physical memory: 6122 MB
Dumping 510 MB: 495 479 463 447 431 415 399 383 367 351 335 319 303 287 
271 255 239 223 207 191 175 159 143 127 111 95 79 63 47 31 15


#0  doadump () at pcpu.h:195
195 pcpu.h: No such file or directory.
in pcpu.h
(kgdb) bt
#0  doadump () at pcpu.h:195
#1  0x0004 in ?? ()
#2  0x8048e079 in boot (howto=260) at 
/usr/src/sys/kern/kern_shutdown.c:418
#3  0x8048e482 in panic (fmt=0x104 Address 0x104 out of 
bounds) at /usr/src/sys/kern/kern_shutdown.c:574

#4  0x80607752 in ffs_valloc (pvp=Variable pvp is not available.
) at /usr/src/sys/ufs/ffs/ffs_alloc.c:968
#5  0x8063104e in ufs_makeinode (mode=41453, 
dvp=0xff001d954dc8, vpp=0xb48e28a8, cnp=0xb48e28d0) 
at /usr/src/sys/ufs/ufs/ufs_vnops.c:2254
#6  0x8063153f in ufs_symlink (ap=0xb48e29a0) at 
/usr/src/sys/ufs/ufs/ufs_vnops.c:1831
#7  0x80737fe3 in VOP_SYMLINK_APV (vop=Variable vop is not 
available.

) at vnode_if.c:1351
#8  0x805b8f38 in nfsrv_symlink (nfsd=0xff0065996100, 
slp=0xff00035e6e00, td=0xff00041886e0, mrq=0xb48e2b00) 
at vnode_if.h:712

#9  0x805b in nfssvc (td=Variable td is not available.
) at /usr/src/sys/nfsserver/nfs_syscalls.c:456
#10 0x806d7fa7 in syscall (frame=0xb48e2c80) at 
/usr/src/sys/amd64/amd64/trap.c:907
#11 0x806be06b in Xfast_syscall () at 
/usr/src/sys/amd64/amd64/exception.S:330

#12 0x000800687bfc in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb) frame 4
#4  0x80607752 in ffs_valloc (pvp=Variable pvp is not available.
) at /usr/src/sys/ufs/ffs/ffs_alloc.c:968
968 panic(ffs_valloc: dup alloc);
(kgdb) list
963 }
964 ip = VTOI(*vpp);
965 if (ip-i_mode) {
966 printf(mode = 0%o, inum = %lu, fs = %s\n,
967 ip-i_mode, (u_long)ip-i_number, fs-fs_fsmnt);
968 panic(ffs_valloc: dup alloc);
969 }
970 if (DIP(ip, i_blocks)  (fs-fs_flags  FS_UNCLEAN) == 0) {  
/* XXX */
971 printf(free inode %s/%lu had %ld blocks\n,
972 fs-fs_fsmnt, (u_long)ino, (long)DIP(ip, i_blocks));
(kgdb)


___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org