View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006101 | CentOS-6 | autofs | public | 2012-11-27 19:05 | 2012-11-27 19:05 |
Reporter | allpoints | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | new | Resolution | open | ||
Product Version | 6.3 | ||||
Summary | 0006101: autofs attempts to mount locally exported NFSv4 file systems using bind mount | ||||
Description | Bind mounting local exports works for NFSv3 as the local path can be determined from the NFS arguments. However, NFSv4 exports a virtual file tree. The automounter can not correctly determine which local directory to bind mount at the target location. It would appear previous versions of autofs respected the "-fstype=nfs4" configuration. (See https://bugzilla.redhat.com/show_bug.cgi?id=153670) Note: As a work-around, specifying the NFS port in the map file causes the automounter to do the right thing. I expect the fix here is to add (restore?) a similar check for "nfs4". | ||||
Steps To Reproduce | Setup a server to export home directories from /export/home and configure autofs to mount those home directories under /home. See the attached configuration files. The automounter will attempt to bind mount /home/username to /home/username. This is obviously a problem. See the attached debug output. | ||||
Tags | No tags attached. | ||||
DebugOutput.txt (2,296 bytes)
Nov 26 19:45:30 bogushost automount[1100]: handle_packet: type = 3 Nov 26 19:45:30 bogushost automount[1100]: handle_packet_missing_indirect: token 12, name testuser, request pid 1282 Nov 26 19:45:30 bogushost automount[1100]: attempting to mount entry /home/testuser Nov 26 19:45:30 bogushost automount[1100]: lookup_mount: lookup(file): looking up testuser Nov 26 19:45:30 bogushost automount[1100]: lookup_mount: lookup(file): testuser -> -fstype=nfs4,soft,intr,rsize=8192,wsize=8192,nosuid,noatime,nodev bogushost.bogusdomain.com:/home/& Nov 26 19:45:30 bogushost automount[1100]: parse_mount: parse(sun): expanded entry: -fstype=nfs4,soft,intr,rsize=8192,wsize=8192,nosuid,noatime,nodev bogushost.bogusdomain.com:/home/testuser Nov 26 19:45:30 bogushost automount[1100]: parse_mount: parse(sun): gathered options: fstype=nfs4,soft,intr,rsize=8192,wsize=8192,nosuid,noatime,nodev Nov 26 19:45:30 bogushost automount[1100]: parse_mount: parse(sun): dequote("bogushost.bogusdomain.com:/home/testuser") -> bogushost.bogusdomain.com:/home/testuser Nov 26 19:45:30 bogushost automount[1100]: parse_mount: parse(sun): core of entry: options=fstype=nfs4,soft,intr,rsize=8192,wsize=8192,nosuid,noatime,nodev, loc=bogushost.bogusdomain.com:/home/testuser Nov 26 19:45:30 bogushost automount[1100]: sun_mount: parse(sun): mounting root /home, mountpoint testuser, what bogushost.bogusdomain.com:/home/testuser, fstype nfs4, options soft,intr,rsize=8192,wsize=8192,nosuid,noatime,nodev Nov 26 19:45:30 bogushost automount[1100]: mount_mount: mount(nfs): root=/home name=testuser what=bogushost.bogusdomain.com:/home/testuser, fstype=nfs4, options=soft,intr,rsize=8192,wsize=8192,nosuid,noatime,nodev Nov 26 19:45:30 bogushost automount[1100]: mount_mount: mount(nfs): nfs options="soft,intr,rsize=8192,wsize=8192,nosuid,noatime,nodev", nosymlink=0, ro=0 Nov 26 19:45:30 bogushost automount[1100]: mount_mount: mount(nfs): calling mkdir_path /home/testuser Nov 26 19:45:30 bogushost automount[1100]: mount_mount: mount(nfs): testuser is local, attempt bind mount Nov 26 19:45:30 bogushost automount[1100]: mount_mount: mount(bind): calling mkdir_path /home/testuser Nov 26 19:45:30 bogushost automount[1100]: mount_mount: mount(bind): calling mount --bind -s -o defaults /home/testuser /home/testuser |
|