Forum » Operacijski sistemi » Debian server problem
Debian server problem
Hexx ::
Pozdravljeni,
na mojem Debian strežniku se mi je zgodilo da sem ob ustvarjanju spletne strani pobral zbuggan plugin za CMS, ki je pognal čuden sql klic kar je v trenutku zafilalo disk in ustavilo mysql strežnik.
Df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/vzfs 20G 6.8G 1.1G 87% /
Odstranil sem nekaj logov in backup datotek tako da sem dobil nekaj prostora, da lahko sploh mysql strežnik spet zaženem in vidim da je disk zaseden le 7/20GB piše pa 87% use.
Po tutorialih na netu sem še zagnel tole, kar pomeni da je apache ustvaril veliko neizbrisanih datotek, kaj lahko naredim da dobim nazaj celoten prostor?
lsof | grep "(deleted)"
apache2 645 root mem REG 145,19 2154817209 (deleted)/dev/zero (stat: No such file or directory)
apache2 645 root mem REG 145,19 2154817250 (deleted)/dev/zero (stat: No such file or directory)
apache2 645 root mem REG 145,19 2154817252 (deleted)/dev/zero (stat: No such file or directory)
apache2 645 root mem REG 145,19 2154817196 (deleted)/dev/zero (stat: No such file or directory)
apache2 645 root mem REG 145,19 2154817040 (deleted)/dev/zero (stat: No such file or directory)
apache2 645 root 20w REG 145,10 0 34088908 (deleted)/var/run/apache2/ssl_mutex
sshd 1141 root mem REG 145,19 2154917967 (deleted)/dev/zero (stat: No such file or directory)
sshd 1141 root mem REG 145,19 2154913890 (deleted)/dev/zero (stat: No such file or directory)
sshd 1143 alec mem REG 145,19 2154917967 (deleted)/dev/zero (stat: No such file or directory)
sshd 1143 alec mem REG 145,19 2154913890 (deleted)/dev/zero (stat: No such file or directory)
apache2 1177 www-data mem REG 145,19 2154817209 (deleted)/dev/zero (stat: No such file or directory)
apache2 1177 www-data mem REG 145,19 2154817250 (deleted)/dev/zero (stat: No such file or directory)
apache2 1177 www-data mem REG 145,19 2154817252 (deleted)/dev/zero (stat: No such file or directory)
apache2 1177 www-data mem REG 145,19 2154817196 (deleted)/dev/zero (stat: No such file or directory)
itd...
Hvala!!
na mojem Debian strežniku se mi je zgodilo da sem ob ustvarjanju spletne strani pobral zbuggan plugin za CMS, ki je pognal čuden sql klic kar je v trenutku zafilalo disk in ustavilo mysql strežnik.
Df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/vzfs 20G 6.8G 1.1G 87% /
Odstranil sem nekaj logov in backup datotek tako da sem dobil nekaj prostora, da lahko sploh mysql strežnik spet zaženem in vidim da je disk zaseden le 7/20GB piše pa 87% use.
Po tutorialih na netu sem še zagnel tole, kar pomeni da je apache ustvaril veliko neizbrisanih datotek, kaj lahko naredim da dobim nazaj celoten prostor?
lsof | grep "(deleted)"
apache2 645 root mem REG 145,19 2154817209 (deleted)/dev/zero (stat: No such file or directory)
apache2 645 root mem REG 145,19 2154817250 (deleted)/dev/zero (stat: No such file or directory)
apache2 645 root mem REG 145,19 2154817252 (deleted)/dev/zero (stat: No such file or directory)
apache2 645 root mem REG 145,19 2154817196 (deleted)/dev/zero (stat: No such file or directory)
apache2 645 root mem REG 145,19 2154817040 (deleted)/dev/zero (stat: No such file or directory)
apache2 645 root 20w REG 145,10 0 34088908 (deleted)/var/run/apache2/ssl_mutex
sshd 1141 root mem REG 145,19 2154917967 (deleted)/dev/zero (stat: No such file or directory)
sshd 1141 root mem REG 145,19 2154913890 (deleted)/dev/zero (stat: No such file or directory)
sshd 1143 alec mem REG 145,19 2154917967 (deleted)/dev/zero (stat: No such file or directory)
sshd 1143 alec mem REG 145,19 2154913890 (deleted)/dev/zero (stat: No such file or directory)
apache2 1177 www-data mem REG 145,19 2154817209 (deleted)/dev/zero (stat: No such file or directory)
apache2 1177 www-data mem REG 145,19 2154817250 (deleted)/dev/zero (stat: No such file or directory)
apache2 1177 www-data mem REG 145,19 2154817252 (deleted)/dev/zero (stat: No such file or directory)
apache2 1177 www-data mem REG 145,19 2154817196 (deleted)/dev/zero (stat: No such file or directory)
itd...
Hvala!!
- spremenil: Hexx ()
Vredno ogleda ...
Tema | Ogledi | Zadnje sporočilo | |
---|---|---|---|
Tema | Ogledi | Zadnje sporočilo | |
» | [Linux] Ubuntu serveOddelek: Operacijski sistemi | 1232 (1044) | tx-z |
» | [Debian] Po dveh dneh uporabe sem ga sesul :SOddelek: Operacijski sistemi | 1983 (1730) | Ice-Heki |
» | oscommerce v slo (strani: 1 2 )Oddelek: Izdelava spletišč | 8332 (7147) | gregy |
» | EZ portal problem!Oddelek: Izdelava spletišč | 1354 (1274) | roli |
» | Kako inštalirati program v linuxih ??Oddelek: Programska oprema | 1515 (1381) | Gandalfar |