PDA

View Full Version : Mounting with CIFS


erj
14th June 2006, 11:41 AM
Hello all, I have recently switched to FC 5 2.6.16.-1.2122 and when attempting to mount shares from my terastation through the fstab file I get the following during boot. I pulled this from the dmesg output.
CIFS VFS: cifs_mount failed w/return code = -113
CIFS VFS: cifs_mount failed w/return code = -113
CIFS VFS: cifs_mount failed w/return code = -113
CIFS VFS: cifs_mount failed w/return code = -113
audit(1150278630.551:3): avc: denied { read } for pid=1970 comm="automount" name="html" dev=dm-0 ino=38339130 scontext=system_u:system_r:automount_t:s0 tcontext=user_u:object_r:user_home_t:s0 tclass=lnk_file
I also see "no route to host" when selecting "details" on the screen during the bootup process.

When I wish to mount the shares I can do it from the command line as root with "mount -a" and unmount them with "umount -a" with no problem. The problem occurs with bootup.
My server which is running RH ES 4 has had its fstab switched to use CIFS vice SMBFS and it hasn't a problem with mounting.
I have checked the services to what is starting and what isn't at the various runlevels.
My LVM volumes are mounting with no problems so I am wondering what's going on.
Anyone seen this before?
I haven't found anything in the HOW-TO's yet

ej

Omega Blue
15th June 2006, 10:55 AM
What is your mount statement and/or fstab line?

erj
15th June 2006, 01:02 PM

Here are the lines used in my fstab file.
I had recently added the rw and soft mount options to see if it made a difference but it didn't.

//192.168.1.201/ipai01 /mnt/ipai01 cifs credentials=/etc/cred,rw,soft 0 0
//192.168.1.201/ipai2 /mnt/ipai2 cifs credentials=/etc/cred,rw,soft 0 0
//192.168.1.201/ipai3 /mnt/ipai3 cifs credentials=/etc/cred,rw,soft 0 0
//192.168.1.201/ipai4 /mnt/ipai4 cifs credentials=/etc/cred,rw,soft 0 0

Omega Blue
16th June 2006, 09:38 AM
Maybe fstab is executed before the nic is activated? You could try putting the mount statements in a shell script and run it at the end of the boot process (use S99 as prefix).

erj
16th June 2006, 10:53 PM
You know, that is extremly plausible since the httpd won't start because of the documentroot error.
/var/www/html is a link to a terastation so until that gets mounted apache won't run.
Thanks.

erj
18th June 2006, 09:15 AM
Well that didn't work so well. I am still getting the same error at bootup even though I have the start file set for after the network is up and running. I'm still getting a "No route to host 113 error".
When I attempt to run the init.d file by hand as "su -c '/etc/init.d/S79Terastation" I get :
/etc/rc5.d/S79Terastation: line 3: mount.cifs: command not found
/etc/rc5.d/S79Terastation: line 4: mount.cifs: command not found
/etc/rc5.d/S79Terastation: line 5: mount.cifs: command not found
/etc/rc5.d/S79Terastation: line 6: mount.cifs: command not found
Which is strange because if I login as root it works no problem.
I have seen in the dmesg output:
"SELinux: initialized (dev 0:16, type nfs), uses genfs_contexts
CIFS VFS: Error connecting to IPv4 socket. Aborting operation
CIFS VFS: cifs_mount failed w/return code = -113
CIFS VFS: Error connecting to IPv4 socket. Aborting operation
CIFS VFS: cifs_mount failed w/return code = -113
CIFS VFS: Error connecting to IPv4 socket. Aborting operation
CIFS VFS: cifs_mount failed w/return code = -113
CIFS VFS: Error connecting to IPv4 socket. Aborting operation
CIFS VFS: cifs_mount failed w/return code = -113
audit(1150617815.889:5): avc: denied { read } for pid=2134 comm="gpm" name="localtime" dev=hda1 ino=175536 sco
ntext=system_u:system_r:gpm_t:s0 tcontext=user_u:object_r:etc_t:s0 tclass=file
audit(1150617815.889:6): avc: denied { getattr } for pid=2134 comm="gpm" name="localtime" dev=hda1 ino=175536
scontext=system_u:system_r:gpm_t:s0 tcontext=user_u:object_r:etc_t:s0 tclass=file
dev233: no IPv6 routers present"
At shutdown I have seen errors pertaining to "NSCD" which is turned n for both runlevel 3 and 5.

ej

karlchilders
19th June 2006, 02:32 PM
I,too, am having a similar problem. I keep the install disks on my hard drive to have access to the packages. I was able to put the following line in my fstab to mount one of the iso images before FC5:
/home/images/fc5/disk1.iso /mnt/fc5/disk1 iso9660 ro,loop 0 0
(I do this for each iso image)
Mounting these images fails during boot, but I can mount them with mount -a. Clearly, this is not a network problem (or is it?) Somehow, the OS is not ready to mount or it is not allowing it. I, too, see audit messages after each attempt indicating probably selinux is involved.