Dumb SmartUPS inefficiency

PA060037PA060033

I used to love the APC Smart UPS range. Fully line interactive, they’ll work of nearly any input power and give perfect output power. They don’t cut to batteries unless there is basically no input whatsoever, so brownouts or out of frequency gensets don’t bother them in the least, or even flatten the batteries. Just what you need living on a minesite, or somewhere the power is often dodgy. I still like them for server rooms, very flexible solution, but not for home.

I recently bought a power meter and the results were not good…..

 PA060032
264W – UPS running 2 PC’s, a laptop and a few other bits.

PA060031 
126W – Same equipment, same conditions, no SmartUPS

PA060035
126W – Same equipment, same conditions, Offline Powerware UPS

The UPS was fully charged, all equipment was at idle and 30+ minutes after a clean boot. The APC was less than 50% efficient.

It’s gone now. I’m trying to be somewhat green and using DOUBLE the power to run my computers is not a good tradeoff. I’m sure APC could have done better if they had tried.

The digital power meters are available from Jaycar

Leaking Power Steering on 1HZ

PA130048

I had a constant damp mist of oil near my fuel filters on my ’98 HZJ105 w/ 1HZ engine. Looked like diesel, spread and picked up dirt like diesel, was all around the diesel filter.

It wasn’t diesel.

A lot more looking showed it to be P/S fluid blow into that spot, and several others. The hose wasn’t leaking, despite the oil on the hose that made it look that way.

More looking finally showed the leak was the flange between the cap and body of the reservoir. There were no “tracks” of oil on the body, and it wasn’t wet with oil, just damp, the fan seemed to blow most of it clear. A replacement was $125 at the wreckers, and he had 2 on the wall out the front – happens all the time he said, he sells heaps.

Being lazy and cheap I didn’t want to cough that much. A set of vice grips run around the cap tightly to re-crimp it and presto, no more leak, and one cheap fix.

Exchange Move Mailbox and Outlook Redirection

I find it fairly frequent that I have to assist a company redesign or improve their exchange infrastructure. When changing servers around Move Mailbox is a particularly handy tool. There is an absolute dearth of information on the Outlook side of things however. Here is a few things I have found that may be useful.

When you move a mailbox Outlook will (generally) get redirected without issue. It will do this by connecting to the original server, whop will then issue an instruction as to the new mailbox location based on what information is stored in AD. Some (5% or less) will not automatically redirect due to dodgy profiles.

If you have to do a server shuffle due to hardware limitations, that is, move everyone to another server, rebuild the first one, then move them back, you may have problems. As soon as you turn off the original server, any users not yet redirected will not be able to open outlook. Anyone that has already been redirected will be fine. For sites were staff are on rosters this can leave a large number or “orphaned” copies of outlook. Luckily the solution turns out to be simple.

Outlook merely looks at the server name to find the Exchange Server. It’s not based on the computer account or GUID. This means that if you delete the original server and rebuild a temporary one with the same name, it will handle all the redirections for you. It doesn’t matter the mailbox is no longer there, all the data is stored in AD. You could even throw it onto a VM, it doesn’t do any work, and needs very little disk space. 

This makes a migration where you want to keep everything smooth for your users even simpler.  I just finished using it as I had to to totally reconfigure the RAID packs on a server, meaning the mailboxes just had to move.

Nice AD 2003 DNS Delegation Gotcha

DNS Delegation

Active Directory uses the _msdcs.domain.local sub-domain to host SRV records. Depending on your domain structure and upgrade path, you may find this domain delegated rather than held as part of your “domain.local” zone. The conditions are in this KB article.

Now lets get tricky. Let’s say your _msdcs is delegated as in the picture above. Let’s also say over the years you replace and upgrade servers as your network grows. Sooner or later you’ll most likely replace your original domain controllers.

Well – the delegation details don’t get automatically updated with the IP of every server that hosts the zone. Nup, they are static. This means that although you may have 10 replicas scattered across your network, only the original DNS servers will be the ones listed as Authoritative. When they are replaced – presto – broken DNS and all sorts of cool errors. I recommend DCDiag /test:dns to look for things like this.

