Archive

Posts Tagged ‘Linux’

Над 100 дни uptime

June 17th, 2010 Venelin Kochev No comments

Сървъра на който се намира този блог е хостнат вкъщи, един много стар slackware инсталиран е преди 4-5 години, вчера направи рекорд :D

11:18:49 up 107 days, 15:44, 1 user, load average: 0.02, 0.11, 0.12

За съжеление, вчера беше разбит от една гръмотевична буря, тока спря, а след 30 мин – 1 час и UPS-а угасна … damn

Categories: Linux, Разни Tags: , , ,

MySQL table crash

February 16th, 2009 Venelin Kochev No comments

Днес имаше crash на основната mysql таблицата на dirimp3.com около час борба и check-ване и пускане на разни tools, сайта отново е на лице.

Част от лога:

# ./myisamchk -c dirimp3/music.MYI
Checking MyISAM file: dirimp3/music.MYI
myisamchk: warning: 1 client is using or hasn’t closed the table properly
- check file-size
- check record delete-chain
- check key delete-chain
- check index reference
- check data record references index: 1
- check data record references index: 2
- check data record references index: 3
- check data record references index: 4
myisamchk: error: Found key at page 32574464 that points to record outside datafile
- check record links
myisamchk: error: Keypointers and record positions doesn’t match
MyISAM-table ‘dirimp3/music.MYI’ is corrupted

# ./myisamchk -r dirimp3/music.MYI
- recovering (with sort) MyISAM-table ‘dirimp3/music.MYI’
- Fixing index 1
- Fixing index 2
- Fixing index 3
- Fixing index 4

# ./myisamchk -o dirimp3/music.MYI
- recovering (with keycache) MyISAM-table ‘dirimp3/music.MYI’
Duplicate key 4 for record at 1726560 against new record at 423740
Duplicate key 4 for record at 46808668 against new record at 6501208
Killed

Това е крайния резултат:

MyISAM file: xxxx/dirimp3/music.MYI
Record format: Packed
Character set: utf8_general_ci (45)
File-version: 1
Creation time: 2009-01-25 15:32:44
Recover time: 2009-02-15 18:47:35
Status: open,changed
Datafile length: 142761600 Keyfile length: 153101312
Max datafile length: 281474976710654 Max keyfile length: 288230376151710719
Recordlength: 101

Атаки

January 19th, 2009 Venelin Kochev No comments

Преди малко проверих error log-a на Apache, извадих копелетата, които пускат разни атаки към сървъра около 25, направо ги набутах в iptables, изобщо да не могат да се connect-ват, имам усешането, че списъка с банатите IP-та ще ръсте, не мисля, че тези ще са последните :)

Categories: Apache, Linux, Уеб Tags: , ,