« October 2005 | Main | December 2005 »

November 30, 2005

R.I.P. Harry Boyle

This poem and story were found in the obituary from The Maitland Mercury. At the end of his life, Harry was a writer and historian but his long career included a stint as a paper boy, working as a both a jackeroo and a farmer, and he spent his war years as a secret intelligence officer behind enemy lines (Z Force).

Harry Boyle historian and friend to Maitland
MARGARET SIVYER
Tuesday, 29 November 2005
The poem on this page to me epitomizes the man who has given so freely and generously of his time and interest to further the knowledge and history of our country in time of war, disaster, the Hunter area and, of course, the personalities such as Les Darcy, and in particular his regard for one of our early pioneers, Molly Morgan.
...
The highlight of the week for many of us has also been the articles in the Maitland Mercury written by him, which will come out in book form in 2006.
...
Build me no monument should my turn come,
Please do not weep for me and waste your tears,
Write not my name on honour rolls of fame
To crumble with man's memory through the years.
Wear no dark clothes, speak in no saddened voice
Seeking rare virtues which did not exist,
Just let me lie under the cool sweet earth
And sleep in peace, where I will not be missed.
I ask one thing. That in still far off days
Someone who knew me should in their daily round
Suddenly pause, caught by some sight or sound,
Some glance, some phrase, some trick of memory's ways
Which brings me to his mind. Then I shall wait
Eager with hope; perhaps to hear "how great
If he were with us still". Then, at the end,
All that I wish for - Just; "he was my friend"
This poem written by David McNicholl in Syria in 1941 was a poem Harry told me that he has had in his research records since 1945.

Additional information can be found in Hats off to Harry and in Family and friends remember life lived to the full.

Posted by Ozguru at 06:00 PM

Looking for work?

Many people quit looking for work when they find a job.

Posted by Peskie at 12:00 PM

Does Solaris have SMIT or SMITTY

AIX has some useful administration tools but Solaris does not.

Some versions of Solaris had admintool (users, printers) but the closest would probably be SMC (Sun Management Centre). This is usually installed as an extra software package (not part of the standard install).

Posted by Ozguru at 06:00 AM

November 29, 2005

Making your pile...

[Found over at Read My Lips....]

A young man asked an old rich man how he made his money. The old guy fingered his worsted wool vest and said, "Well, son, it was 1932, the depth of the Great Depression. I was down to my last nickel.
I invested that nickel in an apple. I spent the entire day polishing the apple and, at the end of the day, I sold the apple for ten cents.

The next morning, I invested those ten cents in two apples. I spent the entire day polishing them and sold them at 5:00 PM for 20 cents.

I continued this system for a month, by the end of which I'd accumulated a fortune of $3.50.

Then my wife's father died and left us ten million dollars."

Posted by Peskie at 12:00 PM | Comments (1)

Blojsom Install

I installed blojsom via DarwinPorts but could not get it to work at all. My first problem was not knowing where the files were to edit:

Second problem was not knowing how to restart blojsom after changing the config - check the TomCat management interface (http://localhost:8080).

Finally, don't forget to forward port 8080 through your ADSL modem and turn off the firewall rules for 8080 on your local server....

Posted by Ozguru at 06:00 AM

November 28, 2005

Cats and bags...

Lettin' the cat outta the bag is a whole lot easier than puttin' it back in.

Posted by Peskie at 12:00 PM

StorEdge D1000 (Again)

A D1000 is a SCSI array. Actually it is two arrays.

OK, I actually had a couple of readers who were curious about this post. What is a D1000 they wanted to know and who cares...

Well a Sun StorEdge D1000 is really just an differential SCSI array (actually two differential SCSI arrays in a single box).

It was intended for use in a rack mounted environment and could be configured as one array by crosslinking the two internal controllers. When crosslinked, you want to make sure that the individual target address do NOT overlap. Hence the comments the other day :-) The two controller cards appear as targets e and f and the disks (in a second generation D1000) would be 0, 1, 2, 3, 4, 5 and 8, 9, a, b, c, d. Note that 7 is not used because that is reserved for the host end of the SCSI connection.

The way I normally find these boxes deployed is in a boot-disk mirror. In this case the host server will have two SCSI controllers - one connected to the left hand array and one connected to the right hand array. Both arrays have their targets configured to start at zero so that the target numbers in the metadisk configuration look "similar" (i.e. less confusing for the poor sods who maintain it). For example the array I set up the other day ended up supplying c1t0, c1t1, c1t2, c1t3 and c5t1, c5t2, c5t3, c5t4. In this case c1t0 was mirrored to c5t0. Same for c1t1 and c5t1. The remaining four disks were assembled into a RAID 5 stripe.

Warning for the uninitiated - don't link the two halves together when you are connected to two controllers. SCSI is a bus architecture, not a ring technology! Use terminators instead.

Posted by Ozguru at 06:00 AM | Comments (4)

November 27, 2005

How (little) women think?

ATT145864.jpg

Recycled from 2003/08/01.

Posted by Peskie at 12:00 PM

November 26, 2005

Artificial Insemination...

[Found over at Cynical Cyn's...]

Amy, a blonde, city girl, marries a Texas rancher. One morning, on his way out to check on the cows the rancher says to Amy,

"The artificial insemination man is coming over to impregnate one of our cows today. I drove a nail into the two-by-four just above the cow's stall in the barn. You show him where the cow is when he gets here, okay?"

So the rancher leaves for the fields. After a while, the artificial insemination man arrives and knocks on the front door. Amy takes him down to the barn. They walk along long row of cows and when she sees the nail, she tells him,

"This is the one..... right here."

Terribly impressed by what he seemed to think just might be another dizzy blonde, the man asks, " How did you know this is the cow to breed?"

"That's simple. By the nail over its stall," Amy explains.

Then the man asks, "What's the nail for?"

"I guess it's to hang your pants on," she tells him as she walks away.

Posted by Peskie at 12:00 PM

StorEdge D1000

This time ... read the fine manual ... just for a change.

Just in case any of you find yourselves installing a Sun StorEdge D1000 at some point in time, I would like to recommend that you get hold of the essential pdf file (805-2624-12) attractively called "SunStorEdge (TM) A1000 and D1000 Installation, Operations, and Service Manual" (look on the SunDocs site).

Why?

Because it has the correct settings for the incy-wincy-teeny-weeny dip-switch settings.

The very clear and exact instructions that come attached to the first generation D1000 (the one with only 8 disks instead of 12) suggest that the correct settings are switch 1 down and switch 2 up to give the addresses as targets 0, 1, 2, 3, 8, 9, a and b. If you split the D1000 you change switch 2.

This is wrong.

Very wrong.

The rightmost (as viewed from the back) dipswitch (1) controls the right hand array (as viewed from the front). Up gives 8, 9, a and b. Down gives 0, 1, 2 and 3. The next switch (2) controls the left hand side (up for 8, 9, a and b; down for 0, 1, 2 and 3).

Clear now? Probably not. Just follow the manual and completely ignore the instructions on the D1000 itself :-)