So if you are adding or removing DC’s, add _msdcs delegation to your checklist.

Now why wouldn’t MS simply have any replica automatically be listed?

One of the errors is below – Event ID 2087

Active Directory could not resolve the following DNS host name of the source domain controller to an IP address. This error prevents additions, deletions and changes in Active Directory from replicating between one or more domain controllers in the forest. Security groups, group policy, users and computers and their passwords will be inconsistent between domain controllers until this error is resolved, potentially affecting logon authentication and access to network resources.

Source domain controller:

 abcdc03

Failing DNS host name:

 568a7f0d-ef3a-4fad-b7bc-5d5d8ce17ba2._msdcs.abc.com.id

NOTE: By default, only up to 10 DNS failures are shown for any given 12 hour period, even if more than 10 failures occur.  To log all individual failure events, set the following diagnostics registry value to 1:

Registry Path:

HKLM\System\CurrentControlSet\Services\NTDS\Diagnostics\22 DS RPC Client

User Action:

 1) If the source domain controller is no longer functioning or its operating system has been reinstalled with a different computer name or NTDSDSA object GUID, remove the source domain controller’s metadata with ntdsutil.exe, using the steps outlined in MSKB article 216498.

 2) Confirm that the source domain controller is running Active directory and is accessible on the network by typing “net view \\<source DC name>” or “ping <source DC name>”.

 3) Verify that the source domain controller is using a valid DNS server for DNS services, and that the source domain controller’s host record and CNAME record are correctly registered, using the DNS Enhanced version of DCDIAG.EXE available on http://www.microsoft.com/dns

  dcdiag /test:dns

 4) Verify that that this destination domain controller is using a valid DNS server for DNS services, by running the DNS Enhanced version of DCDIAG.EXE command on the console of the destination domain controller, as follows:

  dcdiag /test:dns

 5) For further analysis of DNS error failures see KB 824449:

http://support.microsoft.com/?kbid=824449

Additional Data

Error value:

 11004 The requested name is valid, but no data of the requested type was found.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Unused Server Network Interfaces are Dangerous

I am very careful on servers to disable ALL unused network interfaces, lest they corrupt the domain. Here is why:

I once got called out on a job to give MS PSS support a hand onsite. Unusual I thought at the time, normally I ring PSS, not they ring me. Anyway, they had a rough time getting a client up and running and needed someone on the ground that could help sort through it.

When I got there the Windows 2000 Domain Controller and Exchange 2000 Server  were both very unhappy. The Exchange database was offline, corrupted, and the Domain had more errors in the event log than I had seen before.

After a bit of digging I found the problem. The Domain Controller had two network interfaces, a fairly common thing with server hardware. One of these interfaces had given itself a Private IP address, despite not being plugged in. Most of the Domain SRV records had been redirected to this private (and unusable) IP, making the Domain controller intermittently un-contactable. This had gone on for a significant period of time, before the other Domain Controller had lost sync and gone offline corrupted. The Exchange server hadn’t taken long after that to do similar.

Disabling the unused interface resulted in just one DNS registration, and presto, a happy AD DC again.

Recovering the Exchange Server was not so much fun. It turned out the “backups” were file level, not Information Store backups, so useless. The Information Store failed recovery with ESEUtil and ISInteg. I left PSS to sort that mess out.

I had seen similar behavior before with ISA boxes registering the incorrect interface. Now I am very careful to disable any unused interfaces, thus solving much DNS weirdness.

In theory the interface detection solves this, and I haven’t seen the problem in Server 2003, so maybe it was solved. I’ll keep being cautious.

Airspring / Airbag Suspension Calculator

Airsprings differ from conventional Leaf or Coils in that their behavior is not linear. This gives a significantly different ride to a conventional spring with great resistance to bottoming out. I wont get into better or worse, but will settle for different.

If you are running PolyAirs or similar helper airbags in your vehicle, it’s probably a reasonable idea to know what effect the pressure you are running has compared to the normal spring.

Attached is a spreadsheet that should help you work it out.

