Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zfs still appears to respond incorrectly to failed writes #52

Closed
rincebrain opened this issue Aug 13, 2010 · 4 comments
Closed

zfs still appears to respond incorrectly to failed writes #52

rincebrain opened this issue Aug 13, 2010 · 4 comments

Comments

@rincebrain
Copy link
Contributor

On 2.6.32-24-generic, Ubuntu AMD64, with latest Git as of right now (commit b5c254b...d5fd), I've experienced a fascinating behavior which occurred in slightly different conditions before.

I've got 7 disks in 7 zpools, named disk1 through disk7.

I have 7 zvols, unoriginally named d1 through d7, composed of the entirety of space available on disk[1-7], respectively.

I've assembled these 7 zvols into an MD RAID-6, made a filesystem on it, and began writing data.

I pulled disk 2 physically. Unfortunately, it appears the controller these disks are plugged into is poor at detecting such things, and only reports failed writes, not that the device is really gone.

zfs, in turn, appears to block forever on expecting writes to succeed to the device eventually, and thus doesn't mark the disk as faulted, thus not marking the pool as ..., thus ... zvol as ..., thus not informing md, thus causing all of the above to block...forever.

Reinserting the disk doesn't do the correct thing, presumably because the controller doesn't notice. It's quite a dumb controller, and I agree it's not entirely representative of what a real, modern controller will do (it's an Adaptec AHA-2940W - isn't old kit wonderful{, ly inadequate}), but I was using it to test prior to attempting such a configuration with modern drives on a modern SATA controller. That said, I don't think the correct behavior is for ZFS to block forever in kernelspace and never give up, and thereby cause anything based on the zvol to cry horrible tears of blood as it, too, blocks forever.

Shortly to be attached is the complete dmesg of the system in question. (the ata hard resets are me using a horrible bash script to force a manual reprobe of all SCSI busses on the machine, which caused no change).

@rincebrain
Copy link
Contributor Author

Oh, right, I never figured out if this had any form of attachment.

http://rincebrain.org/lol_zfs.log

@behlendorf
Copy link
Contributor

Thanks for the bug report and testing. I'm hopeful that in the next few months we'll be able to devote some time to improving the situation so this sort of thing is handled better. I suspect we may need to do some device driver work to get this exactly right so your mileage may vary if your using different hardware than us. But we'll do what we can.

As for adding attachments, the thing to do on GitHub I think is to create a public gist http://gist.github.com and then simply link it from the bug report.

@behlendorf
Copy link
Contributor

Rincebrain, the latest git code should handle various failure modes better. I haven't tested the case you describe but there is now a zfault.sh regression suite which does validate several of the most common failure modes. Everything is working well for me, but there are still a few false positive in the test suite.

@behlendorf
Copy link
Contributor

Rincebrain I'm closing this issue because I've recently done quite a bit of failure testing and it's working well for me. I didn't try your exact setup but if you continue to have issues with the latest release please open a new bug with the details.

dajhorn referenced this issue in zfsonlinux/pkg-zfs Dec 14, 2011
Prior to Linux 3.1 the kern_path_parent symbol was exported for
use by kernel modules.  As of Linux 3.1 it is now longer easily
available.  To handle this case the spl will now dynamically
look up address of the missing symbol at module load time.

Signed-off-by: Brian Behlendorf <[email protected]>
Issue #52
dajhorn referenced this issue in zfsonlinux/pkg-zfs Dec 14, 2011
Preferentially use the vfs_fsync() function.  This function was
initially introduced in 2.6.29 and took three arguments.  As
of 2.6.35 the dentry argument was dropped from the function.
For older kernels fall back to using file_fsync() which also
took three arguments including the dentry.

Signed-off-by: Brian Behlendorf <[email protected]>
Issue #52
dajhorn referenced this issue in zfsonlinux/pkg-zfs Dec 14, 2011
As of Linux 3.1 the shrink_dcache_memory and shrink_icache_memory
functions have been removed.  This same task is now accomplished
more cleanly with per super block shrinkers.  This unfortunately
leaves us no easy way to support the dnlc_reduce_cache() function.

This support has always been entirely optional.  So when no
reasonable interface is available allow the dnlc_reduce_cache()
function to effectively become a no-op.

The downside of this change is that it will prevent the zfs arc
meta data limts from being enforced.  However, the current zfs
implementation in this regard is already flawed and needs to
be reworked.  If the arc needs to enfore a meta data limit it
will need to be extended to coordinate directly with the zpl.
This will allow us to drop all this compatibility code and get
more fine grained control over the cache management.

Signed-off-by: Brian Behlendorf <[email protected]>
Issue #52
akatrevorjay added a commit to akatrevorjay/zfs that referenced this issue Dec 16, 2017
# This is the 1st commit message:
Merge branch 'master' of https://github.com/zfsonlinux/zfs

* 'master' of https://github.com/zfsonlinux/zfs:
  Enable QAT support in zfs-dkms RPM

# This is the commit message openzfs#2:

Import 0.6.5.7-0ubuntu3

# This is the commit message openzfs#3:

gbp changes

# This is the commit message openzfs#4:

Bump ver

# This is the commit message openzfs#5:

-j9 baby

# This is the commit message openzfs#6:

Up

# This is the commit message openzfs#7:

Yup

# This is the commit message openzfs#8:

Add new module

# This is the commit message openzfs#9:

Up

# This is the commit message openzfs#10:

Up

# This is the commit message openzfs#11:

Bump

# This is the commit message openzfs#12:

Grr

# This is the commit message openzfs#13:

Yay

# This is the commit message openzfs#14:

Yay

