LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-22-2014, 06:07 AM   #1
jogyulas
Member
 
Registered: May 2014
Location: Hungary
Posts: 32

Rep: Reputation: Disabled
pwrite problem in samba log


Hello,

I have a samba share on my server.
I wanted to check users' activities on it so I set 'vfs objects = full_audit' in smb.conf.
It works and logs fine, but there is an annoying problem.
Checking the log file I realised when I upload a file the pwrite paramter appears many times in the log. Practically this event floods my log file.

For example:
May 22 12:24:30 xxx pwrite|ok|qwe/CPU-Z-1.69.zip
May 22 12:24:30 xxx pwrite|ok|qwe/CPU-Z-1.69.zip
May 22 12:24:30 xxx pwrite|ok|qwe/CPU-Z-1.69.zip

And so on approximatelly 50 times until the copy is working : )
Other paramters is working well.

What would cause this problem? Are there any who has encountered similar problem?

Many thanks
 
Old 05-23-2014, 11:11 AM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
May 22 12:24:30 xxx pwrite|ok|qwe/CPU-Z-1.69.zip
It looks like it's just writing to the disk, it does that a lot....
Turn down your logging level to something sane, like 2 or 3 and routine calls will probably go away.
 
Old 05-26-2014, 04:02 AM   #3
jogyulas
Member
 
Registered: May 2014
Location: Hungary
Posts: 32

Original Poster
Rep: Reputation: Disabled
thank you for your response
Honestly, I do not know where I should modify level.
I think here:
full_audit:priority = notice
I have tried to set other value instead of notice but unfortunately it did not have any effect my problem.

Last edited by jogyulas; 05-26-2014 at 04:04 AM.
 
Old 05-26-2014, 04:17 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
you need to restart samba (or force to reload config), modifying (editing the config file) is not enough.
 
Old 05-26-2014, 04:21 AM   #5
jogyulas
Member
 
Registered: May 2014
Location: Hungary
Posts: 32

Original Poster
Rep: Reputation: Disabled
of course I restarted smb, but it does not work well :- /
 
Old 05-26-2014, 04:42 AM   #6
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Hi jogyulas

Quote:
of course I restarted smb,
Pan is helping you Jog, if I hadn't caught this line in your initial post...
Quote:
It works and logs fine, but there is an annoying problem.
I'd have told you the same thing.
From our friends at Samba
Code:
[global]
    workgroup = METRAN
    encrypt passwords = yes
    wins support = yes
    log level = 1 
    max log size = 1000
    read only = no
[homes] 
    browsable = no
    map archive = yes
[printers] 
    path = /var/tmp
    printable = yes
    min print space = 2000
[test]
    browsable = yes
    read only = yes
    path = /usr/local/samba/tmp

Last edited by dijetlo; 05-26-2014 at 04:48 AM.
 
Old 05-26-2014, 04:58 AM   #7
jogyulas
Member
 
Registered: May 2014
Location: Hungary
Posts: 32

Original Poster
Rep: Reputation: Disabled
my conf:
Code:
[qwe]
path = /qwe
guest ok = no
writeable = yes
create mask = 000
force create mode = 0664
directory mask = 000
force directory mode = 2775
browseable = no
vfs objects = full_audit
full_audit:prefix = %u|%I|%m|%S
full_audit:success = mkdir rmdir rename unlink pwrite
full_audit:failure = none
full_audit:facility = local7
full_audit:priority = notice
I think I should not set any log level because 'syslog only = no' in my conf.
But I have a question:
When I copy a file to my share it is equal upload.
Therefore upload has "tcp slice", so what I see in my log is it a lots of successful "tcp slice"? Probably is it the good, normal behaviour of log?
 
Old 05-26-2014, 05:02 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
probably it is logged by something else?
 
Old 05-26-2014, 05:22 AM   #9
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Explicitly state the log level in the global section of your smb.conf. Reload the config.
Let's make sure the instructions don't work before we redesign the thing.
 
Old 05-26-2014, 05:24 AM   #10
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
@pan64
Quote:
probably it is logged by something else?
I thought about that but what could be logging samba disk writes but samba?
System maybe?
 
Old 05-26-2014, 05:33 AM   #11
jogyulas
Member
 
Registered: May 2014
Location: Hungary
Posts: 32

Original Poster
Rep: Reputation: Disabled
dijetlo: I have tried global log level with various values, but the problem was same.

Quote:
probably it is logged by something else?
I do not know, but I will check it somehow as soon as I can
I welcome every good idea about it : )

Last edited by jogyulas; 05-26-2014 at 05:36 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
smb.log / smb.conf problem (printcap) on VU+DUO tuner using Samba xlarge Linux - Newbie 0 01-04-2011 05:10 AM
Is there any way to log user samba who delete or move files/folders on samba server ? b-RAM Linux - Server 1 02-09-2010 12:33 AM
Can,t log into samba on linux; windows 2k, xp, vista can not log in to smb; admir330 Linux - General 1 12-23-2008 08:31 PM
samba pdc selinux problem "rename" %m.log WorldIsNotFair Linux - Server 2 07-23-2008 09:15 PM
Unable to log XP client to Samba-Ldap Domain. Problem from SambaPrimaryGroupSID ngaoundere Linux - Networking 0 02-02-2006 06:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration