Current time: 05-07-2024, 04:02 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[ERLEDIGT]Backup führt zu hoher Last und Mailfehlern
Author Message
sunghost Offline
Junior Member
*

Posts: 190
Joined: Jun 2009
Reputation: 0
Post: #31
RE: [ERLEDIGT]Backup führt zu hoher Last und Mailfehlern
Sorry,
hatte deine Antwort gar nicht mehr gesehen:
Quote:crontab -l -u root
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#*/10 * * * * root /root/scripte/vserver_security_guard_reset.sh
#
und die crontab selbst
Quote:cat /etc/crontab
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#

ah sehe grade, dass ich in der crontab von root eine Zeile auskommentiert habe. evtl. liegts daran. ich teste es mal und nehm sie ganz raus.
(This post was last modified: 05-20-2010 05:05 PM by sunghost.)
05-20-2010 05:03 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #32
RE: [ERLEDIGT]Backup führt zu hoher Last und Mailfehlern
*könnte* sein, dass kommentierte Befehle nicht ausgeführt werden Smile

und nicht vergessen:
/etc/cron* - Verzeichnisse... ggf. hat's da auch was...


Gruss J
05-20-2010 05:18 PM
Visit this user's website Find all posts by this user Quote this message in a reply
sunghost Offline
Junior Member
*

Posts: 190
Joined: Jun 2009
Reputation: 0
Post: #33
RE: [ERLEDIGT]Backup führt zu hoher Last und Mailfehlern
Mh, da habe ich nichts geändert. Ach doch irgendwann mal die Backupzeit von 0 auf 3 Uhr. Das sollte es aber nicht sein.
05-20-2010 05:40 PM
Find all posts by this user Quote this message in a reply
sunghost Offline
Junior Member
*

Posts: 190
Joined: Jun 2009
Reputation: 0
Post: #34
RE: [ERLEDIGT]Backup führt zu hoher Last und Mailfehlern
leider lags nicht am kommentar
mailtitel: root cd / && run-parts --report /etc/cron.hourly
in cron.hourly gibts keine einträge
05-20-2010 10:31 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #35
RE: [ERLEDIGT]Backup führt zu hoher Last und Mailfehlern
Dann muss es ja dieser Job sein:
17 * * * * root cd / && run-parts --report /etc/cron.hourly

Was steht denn in der Mail?
(falls es oben schon ist: in welchem Post... ist etwas unübersichtlich geworden...)

/J
05-20-2010 11:04 PM
Visit this user's website Find all posts by this user Quote this message in a reply
sunghost Offline
Junior Member
*

Posts: 190
Joined: Jun 2009
Reputation: 0
Post: #36
RE: [ERLEDIGT]Backup führt zu hoher Last und Mailfehlern
dort steht: "/bin/sh: root: command not found"
05-21-2010 05:19 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #37
RE: [ERLEDIGT]Backup führt zu hoher Last und Mailfehlern
Ahhhh - ich glaube, ich weiss was los ist:

normalerweise werden alle für ispcp notwendigen cron-jobs nur in den cron-files unterhalb /etc aufgelistet (wie zB. in /etc/cron.d/ispcp)

Der Befehl "crontab -l" listet jedoch die Jobs auf, die über den crontab Befehl eingegeben und unter /var/spool/cron gespeichert werden...

Dort sind aber keine Angaben für den User notwendig/erlaubt - da diese sowieso schon einem bestimmten User zugeordnet sind.

Ich weiss nun nicht, wie deine crontab-Datei da rein kommt - aber es ist falsch.

Bei mir kommt mit crontab -l -u root:"no crontab for root"

ich würde das mal beheben ("crontab -r" ???)

Gruss
Joxi
05-21-2010 06:48 PM
Visit this user's website Find all posts by this user Quote this message in a reply
sunghost Offline
Junior Member
*

Posts: 190
Joined: Jun 2009
Reputation: 0
Post: #38
RE: [ERLEDIGT]Backup führt zu hoher Last und Mailfehlern
Jau, das war es. Keine Ahnung wie das so zustande kam, aber nun ist Ruhe Wink
05-25-2010 09:11 PM
Find all posts by this user Quote this message in a reply
sunghost Offline
Junior Member
*

Posts: 190
Joined: Jun 2009
Reputation: 0
Post: #39
RE: [ERLEDIGT]Backup führt zu hoher Last und Mailfehlern
Hallo,
ich konnte eben, ab ca. 0 Uhr, sehen wie die Last auf dem vServer auf 100% stieg. 1GB Arbeitsspeicher und Swap alles war auf 100%. Schuld war der rkhunter der über den cronjob gestartet wurde und wohl den Logfile anlegte. Das Dauerte ca. 10-15min und die DB war teilweise nicht erreichbar. Jetzt wo alles durch ist, ist die CPU auf Normal, der Speicher 605/1000 laut htop, aber swap ist immer noch 854/854. Liegt das alles am vServer? Und warum wird der Swap nicht mehr freigegeben?
05-29-2010 08:23 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #40
RE: [ERLEDIGT]Backup führt zu hoher Last und Mailfehlern
ggf. die Cronjobst etwas verteilen und mit nice starten lassen...
05-29-2010 08:36 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)