Archive for May, 2008

On growing mdadm RAID5

Wednesday, May 28th, 2008

There is a right way and there are wrong ways to add dri­ves to a RAID5 array with mdadm. Annoyingly, I chose one of the wrong ways last week when I went to increase the hard drive space in thevoid. Thankfully, my mis­take has proven more both­er­some and time con­sum­ing than harmful.

Starting out last week, thevoid had 4x 500GB dri­ves in an mdadm RAID5 con­fig­u­ra­tion: /dev/hde1, /dev/hdg1, /dev/sda1, /dev/sdb1. This had me sit­ting on 1.5TB of space with one drive worth of fail­abil­ity, which was prov­ing insuf­fi­cient. In order to resolve my space issues, I ordered 3x 500GB dri­ves and pro­ceeded to install them when the arrived: /dev/hdb, /dev/hdc, /dev/hdd.

In my haste to have more space, I pro­ceeded to add them to the array and grow it:

mdadm --manage /dev/md1 --add /dev/hdb
mdadm --manage /dev/md1 --add /dev/hdc
mdadm --manage /dev/md1 --add /dev/hdd
mdadm --grow /dev/md1 --raid-devices=7

This process then got to work and took about 3 – 4 days to com­plete. I assume the time was on account of most of the dri­ves being IDE dri­ves, many shar­ing chan­nels and there being an awful lot of space. Once the grow­ing process was com­plete, I merely needed to resize the ext3 par­ti­tion on the array:

resize2fs /dev/md1

This then took an hour or so and I was sit­ting on 3TB of total space. The only part of the process dur­ing which my drive was inac­ces­si­ble was when I had to turn off the com­puter to phys­i­cally install my IDE drives.

Everything is per­fect now, right? Wrong. Guess who for­got that you should par­ti­tion dri­ves before using them? That’s right, me. I really wanted to put a linux raid autode­tect par­ti­tion on each of the dri­ves before adding them to the array. Not that it really does much harm to add the dri­ves straight to the array but it’s poor form and it might pose prob­lems that I am not aware of in the future so, clearly, it’s a thing that should be fixed. Thankfully, being RAID5, my array is able to lose dri­ves and still be fine, thus allow­ing the solu­tion of fail­ing, remov­ing, par­ti­tion­ing and adding each of the new dri­ves back into the array:

mdadm --manage /dev/md1 --fail /dev/hdb
mdadm --manage /dev/md1 --remove /dev/hdb

par­tion /dev/hdb and then:

mdadm --manage /dev/md1 --add /dev/hdb1

now wait until the array has rebuilt itself:

cat /proc/mdstat

and repeat for the other dri­ves. Overall, it’s not hard but it’s annoy­ing and it does take about 1/2 to 2/3 of a day per drive to fix. Thankfully, though, now the endeavor is done and my array works cor­rectly with no lost data and min­i­mal down time. Hooray for soft­ware RAID and hav­ing 3TB in a sin­gle place.

Oh, and you don’t want to for­get to update /etc/mdadm.conf after every step of the process of you could have some poten­tial problems.

Hestaby’s Realm, Shasta, Failure

Tuesday, May 27th, 2008

This past week­end, Memorial Day week­end ’08, a cou­ple friends and I set out to climb Mount Shasta; we did not suc­ceed. Mount Shasta is the sec­ond high­est of the Cascade Mountains, the fifth high­est moun­tain in California and the fifti­eth high­est in North America. Shasta is note­wor­thy for being by itself; Shasta pops out of oth­er­wise mostly flat land, mak­ing it a rather impos­ing sight. Driving down I-5 on the Seattle to San Francisco leg of my move from Greater Boston to the Bay Area, I passed Shasta and was absolutely blown away by the sight of such a mas­sive moun­tain pop­ping up out of nowhere.

Myself, Hippo and John, set out from the bay area Friday evening. Stopping at Chipotle’s en route, we got to Finlandia! Motel in Mount Shasta City, California some­time around 1 or 2AM. Repacking lightly and get­ting to sleep, we woke up rather early so that we could pick up our rental gear and meet up to take a basic moun­taineer­ing course with Shasta Mountain Guides. The rest of Saturday was spent at low ele­va­tions of Shasta learn­ing how to moun­taineer, includ­ing climb­ing steep snow/ice, self-arresting with an ice axe, etc. Personal, I felt the course was really infor­ma­tive, leav­ing me both glad to have the knowl­edge for the climb and glad to have the knowl­edge going for­ward. Saturday night, we dined in Shasta City, which, I might add, is an incred­i­bly pleas­ant lit­tle town with very friendly people.

