Thursday, August 26, 2010

you want what version?

As most companies do, mine uses co-lo's to deal with the power, cooling, network, storage and other logistics. Recently, we needed some storage and the co-lo said that we could only run the qlogic's driver from Solaris 10U5. I was like Whiskey-Tango-Foxtrot? Are you kidding me? You haven't updated your support matrix in 3 years? I was blown away.

Fortunately, after a fair amount of hang wringing and arguing, we finally got them to agree to a more recent version, and only required a backout of a single patch. I do love Live Upgrade with ZFS root. create BE, remove patch, run pca (Patch Check Advanced) against the ABE to verify that the right patch version will be activated, activate the ABE and reboot. Firedrill averted.

Friday, July 16, 2010

Recreating a Solaris pkg from an installed system

Had one of those days, where the jumpstart server was not backed up and the custom packages I build for our systems disappeared when the disk went south. Then wasted an hour seeing if I could find if the systems I build the package on still had it around. Gave up, figured there must be a way to do it easily. It was.

cd /usr/local
echo "i pkginfo=./pkginfo" > prototype
cp /var/sadm/pkg/MyPkg/save/pspool/MyPkg/pkginfo .
egrep "[fd] none" /var/sadm/pkg/MyPkg/save/pspool/MyPkg/pkgmap | cut -f4 -d\ | pkgproto >> prototype
pkgmk -o -r .

Done. I'm sure the egrep might need tuning for specific stuff in packages, but this did what I needed, and I'm glad I spent the 15 minutes to figure this out. Hope it helps someone else out