Bug 240570
| Summary: | Can't mount GFS file system on AoE device | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Nate Straz <nstraz> | ||||
| Component: | gfs-kmod | Assignee: | Robert Peterson <rpeterso> | ||||
| Status: | CLOSED ERRATA | QA Contact: | GFS Bugs <gfs-bugs> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 5.0 | ||||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | RHBA-2007-0577 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2007-11-07 20:06:53 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: | |||||||
| Attachments: |
|
||||||
|
Description
Nate Straz
2007-05-18 14:43:13 UTC
I was able to mount a GFS file system if I use LVM2 between the AoE device and the file system. The problem is that the aoe driver puts a "/" in the name it assigns to its gendisk disk_name. GFS takes this gendisk name as the fs name when no fs name was provided by mkfs (nolock doesn't require an fs name). And gfs then uses this fs name as a sysfs directory name which fails because "/" is an invalid character for a file name. A quick work-around is to provide a table name (anything) when running gfs_mkfs -p lock_nolock. Real fix is for gfs to sanitize the fs name if it takes it from the vfs (after table = sdp->sd_vfs->s_id in init_names()). Should sdp->sd_vfs->s_id be a valid filename? Perhaps the AoE driver storing an invalid s_id? All of the files in /sys/block look like "etherd!e1.1" Created attachment 157338 [details]
patch to fix the problem
Patch tested on trin-10 by editing the lock table.
This is ready to ship; I just need some ack flags now.
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release. Fix committed to HEAD and RHEL5 branches of CVS. Changing status to modified. 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-2007-0577.html Moving all closed bugs to gfs-kmod to match the rpm name. GFS-kernel will be removed. |