# This is the commit message openzfs#15:

Yay

# This is the commit message openzfs#16:

Yay

# This is the commit message openzfs#17:

Yay

# This is the commit message openzfs#18:

Yay

# This is the commit message openzfs#19:

yay

# This is the commit message openzfs#20:

yay

# This is the commit message openzfs#21:

yay

# This is the commit message openzfs#22:

Update ppa script

# This is the commit message openzfs#23:

Update gbp conf with br changes

# This is the commit message openzfs#24:

Update gbp conf with br changes

# This is the commit message openzfs#25:

Bump

# This is the commit message openzfs#26:

No pristine

# This is the commit message openzfs#27:

Bump

# This is the commit message openzfs#28:

Lol whoops

# This is the commit message openzfs#29:

Fix name

# This is the commit message openzfs#30:

Fix name

# This is the commit message openzfs#31:

rebase

# This is the commit message openzfs#32:

Bump

# This is the commit message openzfs#33:

Bump

# This is the commit message openzfs#34:

Bump

# This is the commit message openzfs#35:

Bump

# This is the commit message openzfs#36:

ntrim

# This is the commit message openzfs#37:

Bump

# This is the commit message openzfs#38:

9

# This is the commit message openzfs#39:

Bump

# This is the commit message openzfs#40:

Bump

# This is the commit message openzfs#41:

Bump

# This is the commit message openzfs#42:

Revert "9"

This reverts commit de488f1.

# This is the commit message openzfs#43:

Bump

# This is the commit message openzfs#44:

Account for zconfig.sh being removed

# This is the commit message openzfs#45:

Bump

# This is the commit message openzfs#46:

Add artful

# This is the commit message openzfs#47:

Add in zed.d and zpool.d scripts

# This is the commit message openzfs#48:

Bump

# This is the commit message openzfs#49:

Bump

# This is the commit message openzfs#50:

Bump

# This is the commit message openzfs#51:

Bump

# This is the commit message openzfs#52:

ugh

# This is the commit message openzfs#53:

fix zed upgrade

# This is the commit message openzfs#54:

Bump

# This is the commit message openzfs#55:

conf file zed.d

# This is the commit message #56:

Bump
anodos325 added a commit to anodos325/zfs that referenced this issue May 16, 2022
Add ACL_IS_TRIVIAL and ACL_IS_DIR flags as ACL-wide flags
in the system.nfs4_acl_xdr generated on getxattr requests.

This are non-RFC flags that are useful for userspace applications
(especially the ACL_IS_TRIVIAL flag as it can be used to avoid
relatively expensive ACL-related operations).

Also add system.nfs4_acl_xdr to xattr results if ACL is not trivial.
This duplicates POSIX ACL behavior where whether an ACL is
set on a path can be determined via listxattr(). Since the ACL
is not actually removed, we check whether the ZFS_ACL_TRIVIAL
is set. If the flag is not set, then we omit the xattr name from
the list. This allows users to determine whether ACL is trivial from
listxattr().

Signed-off-by: Andrew Walker <[email protected]>
ixhamza pushed a commit to ixhamza/zfs that referenced this issue Nov 15, 2023
Add ACL_IS_TRIVIAL and ACL_IS_DIR flags as ACL-wide flags
in the system.nfs4_acl_xdr generated on getxattr requests.

This are non-RFC flags that are useful for userspace applications
(especially the ACL_IS_TRIVIAL flag as it can be used to avoid
relatively expensive ACL-related operations).

Also add system.nfs4_acl_xdr to xattr results if ACL is not trivial.
This duplicates POSIX ACL behavior where whether an ACL is
set on a path can be determined via listxattr(). Since the ACL
is not actually removed, we check whether the ZFS_ACL_TRIVIAL
is set. If the flag is not set, then we omit the xattr name from
the list. This allows users to determine whether ACL is trivial from
listxattr().

Signed-off-by: Andrew Walker <[email protected]>
arter97 pushed a commit to arter97/zfs that referenced this issue Nov 23, 2023
Add ACL_IS_TRIVIAL and ACL_IS_DIR flags as ACL-wide flags
in the system.nfs4_acl_xdr generated on getxattr requests.

This are non-RFC flags that are useful for userspace applications
(especially the ACL_IS_TRIVIAL flag as it can be used to avoid
relatively expensive ACL-related operations).

Also add system.nfs4_acl_xdr to xattr results if ACL is not trivial.
This duplicates POSIX ACL behavior where whether an ACL is
set on a path can be determined via listxattr(). Since the ACL
is not actually removed, we check whether the ZFS_ACL_TRIVIAL
is set. If the flag is not set, then we omit the xattr name from
the list. This allows users to determine whether ACL is trivial from
listxattr().

Signed-off-by: Andrew Walker <[email protected]>
ixhamza pushed a commit to ixhamza/zfs that referenced this issue Jun 13, 2024
Add ACL_IS_TRIVIAL and ACL_IS_DIR flags as ACL-wide flags
in the system.nfs4_acl_xdr generated on getxattr requests.

This are non-RFC flags that are useful for userspace applications
(especially the ACL_IS_TRIVIAL flag as it can be used to avoid
relatively expensive ACL-related operations).

Also add system.nfs4_acl_xdr to xattr results if ACL is not trivial.
This duplicates POSIX ACL behavior where whether an ACL is
set on a path can be determined via listxattr(). Since the ACL
is not actually removed, we check whether the ZFS_ACL_TRIVIAL
is set. If the flag is not set, then we omit the xattr name from
the list. This allows users to determine whether ACL is trivial from
listxattr().

Signed-off-by: Andrew Walker <[email protected]>
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants