Re: [Samba] How to detect active users
Il 26/07/2011 10:06, Malte Forkel ha scritto: Am 25.07.2011 23:34, schrieb Chris Weiss: On Mon, Jul 25, 2011 at 3:50 PM, Pascal Valoispascal.val...@devinci.fr wrote: Le 25/07/11 22:44, Jeremy Allison a écrit : On Mon, Jul 25, 2011 at 10:21:35PM +0200, Malte Forkel wrote: Hi, I'm running Samba 3.2.5 on a server which I'd like to shut down when it is not used by any client. Is there a way to detect whether any user has opened a file on the server? smbstatus will tell you. slight correction, smbstatus tells you what file are used and by who, currently. not who HAS opened a file. smbstatus will also tell you who has an active connection to what shares, even if they have yet to actually open some file. while it's possible for someone to open a file in app that reads to ram then closes, such as notepad.exe, making edits and letting them sit without saving for long enough that an smb client would disconnect the session is unlikely given the save often mentality that most have gotten from using PC's. From application crashes, to power outages, to 2 year old kids pressing buttons, save often! Thanks for your suggestions! so depending on what you mean by has opened (opened before and still use it, or opened before and may have close it), smbstatus may be the answer or not. By has opened I mean opened before and still use it. Actually, something more like would be disappointed if the server went down. Ideally, a user might e.g. open a couple of source files to analyze them and after a while (without making changes of saving anything) try to open another file in the same directory. I've done a couple of experiments with smbstatus, specifically its -S and -L options. My clients run Windows 7 SP1 and Windows XP SP3. While a Windows Expolores is opened for a share (or one of its subdirectories), smbstatus -S will list that share. But once the Explorer is closed, the entry is cleared. Similarly, using a File Open Dialog only produces a short lived entry. smbstatus -L does not seem to produce any list entries once a user has opened a file. May be I have to specify some more specific locking in smb.conf? I've also experimented with root preexec and root postexec. Those seem to be triggered at the same time the output of smbstatus -S changes. Currently, I'm not even sure Samba preserves the kind of state information required to detect the usage scenario I'm interested in. Is there any concept of an open file in Windows/Samba, after all? May be it depends on the application used to open the file? I suggest trying smbstatus -B too (shows byterange locks). Also, reading the whole thread it seems to me (FWIW) that the only way to be 100% sure that a samba restart won't disappoint anyone is have smbstatus show no active connection. -- Marcello Romani -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] compressed file VFS
Il 31/03/2011 09:36, Andreas Moroder ha scritto: A similar question has been posted here (with an answer): http://askubuntu.com/questions/5212/can-i-transparently-compress-some-files-on-a-samba-share HTH Hello, AFAIK the FUSE filesystems have in common the problem that they are read only. I have to write to this share too. My idea was a samba VFS that, when it finds a compressed file with a certain extension ( say .gzvfs ) allows a normal read access to this file but allows to read and write to other files Bye Andreas The article I linked above has a link to this page: http://sourceforge.net/apps/mediawiki/fuse/index.php?title=CompressedFileSystems where 4 fuse-based compressed filesystems with R/W support are mentioned. HTH -- Marcello Romani -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] compressed file VFS
Il 31/03/2011 11:48, Jean-Pierre ha scritto: Andreas Moroder wrote: A similar question has been posted here (with an answer): http://askubuntu.com/questions/5212/can-i-transparently-compress-some-files-on-a-samba-share HTH Hello, AFAIK the FUSE filesystems have in common the problem that they are read only. I have to write to this share too. Except at least ntfs-3g which is read + write (see the link posted yesterday). It is fully compatible with Windows, which may be useful in a Samba environment. My idea was a samba VFS that, when it finds a compressed file with a certain extension ( say .gzvfs ) allows a normal read access to this file but allows to read and write to other files Windows XP (and later) and almost all Linux file managers support viewing a compressed file (e.g. zip archive) as a normal folder. This feature lives inside the file manager application and doesn't require any server-side support. For ntfs the compression is transparent. No specific extension or change needed in applications or scripts. Regards Jean-Pierre I recently read somewhere about a user that was exporting via samba an ntfs volume created under windows that had the compress option activated. When writing to the share via samba he could create files but not overwrite them. Reason is ntfs-3g driver doesn't support overwriting transparently compressed files. He solved the issue by mounting the volume under Windows and deselecting the compress option. I'm sorry but I don't remember if that post was recent, and can't find it againt right now. HTH -- Marcello Romani -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] compressed file VFS
Il 30/03/2011 15:41, Andreas Moroder ha scritto: Hallo, we have a clinical system that generate lot of files that once written are never changed. This file consume lot of disk and tape space*, so my idea was to compress this files. The problem is that it can happen, that the users have to open this files later. Is there a VFS module for samba that show gzipped** read only files as if they were standard files ? Bye Andreas * Disks are cheap, but the are no more disk-slots in the server and the server has to be up 24*7 so we can not simply change the disks ** bzip2 would be preferable because of the better compression, but the orginal size is not stored in the header so I assume it can not be used for this purpose A similar question has been posted here (with an answer): http://askubuntu.com/questions/5212/can-i-transparently-compress-some-files-on-a-samba-share HTH -- Marcello Romani -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] compressed file VFS
Il 30/03/2011 15:41, Andreas Moroder ha scritto: Hallo, we have a clinical system that generate lot of files that once written are never changed. This file consume lot of disk and tape space*, so my idea was to compress this files. The problem is that it can happen, that the users have to open this files later. Is there a VFS module for samba that show gzipped** read only files as if they were standard files ? Bye Andreas * Disks are cheap, but the are no more disk-slots in the server and the server has to be up 24*7 so we can not simply change the disks ** bzip2 would be preferable because of the better compression, but the orginal size is not stored in the header so I assume it can not be used for this purpose See also this interesting thread http://www.mail-archive.com/rsync@lists.samba.org/msg23263.html where fusecompress is mentioned. -- Marcello Romani -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Advice for W2K migration to samba
Il 07/03/2011 10:33, Andrew Bartlett ha scritto: On Fri, 2011-03-04 at 10:47 +0100, Marcello Romani wrote: Il 04/03/2011 05:43, Andrew Bartlett ha scritto: On Thu, 2011-03-03 at 09:17 +0100, Marcello Romani wrote: Hallo, I'm running a W2K AD network with about 20 clients (mostly Windows XP machines, some Ubuntu 10.04 clients). I also have a couple of samba servers (debian 5) which are joined to the domain. I need to upgrade from W2K to something which is not EOL. The AD server is also a print server for the domain. I only have about 20 user accounts, so recreating them from scratch would be not a big problem. Also, the user profiles are not stored on the server (no roaming profiles). I read samba4 is still in alpha stage (alpha14 is listed on the wiki), but in terms of functionality provided is would the best replacement for my AD server. I would be glad to hear from someone who has done the switch from W2K AD to samba3 or samba4. Also, any advice or success/failure stories in similar setups would be great. Thanks in advance. This (Windows 2000 - Samba4) certainly has been made to work, multiple times. Those successful migrations that I know of were via Windows 2003 due to an odd Kerberos interop issue between Samba4 and Windows 2000. Andrew Bartlett Andrew, thanks for your response. Now that you mention it, I remember having read something about the need to pass through 2K3 to land on samba4. I'll investigate that detail (obviously I'd prefer to avoid setting up a 2K3 server just to migrate...) Would you then recommend going to samba4 instead of the (apparently) more stable samba3 (samba4 being alpha as of today ?). It's a simple matter of what you want it to do. You can't do printing with Samba4, and the file server is best used for just the AD shares, but on the plus side you get an AD server, and a smooth migration path from AD (you can't migrate AD to Samba3 without rejoining machines, and the loss of AD features). You can of course try the direct W2K migration - the issue that is know won't be a silly, un-noticed bug, it will either work or not. Andrew Bartlett I think I'll try the samba4 route. The file server is already on a separate samba3 debian machine, so nothing would change on this side. I'll have to do some research on whether I can move the print server funcionality onto the existing file server or setup a windows machine which would do just that. Thank you for your suggestions. -- Marcello Romani -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Advice for W2K migration to samba
Il 04/03/2011 05:43, Andrew Bartlett ha scritto: On Thu, 2011-03-03 at 09:17 +0100, Marcello Romani wrote: Hallo, I'm running a W2K AD network with about 20 clients (mostly Windows XP machines, some Ubuntu 10.04 clients). I also have a couple of samba servers (debian 5) which are joined to the domain. I need to upgrade from W2K to something which is not EOL. The AD server is also a print server for the domain. I only have about 20 user accounts, so recreating them from scratch would be not a big problem. Also, the user profiles are not stored on the server (no roaming profiles). I read samba4 is still in alpha stage (alpha14 is listed on the wiki), but in terms of functionality provided is would the best replacement for my AD server. I would be glad to hear from someone who has done the switch from W2K AD to samba3 or samba4. Also, any advice or success/failure stories in similar setups would be great. Thanks in advance. This (Windows 2000 - Samba4) certainly has been made to work, multiple times. Those successful migrations that I know of were via Windows 2003 due to an odd Kerberos interop issue between Samba4 and Windows 2000. Andrew Bartlett Andrew, thanks for your response. Now that you mention it, I remember having read something about the need to pass through 2K3 to land on samba4. I'll investigate that detail (obviously I'd prefer to avoid setting up a 2K3 server just to migrate...) Would you then recommend going to samba4 instead of the (apparently) more stable samba3 (samba4 being alpha as of today ?). Thanks again. -- Marcello Romani -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] join an ubuntu desktop client do samba domain, and login in
Il 03/03/2011 18:18, Bob Miller ha scritto: [snip] Very interesting read. Excellent style, too, IMHO. Thanks for sharing. -- Marcello Romani -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Advice for W2K migration to samba
Hallo, I'm running a W2K AD network with about 20 clients (mostly Windows XP machines, some Ubuntu 10.04 clients). I also have a couple of samba servers (debian 5) which are joined to the domain. I need to upgrade from W2K to something which is not EOL. The AD server is also a print server for the domain. I only have about 20 user accounts, so recreating them from scratch would be not a big problem. Also, the user profiles are not stored on the server (no roaming profiles). I read samba4 is still in alpha stage (alpha14 is listed on the wiki), but in terms of functionality provided is would the best replacement for my AD server. I would be glad to hear from someone who has done the switch from W2K AD to samba3 or samba4. Also, any advice or success/failure stories in similar setups would be great. Thanks in advance. -- Marcello Romani -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] join an ubuntu desktop client do samba domain, and login in
Il 03/03/2011 09:15, fdel...@rojatex.com ha scritto: Hello, I did all the steps to build a DC, i even joined windows clients ok. Now i want to add a ubuntu desktop. Ok, i modified the Workgroup and other parameters in smb.conf, i ran the net rpc join -S DOMPDC -UAdministrator%password i got an OK messange. Now, i reboot, the login screen appears and.? i cant login with MyDomain\Myuser, nor i cant find an user management screen to add my domain users... i cant find info on that, how do i login with domain users in an ubuntu desktop? thanks Although a bit dated, I belive this might be helpful: http://www.ubuntugeek.com/how-to-add-ubuntu-804-to-win-server-2003-active-directory-domain.html It talks about Likewise-open. -- Marcello Romani -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Access to a share resource without password
Il 01/03/2011 14:43, J. L. Cabral ha scritto: Dear, we still continue without access to samba share. Just a question: maybe the administrator of the Windows Domain has setup any policy ti avoide tha access from domain's users to samba ??? Has the administrator of my Windows domain allow any access or do something specific related to samba machine ??? Thanks again On Tue, Mar 1, 2011 at 10:07 AM, J. L. Cabraljelocab...@gmail.com wrote: Just a moment please, now I'll test with your instructions and I'll tell youthanks. On Tue, Mar 1, 2011 at 9:19 AM, Marco Ciampaciam...@libero.it wrote: On Mon, Feb 28, 2011 at 12:21:32AM -0300, J. L. Cabral wrote: Chris, after following Marco guideline and fail I followed the tutorial you recommend to me, please see below: [...] just to remember you to post even when successful. We are interested in knowing what went wrong... -- Marco Ciampa ++ | Linux User #78271 | | FSFE fellow #364 | ++ -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba IIRC there is a registry setting which prevents a windows machine from accessing non-authenticated smb shares. I'm sorry but can't find the key name right now... HTH -- Marcello Romani -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Access to a share resource without password
Il 25/02/2011 16:22, J. L. Cabral ha scritto: Dear, I have a Linux Samba server and a Windows XP SP2 client joined to the g-company.net domain. I want to access a Linux share resource in /var/share without password from WXP desktop FROM ANY USER. This is my scenario: - I don't create any Linux local user because I want total access from any user - I use security = share - My smbusers file is: root = administrator admin nobody = guest pcguest smbguest - The Windows XP guest account is guest but I don't know if it has any password setup. - This is my smb.conf: [global] workgroup = G-COMPANY.NET server string = Samba Server Version %v security = SHARE passdb backend = tdbsam [share] comment = Archivos Compartidos path = /var/share read only = No create mask = 0700 directory mask = 0700 guest only = Yes guest ok = Yes Form Windows XP I execute: \\samba_server\share but I get the error DENIED ACCESS. What can I do to access this resource ??? Thanks a lot, JeLo Hi, I have a similar setup. I forced /var/share to be owned by group publicshare, and in smb.conf I have force group = publicshare. The permission bits are 775. HTH -- Marcello Romani -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Is it a good idea/required to run winbind
Il 24/02/2011 07:26, Robert Cohen ha scritto: [snip] Hi, we have a mixture of windows 2000 and xp workstations which use a samba fileserver (3.2.5) under a win2000 AD. If for some reason the winbind daemon doesn't start on the fileserver, the 2K clients are not able to access restricted folders (e.g. user A would get access deined errors when trying to browse folders owned by A with perm bits 600). No problems with the public folders. For the XP clients, the presence of winbindd makes no difference. AFAIKT, the winbind daemon is required to map domain users and groups to local uid and gid. Without it, the 2K ws connections get mapped to the guest user. HTH -- Marcello Romani -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Windows XP and SAMBA: file changed popup
Il 29/10/2010 09:37, Jochen Hebbrecht ha scritto: Following issue only occurs on a Windows XP system (it doesn't happen on Windows 7) I have Ubuntu 10.10 (Maverick) server with samba 3.5.4. The server has a samba share and another PC (which has Windows XP as operating system) is connected to that share through a network drive. On the share, there are PHP files which can be changed by a developer. The files are also available by HTTP using an Apache HTTPD VirtualHost. So, the developer has some PHP files open in PHPDesigner 7. He makes a change and he wants to see his change in the browser (e.g.: Firefox). He refreshes the page and he sees the result. Now, he returns to PHPDesigner ... but ... PHPDesigner is telling him: This file has changed, do you want to reload it?. The problem is: the file hasn't been changed, but the access time of the file has. I had a look at this issue and I noticed there's no creation date on Unix level. So in Windows, creation date is access time ... which makes Windows XP thinks the file has been changed as it was accessed ... Any idea's how we can solve this? I have a very similar issue: MPLAB IDE code editor says source file xxx has changed, do you want to reload it ? every time I build a project, even though no modification has been made to the source file. The entire project is hosted on a mapped drive on a debian system. The MPLAB IDE is installed on Windows XP SP3. There are no other problems a part from this annoying popup alert. fileserver:~# cat /etc/debian_version 5.0.6 fileserver:~# smbd --version Version 3.2.5 I belive windows is reading file atime as if it was mtime, thus thinking file has changed. Thanks for any hints. -- Marcello Romani -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Record the user log-in and log-out
Il 21/09/2010 15:44, Giovanni Cambria ha scritto: Hi! I'm sorry but I need a *fast* reply, I've absolutely no time to search on docs. :-( I have a small network: about 8-10 XP client connected to a Samba PDC. I need to log who and when log in the PDC, because the national law requires to record these infos and preserve them for a certain time. Any tip will be apreciated!! Thanks Giovanni No virus found in outgoing mail. Nessun virus nel messaggio in uscita. Controllato da AVG - www.avg.com Versione: 9.0.856 / Database dei virus: 271.1.1/3149 - Data di rilascio: 09/21/10 08:34:00 If you really need a fast response, I guess you should look for paid support, especially for the problem you're having (I'm italian too as you may have guessed). That said, have look a vfs_audit. I have played with it myself. It logs a lot of information, but IIRC you can tune which events get logged. HTH PS: the problem with admin logs is that you have to guarantee they can't be altered, so logging logins/logouts in a text file is definitely insufficient for law compliance. -- Marcello Romani -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] [Ubuntu 10.04] Share not visible from XP?
Gilles ha scritto: On Wed, 28 Jul 2010 17:44:49 +0200, Nico De Ranter n...@sonycom.com wrote: I believe testparm will skip any attribute with default values. Thanks for the tip. That's not the cause of the issue then :-/ At this point, I can finally get XP to show shared folders if I first try to connect to them blindly through Run \\srv\share. There were a few things I noticed along the way: - restart smbd works, but restart nmbd doesn't. OTOH, /etc/init.d/smbd restart works... and /etc/init.d/nmbd restart as well. Go figure A samba init script should take care of restarting both services IMHO, because they're really supposed to go together. Therefore it's not strange that they ported to upstart only the main init.d script (the one referring to smbd). That's all IMHO, of course. - apparently, we must remove package libpam-smbpass, and install smbfs and winbind AFAIKT, smbfs is needed only if you want to mount samba shares, i.e. for using the linux system as a samba *client*, not server. I'm not 100% sure, though. Regarding winbind, I find it strange that it didn't get installed along with the rest of samba... - /etc/nsswitch.conf requires adding wins to hosts - I added the following to a share, with no idea if they're really needed: [share] [...] available = yes public = yes writable = yes Thank you. Don't know about available param, but public and writable shouldn't affect visibility of the server in windows neighborhood. -- Marcello Romani -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] [Ubuntu 10.04] Share not visible from XP?
Gilles ha scritto: On Thu, 29 Jul 2010 08:55:16 +0200, Marcello Romani mrom...@ottotecnica.com wrote: A samba init script should take care of restarting both services IMHO, because they're really supposed to go together. Therefore it's not strange that they ported to upstart only the main init.d script (the one referring to smbd). That's all IMHO, of course. That's also what I thought, but /etc/init.d/ contains two separate scripts (smbd and nmbd; no trace of samba, as specified in the Ubuntu documentation www.tinyurl.com/ubuntu-samba-doc), and since since I couldn't see the shares from Windows, I figured I might have to launch both separately. /etc/init.d/smbd doesn't seem to launch nmbd, but I'm no shell expert: http://pastebin.com/fJB89Uc8 Yes, it seems to care only about the process name it's been given, smbd in this case. I havent studied upstart so it might also be possible that somewhere in its configuration it's specified that smbd goes along with nmbd. But that's just useless speculation... Tha strange thing is, on my Ubuntu 9.10 desktop machine I have /etc/init.d/samba Go figure... AFAIKT, smbfs is needed only if you want to mount samba shares, i.e. for using the linux system as a samba *client*, not server. I'm not 100% sure, though. Regarding winbind, I find it strange that it didn't get installed along with the rest of samba... The problem is that I couldn't find an up-to-date documentation that would say precisely what needs to be installed in Ubuntu and show a very basic smb.conf that would work. Docs either assume people will just append their stuff to the big default smb.conf... and somehow figure out what packages need to be installed. I usually do something similar to aptitude search samba and install what seems to be the main package, which hopefully will pull all the required dependencies. Then I install the -doc package, which tipically contains the up-to-date docs. But I'm sure you already know that :-) Don't know about available param, but public and writable shouldn't affect visibility of the server in windows neighborhood. I added those because I saw them in some documentation... but at this point, I'm clueless at what packages are really needed, and what needs to be done in smb.conf to share a writable folder. maybe add guest ok = yes Actually, I'm seeing something funny... but this is for another thread. Thank you all for your help. Well I think I'll stop here as I don't have ubuntu server at hand. I hope I've been of some help. Good luck. -- Marcello Romani -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] [Ubuntu 10.04] Share not visible from XP?
Gilles ha scritto: On Wed, 28 Jul 2010 07:42:34 -0500, Chris Gonnerman ch...@newcenturycomputers.net wrote: Go to Start, Run, and enter \\name-of-server\share then hit OK. Of course, you should substitute the actual name of the server. If it opens a window (with whatever is in /srv/samba visible in it), you're good. If that doesn't work, try \\name-of-server and let us know what you see. Thanks Chris. Both return The network path was not found. Fact is, XP can't PING ubuntu and C:\net view doesn't list the Try pinging the ubuntu server via ip address. If that works, then try to connect to the share by using the ip address instead of the hostname, e.g.: \\ip-addr-of-server\share If the ping from xp to the ubuntu server doesn't work either way (by specifying the server hosntname or its ip address) then I think you should check your network before struggling with samba config. Just my 2 cents, HTH. -- Marcello Romani -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] [Ubuntu 10.04] Share not visible from XP?
Gilles Ganault ha scritto: At 15:16 28/07/2010, you wrote: Try pinging the ubuntu server via ip address. If that works, then try to connect to the share by using the ip address instead of the hostname, e.g.: \\ip-addr-of-server\share Thanks for the help. I can connect through its IP address (I could already work with SSH and HTTP), but it doesn't work with the NetBIOS name: \\ubuntu\share - The network path was not found. If you know Ubuntu 10.04, could there be some security that prevents Samba from working? My servers are pure debian, so no I don't know of Ubuntu specific tweaks. I'd try to enable wins in samba and raise its os level (though it should already be higher than xp), but it could also be that xp refuses to revert to netbios name resolution (i.e. broadcast). I've seen this behaviour once, but can't remember right now what it was exactly... HTH P.S.: try to respond to the list, or you'll lose potential help :) -- Marcello Romani -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] New web look is very sweet!
Chris Smith ha scritto: Congrats on the new look of the samba.org site. Very nice! Chris FWIW, I totally agree. Well done! -- Marcello Romani -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] high memory utilzation
Ramesh ha scritto: Hi I have a server running samba process and there are about 70 samba users connected at a time. The system has 4Gb of memory and it seems each samba process is utilizing only 3352Kb of memory. When I run the command pmap -d (pid of samba) It gives as: b7ffa000 4 rw-s- 0fd:3 messages.tdb bfe460001768 rw--- bfe46000 000:0 [ stack ] e000 4 r-x-- 000:0 [ anon ] mapped: 33384Kwriteable/private: 3352Kshared: 20504K But when I run the top command, it results as below: Tasks: 163 total, 1 running, 162 sleeping, 0 stopped, 0 zombie Cpu(s): 0.9% us, 4.9% sy, 0.0% ni, 93.3% id, 0.8% wa, 0.2% hi, 0.0% si Mem: 3895444k total, 3163192k used, 732252k free, 352344k buffers Swap: 2097144k total, 208k used, 2096936k free, 2487636k cached Hi, here's a quick explanation of the top fields: Mem total = the amount of physical RAM you have available. Mem used = total amount of RAM the system is using. What you want here is a number as close to Mem total as possible, unless you find it useful to fill your ram banks with costly unused chips... :-) Mem free = this is of course total - used, so you want here a number as low as possible. Buffers = amount of RAM used for various types of system buffers (e.g. network buffers). This amount varies with the workload. For example if you are copying a disk image over the network you'll have a large value here. Cached = amount of RAM used for disk cache. This value varies with the current workload too. It is used to avoid reading directly from disk something you have already read once. Roughly speaking, if a client requests a 10M file, it's first read from disk but then it remains in memory so that if another client (or the same one) requests the same file, the system doesn't have to read it again from the (very slow) disk, but can serve it directly from (very fast) RAM. The disk cache is not allocated by the applications, it is instead managed directly by the kernel, so if an app needs more ram, the disk cache is sacrified. Thus you can count buffers and disk cache as free memory (i.e. not allocated by apps). HTH -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] smbclient -M
Adam Nielsen ha scritto: # smbclient -M Client01 Connection to Client01 failed. Error NT_STATUS_BAD_NETWORK_NAME but: # smbclient -L Client01 -U myuser Enter myuser's password: Domain=[MYDOMAIN] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager] That's a bit odd. What happens if you use an IP address instead? Does nmblookup Client01 work? Don't forget that you need the Messenger service running on the target PC otherwise the message won't be sent (Start, Run, services.msc) Cheers, Adam. Hallo, I can confirm that if the Messenger service is not running on the target machine, then NT_STATUS_BAD_NETWORK_NAME error is returned by smbclient -M If the messenger service is running, echo message | smbclient -M machine-name works instead. HTH Marcello -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Wins XP cannot login domain if samba offline
Indracyd ha scritto: --- On Tue, 6/24/08, Marcello Romani [EMAIL PROTECTED] wrote: From: Marcello Romani [EMAIL PROTECTED] Subject: Re: [Samba] Wins XP cannot login domain if samba offline To: [EMAIL PROTECTED] Date: Tuesday, June 24, 2008, 4:28 PM Indracyd ha scritto: Dear all i have successfully setup samba on RHEL 5, but when the server samba offline why the computer client (Wins XP) cannot login? can someone help me how to fix this problem, i won if samba server offline the client still have login with domain, and work by local harddisk here is my smb.conf [global] workgroup = DLS server string = Samba Server Version %v netbios name = PDCDLS log file = /var/log/samba/%m.log max log size = 2048 security = user passdb backend = tdbsam domain master = yes domain logons = yes logon script = %u.bat logon path = wins support = yes idmap uid = 1-2 idmap gid = 1-2 [netlogon] comment = Network Logon Service path = /var/lib/samba/netlogon guest ok = yes writable = no share modes = no [Profiles] path = /var/lib/samba/profiles browseable = no guest ok = yes writable = yes thank before Cyd I have a Win2K ads network, and on my laptops (xp sp2), users can log on to the domain even if the network cable is not attached. I think xp has a timeout though, after which you can only log on to the local domain (i.e. the computer itself, not the network domain). HTH so what must i to do with this XP client?so the XP clients still have login event samba server offline trim's Cyd -- Marcello Romani Responsabile IT Ottotecnica s.r.l. http://www.ottotecnica.com Sorry, I've never had this problem so I can't guide you from experience, but I think this page might be of some help http://www.windowsnetworking.com/kbase/WindowsTips/WindowsNT/RegistryTips/Password/CachedLogonHashes.html -- Marcello Romani Responsabile IT Ottotecnica s.r.l. http://www.ottotecnica.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Wins XP cannot login domain if samba offline
Indracyd ha scritto: dear marcello.. --- On Tue, 6/24/08, Marcello Romani [EMAIL PROTECTED] wrote: From: Marcello Romani [EMAIL PROTECTED] Subject: Re: [Samba] Wins XP cannot login domain if samba offline To: [EMAIL PROTECTED] Date: Tuesday, June 24, 2008, 4:28 PM Indracyd ha scritto: Dear all i have successfully setup samba on RHEL 5, but when the server samba offline why the computer client (Wins XP) cannot login? can someone help me how to fix this problem, i won if samba server offline the client still have login with domain, and work by local harddisk here is my smb.conf [global] workgroup = DLS server string = Samba Server Version %v netbios name = PDCDLS log file = /var/log/samba/%m.log max log size = 2048 security = user passdb backend = tdbsam domain master = yes domain logons = yes logon script = %u.bat logon path = wins support = yes idmap uid = 1-2 idmap gid = 1-2 [netlogon] comment = Network Logon Service path = /var/lib/samba/netlogon guest ok = yes writable = no share modes = no [Profiles] path = /var/lib/samba/profiles browseable = no guest ok = yes writable = yes thank before Cyd I have a Win2K ads network, and on my laptops (xp sp2), users can log on to the domain even if the network cable is not attached. I think xp has a timeout though, after which you can only log on to the local domain (i.e. the computer itself, not the network domain). so what must i to do with this XP client?so the XP clients still have login event samba server offline on my PDC i have configuration DHCP Servers so this is impact to this problems? trim's Cyd HTH -- Marcello Romani Responsabile IT Ottotecnica s.r.l. http://www.ottotecnica.com You probably missed my other e-mail... Sorry, I've never had this problem so I can't guide you from experience, but I think this page might be of some help http://www.windowsnetworking.com/kbase/WindowsTips/WindowsNT/RegistryTips/Password/CachedLogonHashes.html Also, I have DHCP too (it's on the AD server), so I don't think this detail has any impact on the issue. HTH -- Marcello Romani Responsabile IT Ottotecnica s.r.l. http://www.ottotecnica.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Is there a maximum number of shares samba can serve?
Eric Boehm ha scritto: I am being asked to determine the feasibility of serving hundreds (300-400) of directories as individual shares instead of sharing a single parent directory. Personally, I don't think this is a good idea. Clients will go from having a single connection to a single share to 50-300 connections to multiple shares. That can't be good for performance or load. I've searched the mailing list, the web, the documentation, the wiki and the source code. I haven't been able to determine the maximum, if any. Of course, I may have missed it. Feel free to point me to the correct documentation or source file. I've seen some references that you can't have either more than 145 or 165 shares per samba server. However, if there is anyone running such a large number of shares and has advice, I am happy to listen. Hi, I found some docs about this smb.conf parameter: usershare max shares which specifies the maximum number of shares that the samba admin will allow non-root users to create via the command net usershare add ( read for example http://us1.samba.org/samba/docs/man/manpages-3/net.8.html ) The example value given in the docs for the usershare max shares parameter is 100, which makes me think that a samba server should cope with a number of shares in the hundreds. I know it's not much, but I HTH nonetheless. -- Marcello Romani Responsabile IT Ottotecnica s.r.l. http://www.ottotecnica.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Get number of current logged on users
Adam Tauno Williams ha scritto: I'm looking for a simple way to get the number of current logged on users (with established sessions) to measure the use frequency of our student labs. I don't need to identify the users. sardine:~ # expr `smbstatus -b | cut -c35-45 | sort | uniq | wc -l` - 3 151 I've tried it and it seems the columns are slightly wrong... serverlinux backup # smbd --version Version 3.0.24 The cut parameters should be: cut -c36-49 :-) -- Marcello Romani Responsabile IT Ottotecnica s.r.l. http://www.ottotecnica.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Performance problem with file 2Gb
Adam Tauno Williams ha scritto: There are some problems to transfer big file over 2Gb, It is a filesize limitation of samba. I just transfered a 2,8 GB file with smbclient and got ~60 MB/s. Right, large files work fine; the hardware is dorked, something badly misconfigured, or extremely untuned. I see mention of IDE and that is always my first guess. But I doubt it is a Samba issue. Try the same thing with local files and see what happens. The OP did not mention IDE. I also doubt a 8x500GB under hardware raid 5 uses ide drives... But this is not the problem I think. 8x 500Gb raid 5 via 3ware Raid Controller 3ware almost certainly means IDE (SATA is IDE), but they also make PATA RAID controller. Ouch, you're right, I'll write google before opening your mouth 100 times on the blackboard ;-) I suggest trying to transfer the same files via ftp or scp (e.g. using WinSCP client), to assure that the server hardware / network equipment is OK, then, if the slowdown is seen _only_ using samba shares, do a search in the mailing archives. I know it's not much, but HTH nonetheless. -- Marcello Romani Responsabile IT Ottotecnica s.r.l. http://www.ottotecnica.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Performance problem with file 2Gb
Adam Tauno Williams ha scritto: There are some problems to transfer big file over 2Gb, It is a filesize limitation of samba. I just transfered a 2,8 GB file with smbclient and got ~60 MB/s. Right, large files work fine; the hardware is dorked, something badly misconfigured, or extremely untuned. I see mention of IDE and that is always my first guess. But I doubt it is a Samba issue. Try the same thing with local files and see what happens. The OP did not mention IDE. I also doubt a 8x500GB under hardware raid 5 uses ide drives... But this is not the problem I think. I suggest trying to transfer the same files via ftp or scp (e.g. using WinSCP client), to assure that the server hardware / network equipment is OK, then, if the slowdown is seen _only_ using samba shares, do a search in the mailing archives. I know it's not much, but HTH nonetheless. -- Marcello Romani Responsabile IT Ottotecnica s.r.l. http://www.ottotecnica.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Very slow initial opening MS-Word and MS-Excel files from Samba
Berend Tober ha scritto: The first time a Word or Excel file is opened, i.e., when either Word or Excel have not been actively running recently (like, say for several minutes or more), the time it takes to start the application and load the file seem inordinately long. Once the first evolution is complete, files open more-or-less instantly if I close the first document but leave either app running (but void of any open documents). This pertains to the same file opened a second time, or different files -- once Word/Excel has done whatever it is thats takes so long for initial start up, then load performance is acceptable (in fact it is very impressive!). And it is not merely the loading of the app, because it happens both when I start the apps implicitly by double-clicking on a document in Windows Explorer, but also if I first start Word/Excel explicitly from the START menu without a specific document and then open one from the Samba share using File|Open. Envirnoment: Server is RHEL 5 with Samba version samba-3.0.23c-2.el5.2.0.2 Desktops are XP Pro SP2 on some, and XP Home SP2 on others. MS Office Suite is XP Pro (i.e., Word/Excel 2002) Desktops also run Symantec Corporate Edition 8.1 (although same problem continues on a machine from which I uninstalled that as part of my debugging.) I initially had no explicit settings regarding opportunistic locking in smb.conf, but I've tried server different configurations without improvement. What appears below is the current configuration and the problem still pertains. smb.conf: [global] workgroup = mygroup server string = Samba Server hosts allow = 192.168.123. 127. cups options = raw log file = /var/log/samba/%m.log max log size = 50 dns proxy = no username map = /etc/samba/smbusers case sensitive = no kernel oplocks = no [homes] comment = browseable = no writeable = yes [acct] path = /usr/local/var/samba/acct writeable = yes guest ok = yes browseable = no create mask = 0765 directory mask = 0775 oplocks = False level2 oplocks = False [engr] path = /usr/local/var/samba/engr writeable = yes browseable = no guest ok = yes create mask = 0765 directory mask = 0775 oplocks = False level2 oplocks = False Active Directory is not used. All workstations (about 25) simply map drive letters locally. This performance problem appeared only after we began using Samba for file server. Never saw this in close to 15 years of using Netware -- so I suspect it is not purely an MS-Office problem, but something to do with the interaction between MS-Office and Samba. I eagerly await your help! Have you tried copying (tens of MBs) files or even those same office files to/from the share ? What is the performance there ? I had a similar performance problem which showed up in Office, but I found out it was not limited to office files, but affected the transfer speed between the client and the server in general. I have found a solution and posted it to this list, search for the thread Vista client / Linux server - hight browsing latency (or I will send you the e-mail if you so desire). HTH -- Marcello Romani Responsabile IT Ottotecnica s.r.l. http://www.ottotecnica.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Vista client / Linux server - high browsing latency
Jay L. T. Cornwall ha scritto: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Aravinda Guzzar wrote: You can do the similar tracing on the client side using ethereal/wireshark. Filter out for smb packets and see which smb request/response is taking maximum time, to track down the problem. Thanks for the tip. I did a packet capture when the share was working quickly and when it had slowed down again following a reboot. Now I'm a bit confused. Both traces show roughly the same number of packets and the server response time is about the same in both cases (somewhere between 0.1 and 0.2ms on average). However in the slower trace, the time between the client receiving a response and sending its next request is much larger - about 15ms versus 0.2ms. It would appear, then, that the Samba server isn't at fault. The client is experiencing long delays between submitting requests; which seems to fix itself following some pattern of usage that I haven't yet figured out. How weird. :S - -- Jay L. T. Cornwall, http://www.esuna.co.uk/~jay/ PhD Student Imperial College London -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGbJfYoHnC75cy2zgRAujsAJ9G8HZl7rX/iqteMU/za+XsglJAYwCfRzMR Z1vMPGhDZWVnQIPvW1jRaqg= =afsD -END PGP SIGNATURE- I had a performance problem that was related to how the XP tcp/ip stack manages ack packets. Maybe what I'm going to say is relevant to Vista, too ? My client is Windows XP SP2, my server is Gentoo Linux running samba 3.0.22, network is 100Mbit on the client, 1Gbit on the server. The share is mapped as drive K:, and is mounted on a couple of 10K rpm U160 scsi drives (software raid-1). Client PC has 1GB of ram, the server 2GB. I never had performance problems on my client machine wrt. network transfers. One day I noticed that accessing data on the network share was terribly slow; the throughput dropped to about 200-300KB per second max., while it usually reached 8-9MB/s while copying large files. From that day the performance has not increased no matter how many times I rebooted the server or the client. The strange thing is, I'm not the only one using XP SP2 on the same share, but no one of my colleagues has reported problems to me (I'm the network admin). Googling around I found a forum where the following changes in the XP registry were suggested: HKLM == System == CurrentControlSet == Services == Tcpip == Parameters == Interfaces == {network interface GUID} == TcpAckFrequency == DWORD: 1 TcpDelAckTicks == DWORD: 0 I creted the two keys (they were not present), set their values and rebooted the client machine (no server reboot). The performance returned to the expected levels, and has been so for some days now. HTH. -- Marcello Romani Responsabile IT Ottotecnica s.r.l. http://www.ottotecnica.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba - WinXP: slow transfers, partial solution
Alexander Tsvyashchenko wrote: Hello All, I'm running Samba 3.0.24 as PDC and file server on Gentoo Linux, AMD64, 2.6.19 kernel, 100MBit/s network, and experience quite slow file transfers from Samba to WinXP SP2 clients: the speed is varying, but is about 1-2Mb/s at best. I spent quite some time investigating the issue, here are the intermediate results: 1) This happens only when transferring _from_ _Samba_ to _WinXP_. All other combinations are unaffected: a) Transferring from WinXP to Samba server is at 10Mb/s. b) Transfering to/from Samba server from Gentoo Linux on the same PC where WinXP is installed (so, completely the same hardware and connection) is also at normal speed. c) Transferring to/from WinXP to the server where Samba is installed using any other protocol (such as HTTPS or SCP) is also at normal speed. 2) CPU is at almost idle level both at client and server, so it's not the issue. 3) If there is any other network activity, transfer speed is increased up to normal level: f.e. doing two simulteneous transfers from Samba server to WinXP client gives 5Mb/s at each transfer, as expected. 4) Running tcpdump on server while the transfer is performed improves transfer speed in about 1.5 - 3 times, but still not to the normal speed. 5) Playing with socket options does not give any results. Specifically, using advices from the article http://www.dd.iij4u.or.jp/~okuyamak/Documents/tuning.english.html about SO_SNDBUF does not improve situation (but read below). 6) tcpdump + tcptrace show that there are a lot of retransmissions, see dumps below. 7) I've tested several WinXP clients with different hardware, all with the same results. 8) Samba logs looks normal to me, nothing special. Points (3) and (5), and also the article about SO_SNDBUF tuning gave me an idea that there might be smth wrong with ACKs sent from WinXP. I've tried to search for problems with ACK delays in WinXP and found the following articles: http://support.microsoft.com/kb/328890 http://support.microsoft.com/kb/321098 Based on them, I've done the following changes in WinXP registry: - set TcpAckFrequency to 1 to switch off delayed ACKs - set TcpDelAckTicks to 0 to disable delayed ACKs timer These changes did not help on their own. But combining them with the change of SO_SNDBUF to 1500 suddenly improved the speeds up to about 6 Mb/s! It appeared that with these registry changes, setting SO_SNDBUF to any value in the range 1404 - 1872 gives the same speed of 6.0 - 6.4 Mb/s, while changing it even one byte lower / higher immmediately drops the speed to less than 1Mb/s. However, while this is partial solution I could live with, this is still not the normal speed, so I still would like to find the way to bring it to normal values. It seems that I'm not the only one who have similar problems: see BUGs 2117 and 3706 in Bugzilla, and discussion at Gentoo mailing list: http://forums.gentoo.org/viewtopic-p-2820556.html Please, let me know if any other information may be needed or if there are any other tests I can do to pin down the problem ... I'm attaching tcptrace logs for several sessions (all transfers are from Samba server to WinXP with registry changes applied, all transfers are done with the same file of the size 338Mb). 1) Samba - WinXP without SO_SNDBUF set. (note that due to the tcpdump effect the speed is higher than in reality, also please note big number of retransmits) TCP connection 3: host e:***client***:1314 host f:***server***:445 complete conn: no (SYNs: 0) (FINs: 0) first packet: Sat Apr 14 15:05:57.502839 2007 last packet: Sat Apr 14 15:07:53.234397 2007 elapsed time: 0:01:55.731558 total packets: 425593 filename: snd_buf_off.log e-f: f-e: total packets:175858 total packets:249735 ack pkts sent:175858 ack pkts sent:249735 pure acks sent: 164954 pure acks sent:8 sack pkts sent:0 sack pkts sent:0 dsack pkts sent: 0 dsack pkts sent: 0 max sack blks/ack: 0 max sack blks/ack: 0 unique bytes sent:690320 unique bytes sent: 356048963 actual data pkts: 10904 actual data pkts: 249727 actual data bytes:690320 actual data bytes: 356319077 rexmt data pkts: 0 rexmt data pkts: 195 rexmt data bytes: 0 rexmt data bytes: 270114 zwnd probe pkts: 0 zwnd probe pkts: 0 zwnd probe bytes: 0 zwnd probe
Re: [Samba] Office products Locking issues
Mark Adams ha scritto: I will also be trying the reset on zero vc option, in the hope it will help with my strange issues. On Mon, Mar 19, 2007 at 08:32:48AM +0100, Marcello Romani wrote: I've been thinking about implementing an imap server for some time now... I hope I'll have time to get rid of personal stored e-mail as soon as possibile... I would do extensive testing with IMAP and outlook before you put this in to place, as Outlook support for IMAP is terrible, especially if you want to have any remote users. If you are using any other mail client you will be ok. That is for a different mailing list though! Cheers Mark Thanks for your suggestion. Some of us are using Thunderbird, but the majority uses Outlook 2000. Thundrebird is unfortunately lacking some features of Outlook that would make some of the employees unhappy so the switch would not be without problems, but that's another story, and I think I'd better quit as we're already way too off-topic :-) -- Marcello Romani Responsabile IT Ottotecnica s.r.l. http://www.ottotecnica.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Office products Locking issues
Michael Heydon ha scritto: In the past months I had similar locking problems: outlook running on a client PC, outlook.pst file stored on a (private) network share. The client PC would sometimes hang, and the user would then reboot the PC. After the reboot, Outlook complained that the outlook.pst file could not be opened because it was already locked by someone else (in fact it was the old smbd process of that same user that didn't notice the client did reboot). The solution was always to manually kill (-TERM) the hanging smbd process. The situation got a bit better when I disabled oplocks entirely, but I still get that error sometimes (yes, we *almost* fixed the PC hardware issues :-). Just as a note, MS don't recommend storing PST files on a network and from personal experience I tend to agree. Some times it's the lesser of The company I work for has had pst files on a network share for many years now (on a win2k server and, since about 1 year, that is since I came, on a gentoo/samba server). I still haven't seen any problems (a part from the mentioned pc freezing issues), but our network and servers have a very low load... two evils but in the long term you might want to think about a different solution. I've been thinking about implementing an imap server for some time now... I hope I'll have time to get rid of personal stored e-mail as soon as possibile... Did you have some PC-freeze problems that the reset on zero vc config parameter solved ? We didn't have problems with freezing, we had problems with the network. It had the same effect, the client disconnected, the server thought it was still there. Did the use of this parameter have some drawbacks ? It hasn't caused any problems that I'm aware of and it has reduced the number of support calls, but I wouldn't consider it an alternative to fixing the root of the problem. I believe it does cause problems if you have multiple connections coming into the server from behind a NAT connection and it may also play up if you have a terminal server. We don't have neither of the two, so I guess I'll be safe :-) Overall I think it is a neat option and in most simple networks it is worth having, just be wary that it may hide problems that will bite you down the track. -- Michael Heydon Thank you for your reply. It was helpful. -- Marcello Romani Responsabile IT Ottotecnica s.r.l. http://www.ottotecnica.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Office products Locking issues
Michael Heydon ha scritto: I have found in the past that restarting samba has corrected this particular issue I had similar problems in the past where a flaky network would lead to a users connection dropping out. I used reset on zero vc, it greatly improved the situation (and we are slowly replacing the dodgy gear/cabling). Obviously there is something causing the problem in the first place and you should try to track down what the problem is and fix it, in the mean time reset on zero vc might help make it more manageable. -- Michael Heydon In the past months I had similar locking problems: outlook running on a client PC, outlook.pst file stored on a (private) network share. The client PC would sometimes hang, and the user would then reboot the PC. After the reboot, Outlook complained that the outlook.pst file could not be opened because it was already locked by someone else (in fact it was the old smbd process of that same user that didn't notice the client did reboot). The solution was always to manually kill (-TERM) the hanging smbd process. The situation got a bit better when I disabled oplocks entirely, but I still get that error sometimes (yes, we *almost* fixed the PC hardware issues :-). Thanks to your post, I'm considering putting this configuration option in place. Did you have some PC-freeze problems that the reset on zero vc config parameter solved ? Did the use of this parameter have some drawbacks ? Thank you. -- Marcello Romani Responsabile IT Ottotecnica s.r.l. http://www.ottotecnica.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Problem with Share Size
Volker Lendecke ha scritto: On Mon, Feb 19, 2007 at 12:35:13PM +0100, Marcello Romani wrote: What do you mean ? As I said in the reply of some minutes ago: I have seen all I replyed to your post and _then_ read the other responses... sorry :) sorts of problems with reiserfs. Some years ago I had frequent customer emergencies because highly loaded tdb files on reiserfs got corrupted. This meant that Samba was not functioning on these machines. Changing the file system to ext2/3 solved those problems reliably. But I have not heard about those problems for a while. Not sure if reiserfs was fixed or people don't use it anymore :-) But then last week I heard about the lost homedir, and this just supported my decision to never use reiser anymore for anything. I've been using reiser3 at home and work with no problem at all for almost 3 years now... I can only say what *I* have experienced. I do not give a firm recommendation either way. It's just that I will not touch reiserfs anymore. I have certainly also talked to a lot of people who are big fans of reiserfs, so it's really your choice. Volker I admit the machines where I put reser3 were not under extremely high load, so it's certainly possible that particular workloads stress reiser3 in ways that corrupt the filesystem. I simply didn't see this. So I guess our experiences just differ :-) Thanks for clarifiyng your initial statement. -- Marcello Romani Responsabile IT Ottotecnica s.r.l. http://www.ottotecnica.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Problem with Share Size
Jeremy Allison ha scritto: On Fri, Feb 16, 2007 at 05:45:56PM +0100, Antoine Rocher wrote: Hi again, I found the problem (sorry message is in french) : mke2fs -j -b 4096 -n /dev/sdc1 mke2fs 1.40-WIP (14-Nov-2006) mke2fs: Système de fichiers trop grand. Pas plus de 2^31-1 blocs (8TO pour une taille de blocs de 4K) ne sont actuellement supportés. No more than 2^31-1 blocks in a ext3fs, 8Tb for a 4K block size ... And my disk has a little more. Great - thanks for the info. You might want to try xfs instead on this system - I think the limits on xfs are better. Jeremy. Wikipedia reports a maximum volume size of 16TiB for reiser3 http://en.wikipedia.org/wiki/ReiserFS -- Marcello Romani Responsabile IT Ottotecnica s.r.l. http://www.ottotecnica.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] what OS do you use for Samba?
James A. Dinkel ha scritto: I'm trying to decide on a linux distro to use for our enterprise Samba server. I like that there is a deb repo for Debian from samba.org, but I'm more comfortable with CentOS (Redhat). I just want to be sure I have a well supported Samba server and I need at least the 3.0.20 version so I can use the inherit owner property. I also want automatic updates for bugfixes and security (not to concerned about new features though). Any insight? James Dinkel We are using Gentoo Linux on a custom made P-IV-based raid1 scsi box. Currently, gentoo offers 3.0.22-r3 Gentoo portage is technically very different from rpm, but once you get used to it, it's just as simple (IMHO even simpler wrt package dependencies). It basically comes down to: emerge --sync # to get the latest version emerge samba# dowload, compile and install rc-update add samba default # start samba at boot Configuration is just standard smb.conf editing (or webmin, if installed). Just my 2 (euro)cents. -- Marcello Romani Responsabile IT Ottotecnica s.r.l. http://www.ottotecnica.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] oplocks causing more trouble than benefit ?
Hi everybody, my setup is 1 fileserver running samba 3.0.22 on Gentoo Linux, and about 15 clients, some of which are XP and some W2K. On some PCs we have Outlook 2000, and we store each user's outlook.pst file in a private folder on the fileserver. One of the W2K clients had hardware problems that caused it to freeze once in a while. Everytime this happened, the user would restart the machine and everything was fine except Outlook complained it could not open the personal folders file because it was already in use by another user (or process, I don't remember the error message exactly). smbstatus showed in fact that the smbd process the user was connected to _before_ her PC freezed was still holding a DENY_WRITE lock on the outlook.pst file. One solution was to manually kill that smbd process. While this worked almost every time (although it was really annoying because that PC's hardware failures were becoming frequent), one day I had to restart smbd entirely (or was it the entire server ?). To make a long story short, I searched the docs and finally found that the problem was I had oplocks enabled in the smb.conf file. Disabling it solved the issue entirely. The conf file now reads something like: [NetworkDrive] (snip other options) oplocks = no While trying to solve this issue I've read quite some docs about the oplocks feature, and I got the impression that while they may improve performance, they are very complicated and rely on a not so robust mechanism. I didn't notice any slowdown after disabling oplocks, but this might be because our network and fileserver are underloaded. So my question is: why are oplocks on by default ? Wouldn't it be safer to turn them off by default and specify under which circumstances they might give the performance improvements that justify their adoption ? Thanks in advance. -- Marcello Romani Responsabile IT Ottotecnica s.r.l. http://www.ottotecnica.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba