Newsflash

powered_by.png, 1 kB
Home - Safdar.com arrow Blog arrow Rebuild a Solaris Server
Rebuild a Solaris Server PDF Print E-mail
Written by Safdar Mirza   
Wednesday, 06 June 2007

 

Rebuil a machine to different hardware or recovery of backup to different hardware.

Assuming you're booted from the CD, and your "/" is mounted on
"/a", try:

"cd /a"
"mv dev <yymmdd>_dev"
"mv devices <yymmdd_devices"
"mkdir dev devices"
"chmod 755 dev devices"
"chown root:sys dev devices"
"cd /dev; find . -depth -print | cpio -pdm /a/dev"
"cd /devices; find . -depth -print | cpio -pdm /a/devices"
"cd /a/etc"
"mv path_to_inst <yymmdd_path_to_inst"
"cp -p /etc/path_to_inst /a/etc/path_to_inst"

touch /a/etc/reconfigure for good measure.
Then reboot.

devfsadm will also works.. 

 
< Prev   Next >
© 2010 safdar.com
Joomla! is Free Software released under the GNU/GPL License.