For some reason spring loads are commonly still in lb/inch, hence the combination of imperial and metric.

My Landcruiser springs (aftermarket Kings) are approx 250lb/inch. This means for every inch compression, it means another 250lb * 0.45 (112Kg) has been added to each spring.

With full travel of 240mm (10 inches) and a normal lightly loaded ride height of 4 inches compressed = about 1000lb per spring (2000lb total) in the rear of the car. Every extra inch of compression will take an additional 112KG

Polyairs’ rate depends on several factors. The base area of the bag X pressure = the current load. Where it gets interesting is as you compress an airbag it’s rate increases exponentially. The attached spreadsheet shows this effect compared to a normal spring. What is interesting is that the polyairs in the Landcruiser only compress by some 40% of their total length. This reduces the non-linearity significantly. In fact they increase in effective load bearing capacity at a slower rate than the factory spring. This is an unusual outcome for a normally exponential device. If your car has large locators inside the springs, or compresses them near to binding, then the behavior would be significantly different.

Applying the same formula to sleeve type airbags as used on trucks and Discovery III or Range Rovers is a little more difficult, as their internal volume also consists of some spare space down the sides of the bag. This tends to reduce the effect of the rising rate somewhat. Further the piston in the sleeve type bags is often conical instead of cylindrical. This again changes the rate based on height.

It is interesting to note that the factory Range Rover airbags make the piston smaller near the base, presumably to offset the rising rate effect and be more linear. Many aftermarket bags Rover are larger at the base, making the rising rate effect more pronounced.

Flat bag type bags on the other hand would be highly exponential in their behavior.

If you play with the spreadsheet somewhat it quickly becomes evident that airbags are quite a complex suspension mechanism, and one that holds significant potential.

DNS Root Server B not Responding

Now this may be old news, but hey, it’s new to me.

I ran a DCDIAG /test:dns today and received an error

DNS server: 128.9.0.107 (b.root-servers.net.)
1 test failure on this DNS server
This is not a valid DNS server.
PTR record query for the 1.0.0.127.in-addr.arpa. failed on the DNS server 128.9.0.107

Well it would appear that way back in 2004 the B Root Server had a change of IP Address as advised here. The old address was valid for some time but has since been de-commissioned, although I don’t know when exactly.

It’s no biggie, the other servers respond, everything runs as normal. It probably results in a touch more Internet traffic, but with all the Paris Hilton upskirt bandwidth I doubt it matters that much.

My question is, surely, this, of all the Critical Updates MS pushes out with WSUS, would be worthy of a Microsoft Update? Three years, but not as urgent as the “Critical” Windows Genuine Advantage. I guess it’s not critical for their bottom line.

In the meantime I think I’ll update some Root Server lists.

Interesting MS DNS Security Gotcha

Lets say you have a server – MAILSERVER1

And you rebuild it for some reason. It’s a clean rebuild. As part of this rebuild you delete the Computer Account from AD. When you add the computer to the domain again, a new computer account is created.

BUT – if you have “Only Secure Updates” enabled in DNS, the new computer account doesn’t have permission to modify or overwrite the existing DNS entries. You’ll get an Event ID 11166 on boot up of the new server from DnsApi in it’s System Event Log. It’s only a Warning, not an Error, but the consequences could be significant. In my case Exchange Auth kept failing, despite logging no other errors in the event log. Don’t forget this applies to the PTR or Reverse lookup as well.

The simple solution is to delete the DNS records manually, then run IPCONFIG /refreshdns – and presto, all will be good.

The Event Log will say something like 

The system failed to register host (A) resource records (RRs) for network adapter
with settings:

   Adapter Name : {A7648FC7-7952-4AB5-9670-20E84EE3D8A8}
   Host Name : ***srv012
   Primary Domain Suffix : somewhere.com
   DNS server list :
         10.1.2.2, 10.1.1.2
   Sent update to server : 10.1.2.2
   IP Address(es) :
     10.1.2.10

 The reason the system could not register these RRs was because of a security related problem. The cause of this could be (a) your computer does not have permissions to register and update the specific DNS domain name set for this adapter, or (b) there might have been a problem negotiating valid credentials with the DNS server during the processing of the update request.

 You can manually retry DNS registration of the network adapter and its settings by typing “ipconfig /registerdns” at the command prompt. If problems still persist, contact your DNS server or network systems administrator. For specific error code, see the record data displayed below.

