請依照以下步驟以從您的系統中移除產品軟體。
請先為您的系統製作一個完整的備份,然後再繼續進行。
登入您想要從其中移除 Solaris Resource Manager 的系統,然後成為超級使用者﹕
$ suPassword: # |
使用 shutdown 指令以將系統降為單一使用者管理模式﹕
# shutdown -i 1 |
在 Sun Entrprise 10000 伺服器上不需要執行這個步驟。
確認沒有執行 Solaris Resource Manager。雖然不是絕對必要,還是建議您在移除 Solaris Resource Manager 時不要執行它。
# srmadm show fileopenno |
依照下列文件中的說明來裝載 Solaris Resource Manager 光碟片"從光碟安裝",並且將目錄變更為光碟片所裝載的目錄﹕
# cd /cdrom/cdrom0 |
在 Sun Enterprise 10000 伺服器上,您必須在變更目錄之前先透過 NFS,從含有內部光碟機的 SSP 裝載光碟片﹕
# mkdir -p /cdrom/cdrom0 # mount -F nfs ssp:/cdrom/cdrom0 /cdrom/cdrom0 # cd /cdrom/cdrom0 |
啟始套裝軟體移除工具,解除安裝程式﹕
# ./Uninstaller |
要移除的第一個套裝軟體會顯示出來。請鍵入 y(是) 以繼續移除 Solaris Resource Manager﹕
Removing.....Solaris Resource Manager 1.0 (SRM) The following package is currently installed: SUNWsrmr Solaris Resource Manager (sparc) 1.0.0,REV=1998.11.13.14.07 Do you want to remove this package? y |
您會被警告,套裝軟體包含必須以 root 權限來執行的指令集,而且這些指令集是套裝軟體正常移除過程的一部份,需要它們才能正確地移除軟體,請在被詢問是否想要繼續時鍵入 y(是)﹕
## Removing installed package instance <SUNWsrmr> This package contains scripts which will be executed with super-user permission during the process of removing this package. Do you want to continue with the removal of this package [y,n,?,q] |
套裝軟體現在會從您的系統中移除,您會看到有關移除過程的各種訊息﹕
## Verifying package dependencies. ## Processing package information. ## Removing pathnames in class <shadow> ## Removing pathnames in class <pamconf> ## Removing pathnames in class <etcsystem> ## Removing pathnames in class <passwd> ## Removing pathnames in class <devlinktab> ## Removing pathnames in class <none> /usr/lib/srm/srmscru /usr/lib/srm/liblim.so.1 /usr/lib/srm/liblim.so /usr/lib/srm /usr/lib/security/pam_srm.so.1 /usr/lib/security/pam_srm.so /usr/lib/security <shared pathname not removed> /usr/lib/class/SHR/SHRpriocntl /usr/lib/class/SHR/SHRdispadmin /usr/lib/class/SHR /usr/lib/class <shared pathname not removed> /usr/lib <shared pathname not removed> /usr <shared pathname not removed> /kernel/sched/SHR /kernel/sched <shared pathname not removed> /kernel/misc/srmlim /kernel/misc <shared pathname not removed> /kernel/drv/srmdrv.conf /kernel/drv/srmdrv /kernel/drv <shared pathname not removed> /kernel <shared pathname not removed> /etc/srm/nolnode /etc/srm/limconf /etc/srm /etc/rc2.d/S10srm /etc/rc2.d <shared pathname not removed> /etc/rc1.d/K52srm /etc/rc1.d <shared pathname not removed> /etc/rc0.d/K52srm /etc/rc0.d <shared pathname not removed> /etc/init.d/init.srm /etc/init.d <shared pathname not removed> /etc <shared pathname not removed> ## Executing postremove script. ## Updating system information. |
在套裝軟體被成功地移除之後,您便會看到下面的訊息:
Removal of <SUNWsrmr> was successful. |
而且會顯示出下一個要移除的 Solaris Resource Manager 套裝軟體。
如果您在套裝軟體移除的過程中遇到任何錯誤或問題,請參閱第 3章, 解決難題。
重新將系統開機,裝置再設置便可完成從系統中移除 Solaris Resource Manager 的程序﹕
# reboot |
套裝軟體的正常移除過程不會將 Solaris Resource Manager 資料庫檔 /var/srm/srmDB 從系統中移除。如果您不需要此檔,請自行以手動方式將它移除。
現在您已經成功地從系統中移除 Solaris Resource Manager。