Recovery on OSDP or Indiana
By user12610379 on Feb 15, 2008
I had installed OpenSolaris Developer Preview-2 on our local build server and set it up to run with NIS. A few days ago the system was accidently messed up. While the file systems it was exporting were still available no one could log in.
Typically at this point one would either revert to an old BE or reinstall the system. However in OSDP-2 a third option exists. After the install is complete, a snapshot of the system is taken. So, I threw in the CD, rebooted it and imported the root pool. Then it was simply a matter of rolling back to the saved snapshot. The one gotcha is that the boot_archive needs to be run manually. Normally on reboot the archives are rebuilt. However if one boots off the liveCD, boot-archive-update service is disabled and boot archive is not updated.
Here are the steps to recover the system after one has booted off the live CD and has become a super-user. The root password for the liveCD is opensolaris !!
- zpool import -f rpool # this imports the root pool that was created
- zfs rollback -f rpool/ROOT/preview2@install # rollback to the saved snapshot
- mkdir /tmp/a
- mount -F zfs rpool/ROOT/preview2 /tmp/a # mount the root file system
- bootadm update-archive -R /tmp/a
Since I had made changes to the set up to enable NIS, I took another snapshot of the system and now the updated boot archive will also be captured.