Sunday morn­ing, we woke up bright and early at 7AM, get­ting to the trail­head at Bunny Flats by about 9AM. Bunny Flats is at an ele­va­tion of 6,800′, already more than 500′ higher than the high­est thing I’d ever climbed pre­vi­ously, Mount Washington. From Bunny Flats, we obtained the nec­es­sary per­mits and set out. We reached, the first notable way­point, Horse Camp at 7,800′. When mak­ing a two day trip of climb­ing Shasta, one usu­ally makes camp at Horse Camp or Lake Helen; our ini­tial plan was to camp at Lake Helen but the weather com­bined with the advice of the Horse Camp care­taker con­vinced us to camp at Horse Camp. Horse Camp also pro­vided the ben­e­fits of out­houses (climbers are oth­er­wise required to bag and carry out feces from Shasta) and a flow­ing spring. The spring water avail­able at Horse Camp is reputed to be the best water on Earth and, hav­ing tried it myself, I must admit that I have not encoun­tered bet­ter water to date. We took a short hike fur­ther up Sunday after­noon, leav­ing all of our gear behind, turn­ing back when it started to snow heav­ily. Sunday night we cooked var­i­ous din­ner stuffs, repacked our bags with essen­tials and went to sleep around 7 or 8PM.

Monday, we woke up at 1AM, got ready and began climb­ing by head-lamp light around 2:15AM. The climb up from Horse Camp, is slow and rather ardu­ous. The climb­ing was mostly up big, steep snow fields, which had nice fresh snow from the heavy snow that caused us to cut short our hike of Sunday. Thankfully for us, there were two guided tours that left around 1:30AM and had blazed the trail for us, mak­ing things a lit­tle eas­ier. By around 5:15AM, we had reached Lake Helen at 10,400′. Although, Lake Helen is 2,600′ above Horse Camp, it’s only about ¾ of a mile lat­er­ally, in case you wanted a sense of the dif­fi­culty. By Lake Helen, I was start­ing to feel a lit­tle off, get­ting exhausted and los­ing my appetite, at the time uniden­ti­fied early signs of alti­tude sick­ness or, if you pre­fer, acute moun­tain sick­ness. The sun started to rise while we were at Lake Helen and we set off for points higher. After Lake Helen is one of the steeper por­tions of the entire moun­tain and it’s really steep. From Lake Helen up is when the alti­tude sick­ness really kicked in.

Altitude sick­ness is when the lower pres­sure of the air pre­vents your body from get­ting as much oxy­gen as it nor­mally needs, which poses rather sub­stan­tial prob­lems for your brain and body. Subjectively, for me, it felt as though my brain was falling asleep. I wasn’t tired, my body and mus­cles felt like they were in fine shape to con­tinue but I couldn’t shake the feel­ing that I was so exhausted that I was going to col­lapse. It’s some­what like the sen­sa­tion of being on the edge of pass­ing out after you’ve been awake for a cou­ple days, minus the being tired part. Altitude sick­ness, being alti­tude dri­ven, gets worse pretty much every step up you take, which made con­tin­u­ing pro­gres­sively harder and harder. We were fol­low­ing a hike one hour, rest a lit­tle, hike one hour, rest sched­ule and when we next rested, my GPS, which we were using as an altime­ter read 11,242′. As we rested, I drank water and tried to eat but the alti­tude sick­ness was in pretty full swing. I was so worn down that chew­ing a gra­nola bar took most of the effort that I was able to muster from myself. Imagine, if you will, the level of inca­pac­i­ta­tion that goes along with a very high fever but with­out the fun of delir­ium or the secu­rity of being in bed. Noting that I was in pretty poor shape and felt on the verge of pass­ing out, it was decided that turn­ing back was the best option. Another thing about alti­tude sick­ness being alti­tude dri­ven is that as soon as you get back below your ceil­ing – mine is appar­ently about 10,000′ right now – you tend to start feel­ing bet­ter. By the time we got back down to Lake Helen, it was as though some­one had lifted a great weight off of my brain.