Posted by Ozguru at 06:00 AM

November 25, 2005

Puddle fun

2005-11-24--Puddles.jpg

Posted by Ozguru at 06:00 PM | Comments (3)

Satan in Church?

From rec.humour.funny:

A few minutes before the services began, the townspeople were sitting in their pews and talking. Suddenly, Satan appeared at the front of the church.

Everyone started screaming and running for the front entrance, trampling each other in a frantic effort to get away from the evil incarnate. Soon everyone exited the church except for one elderly gentleman who sat calmly in his pew without moving, seemingly oblivious to the fact that God's ultimate enemy was in his presence.

So Satan walked up to the old man and said, "Don't you know who I am?" The man replied, "Yep, sure do."

"Aren't you afraid of me?" Satan asked.

"Nope, sure ain't." said the man.

"Don't you realize I can kill you with a word?" asked Satan.

"Don't doubt it for a minute," returned the old man, in an even tone.

"Did you know that I could cause you profound, horrifying, physical AGONY for all eternity?" persisted Satan.

"Yep," was the calm reply.

"And you're still not afraid?" asked Satan.

"Nope."

More than a little perturbed, Satan asked, "Well, why aren't you afraid of me?"

The man calmly replied, "Been married to your sister for over 48 years.

Posted by Peskie at 12:00 PM

Unix Error Messages

[Found at Gotterdammerung where the motto is "Always remember to pillage before you burn!" ...]

At the USENIX Association conference in Atlanta recently [Ed: 1985/1986] a contest was held to invent the most humorous/bizarre/etc UN*X error message of the errno(2) 'EERROR' type. This contest had been tried at an earlier European Users Group meeting, where the winning entry was:
ENOTOBACCO - Read on an empty pipe
You get the idea. A partial [alphabetized] list of 'top(?)' entries from Atlanta [and from several readers of hp.unix] follows; if your pun/wierdness tolerance is low, you may want to abandon ship:
EBEFOREI - Invalid syntax
ECHERNOBYL - Core dumped
ECRAY - Program exited before being run
EDINGDONG - The daemon is dead
EFLAT - System needs tuning
EGEEK - Program written by inept Frat member
EIEIO - Here-a-bug, there-a-bug, ....
EIUD - Missing period
ELECTROLUX - Your code could stand to be cleaned up
EMILYPOST - Wrong fork
END.ARMS.CONTROL - Silo overflow
ENOHORSE - Mount failed
ENONSEQUETOR - C program not derived from main(){printf("Hello, world");}
EWATERGATE - Extended tape gap
EWOK - Aliens sighted
EWOK - Your code appears to have been stir-fried
EWOULDBNICE - The feature you want has not been implemented yet

And finally, a sort-of 'period piece':
EMR.ED -

A host is a host,
From coast to coast
And nobody talks to a host that's close,
Unless the host that isn't close
Is busy, hung, or dead.

I would also like this new signal to be supported:
SIGNUKE - Nuclear event occurred (cannot be caught or ignored :-)

Posted by Ozguru at 06:00 AM

November 24, 2005

Revenge

From rec.humour.funny:

He gave his now ex-wife just 3 days to move out.

She spent the first day packing her belongings into boxes, crates and suitcases.

On the second day, she had movers come and collect her things.

On the third day, she sat down for the last time at their beautiful dining-room table by candlelight, put on some soft background music, and feasted on a pound of shrimp, a jar of caviar, and a bottle of Chardonnay.

When she had finished, she went into each and every room and deposited a few half-eaten shrimp shells, dipped in caviar, into the hollow of the curtain rods. She then cleaned up the kitchen and left.

When the husband returned with his new girlfriend, all was bliss for the first few days. Then slowly, the house began to smell. They tried everything; cleaning & mopping and airing the place out. Vents were checked for dead rodents, and carpets were steam cleaned. Air fresheners were hung everywhere.

Exterminators were brought in to set off gas canisters, during which they had to move out for a few days, and in the end they even paid to replace the expensive wool carpeting.

Nothing worked. People stopped coming over to visit...repairmen refused to work in the house...the maid quit...finally, they could not take the stench any longer and decided to move.

A month later, even though they had cut their price in half, they could not find a buyer for their stinky house. Word got out, and eventually, even the local realtors refused to return their calls.

Finally, they had to borrow a huge sum of money from the bank to purchase a new place.

The ex-wife called the man, and asked how things were going. He told her the saga of the rotting house. She listened politely, and said that she missed her old home terribly, and would be willing to reduce her divorce settlement in exchange for getting the house back...

Knowing his ex-wife had no idea how bad the small was, he agreed on a price that was about 1/10th of what the house had been worth...but only if she were to sign the papers that very day. She agreed, and within the hour, his lawyers delivered the paperwork.

A week later, the man and h is new girlfriend stood smirking as they watched the moving company pack everything to take to their new home...including the curtain rods.

Posted by Peskie at 12:00 PM | Comments (2)

Hex Converter

There is a magic string that you feed to dc when you want to convert a hex number to a decimal:

echo "16 10 o i FF p" | dc

The idea is that you can convert any base 16 number to a decimal easily. Although the string looks arbitrary it is actually quite meaningful if I tell you that dc is an RPN calculator (more jargon). How about a step by step example (if you type this in, ignore the comments - lines that start with a '#' character):