Bicycle Energy Efficiency vs Car

I’ve wondered about this for years. I know bicycles are fairly efficient, but I wasn’t sure how efficient the human engine was. This takes all that into account.

It’s never a fair comparison, as much has to do with trip distance, speed, convenience etc. but it’s a fairly thorough review.

http://www.lafn.org/~dave/trans/bicycle/bicycle-energy.html

Summary below.

Using a bicycle, one can travel about 25 times as far on a Calorie of food than on a Calorie of gasoline (by automobile). Unfortunately, it took perhaps 15 Calories of fuel to create that Calorie of food, so the bicycle is only about 5/3 as energy-efficient per person-mile of travel if one doesn’t count the energy cost of the extra time it takes to travel by bicycle.

It takes about 15 times more mechanical energy to transport one by auto as compared to a bicycle. Even though automobile engines are at best about 50% more efficient than a human bicyclist pedalling, the bicyclist is typically about 2/3 more efficient than the auto engine in converting food/fuel into useful work, due to the failure of autos to fully utilize their higher efficiency. So considering only the mechanical and engine efficiencies (including the human “engine”) the bicycle is about 25 times more energy-efficient. But the high fossil fuel energy cost of making food reduces the 25-times advantage to less than 2-times. Counting the energy cost of the additional time it takes to get somewhere by bicycle may result in the overall energy-efficiency of the bicycle being worse than the auto

A bicycle does save energy in many cases, since it limits the distance people can travel and some (or all) of the energy used for bicycling might be used anyway for the exercise needed for health. To make it many times more more energy efficient (before counting the energy cost of time) requires greatly reducing the energy required to create and transport food. See Better Energy-Efficiency in Food Production

Book Piracy – Harry Potter

 It’s tough for media companies these days. We all hear about terrorism piracy of Movies and Music, and how it’s destroying the world.

Well I hear a rumor that now it’s moved to books. If you for example were stuck on a remote island with no access to external print media, then it wouldn’t be surprising that you found this floating round.

P8010014

Reading books on a PC or handheld device just isn’t relaxing. Luckily Adobe has a “print in booklet” function, allowing a novel to be broken into manageable booklets.

It even appeared within a few days of publication, meaning someone put a lot of work into OCR. The formatting and all is correct, although the OCR errors in spelling increase toward the end, I guess they were in a hurry.

Not at I would ever participate or support such an immoral act. It’s just entertaining what you find in a 3rd world country that can’t afford to make a rich person richer.

Of course I did what any good law abiding person would do and immediately burnt the books.

Remix and Return – Nuclear Waste is no big worry

Nuclear waste is EASY to deal with, just put it back in the hole you dug it out of!

I’m not your normal tree hugging greenie. I think that humans are here to stay and we need to figure smart ways of living within the environment. The means we use things from it, and eat the things around us, even the cute furry things. BUT, we need to do this sustainability, so our kids can eat the cute furry things too.

Coal fired power stations are not what I would call a sustainable proposition. Dumping untold millions of tons of invisible CO2 into the atmosphere is not likely to be a good thing to do. General consensus seems to agree.

Nuclear Power on the other hand seems much smarter to me. Sure the leftovers are pretty nasty, but there is very little material to deal with. Now, think about this for a minute. They dug up the dirt with the Uranium in it, concentrated the Uranium until it would react, and shoved it in a reactor. It got used, when it went in it was highly radioactive. When it is used it is less radioactive – that’s why they are pulling it out and calling it used. So if you now mix this less radioactive mix back in with the original dirt you have – amazingly – a less radioactive pile of dirt then when you started. Now, put it back in the hole that it came from. Presto – disposed. It can’t be used for weapons, isn’t economic to dig up, and is exactly like the place was before you started mining.

