I just posted some new goodness for all of the Solaris admins out there. I have compiled a list of return codes from the patchadd command for both Solaris 9 and Solaris 10, and it has come in very handy over the ages. So, I thought I would share. Take a look at it here, and don’t forget to check out the entire library with all sorts of information in it here. Enjoy!
Archive for the ‘Solaris’ Category
6
Solaris patchadd Return Codes
4
Verizon Email Update and Solution
You have heard me share information about the fiasco that Verizon created. In case you haven’t heard, I’ll recap quickly. In the name of fighting SPAM, Verizon decided that they would block ALL port 25 SMTP traffic on their network for all of their ISP customers. That means that anyone and everyone that uses Verizon as their ISP (DSL, FIOS, Dial-up, etc) cannot use any third party mail server or service that is configured to use the industry standard port 25. That’s just plain stupid, but I have complained about that already.
I was in a quandary with this one, or maybe a catch-22 is a better term. If I didn’t do anything about this “problem” that Verizon created, then all the people that I host email services for that use Verizon as their ISP are now out of luck. They can’t send mail through their (read: my) mail servers. So, I can just change the port that sendmail listens on, right? Yeah, I could, and then my Verizon tethered customers can send mail again … but, all my other customers that don’t use Verizon have to change their email client settings too, since they would still be sending through port 25. OK, I didn’t want to go down that road. I wanted to fix the problem with the least impact on everyone. Read the rest of this entry »
3
Latest Solaris 10 Patch Cluster Is Broken
Thought I would share this with anyone out there that manages Solaris 10 servers. In my case we were working with Sparc, but x86 might be affected as well. I’ll skip all of the gory details, but basically what we ran into was a problem with the dependency matrix for a kernel patch (I believe the patch number is 141414–07). What does that mean, you ask? Well, it means that the kernel patch got applied via the patch cluster install script, but without the requisite dependencies being satisfied. Yeah, ouch.
The servers in question would then panic as soon as you tried to bring them back up, and I mean panic hard. You couldn’t even get into single user mode. We spent hours on the phone with Sun support (this is where we finally found out about the dependency problem) to no avail. Sun has really gone downhill in the last few years, and pretty much like a rock since Oracle bought them. Their answer was that they can’t test everything and we had to figure it out on our own. Yikes, what are we paying for support for again???
We ended up having to go back and restore from tape, but since we couldn’t boot into single user mode we did the old net boot from the jumpstart server trick and then restore from tape. All in all it was not fun, but we made it through it. One last thing, we had some servers that were OK with the patch cluster. I think it depends on the release of Solaris that you are running. The older installs did not have the proper dependencies, but the newer installs did. I just wanted to put this out there as a heads up for anyone else getting ready to patch up a Solaris 10 box, be careful cause you might make a brick.
Hope that helps!
20
Oracle Buys Sun Microsystems
Or, the end of the tech world as we know it. Maybe that’s too harsh, time will tell. I know one thing for sure, Oracle stepped up with an offer that was only $400 million more than IBM was tossing around (I know, “only”, but when you are talking $7+ billion it’s not so much), and I bet IBM is now pretty mad at themselves. Not just because they let Sun get away, but more importantly because Oracle with all of Sun’s technology under their belt, just became a veritable behemoth competitor.
I can’t say that Oracle buying Sun is worse than IBM buying Sun, I think either would have been bad, but I do think that IBM would have made more of the technology that Sun has, especially in the hardware arena. Most people already run Oracle on Sun, but I think Oracle was angling the software more than the hardware. Now they have the whole “stack” sewn up. They have been re-branding Red Hat Linux to provide “their own” operating system, but now they don’t have to because they really do have their own operating system with Solaris. One that lots of people prefer for running Oracle versus Linux and especially Windows. Now Oracle can provide the application, the database, the operating system and the hardware platform to run it all on, all in one nice bundle. I have come to think of it as the “O-Stack”. Now, instead of a LAMP stack, Oracle will be pushing their O-Stack.
I just hope that the folk out there that have a considerable investment in Sun (me included), not only in SPARC, but also their X86 line, didn’t just get screwed. Can Oracle keep the support going? Will they keep the hardware lines going? What will happen to Solaris, MySQL and Java (to name a few)? Only time will tell, but I for one am not pleased with this announcement.
I’ll have more updates as I find information to share.
22
MySQL Database Backup Script
Here we go folks, I thought I would share a handy little script with you that I use to backup all of the databases on a particular Linux/UNIX server. I do this by getting a list of the databases, and then using mysqldump to dump them all to a text file. This seems to be the best way (short of replication) to get good clean backups of the data. Toss it into a cron job and you can have it done automagically. There isn’t anything yet to rotate files, but I might add that later. Also, I am going to try and rewrite this in PERL so our Windows (and other OS’s that don’t have a shell like Bash) brethren can run this script as well. For now though, it’s written for Bash but almost any shell would work I think.
OK, onto the script. Read the rest of this entry »
6
Update to the PERL round function
Mr. Thierry H. was kind enough to post a comment with a nice little mod to the PERL round function I posted a while back. With his addition, you can now specify how many digits to show on the right of the decimal. Pretty neat, check it out.



