alok kumar
2006-May-22 16:55 UTC
[Samba] Errors accessing smbfs share after upgrade to redhat ES4.0
I used to mount following share using samba client on RHEL 3.0 without any problems. Then I installed ES4.0 and I started seeing problems with these samba shares. I have following line in fstab to mount the share : //bizgroup/wli1 /wli1 smbfs uid=501,gid=501,credentials=/etc/samba/.smbpassword 0 0 and /etc/samba/.smbpassword contains following username=xxxxxxx password=xxxxxxx workgroup=xxxx and when I mount one of these file systems, I see following lines in messages file :- May 4 10:34:20 beatest4 kernel: smb_add_request: request [f69b9080, mid=0] timed out! May 4 10:34:20 beatest4 kernel: smb_delete_inode: could not close inode 2 May 4 10:34:20 beatest4 mount.smbfs[2133]: [2006/05/04 10:34:20, 0] client/smbmount.c:send_fs_socket(410) May 4 10:34:20 beatest4 mount.smbfs[2133]: mount.smbfs: entering daemon mode for service \\bizgroup\wli1, pid=2133 May 4 10:34:20 beatest4 kernel: smb_retry: no connection process and after that it mounts the file system. Once I start my application processes, I see more of these errors. It gives errors and works intermittently. I checked online forums and found that I should use cifs instead of smbfs. When I use cifs to mount a share, it is mounted without any error. But when I try to run 'ls' command it gives me "Input/output error". [root at beatest4 ~]# mount -t cifs //bizprod/wli1 /wli1 -o ip=10.110.1.80,user=kumara4,password=xxx,domain=twpn,uid=501,gid=501 [root at beatest4 ~]# ls -l /wli1 ls: reading directory /wli1: Input/output error total 0 If I try to run [root at beatest4 ~]# cd /wli1/wlitest2 [root at beatest4 wlitest2]# pwd /wli1/wlitest2 It works fine. But if you do ls again [root at beatest4 wlitest2]# ls wlitest2 It gives you the current directory name. I even tried to copy files on this share. No errors. But again there is no way to list them. If you know the file name you can even cat a file. Samba rpm installed samba-3.0.22-1 cifs.ko version 1.34 mount.cifs version 1.8 Please help. Thanks, Alok Kumar __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Felipe Alfaro Solana
2006-May-22 21:12 UTC
[Samba] Errors accessing smbfs share after upgrade to redhat ES4.0
> I used to mount following share using samba client on > RHEL 3.0 without any problems. Then I installed ES4.0 > and I started seeing problems with these samba shares. > I have following line in fstab to mount the share :Instead of using smfs, try using cifs, as smbfs is somewhat deprecated in newer 2.6 kernels. In my case, I tried using smfs with RHEL-ES 4.0 and had no luck. However, cifs works flawlessly.
alok kumar
2006-May-24 13:59 UTC
[Samba] Errors accessing smbfs share after upgrade to redhat ES4.0
Thanks Felipe for your prompt reply. If you see second part of my question, I have tried to use cifs instead. mount command works without errors. But, when I try to 'ls' to list files in the cifs file system, I get input/output errors. But I can 'cd' to that directory and if I know the file names, I can 'cat/vi' them. I have provided more details in my original question. Thanks, Alok> --- Felipe Alfaro Solana <felipe.alfaro@gmail.com> > wrote: > > > > I used to mount following share using samba > client > > on > > > RHEL 3.0 without any problems. Then I installed > > ES4.0 > > > and I started seeing problems with these samba > > shares. > > > I have following line in fstab to mount the > share > > : > > > > Instead of using smfs, try using cifs, as smbfs is > > somewhat deprecated > > in newer 2.6 kernels. In my case, I tried using > smfs > > with RHEL-ES 4.0 > > and had no luck. However, cifs works flawlessly. > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com >__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Ryan Novosielski
2006-Jun-02 17:02 UTC
[Samba] Errors accessing smbfs share after upgrade to redhat ES4.0
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Watch out for SELinux related problems on RHEL4. I believe it ships with SELinux on (which is good -- the first thing people recommend is to turn it off... I strongly disagree). ---- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | |Ryan Novosielski - User Support Spec. III |$&| |__| | | |__/ | \| _| |novosirj@umdnj.edu - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630 alok kumar wrote:> I used to mount following share using samba client on > RHEL 3.0 without any problems. Then I installed ES4.0 > and I started seeing problems with these samba shares. > I have following line in fstab to mount the share : > > //bizgroup/wli1 /wli1 smbfs > uid=501,gid=501,credentials=/etc/samba/.smbpassword > 0 0 > > and /etc/samba/.smbpassword contains following > > username=xxxxxxx > password=xxxxxxx > workgroup=xxxx > > and when I mount one of these file systems, I see > following lines in messages file :- > > May 4 10:34:20 beatest4 kernel: smb_add_request: > request [f69b9080, mid=0] timed out! > May 4 10:34:20 beatest4 kernel: smb_delete_inode: > could not close inode 2 > May 4 10:34:20 beatest4 mount.smbfs[2133]: > [2006/05/04 10:34:20, 0] > client/smbmount.c:send_fs_socket(410) > May 4 10:34:20 beatest4 mount.smbfs[2133]: > mount.smbfs: entering daemon mode for service > \\bizgroup\wli1, pid=2133 > May 4 10:34:20 beatest4 kernel: smb_retry: no > connection process > > and after that it mounts the file system. Once I start > my application processes, I see more of these errors. > It gives errors and works intermittently. > > I checked online forums and found that I should use > cifs instead of smbfs. When I use cifs to mount a > share, it is mounted without any error. But when I try > to run 'ls' command it gives me "Input/output error". > > [root at beatest4 ~]# mount -t cifs //bizprod/wli1 > /wli1 -o > ip=10.110.1.80,user=kumara4,password=xxx,domain=twpn,uid=501,gid=501 > [root at beatest4 ~]# ls -l /wli1 > ls: reading directory /wli1: Input/output error > total 0 > > If I try to run > [root at beatest4 ~]# cd /wli1/wlitest2 > [root at beatest4 wlitest2]# pwd > /wli1/wlitest2 > > It works fine. But if you do ls again > [root at beatest4 wlitest2]# ls > wlitest2 > > It gives you the current directory name. > > I even tried to copy files on this share. No errors. > But again there is no way to list them. If you know > the file name you can even cat a file. > > Samba rpm installed > > samba-3.0.22-1 > cifs.ko version 1.34 > mount.cifs version 1.8 > > Please help. > > Thanks, > > Alok Kumar > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (MingW32) iD8DBQFEgG7xmb+gadEcsb4RAr2+AJ4qaJneSckH4N0mt+j8+ybVDKgjCACeKGqY otl2OEeY1i2v9NVx4BsWUl8=YzLA -----END PGP SIGNATURE-----