Bug 435358
| Summary: | iscsi root device never gets fscked when there's an i/o error | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | James Laska <jlaska> |
| Component: | initscripts | Assignee: | initscripts Maintenance Team <initscripts-maint-list> |
| Status: | CLOSED ERRATA | QA Contact: | Brock Organ <borgan> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 5.2 | CC: | esandeen, jturner, k.georgiou, pjones |
| Target Milestone: | beta | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | RHBA-2008-0443 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2008-05-21 17:24:15 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 435716, 435717, 435722 | ||
|
Description
James Laska
2008-02-28 20:26:54 UTC
This isn't really anything new - this would be the case even in 5.0 GA if you have a network root block device (iSCSI, GFS2, NBD) - they would all run into this issue. Possible solutions, of varying quality: - Remove _netdev from fstab for /. This would, however, break shutdown. (Obviously bad.) - Remove the case from rc.sysinit so that _netdev devices are fscked. This would, however, break booting with *any* non-root network block devices, as they wouldn't be found when fsck runs, including existing installations. (Also, obviously bad.) - Run fsck on / from the initrd. *ducks* - Introduce Yet Another Magic Flag, honored by shutdown as 'root is a network device', but different from _netdev so it would be fscked. Would be a rather ridiculous hack, but may work. As for introducing Yet Another Magic flag - _netdev is handled specifically by mount(8) - so if we went that route to fix, it would require changes to (at a minimum) initscripts, anaconda, and util-linux. Another alternative is root-causing why fsck from netfs fails for /, and fixing that issue. notting: I'm not sure how that'll help -- the fs is already failed to RO mode by the kernel at that point, and can't ever be put back in RW mode. At any rate, I'm pretty sure the reason netfs doesn't work is that /var/lock/subsys/netfs is still present. (In reply to comment #6) > At any rate, I'm pretty sure the reason netfs doesn't work is that > /var/lock/subsys/netfs is still present. Oh, right. And at that point you can't get to the FS to fix it and behave reliably. So we're back to the add-another-flag hack. Just to document some of the stuff pjones & I looked at.... for the -t option to fsck, "opt=" and "noopt=" options are specified as comma-delimited, including the "opt/noopt" part. i.e. -t opt=foo,noopt=bar And they are cumulative; a filesystem must match each option (or no-option) specification to be checked. Above, only filesystems with option foo *and* without option bar will be checked. ... although at this point I guess it looks like we won't need to combine the option specifiers in this way... but just in case. -Eric 8.45.19.EL-1 built. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2008-0443.html cmake-2.4.8-2.fc8 has been submitted as an update for Fedora 8 |