This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
31
German / s4sync und samba verbrauchen 100% CPU
« on: January 09, 2014, 04:53:28 pm »
Hallo!
Ich bin dabei einen kleine Heimserver aufzubauen, wobei Zentyal 3.3 auf Ubuntu 12.04 in einer VM mit 2GB läuft. Nachdem der Server fast 24h läuft, freue ich mich über jedes eingesparte Watt im Betrieb.
Jetzt habe ich gemerkt, dass das Skript s4sync und samba alle 30 Sekunden 105% der CPU verbrauchen (lt top), und dadurch der Stromverbrauch für ~10 Sekunden von ~ 18 - 20 Watt auf über 30 Watt klettert, danach fällt er wieder ab, CPU Verbrauch sinkt wieder auf 2 - 5%.
Ist das ein normales Verhalten, oder auf eine schwache CPU zurück zuführen? Hab jetzt 2 Lösungen ausgearbeitet, würde gerne wissen was für Nachteile zu erwarten sind.
ad. 1) Mir ist klar, dass ich bei Änderungen bis zu 4 Minuten warten muss, bis Samba darauf reagiert.
ad. 2 + 3) Mir ist klar, dass bei einer großen Anzahl an Sync Objekten, der Prozess dadurch länger braucht, hab aber nur max. 10 User + Gruppen und ist für mich eigentlich nicht relevant.
Host: Ubuntu 12.04
Gast: KVM, Zentyal 3.3, Ubuntu 12.04
CPU: Intel(R) Celeron(R) CPU 1037U @ 1.80GHz
RAM: 4 GB
Michael
Sodale Verbrauch mal nachgeschaut, gemessen mit Voltcraft Energy Check 3000 von Conrad, also kein Hightech Produkt ;-)
ad. 2) von 23 - 24 W
ad. 3) von 22 - 22,6 W
Ich bin dabei einen kleine Heimserver aufzubauen, wobei Zentyal 3.3 auf Ubuntu 12.04 in einer VM mit 2GB läuft. Nachdem der Server fast 24h läuft, freue ich mich über jedes eingesparte Watt im Betrieb.
Jetzt habe ich gemerkt, dass das Skript s4sync und samba alle 30 Sekunden 105% der CPU verbrauchen (lt top), und dadurch der Stromverbrauch für ~10 Sekunden von ~ 18 - 20 Watt auf über 30 Watt klettert, danach fällt er wieder ab, CPU Verbrauch sinkt wieder auf 2 - 5%.
Ist das ein normales Verhalten, oder auf eine schwache CPU zurück zuführen? Hab jetzt 2 Lösungen ausgearbeitet, würde gerne wissen was für Nachteile zu erwarten sind.
- s4sync wartet statt der 30 Sekunden, 240 Sekunden, bis es wieder weiter macht.
- s4sync habe ich so abgeändert, das in den foreach Schleifen jeweils 5 ms Pause gemacht wird, dadurch fällt die Gesamtbelastung auf ~ 65 - 75%.
Was der Unterschied in Watt mach, muss ich erst schauen. - s4sync habe ich so abgeändert, das in den foreach Schleifen jeweils 20 ms Pause gemacht wird, dadurch fällt die Gesamtbelastung auf ~ 40 - 50%.
Was der Unterschied in Watt mach, muss ich erst schauen.
ad. 1) Mir ist klar, dass ich bei Änderungen bis zu 4 Minuten warten muss, bis Samba darauf reagiert.
ad. 2 + 3) Mir ist klar, dass bei einer großen Anzahl an Sync Objekten, der Prozess dadurch länger braucht, hab aber nur max. 10 User + Gruppen und ist für mich eigentlich nicht relevant.
Host: Ubuntu 12.04
Gast: KVM, Zentyal 3.3, Ubuntu 12.04
CPU: Intel(R) Celeron(R) CPU 1037U @ 1.80GHz
RAM: 4 GB
Michael
Sodale Verbrauch mal nachgeschaut, gemessen mit Voltcraft Energy Check 3000 von Conrad, also kein Hightech Produkt ;-)
ad. 2) von 23 - 24 W
ad. 3) von 22 - 22,6 W
32
Installation and Upgrades / Owncloud 6.0a accessing Samba4 Shares (Zentyal 3.3)
« on: January 05, 2014, 03:11:57 pm »
Hi!
It took me 2 days to find a solution, to access a Samba Share with Owncloud (Apache). First I tried to change permissions and the Samba config (/usr/shares/zentyal/stubs/samba/smb.mas):
So I tried another way ... accessing the samba shares with www-data by mounting each share. It is not working out of the box, but it is working for me ;-) If I want to access the share "Public" with Owncloud, I had to do following steps ...
Creating Directory
Create Directory /mnt/shares/Public
fstab
Adding following line to fstab (/etc/fstab)
//127.0.0.1/Public /mnt/shares/Public cifs user=username,passwd=password,uid=www-data,gid=www-data,file_mode=0770,dir_mode=0770 0 0
Mounting
sudo mount -a
now the directory /mnt/shares/Public should have www-data:www-data and permission 0770.
Owncloud
Changing the data directory of owncloud to the Samba Share is not a good idea, because owncloud has a file cache and do not recognize files added through a samba share. But you can add an app called "External storage Support", and at the Administration area, you can add the samba share like ...
Problem: Mounting at startup is not working
I do not know, why exactly ubuntu/fstab cannot add the shares at startup, but if you add a file called for example S99mount_samba_share in /etc/rc2.d with
#!/bin/sh
mount -a
your shares are mounted at startup.
Regards
Michael
It took me 2 days to find a solution, to access a Samba Share with Owncloud (Apache). First I tried to change permissions and the Samba config (/usr/shares/zentyal/stubs/samba/smb.mas):
- forcing group (www-data)
- forcing user (www-data)
- create mask 0777
- force create mode 0777
- and so on
So I tried another way ... accessing the samba shares with www-data by mounting each share. It is not working out of the box, but it is working for me ;-) If I want to access the share "Public" with Owncloud, I had to do following steps ...
Creating Directory
Create Directory /mnt/shares/Public
fstab
Adding following line to fstab (/etc/fstab)
//127.0.0.1/Public /mnt/shares/Public cifs user=username,passwd=password,uid=www-data,gid=www-data,file_mode=0770,dir_mode=0770 0 0
Mounting
sudo mount -a
now the directory /mnt/shares/Public should have www-data:www-data and permission 0770.
Owncloud
Changing the data directory of owncloud to the Samba Share is not a good idea, because owncloud has a file cache and do not recognize files added through a samba share. But you can add an app called "External storage Support", and at the Administration area, you can add the samba share like ...
- Folder name: @Public
- External Storage: local
- Configuration: /mnt/shares/Public
- Applicable: user1, user2, user3
Problem: Mounting at startup is not working
I do not know, why exactly ubuntu/fstab cannot add the shares at startup, but if you add a file called for example S99mount_samba_share in /etc/rc2.d with
#!/bin/sh
mount -a
your shares are mounted at startup.
Regards
Michael
33
Installation and Upgrades / Re: Cannot Install OpenChangeServer - Error with dependencies problem occured
« on: January 04, 2014, 11:43:17 am »
Its working again
Thanks!
Thanks!
34
Installation and Upgrades / Re: OpenChange won't install
« on: January 02, 2014, 04:04:19 pm »
See also http://forum.zentyal.org/index.php/topic,19519.0.html, there is the same problem.
Michael
Michael
35
Installation and Upgrades / Re: Cannot Install OpenChangeServer - Error with dependencies problem occured
« on: January 02, 2014, 04:03:08 pm »
Still not working Someone having an idea?
Michael
Michael
36
Installation and Upgrades / Re: Zentyal 3.3 you have held broken packages!
« on: December 30, 2013, 09:50:20 am »
Hi!
I have the same problem with 12.04.3 LTS, when I want to install zentyal-all.
When I choose packages, I cannot install zentyal-openchangeand zentyal-bandwithmonitor, because of unmelt depenencies problems.
See also my posting: http://forum.zentyal.org/index.php/topic,19519.0.html
Regards
Michael
2013-12-31: BandwithMonitor is working now
I have the same problem with 12.04.3 LTS, when I want to install zentyal-all.
When I choose packages, I cannot install zentyal-openchange
See also my posting: http://forum.zentyal.org/index.php/topic,19519.0.html
Regards
Michael
2013-12-31: BandwithMonitor is working now
37
Installation and Upgrades / [SOLVED] Cannot Install OpenChangeServer - Error with dependencies problem occ.
« on: December 30, 2013, 08:18:57 am »
Hi!
I cannot install OpenChange Server. Following Error occured:
The following packages have unmet dependencies:
Zentyal-openchange: Depends on: sogo-openchange (> = 2.1.0-zentyal6) but it is not installable
Depends on: sope4.9-GDL1-mysql (> = 4.9-zentyal1) but it is not installable
I tried a clean installation with zentyal-all, the same error occured.
System: Ubuntu 12.04 Server
Michael
I cannot install OpenChange Server. Following Error occured:
The following packages have unmet dependencies:
Zentyal-openchange: Depends on: sogo-openchange (> = 2.1.0-zentyal6) but it is not installable
Depends on: sope4.9-GDL1-mysql (> = 4.9-zentyal1) but it is not installable
I tried a clean installation with zentyal-all, the same error occured.
System: Ubuntu 12.04 Server
Michael
38
Installation and Upgrades / Re: Owncloud 4.5, LDAP and Zentyal
« on: December 27, 2013, 02:06:45 pm »
Just installed owncloud 6 and wanted to configure LDAP Connection with Zentyal 3.3.
I added 2 Groups (AdminHomeUser, HomeUser) and 5 Users.
Following worked:
Server:
ServerIP: Server IP of Zentyal Server (for example: ldap://127.0.0.1)
Port: 390
DN of Client User: Root DN of Zentyal
Password: Password of ldap
Base DN: Zentyal Base DN
User Filter:
only those object classes: inetOrgPerson
only from those groups: AdminHomeUser, HomeUser
Login Filter:
LDAP Username: checked
Group Filter:
only those object classes: posixGroup
only from those groups: AdminHomeUser, HomeUser
Advanced - Directory Settings:
User Display Name Field: uid
I added 2 Groups (AdminHomeUser, HomeUser) and 5 Users.
Following worked:
Server:
ServerIP: Server IP of Zentyal Server (for example: ldap://127.0.0.1)
Port: 390
DN of Client User: Root DN of Zentyal
Password: Password of ldap
Base DN: Zentyal Base DN
User Filter:
only those object classes: inetOrgPerson
only from those groups: AdminHomeUser, HomeUser
Login Filter:
LDAP Username: checked
Group Filter:
only those object classes: posixGroup
only from those groups: AdminHomeUser, HomeUser
Advanced - Directory Settings:
User Display Name Field: uid
39
Installation and Upgrades / Re: Installation: Cannot select any package anymore, after information about Office
« on: September 02, 2013, 09:39:29 am »
Screenshots
Step 1: Wanted to read the info
Step 2: Closed the Info
Step 3: Could not select any Package
Step 1: Wanted to read the info
Step 2: Closed the Info
Step 3: Could not select any Package
40
Installation and Upgrades / Re: Installation: Cannot select any package anymore, after information about Office
« on: August 31, 2013, 10:54:47 pm »
I'm sorry, I cannot post a screenshot. I closed the browser and loggedin again ...
Michael
Michael
41
Installation and Upgrades / Installation: Cannot select any package anymore, after information about Office
« on: August 30, 2013, 12:23:42 pm »
After 1. Login I saw the page, where I could choose the packages to install.
There I saw and could choose any package.
But when I click on [info] at office and after that close this info, the package selection is still invisible and i cannot choose any more packages or can install it.
Michael
There I saw and could choose any package.
But when I click on [info] at office and after that close this info, the package selection is still invisible and i cannot choose any more packages or can install it.
Michael
42
German / Re: E-Mail Einrichtung mit Zarafa und externen Konten
« on: March 27, 2013, 12:56:09 pm »43
German / Re: LDAP - Zentyal 3
« on: October 14, 2012, 09:22:05 am »
Hallo!
Owncloud 4.5 LDAP Einstellungen
http://forum.zentyal.org/index.php/topic,12509.0.html
Subsonic
Hoffe es hilft.
Michael
ich habe das Problem auch. Ich versuche von owncloud und subsonic (laufen beide auf der zentyal box) die Benutzer per LDAP zu authentifizieren.Ich hab zwar nur 2.2 laufen, hab aber owncloud und subsonic an LDAP angeschlossen.
Der Ldap Server scheint zu laufen. Auf der cli, kann ich per slapcat > test den kompletten Baum auslesen. Ich kann per Zarafa Benutzer authentifizieren und auch der User Corner läuft. Also es scheint nicht am laufenden LDAP zu liegen.
Owncloud 4.5 LDAP Einstellungen
http://forum.zentyal.org/index.php/topic,12509.0.html
Subsonic
- LDAP-URL: ldap://localhost:389/ou=Users,dc=XXXX?uid
Wobei "ou=Users,dc=XXXX" gleich "User DN" ist - LDAP-Suchfilter: (uid={0})
- LDAP Manager DN:cn=ebox,dc=XXXX
wobei "cn=ebox,dc=XXXX" gleich "Root DN" ist - Passwort ist LDAP Passwort
Hoffe es hilft.
Michael
44
Installation and Upgrades / Owncloud 4.5, LDAP and Zentyal
« on: October 13, 2012, 10:23:09 pm »
I had some problems with Owncloud, Zentyal and LDAP but it is working now, so I wanted to share the Parameters.
Owncloud - LDAP Settings vs. Zentyal - LDAP Settings.
[LDAP-Basic]
[LDAP-Basic]
[Advanced]
Owncloud - LDAP Settings vs. Zentyal - LDAP Settings.
[LDAP-Basic]
Owncloud-Parameter | Zentyal-Parameter |
Host | 127.0.0.1 |
Base-DN | Base-DN |
User-DN | Root-DN |
Password | Password |
[LDAP-Basic]
Owncloud-Parameter | Settings |
User Login Filter | uid=%uid |
User List Filter | objectClass=person |
Group Filter | objectClass=posixGroup |
[Advanced]
Owncloud-Parameter | Zentyal-Parameter |
Base User Tree | User-DN |
Base Group Tree | Groups DN |
45
German / Re: VM ohne Internet (mit DNS) ?!
« on: April 22, 2012, 05:02:32 pm »
Was ist den die GW Adresse in dem NAT?
Michael
Michael