Red Hat / Fedora :: Intermittent Slow Access To Cifs Mounted Shares
Jan 14, 2010
The shares get mounted correctly and you can navigate through the directories and open files.The only problem is that it randomly starts going really slow taking 30 seconds or longer to open a directory that has 2 or 3 files in it.I have tried quite a few things to try and fix this without any luck. Its getting to the point where I am having to consider recommending that we use windows instead, which I would rather not do as I think its good for students to experience different operating systems during school.
I have mounted a windows network share using the gnome desktop environment, using Places -> Connect To server.The network share is OK, and I have the icon on my desktop and can see all the files.I want to be able to use this network as well in the console, so I need the mount point.What is the location on the filesystem were this networkdrive gets mounted? I find nothing in /mnt and nothing in /media also using mount to look at the registered mounts, there is no entry for the networkdrive.Nevertheless, I have this networkdrive now open in my desktop, and have an option to unmount it.I know that using the mount.cifs command you can specify the mounting point.
I have a Hitachi SimpleNET adapter (entry-level NAS device) on a Seagate FreeAgent 1TB external HDD (formatted ext3). The NAS device is connected over 100MB/s ethernet to a Netgear Wireless G router. All other devices connect using Wireless G. The NAS runs embedded Linux on an ARM processor and it runs vsftpd and Samba for file transfers.
If I transfer a large file using an FTP client the transfer maxes out at around 2.5MB/s. For my purposes that's good enough, especially considering the Wireless G bottleneck. If I transfer a file from a Windows 7 client (using samba) I get around 2.2MB/s. I know the CIFS protocol has more overhead than FTP and the difference in speed isn't that noticeable.Any combination of Ubuntu and Samba results in me getting less than 1MB/s. I've tried mounting it through Nautilus (GVFS) and /etc/fstab. FTP from this same Ubuntu client gets around 2.5MB/s.
I don't have root access on the SimpleNET to change the smb.conf. I've made a few adjustments to the mount options with no success. how to either speed up 10.04 as a Samba client or mount a folder on an FTP server locally? I've tried both curlftpfs and FUSEFTP. With curlftpfs any write operation results in an I/O error and it crashes intermittently. With FUSEFTP I never got that far and couldn't even browse the folder.
After booting, the sda5 and sda8 mounts work fine, but the Windows shares haven't been mounted. If I enter the command: mount -a everything works fine. I don't know if this a timing issue, or something to do with the new systemd stuff, but it has happened in previous Fedora releases from time to time.
My first post, having only installed 11.04 at the weekend on one of my old PCs.Everything is up & running pretty well, I have a 100BT home network with 4 Windows XP PCs and a Synology DS211j server.I can see & access these other shares from Ubuntu, but it's so slow to connect, approx. 45 seconds each time, compared to almost instant from any of the XP machines.Could someone suggest how this performance could be improved?
I am attempting to set up autofs on Ubuntu 10.04 so that it can automatically mount cifs shares when wifi is connected. For some reason, it isn't working. First of all, I know the share is accessible because doing this works fine:
Code: sudo mount.cifs //192.168.0.12/share /cifs -o credentials=/etc/samba/credentials This is in my /etc/auto.master Code: /cifs /etc/auto.home --timeout=60 --ghost And this is /etc/auto.home
Since upgrading to 10.04 I have had constant CIFS errors in /var/log/syslog
Eg - May 1 10:33:46 eclair kernel: [ 933.789217] CIFS VFS: No response for cmd 50 mid 32895 May 1 10:33:46 eclair kernel: [ 933.794567] CIFS VFS: No response for cmd 50 mid 32900 May 1 10:33:48 eclair kernel: [ 935.721371] CIFS VFS: No response to cmd 46 mid 37294
All shares mount and I can open them etc, but always those errors appear whenever I try and browse to it, read them etc. These shares are mount from a Windows 2003 Server and no other machine has a problem reading or writing to this machine. I have changed the network cable and network cards in both machines, with no success. If I copy a file from a local drive to a CIFS drive, the file on the CIFS drive becomes corrupted.
We recently had an issue with "cat /proc/mount" telling us that a CIFS file system was mounted, even though the mount was not working correctly. So we're not sure if we can trust linux to report malfunctioning mounts, so we're planning on adding a specific file on the mounted file system, and verify the mount by reading this file from the client side (linux). If linux fails to read it, we know that the mount have failed. But before we go ahead doing this I thought I'd just hear how others are doing this sort of thing - how do you make sure that mount points are up and working?
EDIT: I just saw that I've posted in the security area, not in the server area. How do I move it?
I am working as a Linux administrator in a very small data centre with 5 servers with following routine tasks.
1. Managing SAMBA shares and giving user specific access for the shares. 2. Scheduling backup of some mount points with rsycn to store data in remote hard disk 3. User and group administration, with sudo access. 4. Creating and Managing Xen Virtual machines and giving access to other project teams. 5. Automating some tasks with Shell Scripting. 6. Managing FTP server for user uploads.
I have practiced a lot in my home laptop without RHEL training, Cleared RHCE and LPIC1. I want to do some advanced system admin tasks, but do not have option in my current data centre. With Above skills is it possible to get a job ?
I would like to be able to test that a network mounted cifs(samba) share is actually mounted in a script file to do backups. I want to do this so that when my automatic backups run they actually go to the remote location or fail. Currently, if there is a network problem that prevents the network share from mounting, the files simply get copied to the folder (e.g. /media/backupmount) and end up filling up my small local hard drive.
When using the following cifs mount command, mount -t smbfs -o username=username,password=password //srv/shr /usr/localfolder/and the cifs share does not exist, localfolder is mounted like d????????? ? ? ? ? ? localfolderafter a number of time , when umounting we get a kern <soft lock>Is there any way to fail the mount if the destination share does not exist, ive had a quick look through man mount but can not see a solution.
I have a line in the fstab file which automatically mounts a network drive every time I start up Ubuntu. I browse to a text file on the network drive and open it using gEdit and make changes to it. Then, when I hit the save button, a bright red warning appears:
Could not save the file [path here] gedit cannot handle file: locations in write mode. check that you typed the location correctly and try again. This also happens if I do save as. Then, after this error appears, the file actually disappears (gets deleted) from the network drive and in order to save it, I have to select save as again and type in the original filename. The line in my fstab file is:
I use the following to mount a share from one NAS to another NAS (both runing Linux based on Ubuntu):mount -t cifs //rmthost/rmtshare -o username=id,password=pw mntdir/ lcldir...It mounts fine and I can access the files with no problems except when I access a directory or file that is a link. When I do that it links me back to the local drive and not the mounted share. How do I get the remote links to stay remote? Is it even possible?
In the last couple of weeks I was trying to work thru some issues regarding access from my FC11 box to my WinXP box over the local network (Have had no problem using Samba to go the other way). I was trying to use smb4k and couldn't seem to make it work. Maybe that's because I use Gnome as my desktop (tho, I would guess that the install of smb4k would include necessary dependencies for KDE).I went back to this problem today and figured out how to access the window shares using Gnome Connect to Server function (Have tried it in the past but must have been doing something wrong). I now get the icon on my desktop and the appropriate listing in the Place menu.
What I notice is when I click on the icon (or select the share listing on the Place menu) to open the "folder" I get a duplicate of the icon on my desktop and duplicate listing on the Place menu. The window opens with access to the folder without any problem. If I close the window, it does so just fine, but I'm left with the duplicate icon and menu listing. To get rid of these "extraneous" items, I need to unmount the volume. Then the extra icon and Place menu listing are gone. If I already have opened the window and incurred a duplicate icon, etal., even if I close and then open it again, no more duplicates are added.Is this normal or is there a setting I need to change to keep this duplicate from happening.
This is a bit of a shameless cross-forum bump, as I'm really trying to crack samba in the hope of getting some server action going, and this is the closest I've been to actually understanding what I'm playing with. "Well, I've lasted a lot longer than usual before resorting to asking around, but I've finally gone delightfully mad. I've been trying to access shares based on Windows 7 Ultimate with limited user access on said shares. I've managed to get into my XP machine, another mate's Vista machine and various Linux boxes with no issues, but that's only for shares that are accessible by everyone. The moment I try to get into a share that requires user credentials, I get "Error returning browse list: NT_STATUS_ACCESS_DENIED"
If I try to access restricted shares (be it machine or folder) through Nautilus, I will get a user logon prompt, but it fails. Using smbclient results in just as little success, and now I'm munching through O'Reiley's Samba manual from '99, after realising that I need to basically learn Samba in its entirety to have a hope in hell at getting this to work. The trouble is though, every HOWTO and relevant forum post I get my hands on all seem to concentrate more on the server side of things, and usually servering from a linux box, not the other way around as I'm trying to.
The above Windows 7 machine won't even allow me to view its share contents, whereas the XP machine will allow me to browse, but won't allow me to access folders with restricted access. I'm pretty sure there aren't any major issues with the way the Windows 7 machine is setup, as it can be accessed with logon from my Xbox, Ubuntu machine, XP and Vista, with only Fedora having problems getting in as it constantly fails logon. What I'm trying to establish is, if Ubuntu can get in, is there something in my Fedora samba config I'm missing that's preventing me access? My thanks in advance to those of you who've been able to put up with me rambling"As you'll see in my original fedoraforum post, the workgroup misreport issue mysteriously fixed itself after a few updates, although I'm inclined to blame my mate's Win 7 box...call it force of habit, I've just generally come to mistrust an OS that tries so diligently to shift focus away from its shell.
I have a core i7 machine on which I have dual booted Ubuntu 10.10 and Fedora 14. I am facing a weird problem on both the Linux distributions. Currently, I am facing three major problems which are causing me to use my laptop instead of this machine.Most of the times the sound gets distorted ( like the tempo is very slow and some cracks), but some other times it just works fine. ( I experienced this on both Ubuntu and Fedora)Internet at times is very fast and works great, but suddenly it slows down and takes a whole lot time to load. sometimes it just never gets fast.The low resolution flash videos, gets this very weird high pitch sound
Also, I noticed ( I don't think there is a relation between the two or is there?) that whenever the internet is slow, the sound is also distorted and when internet is fast sound works great.The intermittent nature of the problem is making it difficult to debug.
i have just installed 10.10 under wubi, first time trying to use this network card under ubuntu. works fine on XP where it connects with good signal strength to a zyxel p-600 b/g router (my 3 other machines also connect fine to this router)
i am using WPA2, it takes 30secs to 1min to connect in the first place, then runs slowly and with intermittent disconnects, reports good signal strength in network manager.
i have been fortunate enough to have 3 machines that run ubuntu flawlessly out of the box..
I have used Linux on and off over the past 15 years. Linux has been the solution to a lot of my networking problems over the years. I work in a school and I am keen to setup Linux labs for the students. Users can logon with their active directory [Micoroft accounts] and can access their files off server drives. All this is made easy with the help of CentrifyDC. I can simply access a network share and CentrifyDC handles the authentication.
My issue is that some applications will see mounted samba shares and some applications won't. For example I can open and save files to my Windows servers using applications such as Openoffice, Gnumeric, Abiword. However apps like DIA will only show local drives. Maybe some applications use the default file manager where the mounts are bookmarked whilst other use their own file manager?
I have server in which I have 2 HDD. One is primary and in it is Linux CentOS. Last week my server stop to work and I reboot it. But after that reboot second mounted HDD in which I backup my files aren't visible at old path. Old path is - I login via SSH and there is folder named SECOND, but now that isn't case. I want to know, how I to see in which folder to enter, which one is for second HDD? I see both, but how to enter in it? And to see what is in it (my old data)?
Device Boot Start End Blocks Id System /dev/sda1 * 1 13 104391 83 Linux /dev/sda2 14 48641 390604410 8e Linux LVM
1. 11.4 x64. 2. Solaris SMB server. 3. Gigabit LAN 4. mounted shares from that server (fstab entries)
write speed: 80-90-100 MB/s read speed extremely slow: 3-4-5 MB/s (really funny - our administrator shoked, but i'm not fun, i need fast lan for work)But when i reboot to windows 7 - i have 60-70-80 MB/s in both directions. Read and Write - nice.What happened? kernel updated and all last updates is applied (exclude kopete-because i use old kopete with animated tray icon).I have to tried many tunes like: "noatime" "directio" and also in /etc/modprobe.d - put conf file with: options cifs CIFSMaxBufSize=130048
When I used the find command, I almost always need to search the local drives. But, I almost always have super large network shares mounted and these are included in the search. Is there an easy way to exclude those in the find command, grep and other similar commands? Example:
I used command as followings. nothing special. mount -t cifs //192.168.55.53/windows$/Home /mnt/ -o user=username%password It works well after mounted. But mounting itself takes 1-2 minutes terribly. After mounted successfully, file transfer speed looks to be normal.
I am a Linux newbie, and this is my third attempt in 5 years to become a regular user, and drop microsoft once and for all. Unfortunately, I am having difficulties. Normally it's a good way to learn, but I've been spinning my wheels for 4 days on one problem. It's compounded by the fact that I'm just learning even basic commands. So, please be patient.I have 3 machines.
1)tabletop with Fedora 13, Name: Trout, wired network connection 2)tabletop with winxp, name: bdc, wired network connection 3)laptop with winxp, name: bclaptop, wireless network connection
From Trout, I can access share folder named 'share' on bclaptop. I can also access 'shareddocs' on bdc.From both Xp machines I can access the other xp machines shared folders, but cannot access the shares on Trout, these shares names are 'share' and 'lshare'. On Trout GUI file browser if I go to 'Network' find 'Trout' (looking at itself on the network) I get "Unable to mount location: failed to mount windows share".
I can ping any other machine from any machine using either it's name or IP address. The windows machines do see Trout. The Linux shares can be seen in XP's 'My Network Places'.The network is on a 2-wire router/modem. The original windows network name (workgroup?) is 'Timber'. The workgroup created by Samba is 'mygroup'. They appear to be different workgroups, and Trout is in 'mygroup', and xp machines are in 'Timber'. I don't understand this part enough to know if this is significant.I "believe" I have the permissions wide open for 'lshare', but not 100% certain on any of this (newbie), so ask anything, please. I fumbled through Samba trying first to do it with text editor, then ended up with GUI Samba Editor. Looks to me like services smbd and nmbd are running. The Samba Editor made a rather large smb.conf file, so I'll just put what I think is relevant
I've mounted a kind of proxy to map some cifs folders, 150 aprox. It umounts and mounts everything each hour, to check on changes on a configfile managed by a secretary, she just edits a file with names and I prepared a cron to notice the new mountpoints. It's a debian, no desktop , no nothing else. Just mount.cifs and apache2 to let the master webpage access to some files on each user samba home. The server has 4 cores and 2Gb of RAM. It's brand new, but it goes very slow.
Does anyone have an idea why is that working so slow? The apache is working well, it's the shell which is working extremelly slow.
I want to backup some data on my Fedora box to a external Hard Disk (USB). I mounted the external HD on my box. I wrote a bash script to do that and I scheduled a cronjob to execute the script. When I am online the script executes as planned. However when I am logged out the copy does not work. I also tested this with a cifs mount (via fstab) and that does not work either. I set the script to generate some output at the end and that is OK so the script does run when I am offline. I suppose the mounted locations are not reachable while logged out, is that correct? Is there a workaround so I can reach the mounted locations while logged out?