It was a lit­tle frus­trat­ing to be at Lake Helen and feel mostly fine to go on but know that the alti­tude would make it too dif­fi­cult. From Lake Helen down, it was mostly wading/jogging/trudging/hopping through a few inches to a few feet of snow, of which enough was pow­der to make me really wish that I had skis. Very soon after we started down­ward, it started to snow rather heav­ily with white­out lev­els of vis­i­bil­ity. The rapid drop in weather qual­ity made it almost for­tu­nate that my alti­tude sick­ness had forced us to turn around when it did as con­tend­ing with white­out con­di­tions at higher ele­va­tions and greater exhaus­tion would have been rather haz­ardous. The weather events of the week­end seem to have pre­vented most, if not all, peo­ple from sum­mit­ing Shasta over this memo­r­ial day week­end, so we may not have really missed out on too much. We got back down to Horse Camp by about 11AM, the bizarre result of start­ing at 2:15AM and all decided to take a nap. Unfortunately, when we got up from our naps to pack and leave, it was rain­ing. It took us rather a while to accept the rain, get up and pack every­thing. From there, it was a cou­ple hours hike out down the slow path from Horse Camp and we were done.

Ultimately, it was a gru­el­ing, some­times unpleas­ant endeavor and I’m immensely pleased that I did it. I would very much like to try Shasta again some­time; per­haps I’ll try to do some alti­tude train­ing or get a doc­tor to give me some Acetazolamide. Shasta aside, methinks that this whole moun­taineer­ing thing is a thing that I should be doing more of.

P.S. For those of you who are not Shadowrun geeks, Mount Shasta is the home of the great dragon Hestaby. For those that are, while I was hik­ing beyond Lake Helen and feel­ing the effects of alti­tude sick­ness, I got myself to keep going by telling myself to roll willpower.

District B13

Saturday, May 17th, 2008

In today’s edi­tion of George brings you obscure movies that you should have heard of, District B13. This 2004, French film, pro­duced by the great Luc Besson, stars David Belle, founder of Parkour and involves acro­bat­ics and ass-kicking that eas­ily match the bet­ter things com­ing out of Asia recently. Take one part post-apocalyptic action film, add a dash of drug lords, some neu­tron bombs, two parts crazy mar­tial arts, a lib­eral sprin­kling of really good French traceurs, bake for an hour and a half and you get, well, a pretty phe­nom­e­nally awe­some movie. No wires or spe­cial effects necessary.

Ubuntu is the paint-by-numbers of Linux

Friday, May 16th, 2008

I was talk­ing with my brother, who is not a com­puter geek, and dis­cussing vari­a­tions on Linux when he came up with an amaz­ing anal­ogy that was so bril­liant I had to share it with the rest of you. He said, “I guess it would be more like a blank piece of paper ver­sus a color by num­bers thing”. It’s exactly spot on, Ubuntu is the paint-by-numbers of Linux; it’s really easy to do the stuff it’s aimed at doing but going out­side the lines doesn’t look as good as if you’d used a more gen­eral option. Of course, while you Ubuntu users are all kinder­garten­ers, I’m busy ric­ing out my machines with Gentoo; I don’t actu­ally know which is a worse thing to be analo­gized to.

The World of Ralph Bakshi

Thursday, May 8th, 2008

Wizards poster Ralph Bakshi is a par­tic­u­larly inter­est­ing American maker of ani­mated films. I expect rel­a­tively few of you have ever heard of Ralph Bakshi and almost as few have seen any of his works, which is why it is nec­es­sary that I bring Ralph and his works to your attention.

My first encounter with Ralph Bakshi came when, at a young age, I saw the box for his 1977 film Wizards at my local video rental loca­tion, Video Revolution, and thought that it looked phe­nom­e­nally cool (same image as the poster image to the right). For rea­sons I do not recall, I didn’t man­age to actu­ally watch Wizards until I was in high school and, let me tell you, it’s a pretty fan­tas­tic movie. Wizards is set in the far, far, post-post-apocalyptic future and tells the story of a war between two wiz­ard broth­ers, Avatar and Blackwolf of the land of good and evil respec­tively. If I recall cor­rectly, the war is pre­cip­i­tated by Blackwolf’s dis­cov­ery of ancient Nazi war pro­pa­ganda. The film does a fan­tas­tic job of alter­nat­ing between light, dark and flat out sur­real; I highly rec­om­mend it.