# Start the program dc (probably /usr/bin/dc)
$ dc
# Add 16 to the stack (another bit of jargon)
16
# Add 10 to the stack (on top of the 16)
10
# Take the top stack value (10) for the output radix (i.e. base)
o
# Take the top stack value (16) for the input radix
i
# Chuck any old hex number onto the stack
DEADBEEF
# Print the top stack value out
p
3,735,928,559

Intelligent readers should be able to use the same method to convert decimal to binary.....

Posted by Ozguru at 06:00 AM

November 23, 2005

The Special Pig

A woman was walking down the street when she saw a man walking a three legged pig. She thinks to herself, "That's odd."

She decides to ask the man about the pig. "Excuse me sir, can you tell me why it is you are walking down the street with a pig that only has three legs?"

"Why certainly," the man says. "I'm a farmer, and this here is a special pig."

"What makes it so special?" the woman asks. "Well, the other day, we came across a school bus full of children that had flipped over in a ditch and this pig ran down and dragged all of the children out to safety. And just a few days ago, I fell into the lake and would've drown had it not been for this pig going in to save me."

"That's remarkable. But, why does he only have three legs?" the woman asks.

"You see, ma'am," the farmer starts, "a pig this special isn't eaten all at once."

Recycled from April 2004.

Posted by Peskie at 12:00 PM | Comments (3)

AP and boot disks

Q: I have set up AP as per the normal configuration but I keep getting errors when I try to reboot. I even put a rootdev line in /etc/system but then the next reboot crashed completely.

A: The most likely solution is that you forgot to run apboot on your boot disk. Running apboot would have updated the kernel with a whole bunch of other key lines:
* Begin AP root info (do not edit)
forceload: drv/ssd
forceload: drv/sf
forceload: drv/socal
forceload: drv/sbus
forceload: drv/ap_dmd
forceload: drv/ap
forceload: drv/pseudo
rootdev: /pseudo/ap_dmd@0:8,blk
* End AP root info (do not edit)

Without those lines, the kernel cannot mount the root filesystem....

Thanks to AD, DG, JT, TH for solving this one.

Posted by Ozguru at 06:00 AM

November 22, 2005

Career Advice

[Found at Stokely Consulting....]

Should I become an astronaut, a firefighter, or a system administrator?
Author Unknown

Are you at a career crossroads? Are you asking "Should I become an astronaut, a firefighter, or a system administrator?" Here is a handy comparison chart that may help you make your decision.

PURPOSE OF YOUR CAREER
Astronaut: Advancing scientific knowledge for the good of humanity.
Firefighter: Saving lives and property.
Sysadmin: Assuring uninterrupted access to alt.binaries.erotica.sheep.

ADVICE YOU'LL GIVE KIDS WHO WANT TO FOLLOW IN YOUR FOOTSTEPS
Astronaut: "Study science and math and eat your vegetables."
Firefighter: "Study science and math and eat your vegetables."
Sysadmin: "DON'T DO IT! RUN AWAY!"

QUESTION YOU'LL BE MOST TIRED OF ANSWERING
Astronaut: "Where do you go to the bathroom?"
Firefighter: "Do you really slide down a pole when the alarm goes off?"
Sysadmin: "Can't you do anything about all this spam I've been getting?"

WILL YOU EVER BE ON TV?
Astronaut: Yes!
Firefighter: Occasionally.
Sysadmin: Only MSNBC's "The Site," which doesn't technically count as TV.

WILL YOUR JOB EVER GET ANY EASIER?
Astronaut: As computers get more and more advanced and able to control more of the functions of the space vehicle, yes.
Firefighter: As more and more people install smoke detectors in their homes, yes.
Sysadmin: As more and more clueless newbies discover the Internet, absolutely not.

INSPIRING MOVIE ABOUT YOUR PROFESSION
Astronaut: "The Right Stuff"
Firefighter: "Backdraft"
Sysadmin: Uh... gee, I'm really drawing a blank here... "Wargames"?

YOUR WORK HOURS
Astronaut: Fairly long days during the mission, but lots and lots of time between missions to relax.
Firefighter: 24-hour shifts, but 48 hours between shifts to relax.
Sysadmin: Not really "work hours" or even "work days"... more like "work millenia."

FRINGE BENEFITS OF YOUR JOB
Astronaut: Lots of good stories to tell to impress members of the opposite sex.
Firefighter: Lots of good stories to tell to impress members of the opposite sex.
Sysadmin: You get ALL of the jokes in "Dilbert."

NUMBER OF COMPLAINTS ABOUT YOUR PROFESSION
Astronaut: A few, from people who think the government should be spending its money in different ways.
Firefighter: A few, from people who think you take too long to arrive following a 911 call.
Sysadmin: You'll have to learn what comes after "trillion" to be able to count them all.

YOUR VEHICLE
Astronaut: Multimillion-dollar space vehicle atop multi million dollar rocket.
Firefighter: Big red truck with flashing lights and siren.
Sysadmin: 1978 AMC Gremlin.1993 Ford Panelvan.

In conclusion, if the sysadmin option has seemed the most appealing in even one of these categories, you should become a sysadmin.

Posted by Peskie at 12:00 PM

Watchdog Reset

Today's tech tip comes from Geoff Huntley:

This fatal error usually indicates some kind of hardware problem.

Data corruption on the system is possible.

Look for some other message that might help diagnose the problem.

By itself, a watchdog reset doesn’t provide enough information; because traps are disabled, all information has been lost. If all that appears on the console is an ok prompt, issue the PROM command below to view the final messages that occurred just before system failure:
ok f8002010 wector p
The result is a display of messages similar to those produced by the dmesg command. These messages can be useful in finding the cause of system failure.

This message doesn’t come from the kernel, but from the OpenBoot PROM monitor, a piece of Forth software that gives you the ok prompt before you boot UNIX. If the CPU detects a trap when traps are disabled (an unrecoverable error), it signals a watchdog. The OpenBoot PROM monitor detects the watchdog, issues this message, and brings down the system.

Posted by Ozguru at 06:00 AM

November 21, 2005

In the beginning....

In the beginning, God created the bit. And the bit was a zero; nothing.

