I Think I Just Dodged A Tactical Nuke
Almost.
Sakura, the third server in the mu.nu cluster, used for offsite backups and for offloading some sites during the election overload, just dropped dead.
Now the two main servers, Aoi and Midori, do daily backups and then exchange backup files. I'd intended to apply that to Sakura as well, but Sakura went live about the time I went insane, and it never happened.
The first sign of trouble was earlier today, when Protein Wisdom started running slow, and then stopped entirely. I logged in and poked around a bit, but couldn't see any problem. Restarted Apache. Ran a check on the database. All fine.
Took a look at the system log. Reporting 6 bad sectors on the disk. Okay, that's not great, but not the end of the world. I'll take a backup, copy it offsite, and get them to replace the disk.
Start the backup to the second disk, and everything's fine for a few minutes, and then it's nothing but I/O errors. Uh-oh. The system disk has gone offline, taking with it the databases
and the operating system.
I'm still logged into the server, mind you. But I've lost /bin, /usr/bin, everything bin. What still works? Well, let's see. I have cd. I have echo, because that's built into the shell. And I have cat.
And that's about it.
And using cd, echo, and cat, I managed to rescue the main
Protein Wisdom database from a disk that I couldn't access, because the entire thing was cached in RAM.
The reason why I only
almost dodged the nuke is that it came up with a bunch of I/O errors, and I thought it hadn't worked, so I had tech support reboot the server.
Mistake. The server wouldn't boot from the drive, so they had to replace it. They put it in an external caddy, but it still wouldn't recognise it. So all I had was a corrupted backup of one database.
But I was able - thanks to myisamchk and repair table and a spare copy of the Wordpress database structure - to rebuild that database and merge it into the last off-site backup.
If I hadn't rebooted at that point, I might have been able to do the same for the other databases.
And then I got a call from my business partner. He had a site - a business site - hosted on that server as well. And I'd just lost all his data... Except not, I realised, after my blood pressure had hit 180/140. He's running a hosted app that was
linked from the site he has on that server, so all he needed was for me to restore the static content of his site, which was backed up safely. Twice, in fact.
The third site on there wasn't so lucky, and lost a couple of month's data. Fortunately, it's a less busy site, and a couple of hours spent trawling Google's caches let me dig out most of the missing posts; the site owner will just need to cut-and-paste those and re-load the associated media files.
I just spent five solid days - as in, 120 consecutive hours - panicking about the servers at my day job. And the minute I get that fixed (and in the end, a lot better than it ever was before) and everyone is happy, boom!
And now I'm dead. I'm so dead my deads have dead on them. I hadn't even been grocery shopping for two weeks, until I hauled myself up the hill to the shops just now at 8:30 on a Sunday night.
I need some
Popotan.
Posted by: Pixy Misa at
08:15 PM
| Comments (10)
| Add Comment
| Trackbacks (Suck)
Post contains 610 words, total size 4 kb.
1
that would suck to lose all your old posts. that happened to me before, and it took me weeks of working around the clock to restore them all!
Posted by: Comrade Tovya at Monday, February 23 2009 06:08 AM (DAaYy)
2
I'm glad you have a day job.
Posted by: Pete Zaitcev at Monday, February 23 2009 07:04 AM (/ppBw)
3
So am I Pete, though it drives me crazy at times.
The good thing about my day job is that I'm doing some pretty advanced stuff with MySQL and SSDs, and doing some fancy server configurations, so I'm learning new stuff about Linux as well.
The bit that drives me crazy is that it's my job to deliver 24x7 operations on a pre-beta application.
Posted by: Pixy Misa at Monday, February 23 2009 12:10 PM (PiXy!)
4
Comrade Tovya - yeah, only this is worse, I lost someone else's posts.
If you lose your own stuff, it's sad and annoying, but you kick yourself for being an idiot an not doing/checking your backups and you move on.
When you lose someone else's stuff because you forgot to do something that you
know you have to do, well, you really feel like a jerk.
ops:
Posted by: Pixy Misa at Monday, February 23 2009 12:12 PM (PiXy!)
Posted by: Andrew at Monday, February 23 2009 05:02 PM (/uGTr)
6
It's not that far to the shops, it's just I haven't had any time. But I don't know in advance that I won't have any time, and don't know when I'll be home, so I end up living on stale Saladas and tinned peaches.
Posted by: Pixy Misa at Monday, February 23 2009 08:13 PM (PiXy!)
7
I tried home delivery of groceries one time. I have no idea whether it would be the same for Pixy, but it wasn't too bad.
However, delivery was scheduled for a 4 hour window during banker's hours and I had to be here to receive it. That's no problem for me; I'm always here anyway. But as busy as Pixy is, I don't think it would work. It'd take less time for him to go to the store, plus he could do it in the evening or on a weekend.
Posted by: Steven Den Beste at Wednesday, February 25 2009 11:33 AM (+rSRq)
8
There needs to be some sort of proxy device that would allow you receive/inspect things while not at home.
Posted by: Space monkey at Wednesday, February 25 2009 01:26 PM (Yx/od)
9
Aoi, that slips my mind, I know it. . . is it yellow? or is it red? I think it's red.
Sakura is "cherry" often used as "Cherry Blossom,"
Midori is easy cuz of the licquor, which is green.
Posted by: wickedpinto at Thursday, March 05 2009 01:53 PM (hsFNJ)
10
Aoi is blue.
Yes, the three current servers are blue, green, and cherry-blossom-pink.
They'll be replaced next month with Akane (crimson) (from
Ranma, of course) and Mikan (orange) (from
Gakuen Alice).
The server naming convention is "female leads in anime whose names refer to colours". And for the main server cluster, they have to also start with A or M. So next two after Akane and Mikan are Ai (indigo) (
Popotan) and Momoko (peach) (
Sumomomomomomo).
Virtual servers are, of course, named after the supporting female cast of the respective shows.
Posted by: Pixy Misa at Thursday, March 05 2009 02:44 PM (PiXy!)
Hide Comments
| Add Comment
1.2-alpha-c1
The new edition of Minx is working!
Okay, it's still in internal alpha testing, but after I ripped out its internals to provide for some of the major new features (scripting language, API support, safe third-party applets) it's been kind of broken for a while.
Now it's working fine, and seems to be at least
close to the speed of 1.1. I can optimise the common cases of my new tag dictionary class, which is very heavily used; that should help things along.
Hmm.
Before:
108kb generated in CPU 0.13, elapsed 0.1315 seconds.
65 queries taking 0.0324 seconds, 276 records returned.
Powered by Minx 1.1.2-beta.
After:
106kb generated in CPU 0.12, elapsed 0.1285 seconds.
70 queries taking 0.0426 seconds, 279 records returned.
Powered by Minx 1.2-alpha-c1.
But I just noticed that recent comments aren't working on 1.2.*
Based on the work I've been doing at my day job over the past year, I do have some neat ways to potentially speed up the query side of things (and reduce the number of queries). But that's only one third the total time, so Amdahl's Law applies in spades.
* Doh! It's that blasted cross-referencing indexy thing I implemented. Efficient, yeah, but if the cross-reference table is empty it don't work. And if the cross-reference table isn't accurate, it don't work right. I'll have to find - or rewrite - the code to rebuild the index, but at least I know it's not a bug. As such.
Posted by: Pixy Misa at
11:08 PM
| No Comments
| Add Comment
| Trackbacks (Suck)
Post contains 244 words, total size 2 kb.
Pig Bums
Broke my glasses.
Amazingly, I managed to find
both my spare pairs despite my optically-challenged condition. Now looking forward to raging headache kicking in about 4PM.
Posted by: Pixy Misa at
09:06 AM
| Comments (10)
| Add Comment
| Trackbacks (Suck)
Post contains 28 words, total size 1 kb.
1
Broke my current pair some week and a half ago. Fancy Silhouette frameless ones.
Literally took them off holding them at the bend and the arm snaps off !
Granted I've had them for five or six years.
Had to haul out the old old old old glasses whilst the new ones are on order.
Posted by: Andrew at Tuesday, February 03 2009 12:10 PM (/uGTr)
2
Looks like the comment counter under each entry is reporting one higher than it should, at least on this page.
Posted by: Andy at Thursday, February 05 2009 02:42 AM (MXy5A)
3
Off topic:
Pixy,
Would you consider allowing 'img' tags in the comments on mu.nu blogs? It would set you a mark above the competition, and I suspect it would create extra humor on, say, AoS.
It's one of the most interesting parts of snappedshot.com and thepeoplescube.com. It just seems like you are missing out on fun and lucrative part of the web.
Posted by: Kevin at Thursday, February 05 2009 03:37 AM (8uBBu)
4
Try using the BBScript equivalent:
(leftsquarebracket)img=path(rightsquarebracket)
Posted by: Steven Den Beste at Thursday, February 05 2009 06:02 AM (+rSRq)
5
For instance:
Posted by: Steven Den Beste at Thursday, February 05 2009 06:06 AM (+rSRq)
6
That works only if it's an image stored on a mee.nu or mu.nu server. I suspect he's looking for the option of hotlinking random imageshack and photobucket type stuff. Those seem to get filtered out by the comment system. (Pixy, correct me if I'm wrong.)
Posted by: Will at Thursday, February 05 2009 09:16 AM (WnBa/)
7
Hmm, that's still pretty cool, though Will is right about my goal of using photobucket. So I could create a mee.nu blog, store some images, and then post them in comments on mu.nu blogs using bbcode? That's great!
Thanks Mr. den Beste.
Posted by: Kevin at Thursday, February 05 2009 09:20 PM (8uBBu)
8
Not trying to be a nag here, but just thought you'd be interested. I just found
this in my refers (who knows why) and it's got nearly 2000 spams. The last ones were posted on Feb 6 2009, i.e. now.
Posted by: Steven Den Beste at Friday, February 06 2009 03:35 PM (+rSRq)
9
Be vewwy vewwy quiet! I'm harvesting spammer IP's!
Posted by: Pixy Misa at Saturday, February 07 2009 12:39 PM (PiXy!)
10
Fair enough. It hadn't occurred to me that you were using it as a honeypot.
Posted by: Steven Den Beste at Sunday, February 08 2009 06:11 AM (+rSRq)
Hide Comments
| Add Comment
Avoiding Work
Making omelettes.
Posted by: Pixy Misa at
01:03 PM
| Comments (12)
| Add Comment
| Trackbacks (Suck)
Post contains 4 words, total size 1 kb.
1
Sorry to interrupt your cooking, but when I try to despam using the blacklist it says:
jayallen::Blacklist=HASH(0x93d0f10) DBD::mysql::st execute failed: Table 'mt_comment' is marked as crashed and should be repaired at lib/MT/ObjectDriver/DBI.pm line 43.
jayallen::Blacklist=HASH(0x93d0f10) DBD::mysql::st bind_columns failed: Statement has no result columns to bind (perhaps you need to successfully call execute first) at lib/MT/ObjectDriver/DBI.pm line 44.
jayallen::Blacklist=HASH(0x93d0f10) DBD::mysql::st fetch failed: fetch() without execute() at lib/MT/ObjectDriver/DBI.pm line 46.
Posted by: Susie at Monday, February 02 2009 06:16 AM (DJD/F)
2
Okay, that's really weird. The mt_comment table isn't marked as crashed - we'd have noticed that instantly, because everything would have fallen over.
I'll see if I can work out what's going on.
Posted by: Pixy Misa at Monday, February 02 2009 09:04 AM (PiXy!)
3
I'm more and more glad that I decided to require registration for comments. I haven't had a single spam comment.
Posted by: Steven Den Beste at Monday, February 02 2009 09:33 AM (+rSRq)
4
I think it's the content of the comments--they are weird characters/symbols. The blacklist will work for the most recent spam comments, but I get that error message for the older ones (when I search higher numbers of comments). Munuviana had about 3000, and I've been deleting them post by post. There's about a thousand on PP that I haven't gotten to, because it's darned tedious!
Posted by: Susie at Monday, February 02 2009 12:16 PM (DJD/F)
5
Off topic.
What is the damn link to the damn white paper for the .nu domain?
Posted by: wickedpinto at Monday, February 02 2009 06:06 PM (ul7te)
Posted by: Pixy Misa at Monday, February 02 2009 10:10 PM (PiXy!)
7
No luck fixing the Blacklist so that it will zap that spam?
Posted by: Susie at Tuesday, February 03 2009 12:05 AM (DJD/F)
8
I did manage to reproduce it, so I'm running a table repair now. Should be fixed in a few minutes...
Posted by: Pixy Misa at Tuesday, February 03 2009 07:54 AM (PiXy!)
9
There you go, all fixy-uppied.
Posted by: Pixy Misa at Tuesday, February 03 2009 07:59 AM (PiXy!)
10
Yay! Thank you so much! I had to go back sixty thousand comments to get it all, though. We really must have gotten hit these last few days....
Posted by: Susie at Tuesday, February 03 2009 09:54 PM (DJD/F)
11
I deleted 17,000 spams myself, and there's plenty more to go.
Posted by: Pixy Misa at Tuesday, February 03 2009 10:26 PM (PiXy!)
12
Thats it, thanks pixy.
Posted by: Wicked Pinto at Sunday, February 08 2009 05:33 PM (ul7te)
Hide Comments
| Add Comment
72kb generated in CPU 0.1255, elapsed 0.2728 seconds.
55 queries taking 0.2569 seconds, 398 records returned.
Powered by Minx 1.1.6c-pink.