May
09

Migrating from Sun’s DHCP to ISC DHCP

For several reasons we have migrated our DHCP infrastructure from Sun’s DHCP service to ISC dhcp here at work. To aide in the process I created a little perl script to generate the Host declarations for a given network.

dhcp_migration.pl
I’ve also created a manifest so that isc dhcp services can be integrated into Solaris 10’s SMF.

/lib/svc/method/isc-dhcp-server
/var/svc/manifest/system/isc-dhcp-server.xml
Copy both files into the locations show above, then run

svccfg import /var/svc/manifest/system/isc-dhcp-server.xml

May
01

Solaris 10 11/06 (sparc) Flash install failing

…….

Extracted 2462.00 MB ( 99% of 2466.70 MB archive)
Extracted 2463.00 MB ( 99% of 2466.70 MB archive)
Extracted 2464.00 MB ( 99% of 2466.70 MB archive)
Extracted 2465.00 MB ( 99% of 2466.70 MB archive)
Extracted 2466.00 MB ( 99% of 2466.70 MB archive)
Extracted 2466.70 MB (100% of 2466.70 MB archive)
Extraction complete

Postdeployment processing

No local customization defined
sh: ./cc-client_cleanup: not found

ERROR: Error while processing custom script - cd /tmp/flash_tmp/postdeployment;./cc-client_cleanup
rm: Cannot remove any directory in the path of the current working directory
/tmp/flash_tmp/postcreation

ERROR: Postdeployment processing failure

ERROR: Flash installation failed
Solaris installation program exited.

Bahh ….

Initially I did some googling and round a possibly related bug 6460977 that is supposed to be resolved by patch 124171. My flash archive was at revision -03, and I patched up to the current -06 but it still did not resolve my issues.

I next attempted to replace the symlink in /etc/flash/postdeployment/cc-client_cleanup with the actual script located at /usr/lib/cc-cfw/framework/lib/client_cleanup. Then creating a new flash archive.  This worked according to a few forum users http://forum.java.sun.com/thread.jspa?threadID=5131857
This however still had dependencies to other scripts in /usr/lib/cc-cfw.

Ok, so at the risk of screwing with the actuall jumpstart boot filesystem, I rsync /usr/lib/cc-cfw over to the appropriate place on the Boot file system on the jumpstart server.  NO..no..  That would be too easy  now we have dependencies in /usr/lib/cc-ccr.

Ok, so finally I run the cc-client_cleanup while chrooted in the /a file system.  YEAH it runs, but ..hmm  what other scripts are not being executed after the flash extraction?  Trying to boot the system off the disk just complains

{3} ok boot disk
Boot device: /pci@8,600000/SUNW,qlc@2/fp@0,0/disk@0,0  File and args:
The file just loaded does not appear to be executable.

top