On the first day, He toggled the 0 to 1, and the Universe was. (In those days, bootstrap loaders were simple, and "active low" signals didn't yet exist.)

On the second day, God's boss wanted a demo, and tried to read the bit. This being volatile memory, the bit reverted to a 0. And the universe wasn't. God learned the importance of backups and memory refresh, and spent the rest of the day ( and his first all-nighter ) reconstructing the universe.

On the third day, the bit cried "Oh, Lord! If you exist, give me a sign!" And God created rev 2.0 of the bit, even better than the original prototype. Those in Universe Marketing immediately realized the the "new and improved" wouldn't do justice to such a grand and glorious creation. And so it was dubbed the Most Significant Bit, or the Sign bit. Many bits followed, but only one was so honored.

On the fourth day, God created a simple ALU with 'add' and 'logical shift' instructions. And the original bit discovered that by performing a single shift instruction, it could become the Most Significant Bit. And God realized the importance of computer security.

On the fifth day, God created the first mid-life kicker, rev 2.0 of the ALU, with wonderful features, and said "Screw that add and shift stuff. Go forth and multiply." And God saw that it was good.

On the sixth day, God got a bit overconfident, and invented pipelines, register hazards, optimizing compilers, crosstalk, restartable instructions, microinterrupts, race conditions, and propagation delays. Historians have used this to convincingly argue that the sixth day must have been a Monday.

On the seventh day, an engineering change introduced UNIX into the Universe, and it hasn't worked right since.

Posted by Peskie at 12:00 PM

The Day SunOS Died

I found this over at Stokely Consulting and figured it was entirely relevant given that I am currently teaching a Sun course that includes the transition from SunOS (BSD) to Solaris (SysV):

The Day SunOS Died
by N.R. "Norm" Lunde, with apologies to Don McLean

Remember when those guys out West
With their longish hair and paisley vests
Were starting up, straight out of UCB?

They used those Motorola chips
Which at the time were really hip
And looked upon the world through VME.

Their first attempt ran like a pig
But is was the start of something big;
They called the next one the Sun-2
And though they only sold a few
It soon gave birth unto the new
Sun-3 which was their pride
And now they're singing

"Bye, bye, SunOS 4.1.3!
ATT System V has replaced BSD.
You can cling to the standards of the industry
But only if you pay the right fee --
Only if you pay the right fee..."

The hardware wasn't all they sold.
Their Berkeley port was solid gold
And interfaced with system V, no less!

They implemented all the stuff
That Berkeley thought would be enough
Then added RPC and NFS.

It was a lot of code to cram
Into just four megs of RAM.
The later revs were really cool
With added values like SunTools
But then they took us all for fools
By peddling Solaris...
And they were singing,

"Bye, bye, SunOS 4.1.3!
ATT System V has replaced BSD.
You can cling to the standards of the industry
But only if you pay the right fee --
Only if you pay the right fee..."

They took a RISC and kindled SPARC.
The difference was like light and dark.
The Sun-4s were the fastest and the best.

The user base was having fun
Installing SunOS 4.1
But what was coming no one could have guessed.

The installed base was sound.
The software did abound.
While all the hackers laughed and played
Already plans were being made
To make the dubious "upgrade"
To Sun's new Solaris...
And Sun was singing,

"Bye, bye, SunOS 4.1.3!
ATT System V has replaced BSD.
You can cling to the standards of the industry
But only if you pay the right fee --
Only if you pay the right fee..."

The cartridge tapes were first to go
And CDROM's a must, you know
And floppy drives will soon go out the door.

I tried to call and ask them why
But they took away my tty
and left my modem lying on the floor.

While they were on a roll
They moved the damned control.
The Ethernet's now twisted pair.
Which no one uses anywhere.
ISDN is still more rare--
The bandwidth's even less!
But still they're singing

"Bye, bye, SunOS 4.1.3!
ATT System V has replaced BSD.
You can cling to the standards of the industry
But only if you pay the right fee --
Only if you pay the right fee..."

The worst of all is what they've done
To software that we used to run
Like dbx and even /bin/cc.

Compilers now have license locks
Wrapped up in OpenWindows crocks
We even have to pay for gcc!

The applications broke;
/usr/local went up in smoke.
The features we've depended on
Before too long will all be gone
But Sun, I'm sure, will carry on
Be peddling Solaris,
Forever singing,

"Bye, bye, SunOS 4.1.3!
ATT System V has replaced BSD.
You can cling to the standards of the industry
But only if you pay the right fee --
Only if you pay the right fee..."

Posted by Ozguru at 06:00 AM

November 20, 2005

How (little) women think?

ATT145863.jpg

Recycled from 2003/08/01.

Posted by Peskie at 12:00 PM

SunOS vs Solaris

The underlying operating is, was and still will be SunOS. The package (operating system plus windowing system plus extra software) is called Solaris.

The deal was that Sun announced the coming of Solaris (SVR4) and predicted that it would come soon to replace SunOS (BSD). The problem was that the timing was unrealistic and there was no way it was going to happen in time. Enter the marketing geniuses who relabelled the existing operating systems Solaris 1 (which means "Solaris" was available on time but it was not SVR4). The real Solaris was called Solaris 2.

So what was the relationship between Solaris and SunOS?

Posted by Ozguru at 06:00 AM | Comments (1)

November 19, 2005

The Facts of Life

  1. The 2 most common elements in the universe are hydrogen and stupidity.
  2. If at first you don't succeed, skydiving is not for you.
  3. Money can't buy happiness...But it sure makes misery easier to live with.
  4. Nothing in the known universe travels faster than a bad check.
  5. A truly wise man never plays leapfrog with a unicorn.
  6. It has recently been discovered that research causes cancer in rats.
  7. Always remember to pillage BEFORE you burn.
  8. If you are given an open-book exam, you will forget your book.
  9. The trouble with doing something right the first time is that nobody appreciates how difficult it was.
  10. It may be that your sole purpose in life is simply to serve as a warning to others.

Posted by Peskie at 12:00 PM | Comments (2)

November 18, 2005

Sleeping under the stars...

[Found in the comments at Read My Lips...]

Watson and Holmes were out camping and they woke up in the middle of the night. Watson said, "Look at those stars, Holmes. What wonder, what majesty. Doesn't this cause you to contemplate our role in the universe?" Sherlock said, "No, it causes me to wonder who stole our tent!"

Posted by Peskie at 12:00 PM

T3 Disk Replacement

Warning: Replace only one disk drive in an array at a time to ensure that no data is lost. Ensure that the disk drive is fully re-enabled before replacing another disk drive in the same array.

The default configuration for the array is to automatically spin up and re-enable a replaced disk drive, then automatically reconstruct the data from the parity or hot-spare disk drives. Disk drive spin up takes about 30 seconds, and reconstruction of the data on the disk drive can take one or more hours depending on system activity.

  1. Remove the front panel
  2. Locate the disk to replace. Disks are numbered 1 to 9 starting on the left
  3. Use a small screwdriver to press in and release the black latch
  4. Use the latch to slowly remove the drive (I usually pause a moment after getting the drive about 25% out to wait for it to spin down)
  5. Release the latch on the replacement drive and insert the drive
  6. Press the latch in using your screwdriver
  7. Replace the faceplate
  8. Using the CLI, verify that the insertion worked and data is being restored

Posted by Ozguru at 06:00 AM

November 17, 2005

You Might Be in Education If...

- You believe the staff room should have a valium salt lick.
- You find humor in other people's stupidity.
- You want to slap the next person who says, "Must be nice to have all you holidays and summers free."
- You can tell it's a full moon without ever looking outside.
- You believe "shallow gene pool" should have it's own box on the report card.
- You believe that unspeakable evil will befall you if anyone says, "Boy, the kids are sure mellow today."
- When out in public, you feel the urge to talk to strange children and correct their behavior.
- Marking all A's on the report card would make your life SOOOO much simpler.
- When you mention "vegetables" and you're not talking about a food group.
- You think people should be required to get a government permit before being allowed to reproduce.
- You wonder how some parents ever MANAGED to reproduce.
- You believe in aerial spraying of Prozac.
- You really encourage an obnoxious parent to check into charter schools or home schooling.
- You've ever had your profession slammed by someone who would NEVER DREAM of doing your job.
- You can't have children of your own, because there is NO name you could give a child that wouldn't bring on high blood pressure the moment you heard it.
- Meeting a child's parents INSTANTLY answers the question, "Why is this kid like this?"

Posted by Peskie at 12:00 PM | Comments (1)

SCSI IDs for Disk Cards

When you install a disk card (see TechTip: Building an E4500/5500/6500 for more information about disk cards), the SCSI IDs seem to come out strange. There is actually a naming scheme which lets you predict the numbers - useful if you are connecting to the internal SCSI bus.

Note that these default drive address settings are assigned by the centerplane slot position when a jumper is *NOT* installed on J0702 and J0703 Pins 1-2.

- If the Board is in Slot 0, the disks will be 4 and 5 (clash with internal tape units)*
- Slot 1, disks will be 6 and 7 (clash with CD-ROM and motherboard)*
- Slot 2, disks 0, 1
- Slot 3, disks 10, 11 (a, b)
- Slot 4, disks 2, 3
- Slot 5, disks 12, 13 (c, d)
- Slot 6, disks 8, 9
- Slot 7, disks 14, 15

If you have a 6500, there are extra slots:
- Slot 8, disks 10, 11 (a, b) - clash with slot 3, 15
- Slot 9, disks 0, 1 - clash with slots 2, 14
- Slot 10, disks 12, 13 - clash with slot 5
- Slot 11, disks 2, 3 - clash with slot 4
- Slot 12, disks 14, 15 - clash with slot 7
- Slot 13, disks 8, 9 - clash with slot 6
- Slot 14, disks 0, 1 - clash with slots 2, 9
- Slot 15, disks 10, 11 - clash with slots 3, 8

On the other hand, if you jumper J0702 (first disk) or J0703 (second disk), then you can set the SCSI ID manually for the disk. Just avoid 4, 5, and 6 if you want to use the internal SCSI bus.

[* So it is just as well you cannot install a disk board in this slot :-)]