It wasn’t until just recently that, in decid­ing to hunt down a copy of Wizards, I learned the iden­tity of Ralph Bakshi. Being the obses­sive con­sumer of media that I am, I decided to see what else Ralph has done and, lo and behold, Ralph Bakshi was respon­si­ble for Cool World. Cool World was a rather odd mix of car­toons and live action that I am rather fond of in spite of the rather poor crit­i­cal acclaim that it gar­nered in its time; I must be a mem­ber of the cult for which it is a cult hit. Upon real­iz­ing that Ralph was respon­si­ble for Wizards and Cool World, it became nec­es­sary for me to track down his other works and what should turn out to be his sem­i­nal work? None other than the film ver­sion of Fritz the Cat. Fritz the Cat is note­wor­thy both as the first inde­pen­dent ani­mated film to gross more than $100 mil­lion in the box office and as the first X-rated ani­mated fea­ture film. R. Crumb did not like Bakshi’s take on Fritz the Cat and killed off the comic char­ac­ter in retal­i­a­tion but, by most accounts, R. Crumb is a whack-job and the film was great; I have obtained the film but have not yet had the chance to watch it so I must with­hold my per­sonal views for now.

Ralph Bakshi is one of the behe­moths of mid-20th cen­tury ani­ma­tion, respon­si­ble for many things beyond the few that I have men­tioned, and I would be doing you a dis­ser­vice if I didn’t bring him to your atten­tion. Having done so, the dis­ser­vice of not watch­ing Bakshi’s works is now yours to remedy.

The video game Gods are pleased

Wednesday, May 7th, 2008

The video game Gods demand much in the forms of finan­cial penance and prayer time but they do much to reward their sup­pli­cants. I have just now obtained for myself a copy of GTA4 (I know that I’m slow but I’ve been trav­el­ing for the past week). While I was at the mer­chant of the damned, GameStop, obtain­ing the afore­men­tioned game, I hap­pened to notice a sign pro­claim­ing the impend­ing arrival of Ninja Gaiden II (NG2), sequel to what I con­sider the finest video game yet pro­duced. Seriously, for­get Super Mario World, Super Metroid, Sonic the Hedgehog, Myst, Quake, every­thing; Ninja Gaiden (Xbox remake) was where it’s at and now it’s sequel time. Not only is Ninja Gaiden II com­ing, but Soul Calibur 4 (SC4), next in the finest fight­ing game series of all time, comes out in two months. It cer­tainly is a sum­mer of video game sequels but, man oh man, is it going to be a good sum­mer of sequels.

Between GTA4, NG2 and SC4, I will, unques­tion­ably, be devot­ing rather a fair amount of time to video games over the next few months. It cer­tainly won’t help much that my enjoy­ment and com­mit­ment to Rock Band has not abated. I guess that’s really a mat­ter of per­spec­tive; I am, after all, com­mit­ting my time to video games because they do pro­vide me with a great deal of enjoyment.

Thank you video game Gods for this bounty, which you are bestow­ing upon me over the next few months.

Fishes and Internet Friends

Thursday, May 1st, 2008

Back in late 2002, there was a great Internet phe­nom­e­non known to many as the Star Wars kid. As some of you may recall, I was one of the first peo­ple on the Internet to find the Star Wars kid video; I decided to host the video on my web server, ozone-beast at that time – God rest that won­der­ful ozone spew­ing hulk of a com­pu­tro­n­ium – and sent an e-mail out to random-hall-talk announc­ing its pres­ences. Within a few days, ozone beast was being del­uged with hits from all over the world. I also hap­pened to receive an IM cor­re­spon­dence from a girl in Bakersfield, CA. Being a sopho­more at the time and hav­ing way too much free time, I struck up a cor­re­spon­dence. McKenzie and I have since main­tained an Internet friend­ship with­out ever hav­ing met in person.

After mov­ing to the Bay Area, I had been plan­ning to drive down California a bunch, meet Kenzie, visit peo­ple in LA and do the whole SoCal thing but then, as you may recall, I ceased to have a car. This week, how­ever, Kenzie was in Monterey with her boyfriend, who had busi­ness; Monterey being rea­son­ably close by California stan­dards, I grabbed a zip­car, ditched out of work early and drove down to say hi. We went to the Monterey Aquarium, which is fan­tas­tic by the way, hung out for a few hours and had a gen­er­ally good time.

It’s a rather inter­est­ing thing to meet in per­son some­one that you’ve got­ten to know through other means. The meet­ing and the hang out were sur­pris­ingly not awk­ward, though I’ve always felt that the best way to avoid awk­ward­ness is to just not act awk­ward. Sure it was a lot of dri­ving but it was very nice dri­ving, the Monterey Aquarium really is great and it is really great to finally meet some­one that you’ve known for over five years.