Bug 150501 - [zfs] ZFS vdev failure vdev.bad_label on amd64
Summary: [zfs] ZFS vdev failure vdev.bad_label on amd64
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-12 14:10 UTC by William FRANCK
Modified: 2017-12-31 22:32 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description William FRANCK 2010-09-12 14:10:02 UTC
ZFS unusable just after a zpool scrub command.

Symptoms :
zpool scrub command hangs.

no way to halt the system, still a PID running
no way to kill -9 zpool

Environment : AMD64 MSI K6N SLI motherboard.
 
# atacontrol list
==========
ATA channel 0:
    Master:  ad0 <ST340016A/3.10> ATA/ATAPI revision 5
    Slave:   ad1 <ST3120022A/3.06> ATA/ATAPI revision 6
ATA channel 2:
    Master:  ad4 <ST3750330AS/SD1A> SATA revision 1.x
ATA channel 4:
    Master:  ad8 <ST3750330AS/SD1A> SATA revision 1.x

# cat /boot/loader.conf
===========
zfs_load="YES"   		# ZFS
zpool_cache_type="/boot/zfs/zpool.cache"
vfs.zfs.zil_disable="1"  # !! avoid conflict between  ZFS and NFS risk of data consistency ??
vfs.zfs.prefetch_disable="1"  #Prefetch is disabled by default if less than 4GB of RAM is present;
### specific amd64 with 2MB of RAM ###
vm.kmem_size="1024M"
vm.kmem_size_max="1024M"
vfs.zfs.arc_max="100M"


After creating the ZFS Pool :
# zpool status
pool: tank
 state: ONLINE
 scrub: none requested
config:
	NAME           STATE     READ WRITE CKSUM
	tank           ONLINE       0     0     0
	  label/sata4  ONLINE       0     0     0
	  label/sata8  ONLINE       0     0     0
errors: No known data errors

How-To-Repeat: with 2 same SATA disks : ad4 , ad8
with or without geom labeling,
with or without AHCI enabled (bios setting)
do the following : 

# dd if=/dev/zero of=/dev/ad4 bs=1m count=1
# dd if=/dev/zero of=/dev/ad8 bs=1m count=1
optional : 
# glabel label sata4 /dev/ad4
# glabel label sata8 /dev/ad8

# zpool create tank [mirror | raidz]? [ label/sata4 | ad4]  [ label/sata8 | ad8]  
# zpool status
result is correct.

# zpool scrub tank
No  output.
# zpool scrub tank
... hangs ...
Output on console : 
ZFS: vdev failure, zpool=tank type=vdev.bad_label
Comment 1 wfr 2010-09-12 18:09:07 UTC
ZFS v4
ZPool v15
Motherboard MSI K9N-SLI with SATA 3Gb through nVIDIA=AE nForce 570 SLI  =
chipset
CPU Athlon 6000+ (2 CPU)=
Comment 2 william.franck 2010-09-13 08:38:32 UTC
Guess has to do with the nVidia 570 SLI chipset SATA300 and/or MCP55


All of us with nVidia 570 SLI have the SATA not foolish !
	http://forums.freebsd.org/showthread.php?t=4574
	http://forums.freebsd.org/showthread.php?t=5286   (mcp55 ; nVidia 8200)
	http://forums.freebsd.org/showthread.php?t=2915  (mcp55 ; nVidia nForce4 )
	(... and others ...)


see : 
	http://www.freebsd.org/cgi/query-pr.cgi?pr=120296
	http://www.freebsd.org/cgi/query-pr.cgi?pr=121396
	http://www.freebsd.org/cgi/query-pr.cgi?pr=150501
	http://www.freebsd.org/cgi/query-pr.cgi?pr=150503


Could you please forward to the right person ?
Thanks a lot,

William
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2010-09-17 09:11:22 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-fs

Over to maintainer(s).
Comment 4 Martin Matuska freebsd_committer freebsd_triage 2011-07-18 12:54:41 UTC
Any news on this issue? Does is still happen with v28 and latest
8-STABLE or 9-CURRENT?

-- 
Martin Matuska
FreeBSD committer
http://blog.vx.sk
Comment 5 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:58:56 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped