Wednesday, March 5, 2008

Fileserver drama

It's been an exciting few days here in Geekland. I successfully installed my two new hard drives. That involved routing cables in an ugly manner, but was otherwise uneventful. I was not able to replace my north bridge fan, though - the wiring for the current one goes under the heatsink, but to remove that I think I need to remove the motherboard from the case. Anyway, at that point, I was all ready to grow my raid5 array.

But wait! How could this be? My 4-disk raid5 array is only running with 3 active disks1. It would appear that sometime on December 17, a power outage or similar caused a hard drive to be marked as failed. I should really set up some sort of notification. Well, I took the opportunity to learn all about recovering a dirty raid array. Good ol' mdadm was marvelous!2

With a fully functioning, clean, 4-disk raid5 array, it was time to grow the array. I called upon mdadm once again3 and got my two new drives added as hot spares. Just one more command4 to grow the array --

What's this? Linux and mdadm require versions 2.6.17 (2.6.19 according to some) and 2.4.1 and later, respectively, in order to grow a raid5 array? Surely Ubuntu, the most user-friendly linux version available will have a convenient upgrade mechanism - well, sort of. Upgrading reported a few errors, but I was running 2.6.20 and mdadm4 wasn't throwing an error anymore. Huzzah, my raid array was growing!

Kernel Panic? Aiee! Oh god oh god oh god. 2TB of data lost! Please let this reboot erase this bad dream... Eep! /dev/md0 no longer exists! There has to be a way to fix this - it's linux! Why, of course! I can always rely on mdadm. Why, once you reassemble the array5, it goes right on growing! Kernel Panic, again? Screw this.

After tiring of kernel panics and screaming "Aiee!" I downloaded an installation CD for the latest Ubuntu distribution. I had to reformat /root and /boot (and opted to format /home while I was at it), but I had a clean installation. In fact, it made everything easier. Once I reinstalled the mdadm package, /dev/md0 magically reappeared and was growing once again. It's now 56.7% done growing. After that, I need to resize the ext3 file system6, but I think that will go smoother.

At least I know the data is still there (at least mostly). After another while reinstalling and configuring samba and mounting /dev/md0, I have successfully watched an episode of TV. Indeed, I can still use my 2TB of file storage while it's growing into 3.5TB! If it weren't for a faulty upgrade, I probably wouldn't have had to reboot except for the hardware installation (and I admit that can even be avoided given proper cable planning in the case). I'm still amazed that mdadm can handle a bad disk, adding two disks, a faulty OS upgrade, kernel panics interrupting a reshape, reassembling unclean disks and making them clean again, resuming an interrupted reshape operation from a different version, and almost all while allowing the drive to remain accessible. Simply amazing.

Commands to remember:
  1. cat /proc/mdstat
  2. mdadm --add /dev/md0 /dev/sdd1
  3. mdadm --add /dev/md0 /dev/sde1 /dev/sdf1
  4. mdadm --grow /dev/md0 -n 6
  5. mdadm --assemble /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sde1 /dev/sdf1
  6. resize2fs /dev/md0 (theoretically)

Friday, February 29, 2008

Google Analytics

My brother (babaBrian and Internet Video of the Day) told me to add Google Analytics to this here blog and I'm glad he did. It's a lot of fun to see what brings people in. I don't particularly care how long they stay or what pages they visited, but the Google search information presented is fascinating.

For instance, since I've added Google Analytics, there have been 9 Google search referrals. In all the following, the quotes mark the keywords used and are not included in the actual search box. If you type in "earnings strategy" as a search, my blog is miraculously #1! I'm also the #1 result for "how to profit when option assigned." I'm #2-#5 on the rest so far ("google share implied volatility," "grmn strangle earnings," "implied volatility profiting earning seasons," "options assigned," and "svnt blog"). The financial posts are evidently the most popular. Perhaps I should get back to that topic again.

I can see how Google Analytics would be helpful for a serious website looking to bring in advertising revenue, track the sales process, or something similar. Mostly, though, I think it's just fun and interesting to see which random searches find you.

Dungeons and Dragons

I was featured in yesterday's Internet Video of the Day, which was quite fun. I am indeed playing Dungeons and Dragons for the first time on Saturday. I'm really looking forward to it. My friend's wife helped me create an initial character and told me about some of the basics. Since then, I've been reading up in more detail on the D&D Wiki.

I still have quite a few questions, and I'm sure some things will end up being like the Free Parking in Monopoly - things aren't always done according to the rules. It should be a fun experience regardless.

In other nerdy news, my hard drives arrived! I think I will install them on Sunday. I'm quite excited. I just hope I don't lose all my data when I try and expand the raid array.

Thursday, February 28, 2008

Computer Upgrades

I placed an order on Newegg yesterday for two more 750GB hard drives for my fileserver. I'm very excited because they arrive tomorrow! Newegg is fast! I'm thinking of making a trip up to Microcenter at some point in the next couple of days to get a new north bridge fan. I figure as long as my machine is going to be off while I add new hard drives and the like, I might as well get rid of the one loud fan that's in the box. I still need to figure out exactly how to expand a linux raid5 array, but that should be fun. Also cool: my hard drives were each part of a combo deal, so I get two free USB drives - one is 2GB and the other is 4GB. Perhaps I'll actually use one sometime.

I also did some research for my next primary machine while I was shopping. I've picked out a likely case and memory, but beyond that I ran into some troubles. There wasn't any clear best choice on processor/motherboard/graphics combinations. In the end, I decided that since I won't be buying a new machine until at least June, that I'll postpone any research until then, too.

The only lasting decision I made was to name my new computer Nora. In fact, this will be the first computer I will have named. I chose the name when it immediately popped into my head when Newegg asked me what I should name the wish list of parts I'd created. So, I'm not sure what the significance is yet, but Nora has some potential to be special.

Saturday, February 16, 2008

Thoughts on Prostitution

Let me start this by saying I have no plans to ever pay for sex. I've been watching Boston Legal recently, and this has gotten me thinking about laws and arguments. Thus this post.

My thought process started by looking for a good defense. First, it may be possible to characterize the transaction as paying for time during which sex just happened to occur. Undercover police officers would word things to avoid this possibility, though. Then I wondered if it were legal to hire someone to keep you company (an escort, which seems to be legal) only with the understanding that sex would be a recreational activity. A clever prosecutor could still charge you with sexual discrimination or harassment (do these crimes require the apparent victim to file a complaint?), but at this point you'd be paying for someone's time, rather than paying for sex.

This got me thinking about general hiring restrictions. If I pay a woman to spend time with me and perform sexual acts, I am hiring someone to perform a service, just like any other employer. Where does the restriction on purchasing some services come from, then? It is illegal to hire someone to kill, but killing is already illegal. What other services, that aren't already illegal themselves, are illegal to hire for?

Perhaps I should actually read relevant laws and case studies. That just seems like a large waste of time to devote to something that will have no practical application in my life, though. Oh well.

Monday, February 11, 2008

The Republican Caucus

On Saturday morning, I woke up early (before my alarm went off, even!). I went to Blue Valley Northwest High School at about 9:30 am for the Republican Presidential Caucuses. I learned in line that this was the first time Kansas has had caucuses in 20 years and that they were seen as a cheaper alternative to full primaries. Unfortunately, this resulted in 1/600 as many voting locations. They had to hold two sessions because there were so many people, and you have to wonder how many didn't stick around to hear that everyone in line would be allowed to vote. I got there late enough that I had to stand in line for about an hour, but I was able to vote in the second session.

Standing in line was actually more fun than participating in the caucus. There was good conversation in front of me and behind me, a crazy old man, and a conspiracy theorist right next to me. The crazy old man kept saying I was the future of the Republican party and that I have to write letters supporting the candidates for various offices. I didn't have the heart to tell him that I'm mostly Democrat. One of the guys in front of me was an old official in the Republican party, too, and had some interesting facts about what was really happening. And then there was this lady that brought her husband's voter registration card hoping for a second ballot because he just had surgery and couldn't make it. I really hope she wasn't given a second ballot, but if she was, I'm definitely going to be stealing a few voter registration cards next election!

All in all, it wasn't as great an experience as I'd hoped, but it was still an enjoyable Saturday morning. I got to show my support for Ron Paul while reminding myself of why I hate most politics. Has anyone been to a major Democratic event? Did they question the patriotism of Republicans? This was the part that annoyed me the most: We started the caucus part with the Pledge of Allegiance, after which the guy on stage quipped, "Do the Democrats even do that anymore?" Thankfully, he got a few upset howls among the applause. Ugh.

Friday, January 25, 2008

Voter registration

I recently updated my voter registration. I changed my address to my current residence, but I also changed my party affiliation from UNAFFILIATED to REPUBLICAN. This allows me to participate in the Republican primary caucuses. I'm very excited about this. It will be my first primary election activity.

The bad news? I won't be allowed to vote in the Democratic Party Presidential Caucus. Between the two, I'd rather vote in the Republican one. For one, I can usually live with any Democrat better than I can with many of the Republicans out there now - I can better ensure a workable candidate by choosing the opposition. In this particular case, I'm also more passionate about my support of Ron Paul than I am for any of the Democratic candidates. There's a picture I saw where a supporter was wearing a T-shirt or holding a sign that said "Dr. Paul cured my apathy." I agree with that.

So, at 9:00A.M. on Saturday, February 9, 2008, you should be able to find me at Blue Valley NW High School, 13260 Switzer. Are you registered Republican in Kansas? Find your caucus location!

Dining room art

I've been shopping for the past week or so for artwork and/or a mirror to go over the dining room buffet/sidebar. Carrie has expressed annoyance at my selection of stuff so far, so hopefully whatever I get will break that trend. Her mom tells her she will bring some of her father's old paintings the next time she visits, too. I'm interested to see what they are like.

But, so far I have found a couple paintings and a mirror that could work. One place has a buy-one-get-one-half-off sale going through the end of January. I'm only really interested in one painting, there, but my brother has found another one or two that he says would have a place in my house no matter what. I do have plenty of basement walls to fill eventually, after all.

It's been an interesting process. I've had to develop my tastes all in the last year, for the most part. It really has been one fairly major decision after the next. Once I bought the house, I had to pick out a refrigerator. Then I had to get a washer/dryer set. Later I had to get a kitchen table. Then I had to pick out a TV. I made sure my house had room for a ping pong table when I bought it, so then I had to pick out a ping pong table. Most recently, I had to pick dining room furniture. I thought I was done for awhile, but I now apparently need artwork.

So, I've been gathering opinions and analyzing my personality. I don't think most people are as intellectual about it as I am. I feel more like a dream interpreter than anything. Where most people would say "I like that," I look at it and make up a symbolism matching my personality. "The frame is simple, which goes along with my practical nature." I do recognize that there are colors, shapes, and overall styles that I don't particularly care for, though, which is a major step for me. Still, there doesn't seem to be anything that represents the side of my personality that largely doesn't care and that can live with pretty much anything, or nothing, on the walls.

Yet to be decided: my new set of clothes for the next few years. The decisions never end.

Sunday, January 20, 2008

Plea for help

In case you haven't noticed, the stock market hasn't been doing so hot in the last few days/weeks/months. But you know what's cool? You can help! You can go out and buy something right now and improve the economy. You want to help even more, you say? Well, you're in luck! You can go buy something, break it right away, and buy it again!

Recommended products to buy: Garmin GPS devices, AMD/ATI computer parts, E*TRADE financial services/products.

Thanks guys!

Thursday, January 10, 2008

New Dining Room Furniture

My dining room furniture has arrived, so I thought I'd share a couple pictures for no particular reason.

Table and Sidebar from the front entryway (and Fiona).

China hutch thing from entryway.

As you can see in the second picture, there's not a whole lot of extra room between the end chair and the china hutch thing. I'd like to put the leaf in the table, but in order to have workable room on both ends the table couldn't be centered, and I'm not sure how good that would look on a day to day basis.