“Not in my backyard” – well what if that’s where it came from in the first place?

They call it Remix and Return. I can’t say I was the first to invent it, but it seems pretty obvious to me.

Bring on that clean nuclear power. (oh – and Solar too).

What’s the big deal about NAS?

Network Attached Storage – hey that sounds pretty cool. That should be  kinda like iSCSI? Ahh – no. NAS is the buzzword for what used to be known when I was a young boy as a File Server.

WOW – a real file server? yep, it’s that astounding. Somehow I have trouble getting all excited here. File servers have been round for a while now. NAS boxes come with an OS installed, and the discs on some type of RAID. I’m still not excited. 

I just can’t fathom the value proposition here.  Discs cost you the same amount weather you buy them in a NAS box or a File Server. The base hardware costs about the same, or if you save money it’s cheap junk. The OS costs you the same OEM or in the File Server.

If you get a Linux based one you have no NTFS permissions and it runs SAMBA. You may as well not bother with Domain at all – hey, there’s some less costs if you don’t need domain controllers.

Either way, Linux or Windows, they didn’t intend you to screw with the OS too much, so running AV, Backup agents and Updates can be interesting from a support perspective.

“But you can install your Exchange Databases on it” – well, yes you can. Same as you can install them on any file server. And get crap performance. 1GBit Ethernet is 3.5 times slower than 320MByte SCSI channels. I’ll stick with local SCSI thanks, at least I know the discs are dedicated.

So it’s a box on the network running SMB. That’ll definitely revolutionize the world.  I think I’ll just stick to throwing more discs at my current file servers. 

Why does a Steering Damper work? (cause they shouldn’t….)

This thought occurred to me as I was fitting the bash plate last week. This thing in front of me that seems to be working just fine – should not work well at all.

Twin tube shock absorbers don’t work on their side or upside down. The gas in them mixes with the oil and turns it into a foamy mess. This sends the damping rates all over the place, making it unpredictably worse than useless.

Monotube dampers are fine on their side, but not many people run monotube steering dampers. My steering damper didn’t look like a monotube.

Both of these need gas in them to allow for the space the rod takes up as the compress. Some shocks run the gas under pressure for better high temperature performance. Steering dampers do not, it would make them push the steering to one side.

Motorcycle steering dampers run the shaft out the other end, meaning the internal volume stays constant, and you don’t need a gas space. A gas space in these makes them behave very strangely, doesn’t it Brett….

I turned to a mate – Jamie – at GSA Wholesale Suspension for an answer to this one. I find they know more about shocks than anyone else I have ever found.

 It turns out steering dampers generally are a twin tube design, but the air is kept in a plastic bag or bladder. This separates it from the oil and prevents mixing. Now, even though it’s on its side, it can’t go and interfere with the valve rates.

Nifty eh….

How does a Fiberglass Satellite Dish work?

I’ve been playing with sat dishes here and there and every time I see a Fiberglass one the thought keeps occurring – how does something radio transparent reflect radio waves?

I had a few theories ranging from

  • Metalised Paint
  • Metalised Gel-coat
  • Metal Fibre reinforced glass
  • Metal Impregnated resin
  • Foil Layers
  • Wire Mesh

I had the opportunity to drill a water drain hole in one today and the answer became obvious (at least for the Prodelin brand dishes)

There is a fine wire mesh similar to fly-screen under the gel-coat.  It is very fine aperture to cope with the GHz frequencies involved. Hopefully it’s stainless, it looks fairly silver, so it wont rust from the edges in.

So when you are cleaning your fiberglass dish of the mould they seem to accumulate – you don’t have to overly worry about abrading the gelcoat. The mesh layer is reasonably well protected.

Another question answered. 

Just one (or three) Shares Dammit

I spend most of my time visiting different sites implementing projects and sorting out problems. One thing that never ceases to amaze me is the huge plethora of file shares at most of these sites. It’s like having a file server means you have to map everything you can. It makes life far more confusing than it needs to be.