Posted by Ozguru at 06:00 AM

November 16, 2005

Mosquitos...

[Found at Read My Lips...]

Two boys from the city were on a camping trip. The mosquitoes were so fierce the boys had to hide under their blankets to keep from being bitten. Then one of them saw some lightning bugs, and said to his friend: "we might as well give up, they're coming at us with flashlights!"

Posted by Peskie at 12:00 PM

Adding a Hot Spare in SVM

Sometimes, when creating SVM meta devices, I forget to attach the hotspare disks to the correct meta volumes. This is important because a generic hotspare pool can be used by any meta volume and you may want to reserve it for a particular use. For example, if you had some mirrors and a RAID5 set, you may want to restrict the hotspare to the RAID set because the mirrors already have more redundancy built into them.

It turns out that this is easy to do (although the documentation is hard to find):
metaparam -h hot-spare-pool component

A more complete example (from the manual):

# metaparam -h hsp001 d10
# metastat d10
d10: RAID
State: Okay
Hot spare pool: hsp001

Posted by Ozguru at 06:00 AM

November 15, 2005

What does your degree mean?

Computer Science:

Psychology:

Economics:

Philosophy:

Math:

Posted by Peskie at 12:00 PM

TurboGX Video Card

Want to use an older Sun box with a newer monitor?

The older Sun systems often used cgsix (GX) graphics cards which sort of assumed a 1152x900 display unless the monitor tells it otherwise (via a query from the graphics card). This may have worked with Sun monitors but more often than not, you find yourself with any old monitor and the sense code idea simply does not work. Sometimes the monitor will start up anyway, other times it will refuse to play.

To override the default behaviour you need to be at the OK> prompt. You need to use a supported resolution and frequency such as:
ok setenv output-device screen:r1280x1024x76

If this does not work and you need to set it back, use:
ok setenv output-device screen
ok reset

Posted by Ozguru at 12:00 PM

November 14, 2005

You Might be an Engineering Major...

