Recovery on OSDP or Indiana

 

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 !!

  1. zpool import -f rpool  # this imports the root pool that was created
  2. zfs rollback -f rpool/ROOT/preview2@install  # rollback to the saved snapshot
  3. mkdir /tmp/a
  4. mount -F zfs rpool/ROOT/preview2 /tmp/a # mount the root file system
  5. bootadm update-archive -R /tmp/a
  6. Reboot

That's it!!! 

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.

 



Comments:

Post a Comment:
Comments are closed for this entry.
About

user12610379

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today