Bug 24165

Summary: max open files für größere Umgebungen zu gering
Product: UCS Reporter: Janis Meybohm <meybohm>
Component: SambaAssignee: Arvid Requate <requate>
Status: CLOSED FIXED QA Contact: Felix Botner <botner>
Severity: normal    
Priority: P5 CC: gohmann, requate, walter
Version: UCS 2.4Flags: walter: Patch_Available+
Target Milestone: UCS 3.0-1   
Hardware: Other   
OS: Linux   
What kind of report is it?: --- What type of bug is this?: ---
Who will be affected by this bug?: --- How will those affected feel about the bug?: ---
User Pain: Enterprise Customer affected?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: Bug group (optional):
Max CVSS v3 score:
Bug Depends on:    
Bug Blocks: 32327    
Attachments: Patch für die (3.0)/univention-samba/conffiles/etc/samba/smb.conf.d/01univention-samba_main
Korrigierter Patch
Abermals angepasster Patch.

Description Janis Meybohm univentionstaff 2011-10-24 11:01:05 CEST
Ticket#: 2011053110000545 
Ticket#: 2011102421003249

Aus der log.smbd:
---
2011/05/31 10:50:38.822505,  0] smbd/notify_inotify.c:294(inotify_setup)
   Failed to init inotify - Too many open files
---

bzw.
---
[2011/10/24 10:48:45.016578,  0] smbd/notify_inotify.c:294(inotify_setup)
    Failed to init inotify - Zu viele offene Dateien
---

Samba setzt die Limits beim Start selbst anhand der Konfigurationsoption "max open files" (minimal/default 16404).
# pgrep -f smbd | while read pid; do grep "open files" /proc/$pid/limits; done

Um das Limit zu verdoppeln kann die "/etc/samba/local.conf" erweitert werden:
 
[global]
   max open files = 32808
Comment 1 Lukas Walter univentionstaff 2011-10-24 12:20:47 CEST
Created attachment 3676 [details]
Patch für die (3.0)/univention-samba/conffiles/etc/samba/smb.conf.d/01univention-samba_main

Mit diesem Patch müsste die Datei /etc/samba/local.conf so angepasst sein, dass sie eine Zeile "max open files" enthält.
Comment 2 Lukas Walter univentionstaff 2011-10-24 16:48:05 CEST
Created attachment 3678 [details]
Korrigierter Patch
Comment 3 Lukas Walter univentionstaff 2011-10-24 17:07:19 CEST
Created attachment 3679 [details]
Abermals angepasster Patch.
Comment 4 Arvid Requate univentionstaff 2012-01-02 16:48:04 CET
univention-samba wurde mit dem Patch im Scope ucs3.0-1 neu gebaut.
Comment 5 Felix Botner univentionstaff 2012-02-10 11:37:17 CET
Da fehlt noch ein "="


params.c:Parameter() - Ignoring badly formed line in configuration file: max open files 3280811

Wird das für Samba4 auch benötigt?
Comment 6 Arvid Requate univentionstaff 2012-02-13 09:50:12 CET
Fixed. In Samba4 wurde der Parameter entfernt.
Comment 7 Felix Botner univentionstaff 2012-02-13 10:25:28 CET
ok
Comment 8 Sönke Schwardt-Krummrich univentionstaff 2012-03-04 14:34:23 CET
UCS 3.0-1 wurde veröffentlicht. Sollte der hier beschriebene Bug mit einer
neueren Version von UCS erneut auftreten, so sollte dieser Bug dupliziert
werden: "Clone This Bug"