NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/51740: mount -o discard considered harmfull



>Number:         51740
>Category:       kern
>Synopsis:       mount -o discard considered harmfull
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 24 13:35:00 +0000 2016
>Originator:     Martin Husemann
>Release:        NetBSD 7.99.52
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD whoever-brings-the-night.aprisoft.de 7.99.52 NetBSD 7.99.52 (WHOEVER) #63: Sat Dec 24 12:05:18 CET 2016 martin%martins.aprisoft.de@localhost:/ssd/src/sys/arch/sparc64/compile/WHOEVER sparc64
Architecture: sparc64
Machine: sparc64
>Description:

For some currently unknown reasons discard operations fail on a new ssd drive
I am trying to populate. This leads to catastrophic file system inconsistencies.

siisata0 at pci0 dev 2 function 0: CMD Technology SiI3124 SATALink (rev. 0x02)
siisata0: interrupting at ivec 700
siisata0: SiI3124, 3.0Gb/s
siisata0: 32-bit 66MHz PCI
atabus0 at siisata0 channel 0
atabus1 at siisata0 channel 1
atabus2 at siisata0 channel 2
atabus3 at siisata0 channel 3
wd0 at atabus3 drive 0
wd0: <TS256GSSD340>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 238 GB, 496149 cyl, 16 head, 63 sec, 512 bytes/sect x 500118192 sectors
wd0: no disk label
wd0: GPT GUID: f0d19f87-9846-4d92-ac0d-5ea1dd01eccd
dk0 at wd0: "sb2k5 swap", 50331648 blocks at 36, type: swap
dk1 at wd0: "sb2k5 root", 449786472 blocks at 50331684, type: ffs


[/home/martin] whoever-brings-the-night # newfs dk1
/dev/rdk1: 219622.3MB (449786472 sectors) block size 32768, fragment size 4096
        using 297 cylinder groups of 739.50MB, 23664 blks, 47104 inodes.
super-block backups (for fsck_ffs -b #) at:
64, 1514560, 3029056, 4543552, 6058048, 7572544, 9087040, 10601536, 12116032,
...............................................................................
[/home/martin] whoever-brings-the-night # mount -o async,discard /dev/dk1 /mnt
[/home/martin] whoever-brings-the-night # cd /mnt
[/mnt] whoever-brings-the-night # tar xpzf /tmp/etc.tgz 
siisata0: fatal error 5 on channel 3 (ctx 0x500c361b), resetting
wd0: wd_trim: status=0xaa<ERROR>
siisata0: fatal error 5 on channel 3 (ctx 0x400c361b), resetting
wd0: wd_trim: status=0xaa<ERROR>
siisata0: fatal error 5 on channel 3 (ctx 0x400c361b), resetting
wd0: wd_trim: status=0xaa<ERROR>
siisata0: fatal error 5 on channel 3 (ctx 0x400c361b), resetting
wd0: wd_trim: status=0xaa<ERROR>
siisata0: fatal error 5 on channel 3 (ctx 0x400c361b), resetting
wd0: wd_trim: status=0xaa<ERROR>
siisata0: fatal error 5 on channel 3 (ctx 0x400c361b), resetting
0anic: fwdf0s_: nwewdv_ntordime::  sdtupat uals=lo0xc aian<Eo=R2RO82R8>8
  on /mnt: mode dead/dead gen 326bd21a/326bd21a size 0 blocks 0
Stopped in pid 71.1 (tar) at    netbsd:cpu_Debugger+0x4:        nop
db{0}> bt
db{0}> show panic
Panic string: ffs_newvnode: dup alloc ino=282880 on /mnt: mode dead/dead gen 326
bd21a/326bd21a size 0 blocks 0



>How-To-Repeat:
s/a

>Fix:
n/a



Home | Main Index | Thread Index | Old Index