March 25th, 2006
I walk in the office on a fine Sunday morning to find out electricity has gone down restarting all boxes. One of my Debians wouldn’t leave runlevel 1 because of a logical volume not being mapped. I started the a typical bottom up troubleshooting procedure and at the first step (forget the vgscan and lvm libraries loading) :
timon:~# pvdisplay
Couldn’t find device with uuid ‘CMXpz2-HQQw-RO4k-5K2J-0mO4-oxTY-WvkY7W’.
— Physical volume —
PV Name unknown device
VG Name data_vol_grp
PV Size 74.53 GB / not usable 0
Allocatable yes (but full)
PE Size (KByte) 4096
Total PE 19079
Free PE 0
Allocated PE 19079
PV UUID CMXpz2-HQQw-RO4k-5K2J-0mO4-oxTY-WvkY7W
— Physical volume —
PV Name /dev/hdd
VG Name data_vol_grp
PV Size 37.27 GB / not usable 0
Allocatable yes (but full)
….
This was – of course – creepy, knowing the drive was brand new, seen by the BIOS and detectable with a simple `fdisk -l`! Also check out the contradiction in italic.
After an hour of playing around … given I know the device path all I had to do is a `pvdisplay /dev/hdc` to get a healthy listing right there :O
I carried on with a `vgchange -a y data_vol_grp` followed by a `fsck.reiserfs` and finally mounted the volume and all was good!
Just thought I’d save some time and ATP burning surprise fellow admins should you ever experience this, especially that (as sledomly as it happens) google wasn’t that helpful.
Happy Hacking
Posted in gotcha, techie | 4 Comments »
March 17th, 2006
The other day I happened to open the Sports part of the newspaper, which I, honestly, only open by coincidence! An article caught my attention which was reporting a German Sociologist carrying out a study on the stress goalkeepers go through. That struck me for a second; how interesting! The article also alludes to a story by Peter Hendke Die Angst des Tormanns beim Elfmeter in which a goalkeeper commits a horrible mistake that gets him kicked out of the game and has him end up spending the night with one of the girls selling tickets at the door, he then proceeds to strangle her the next morning! Thinking anger management? That’s what I thought too.
Well, I could care less about goalkeepers in particular; however, I have always been curious about the life of others that we see or hear about but don’t really get the chance to dig into. This researcher for example has done similar studies on cops, bodybuilders, and house wives. I like those that take this even further. Movies like 8mm for example, giving insight into the underworld of the porn industry, Blow exploring the life of a real drug lord El mahico, and recently Lord of Wars revealing the life of an arms dealer.
So let’s see how this is like: seeing, better yet feeling with, the life of an(other). Imagine waking up in the morning and instead of having your cereal/pancake/”zait w za3tar” you start munching on an 8 Oz. steak, Kabseh, or Mansaf. You get in your car and morning traffic is gone, not particularly gone, but is on the other side of the road. No your’e not a loner! Then as you go into your office people are packing off and leaving. Weird. You finish up your 9++ hours and on your way home, the city is more of a ghost town. You try calling a couple of friends to hang out, but hey, no body is answering as they’re all, unlike you, working the graveyard shift, asleep! My weekdays in a nutshell!
Posted in personal | 13 Comments »
March 8th, 2006
So .. I’m on GTalk (the embedded one) talking to a fellow geek after a long day of work – which some of you know ends at 1 am for me. Conversing with a typical opener he asks how was I, and I immediately reply “shughol … too much of it” n his response was:
as long as you have enough caffiene at work,
ou betrawe7 to a loving machine at home,
kolo tamam
GOD … I think we’re just born like that … don’t get me wrong and think I dislike it
Posted in techie | 14 Comments »
March 7th, 2006
I might have gotten used to el “shabab” mounting “shashe w dvd” in the car but what has really moved me is Taxis in Amman getting them installed for the sole purpose of back-seat-passenger’s entertainment. This is nifty! The picture was taken at a traffic light near the 4th ‘circle’ but to avoid unnecessary quarrels I couldn’t show you el “gatgootah” in the back concentrating on a Rotana Video! Ya seeesssiii

Posted in socio-jordanian | 9 Comments »
March 5th, 2006
It’s been a hobby of mine until I got my current job where I barely get to do the things I like “outside” work. This year I’m determined to carry on with this. Soaring. This past Friday marked the coming-back. For those who don’t know: a glider (or a sailplane) is an aeroplane without an engine that takes off with the help of a winch or another plane and once airborne it’s a game of finding up-currents (mainly caused by hot air rising) to gain altitude. It is so much fun and excitement. Currently I’m learning the principles of control. It’s not that easy, there are so many things to pay attention to (too detailed to mention here) yet it all comes down to “feeling” with the plane and dynamics of air. I fly at the Royal Jordanian Glding Club, if any body is interested in a trip let me know.

Posted in personal | 7 Comments »
February 28th, 2006
As we grow up and create our own universe we get more and more detached from family activities (may be until we start our own, but I’m not there yet!); things we used to do when we were little, which at some point of time was all we’ve got. I’m not sure why … is it that we consider them a lower priority over work or friends (peers as a psychiatrist would put it), or is it that they just “seem” less mature now.
One of those activities my father had always made a Friday ritual: He’d fill the car with kids “me and my brothers” and the trunk with every supply we might need; food, water, jackets .. etc – and he’d hit the road … just drive.
I tell you what, it was fun, then. Well, only then. May be still fun! That’s what last Friday revealed. I really had nothing to do on that day and did not refuse the offer of joining along with the “younger” brothers. No regrets. I’m not able to describe the feeling, is it the rejoice of belonging, spending time with loving parents and energy charged siblings, or maybe being away after a long week of work, or just the green scenary accompanying the road trip. Yes, food was good too: “Armenian sfee7a”!
Enough of the analysis right now, here are some of the most interesting snapshots of that particular Friday .. pretty much self explanatory:



Posted in personal | 8 Comments »
February 23rd, 2006
I had to write to a shell script that parses a bunch of files. The
problem was some of the file names contained spaces. Here is a sample
scenario and the resolution.
Let’s say you had files: “test 1″ and “test 2″ and you tried to do
something as trivial as:
#!/bin/bash
for f in `ls test*`
do
cat $f
done
the result would be:
cat: test: No such file or directory
cat: 1: No such file or directory
cat: test: No such file or directory
cat: 2: No such file or directory
The resolution would be:
#!/bin/bash
IFS=”
”
for f in `ls test*`
do
cat $f
done
The explanations is that the IFS (interfield seperator) in the shell
defaults to space tab or newline. The space is part of the filename in
our case which will result in two seperate files.
So what we do at the begining of the script is set the IFS variable to
newline only.
Posted in gotcha | 1 Comment »
February 22nd, 2006
Silly, useless, pretty much nonsense … were the words I described blogging with. Yet here I am jotting down my first blog entry.
It is truly amazing how the Internet is evolving into a lively world in a parallel dimension where humans metphorically breathe, feed, and (well in some increasing number of cases) reproduce.
It’s Web 2.0. I’m upgrading! The time has come when packets reincarnate to words that humans rather than routers process. Web pages are now blogs, podcasts, and photo albums. Ideas of all sort are being broadcast, into a virtual medium reflecting and affecting ‘real’ life.
Been watching it, now part of it.
Posted in personal | 10 Comments »