1) If you have no life - and you can PROVE it mathematically.
2) If you enjoy pain.
3) If you know vector calculus but you can't remember how to do long division.
4) If you chuckle whenever anyone says "centrifugal force."
5) If you've actually used every single function on your graphing calculator.
6) If when you look in a mirror, you see an engineering major.
7) If it is sunny and 70 degrees outside, and you are working on a computer.
8) If you frequently whistle the theme song to "MacGyver."
9) If you always do homework on Friday nights.
10) If you know how to integrate a chicken and can take the derivative of water.
11) If you think in "math."
12) If you've calculated that the World Series actually diverges.
13) If you hesitate to look at something because you don't want to break down its wave function.
14) If you have a pet named after a scientist.
15) If you laugh at math jokes.
16) If the Humane society has you arrested because you actually performed the Schrodinger's Cat experiment.
17) If you can translate English into Binary.
18) If you can't remember what's behind the door in the science building which says "Exit."
19) If you have to bring a jacket with you, in the middle of summer, because there's a wind-chill factor in the lab.
20) If you are completely addicted to caffeine.
21) If you avoid doing anything because you don't want to contribute to the eventual heat-death of the universe.
22) If you consider ANY non-science course "easy."
23) If when your professor asks you where your homework is, you claim to have accidentally determined its momentum so precisely, that according to Heisenberg it could be anywhere in the universe.
24) If the "fun" center of your brain has deteriorated from lack of use.
25) If you'll assume that a "horse" is a "sphere" in order to make the math easier.
26) If you have ever commented: "If I drive fast enough at the redlight, it'll appear green."
27) If you understood more than five of these indicators.
28) If you make a hard copy of this list, and post it on your door.

Posted by Peskie at 12:00 PM

UNIX is a drug

At first, I just did it on weekends. With a few friends, you know... We never wanted to hurt anyone. The girls loved it. We'd all sit around the computer and do a little UNIX. It was just a kick. At least that's what we thought. Then it got worse.

It got so I'd have to do some UNIX during the weekdays. After a while, I couldn't even wake up in the morning without having that crave to go do UNIX. Then it started affecting my job. I would just have to do it during my break. Maybe a 'grep' or two, maybe a little 'more'. I eventually started doing UNIX just to get through the day. Of course, it screwed up my mind so much that I couldn't even function as a normal person.

I'm lucky today, I've overcome my UNIX problem. It wasn't easy. If you're smart, just don't start. Remember, if any weirdo offers you some UNIX,

Just Say No!

This article was originally posted in April 2004.....

Posted by Ozguru at 06:00 AM | Comments (7)

November 13, 2005

How (little) women think?

ATT145862.jpg

Recycled from 2003/08/01.

Posted by Peskie at 12:00 PM

November 12, 2005

Church Feud

[Found over at Cynical Cyn...]

There was a feud between the Pastor and the Choir Director of The Hicksville Southern Baptist Church. It seems the first hint of trouble came when the Pastor preached on dedicating yourselves to service and the Choir Director chose to sing: "I Shall Not Be Moved."

Trying to believe it was a coincidence, the Pastor put the incident behind him. The next Sunday he preached on "giving." Afterwards, the choir squirmed as the director led them in the hymn: "Jesus Paid It All."

By this time, the Pastor was losing his temper. Sunday Morning attendance swelled as the tension between the two built. A large crowd showed up the next week to hear his sermon on "The Sin of Gossiping," Would you believe the Choir Director selected: "I Love To Tell The Story?"

There was no turning back. The following Sunday the Pastor told the congregation that unless something changed, he was considering resignation. The entire church gasped when the Choir Director led them in: "Why Not Tonight?"

Truthfully, no one was surprised when the Pastor resigned a week later, explaining that Jesus had led him there and Jesus was leading him away. The Choir Director could not resist: "What A Friend We Have In Jesus."

Posted by Peskie at 12:00 PM

PROM Commands

Typing help at the ok prompt will give you a list of main categories of commands available. Typing help category will show help for all commands in the category (use only the first word of the category description). Typing help command will show help and details of the individual command.

A lesser known boot PROM tool is the sifting command. Typing sifting characters will display names of all commands containing your sequence of characters. For example:

ok sifting probe
probe-all probe-scsi-all probe-sbus probe-slots probe probe-fpu probe-virtual lprobe wprobe cprobe
ok

You can then use help command to get the correct syntax.

Posted by Ozguru at 06:00 AM

November 11, 2005

Ghoughphtheightteeau

Everyone knows that Ghoughphtheightteeau is another way to spell Potato but what was the original intentional misspelling by G.B. Shaw?

I believe it was:
GH as in enouGH,
O as in wOmen (plural)
TI as in exhibiTIon

Which means that GHOTI spells fish is *pronounced* like "fish" :-)
[Thanks for the correction :-)]

Posted by Peskie at 12:00 PM | Comments (1)

Unix Users

I needed to use this for a presentation and given how hard it was to find, I figured I should pass it on...

2005-11-11--Dilbert_Unix.jpg

Posted by Ozguru at 06:00 AM | Comments (1)

November 10, 2005

Timing....

[Found at Cynical Cyn...]

Timing has a lot to do with the outcome of a rain dance.

Posted by Peskie at 12:00 PM

Recreate /dev/null

If for some reason you have lost your /dev/null you can easily recreate it by moving a file to /dev/null as root. Another way is to just recreate the soft link (as root again):

devlinks

But if you have messed up the original device in /devices proceed as follows:

mknod /devices/pseudo/mm@0:null c 13 2
chown root:sys /devices/pseudo/mm@0:null
chmod 666 /devices/pseudo/mm@0:null
cd /dev
ln -s ../devices/pseudo/mm@0:null null

Posted by Ozguru at 06:00 AM | Comments (2)

November 09, 2005

What not to say...

[Found at Cynical Cyn...]

Things better left unsaid if you get stopped by a cop...

1. I can't reach my license unless you hold my beer. (OK in Texas)

2. Sorry, Officer, I didn't realize my radar detector wasn't plugged in.

3.Aren't you the guy from the Village People?

4. Hey, you must've been doin' about 125 mph to keep up with me. Good job!

5. Are You Andy or Barney?

6. I thought you had to be in relatively good physical condition to be a police officer.

7. You're not gonna check the trunk, are you?

8. I pay your salary!

9. Gee, Officer! That's terrific. The last officer only gave me a warning, too!

10. Do you know why you pulled me over? Okay, just so one of us does.

11. I was trying to keep up with traffic. Yes, I know there are no other cars around. That's how far ahead of me they are.

12. When the Officer says "Gee Son....Your eyes look red, have you been drinking?" You probably shouldn't respond with,"Gee Officer your eyeslook glazed, have you been eating doughnuts?"

Posted by Peskie at 12:00 PM

Unexpected disconnect (SCSI)