There is no “backup” tool for share configurations when performing DR on a file server. Ideally for my DR I want to be able to restore the files and that’s it, not worry about the server configuration. My File Servers don’t run any app’s, they do SMB and that’s it. All other functions are run on an application server. Print Serving runs on a VM.

The large number of shares generally equates to a large and complex login script that decides what to map to where. This makes file references different across the company, confusing users. It also makes logins slow (and often involve KIX – yech)

Try this for an idea

Run a single Domain DFS Root.
Have links for:

  1. Users Home Drives (one link per server/site)
  2. Software Deployment (one link – it’s replicated)
  3. Company Data (may be per site depending on structure)

Map the Home drives and the Company Data shares. Presto, quick simple login for all. The structure is kept in AD, so it replicated and safe. DFS-R get’s copies of data where it needs to be efficiently. You file server only needs three or four shares to keep everything happy.

If you link the mappings to intermdiate links, as opposed to end targets, then the cleint PC’s never connect to all the remote file servers. Your roaming uses connect to the closest root and mobile users don’t get bogged down.

It gets a little more complex as you manage replicated vs non replicated data between sites, but DFS is perfect for this. The single root approach is far closer to the Internet that people are familiar with, as opposed to knowing which servers and shares things are on. Servers change, data structures should last longer than that.

There is a touch more complexity in planning, but operationally from a user and server management perspective – it’s far simpler. You login speeds are dramitally improved and roaming users are not impacted. All you need to do is organise.

My take on the 2007 Australian Federal Election

He’s dead. I’m fairly sure Howard died several years ago and it is his corpse they keep wheeling out just like Chairman Mao on display in Beijing.

I have huge respect for the man and what he has done. I don’t agree with all his policies, but I do respect that he makes a decision and sticks to his guns. There is nothing worse than civil servants that won’t make a decision. Procrastination never got anyone in government fired.

Unfortunately I think his environmental policies stink. Australia has an opportunity to be a world leader in several fields, and they are likely to just slip by. China is becoming more environmentally conscious than Australia. Their cars are more fuel efficient, they have electric vehicles everywhere, and are rolling out solar hot water like mad.

Our involvement in Iraq is just poor. We need to exit, and we need to do it now. Stick with Afghanistan as long as they need it, at least there is some justification. Invading foreign soil should have gone out with Gallipoli. it’s got me buggered why we got involved with the mess.

I firmly believe making the workplace more flexible makes employers more likely to take on staff. No smart company is going to fire valuable staff. It’s not “your job”, it’s “a job” and you happen to be doing it at the moment. If you do it well, you are valuable. If you do it poorly, you are a liability. If I own the company, the last thing I want is more liabilities. As an employee, if the relationship is not a good one, then sooner or later I’ll move on. Any company with high staff turnover will have trouble being profitable against the competition.

Apart from the first two glaring items, I reckon Howard has done a good job.

Now let’s move to Kevin Rudd. Against the guy personally, no comment. Against Labor – HUGE comment. The Labor party is the political arm of the unions. The thought of being forced to join and pay money to a group of thugs that want me to make less money than I do now makes me less than impressed.

The Union movement in Australia keeps ranting on about “the bosses” and “the workers”. I’ve never felt that way, not when I worked at Woolworth’s pushing trolleys, not when I worked for myself, not working for small companies and not when I work for big business. I have a boss, he has a boss, he has a boss and so on. We are all employed on our merits. Some companies reward effort and achievement, some reward ass kissing, some reward the old boys club. If I don’t l like the rewards, I find another job. This seems to be the major point that is missed. Liberal is all about the mobile workforce, where the skills go to whoever wants to offer them the best package. Labor is about the guy who gets and keeps “his job” and will use violence to stop “scab labor” doing it when he walks out because his useless mate got the sack for not doing his job either.  When it comes to promotion in a union shop it’s the old boys network all over. That’s the only union movement I know, and I don’t want a bar of it in my workplace.

So – how to vote? Voting for a minority results in little impact unless the Parliament is close to hung. Howard needs to deal with the big issues that many people believe he is ignoring. And Rudd works for thugs and scumbags.

I’m still thinking about it.