請依照下列步驟,從您的系統中移除產品軟體。
請先為您的系統製作一個完整的備份,然後再繼續進行。
登入您想要移除 Solaris Resource Manager 的系統,然後成為超級使用者:
$ su Password: # |
請使用關機指令來將系統降級為單一使用者管理模式:
# shutdown -i 1 |
在 Sun Enterprise 10000、Sun Fire 15K,以及 Sun Fire 12K 伺服器上不需要執行這個步驟。
請確認 Solaris Resource Manager 並未執行。
雖然不是硬性規定,在您要將 Solaris Resource Manager 移除時,最好不要執行它。
# srmadm show fileopen # no |
如從光碟安裝 中所說明般裝載 Solaris Resource Manager 光碟,然後將目錄變更為裝載光碟的位置:
# cd /cdrom/cdrom0 |
在 Sun Enterprise 10000、Sun Fire 15K,以及 Sun Fire 12K 伺服器上,您必須在變更目錄之前先從具有內部光碟機的系統服務處理機 (SSP) 之上 NFS 裝載光碟:
# mkdir -p /cdrom/cdrom0 # mount -F nfs ssp:/cdrom/cdrom0 /cdrom/cdrom0 # cd /cdrom/cdrom0 |
啟動套裝軟體移除工具 Uninstaller(解除安裝程式):
# ./Uninstaller |
要移除的第一個套裝軟體會顯示出來。請鍵入 y 以繼續移除 Solaris Resource Manager﹕
Removing.....Solaris Resource Manager 1.3 (SRM) The following package is currently installed: SUNWsrmr Solaris Resource Manager (sparc) 1.3,REV=2002.09.12.12.52 Do you want to remove this package? y |
您會被警告套裝軟體包含必須有超級使用者的權限才能執行的程序檔,而且這些程序檔屬於套裝軟體正常移除過程的一部份,需要它們才能正確地移除軟體,請在被詢問是否想要繼續時鍵入 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] y |
現在會將套裝軟體從您的系統中移除,您會看到有關移除過程的各種訊息:
## 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 套裝軟體會顯示出來。
繼續執行每一個要移除的 Solaris Resource Manager 套裝軟體的移除程序。
如果您在套裝軟體移除的過程中遇到任何錯誤或問題,請參閱第 4章, 疑難排解。
將系統重新開機,裝置再設置便可完成從系統中移除 Solaris Resource Manager 的程序:
# reboot |
套裝軟體的正常移除過程不會將 Solaris Resource Manager 資料庫檔案 /var/srm/srmDB 從系統中移除。如果您不需要此檔案,請自行以手動的方式將它移除。
現在您已經成功地從系統中移除 Solaris Resource Manager。