Q: "Fatal SCSI error at script address 10 Unexpected disconnect. Can't open boot device"

A: There are three possibilities - you have a SCSI mismatch, your cables are shot or the termination is stuffed.

The first thing to check is that your devices match. Look at the bits of equipment where the SCSI cables connect and check for the symbols. You should find one of these four symbols:

SCSI_SE.jpg

This is the oldest SCSI type shown here. SE (Single Ended) SCSI is very common but suffers from noise and severe limits on the potential cable length. Common configurations may limit the number of devices to 7 (although technically Ultra SCSI goes to 15). Usually the problem is not one of addressing but of total cable length.
SCSI_HVD.jpg

HVD (High Voltage Differential), sometimes just called "differential" has been around for a while (Since SCSI-2). All the signals are 5V and this introduces a new set of problems but it does allow for longer (and less noisy) connections than SE.
SCSI_LVD.jpg

LVD (Low Voltage Differential) combines the best features of HVD (long cables) without the problems of carrying high voltage signals. This reduces the heat, consumes less power and can run at a higher speed. It was introduced with SCSI-3. Most modern equipment will use this.
SCSI_LVD_MSE.jpg

LVD/MSE looks like a cross between the LVD and SE signals - guess what ... it is. A device that is LVD/MSE will operate in either mode depending on what it is connected to. This is useful when plugging newer devices into older equipment but it does have the drawback of limiting length and reducing the bus speed (which affects all devices on the bus).

Back to our problem, if you try to mix and match different types (with the exception of LVD/MSE) then you will inevitably get the "Unexpected disconnect". Effectively it means "don't do this". There are expensive convertors but it is easier to change the device or the card.

Possibility number two was damaged cables. This is especially true of older cables (80 pin or 68 pin) - check that none of the pins are bent or out of alignment. Try replacing the cables to see if it helps with the problems. If you are using SE, remember there are strict limits on the total length of the SCSI bus (including the bits you can't see - inside the devices).

Finally, check that you have proper termination. Some devices are self-terminating (there should be a 'TERM' light) and others require an external terminator. Like all the other devices, make sure this is the same type as all the devices on the chain. You cannot mix and match (except for LVD/MSE).

Posted by Ozguru at 06:00 AM

November 08, 2005

A penny saved...

... is a government oversight.

Posted by Peskie at 12:00 PM

Bad blocks (mirrored disk)

Bad Mirrored Blocks

If you run fsck (or newfs) on a mirrored disk and you get a ‘bad blocks’ message, then check the block numbers against the partition information (from format). A true bad block should never be visible because of the data mirror.

It is possible to create partitions, build filesystems and then change the partitions. Fsck will then complain about any blocks which *could* exist in the filesystem but are actually in another partition.

This error does not actually mean that data has been lost. The blocks are flagged regardless of the presence of data.

Posted by Ozguru at 06:00 AM

November 07, 2005

Italian Math

[Found at Cynical Cyn...]

A construction boss in Boston was interviewing men when along came a guy named Vinny DiGiusto from New York. I'm not going to hire any wise-ass New Yorker, the foreman thought, so he made up a test hoping that Vinny wouldn't be able to answer the questions, and he'd be able to refuse him the job without getting into a dispute.

"Here's your first question," the foreman said. "Without using numbers, represent the number 9."

"Widout numbiz?" Vinny says. "Dat's easy," and he proceeds to draw 3 trees. "What's this?" the boss asks. The New Yorker replies, "Ain't you got no brains? Tree 'n Tree 'n Tree makes nine. Fahgedaboutit......"

"Fair enough," says the Boss, "Here's your second question. Use the same rules, but this time use the number 99."

Vinny stares into space for a minute, then picks up the picture he has drawn and makes a smudge on each tree. "Dare ya go, Buddy."

The Boss scratches his head and says, "How on earth do you get that to represent 99?"

Vinny says "Each a da tree's is dirty now! So it's dirty tree 'n dirty tree 'n dirty tree, dat's 99".

The Boss is getting worried he's going to have to hire the New Yorker, so he says, "All right, last question. Same rules but this time use 100."

Vinny stares into space again, then picks up the picture once again, makes a little mark at the base of each tree and says, "Dare ya go, Mac, a hunnert."

The Boss looks at the picture for a moment and says, "You must be nuts if you think that represents 100!"

New York Vinny leans forward and points to the marks at the base of the trees. "A little doggie comes along and takes a poop on each a dem trees, so now ya got dirty tree an' a turd, dirty tree an' a turd, dirty tree an' a turd which makes one hundred. ........ Bada boom, bada bing. ......... When do I freakin' start?"

Posted by Peskie at 12:00 PM | Comments (2)

Creating Disk Layouts

We already had some tech tips about disk layouts, but they assume that you already have a layout to copy or work with. What if you have a new disk and you want some suggestions?

Well, once upon a time, a long time ago, you used to build separate partitions for / (root), /var, /usr, /opt, /export/home, etc. These days the considerations are somewhat simplified by the sheer size of the average boot disk. The base considerations are: how much swap do you need (older Solaris versions have specific requirements that relate to memory size), how much stuff are you going to load in terms of Solaris optional features and do you feel like playing Russian Roulette? This last point refers to the /var filesystem - the place where all the logs are kept as well as the critical directory /var/sadm.

If you feel lucky, put /var in the root filesystem. If you fail to do corrective surgery on your logs, they will grow and grow. One day, you will get a full filesystem. If this is the root filesystem, your installation is hosed and I hope you have a good backup and recovery procedure.

If you don't feel lucky today, put /var in a filesystem by itself :-)

So we need three filesystems: swap, / (root) and /var. The rest of the space is yours to arrange.

What I usually do (and this is only a rule of thumb) is to think in 6ths or 7ths of a disk. Imagine that you disk has 14087 cylinders. This is roughly 2000 x 7. So we divide the disk into chunks of around 2000 cylinders as follows (most left over cylinders go into swap):

Slice 7 is actually intended for use later by SVM and there just happens to be 7 cylinders left over :-) Note that / and /var will be almost 10Gb and swap will be slightly larger. /export/home will be almost 40Gb.

Posted by Ozguru at 06:00 AM

November 06, 2005

How (little) women think?

ATT145861.jpg

Recycled from 2003/08/01.

Posted by Peskie at 12:00 PM

