Migrating the SGD ENS Datastore
- Stop the SGD server
# tarantella stop; sleep 30; tarantella stop --kill
- Create an archive of the desired ENS.
# cd /<install-dir>/var
Note: <install-dir> Is a placeholder, indicating the installation directory. The default for SGD is /opt/tarantella. CPIO implementations differ based upon version and platform. Below are two example commands. Please choose the one most appropriate with your environment, and verify correctness via man page.LINUX # find ens | cpio -ocv -C 1024 -F /tmp/sgd_ens.cpio Solaris # find ens | cpio -ocv -C 1024 -O /tmp/sgd_ens.cpio
This file, '/tmp/sgd_ens.cpio' may now be copied to the target server that you'd like to restore it on. - If you are planning to restore or migrate this ENS over a 'fresh' SGD install that maintains the default application objects, it may be beneficial to save the existing DNS for future troubleshooting. To do so:
# cd <install-dir>/var # mv ens ens.<SGD version>.default - With the original ENS archived, and the SGD server stopped, you will now want to restore the archive in the same <install dir>/var/ directory
# cd <install-dir>/var
LINUX # cpio -icdumv < /tmp/sgd_ens.cpio Solaris # cpio -icdumv < /tmp/sgd_ens.cpio
- Once the transplanted ENS has been restored on the server, it is necessary to remove ens/.object file. This forces SGD to 'reindex' the ENS on it's next startup.
# rm <install dir>/var/ens/.object
- Start the server:
# tarantella start
-FB

Posted by Remold Krol on July 13, 2007 at 01:39 PM BST #
Posted by Fat Bloke on July 13, 2007 at 03:07 PM BST #