|
|
||
Please read this entire page prior to uninstalling the Provisioner PXE Server.
To uninstall the Provisioner PXE Server
To uninstall the Provisioner PXE Server, perform the following steps:
Execute as root user and in root/:
cd /root
/usr/local/linmin/lbmp-uninstall.sh
This moves /usr/local/linmin/ to /usr/local/linmin_{uninstall_date}/ and deletes /usr/local/linmin/.
After the uninstall, there are major directories remaining (prefixed with the release number and suffixed with a time date and time stamp), for example:
/home/tftpboot_6.1.0-2.exp-v454_uninstalled_20101004_112627
/usr/local/linmin_6.1.0-2.exp-v454_uninstalled_20101004_112627
The directories may contain data representing a considerable investment of your time, loading operating system media and data, as well as building templates and profiles.
Removing these directories will prevent recovery of the Provisioner PXE Server to the state it was uninstalled from: if recovery is even remotely probable it is best to keep these directories intact.
Starting with Release 6.1, if you execute the uninstall script in /usr/local/linmin/, you will get an error message similar to:
The uninstall script must be invoked from root/
... cd to root/ and execute /usr/local/linmin/lbmp-uninstall.sh
Prior to Release 6.1, if you execute the uninstall script in /usr/local/linmin/, the uninstall process will succeed but you will be left in a phantom (doesn't exist anymore) /usr/local/linmin/ director which may be confusing. Simply go to any other directory and you will see that /usr/local/linmin no longer exists.
To re-install the Provisioner PXE Server
Starting with Release 6.1:
If you wish to re-install after a failed or interrupted installation that caused you to un-install the product:
Execute as root user and in any directory other than /usr/local/linmin/:
cd /root
/usr/local/linmin/lbmp-uninstall.sh
and select the "recover" option. This will recreate the /usr/local/linmin/ directory and move the install package and database backup into it.
Respond: Press enter to exit :exit:recover: [exit] :recover
...recovery for reinstall and DB backup
ls: /usr/local/linmin_6.1.0-2.exp-v454_uninstalled_20101004_112627/*_lbmp.exp: No such file or directory
Contents of /usr/local/linmin/
total 162652
-rwxrwxrwx 1 root root 166365744 Oct 4 02:30 cisco-provisioner-6.1.0-2.exp
-rwxrwxrwx 1 root root 1 Jun 11 2008 no_key_installed_lbmp.key
drwxr-xr-x 2 root root 4096 Oct 4 11:21 pgDBbkup
Recovery is complete
End: LBMP LinMin Bare Metal Provisioning Uninstall
# ll /usr/local/linmin
-rwxrwxrwx 1 root root 166365744 Oct 4 02:30 cisco-provisioner-6.1.0-2.exp
-rwxrwxrwx 1 root root 1 Jun 11 2008 no_key_installed_lbmp.key
drwxr-xr-x 2 root root 4096 Oct 4 11:21 pgDBbkup
You may now Install the Provisioner PXE Server and optionally restore the database using
/usr/local/linmin/linmin-bmp-PostgresRestore.sh
Prior to Release 6.1:
If you wish to re-install after a failed or interrupted installation that caused you to un-install the product, simply recreate the linmin/ directory, and retrieve the files that were moved to the uninstall directory. For example, to retrieve the base product installation package:
cd /usr/local/
mkdir linmin
cd linmin_{uninstall_date}
mv cisco-provisioner-{version}.exp ../linmin
cd ../linmin
And proceed to Install the Provisioning Server.