Ethernet Settings

Q: How can I force my on-board ethernet in a [e.g. V240] to be full duplex because it doesn't work with my [insert name like Nortel here] switch?

A: This question is covered on most of the sun forums. The usual answer (see this post) revolves around either modifying the kernel configuration via /platform/sun4u/kernel/drv/bge.conf or by creating a startup script called S68net-tune in rc2.d:

#!/bin/sh
# Forcing /dev/bge to 100FDX
ndd -set /dev/bge0 adv_1000fdx_cap 0
ndd -set /dev/bge0 adv_1000hdx_cap 0
ndd -set /dev/bge0 adv_100fdx_cap 1
ndd -set /dev/bge0 adv_100hdx_cap 0
ndd -set /dev/bge0 adv_10fdx_cap 0
ndd -set /dev/bge0 adv_10hdx_cap 0
ndd -set /dev/bge0 adv_autoneg_cap 0

Note that you may need to change bge0 to suit your particular ethernet device.

Posted by Ozguru at 06:00 AM | Comments (4)

November 05, 2005

Hen-Pecked?

[Found at Read My Lips....]

When everybody on earth was dead and waiting to enter Paradise, God appeared and said, "I want the men to make two lines: one line for the men who were true heads of their household and the other line for the men who were dominated by their women. I want all the women to report to St. Peter."

Soon, the women were gone and there were two lines of men. The line of the men who were dominated by their wives was 100 miles long, and in the line of men who truly were heads of their household, there was only one man.

God said, "You men should be ashamed of yourselves. I created you to be the head of your household. You have been disobedient and to fulfilled your purpose. I told you to be the spiritual leader in your family. Of all of you only one obeyed. Learn from him. Tell them, my son, how did you manage to be the only one in this line?"

The man replied, "I don't know, my wife told me to stand here."

Posted by Peskie at 12:00 PM | Comments (2)

November 04, 2005

The old farmers advice ...

Don't interfere with somethin' that ain't botherin' you none.

Posted by Peskie at 12:00 PM

V240 ALOM Warning lights

This is an interesting tech tip (well interesting to me) because there are multiple solutions....

Q1: The orange warning light (with the wrench) keeps appearing on my V240.

A1: There were problems with some V240s and the bge interfaces. I believe this has been fixed more recently but the original fix was to use resetsc in the ALOM. This will turn the light off until the network traffic reaches a certain level when the light will turn on again. [This solution was from a posting on the old BigAdmin site]

Q2: It still turns on as soon as I turn it off...

A2: Try upgrading the firmware if there are no other visible problems. This will often resolve issues in the way the server self-tests. [This solution was from the SunManagers mailing list]

Q3: It is still turning on...

A3: Go into the directory /usr/platform/*240/sbin and run ./scadm loghistory. This will tell you what the server thinks is wrong. Believe it or not, a common problem is that only one of the dual power supplies is plugged in and switched on. Despite the machine being fully operation, the light will come on and the error message will be about a lack of power (which is somewhat confusing given that there must be power for you to see the message).

Posted by Ozguru at 06:00 AM

November 03, 2005

Equal Opportunity

[Found at Cynical Cyn...]

Segale Travel Service, in Stockton, is currently looking for office help. They put a sign in the window saying:

HELP WANTED - Must be a good typist and have good computer skills. Successful applicant must be bilingual. We are an Equal Opportunity Employer.

A short time later a lovely golden retriever dog trotted up to the window, saw the sign and went into Segale's office.

He looked at Kathy, the receptionist and wagged his tail, then walked over to the sign, looked at it, whined and pawed the air.

Kathy called her boss, Ernie Segale.

He was surprised to say the least to see a canine applicant.

However, the dog looked determined, so Ernie led him into his office.

Inside, the dog jumped up on a chair and stared at the Mr. Segale expectantly.

Ernie said, "I can't hire you. The sign says you must be able to type."

The dog jumped down, went to the typewriter and started to quickly type a perfect business letter. He took out the page with his mouth and trotted over to Ernie, gave it to him, then jumped back up on the chair wagging his tail.

Ernie Segale was stunned, but told the dog, "That was fantastic, but I'm sorry. The sign clearly says that whomever I hire must have good computer skills."

The dog jumped down again, went to the computer and proceeded to demonstrate his expertise with various programs, produced a sample Excel spreadsheet and Oracle database, retouched a picture with Photo shop, then presented them all to Ernie.

Ernie Segale was dumbfounded! He said to the dog, "Hey, I realize that you are a very intelligent applicant and have fantastic talent, but you're a dog -- no way could I hire you."

The dog jumped down and went to the sign in the window and pointed his paw at the words, "Equal Opportunity Employer."

The exasperated Ernie said, "Yes, I know what the damned sign says. But the sign also says you have to be bilingual."

The dog looked him straight in the eye and said, "Meow."

Posted by Peskie at 12:00 PM

November 02, 2005

Where there's a will...

[Found at Mad Elaine's Pages...]

Where there's a will, there's a lawsuit.

Posted by Peskie at 12:00 PM

Automount /home (Solaris 10)

In Solaris prior to 10, you got the automount working by changing the /etc/auto.home file and restarting autofs. The file needs to have an extra line in it:

* hostname:/export/home/&

Where hostname is the server that holds the home directories (it should be in the /etc/dfs/dfstab file on that server so that it is available to the machine you are currently working on).

Next, you need to restart the autofs daemon:

cd /etc/init.d
./autofs stop; ./autofs start

On Solaris 10, you get an error message about "no such file" because the autofs startup is no longer a simple script in the init sequence. Instead it is now a fully fledged "service" that runs under svcs. So, instead you need to run:

# svcs | grep auto
legacy_run Oct_24 lrc:/etc/rc2_d/S72autoinstall
online 17:31:10 svc:/system/filesystem/autofs:default
# svcadm -v restart svc:/system/filesystem/autofs:default
Action restart set for svc:/system/filesystem/autofs:default.

Now you should be able to change to the directory /home/username and magically, the directory will come into existence, mounted from the specified host.

Posted by Ozguru at 06:00 AM

November 01, 2005

Laws

If you laid all of our laws end to end, there would be no end.
-- Mark Twain

Posted by Peskie at 12:00 PM | Comments (1)