Solaris Resource Manager 1.3 安裝指南

第 3章 移除 Solaris Resource Manager

要從系統中移除 Solaris Resource Manager 軟體,請依照本章所述之步驟進行。

請注意切勿從您的系統中將 Solaris AnswerBook2 v1.4 說明文件伺服器(套裝軟體 SUNWab2rSUNWab2sSUNWab2u)移除。


註解 -

如果您正由 Sun Enterprise 10000 伺服器將本產品移除,請參考在 Sun Enterprise 10000、Sun Fire 15K,以及 Sun Fire 12K 伺服器上安裝光碟。 中的特殊指示來進行。


準備移除的工作


小心 - 小心 -

請勿以手動的方式來移除 Solaris Resource Manager 檔案。否則以後您可能無法重新安裝此軟體,而使系統完全無法使用。


在您移除任何 Solaris Resource Manager 軟體之前,請製作一個 Solaris Resource Manager 資料庫檔案 /var/srm/srmDB 的備份。如果您打算再次使用此產品的話,這一點極為重要。如果您遺失此檔案,就必須從頭開始重建您的 Solaris Resource Manager 資料庫。如果其中有重要資訊的話,建議您最好將它備份。

如需有關如何儲存與恢復 /var/srm/srmDB 資料庫的資訊,請參閱 Solaris Resource Manager 1.3 系統管理指南中的 "管理 Lnodes"

移除 Solaris Resource Manager 套裝軟體

請依照下列步驟,從您的系統中移除產品軟體。


註解 -

請先為您的系統製作一個完整的備份,然後再繼續進行。


  1. 登入您想要移除 Solaris Resource Manager 的系統,然後成為超級使用者:


    $ su
    Password: #
  2. 請使用關機指令來將系統降級為單一使用者管理模式:


    # shutdown -i 1 
    

    註解 -

    在 Sun Enterprise 10000、Sun Fire 15K,以及 Sun Fire 12K 伺服器上不需要執行這個步驟。


  3. 請確認 Solaris Resource Manager 並未執行。

    雖然不是硬性規定,在您要將 Solaris Resource Manager 移除時,最好不要執行它。


    # srmadm show fileopen
    # no
  4. 從光碟安裝 中所說明般裝載 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
    

  5. 啟動套裝軟體移除工具 Uninstaller(解除安裝程式):


    # ./Uninstaller
    
  6. 要移除的第一個套裝軟體會顯示出來。請鍵入 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
    
  7. 您會被警告套裝軟體包含必須有超級使用者的權限才能執行的程序檔,而且這些程序檔屬於套裝軟體正常移除過程的一部份,需要它們才能正確地移除軟體,請在被詢問是否想要繼續時鍵入 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
    
  8. 現在會將套裝軟體從您的系統中移除,您會看到有關移除過程的各種訊息:


    ## 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 套裝軟體會顯示出來。

  9. 繼續執行每一個要移除的 Solaris Resource Manager 套裝軟體的移除程序。


    註解 -

    如果您在套裝軟體移除的過程中遇到任何錯誤或問題,請參閱第 4章, 疑難排解


  10. 將系統重新開機,裝置再設置便可完成從系統中移除 Solaris Resource Manager 的程序:


    # reboot
    

系統清除

套裝軟體的正常移除過程不會將 Solaris Resource Manager 資料庫檔案 /var/srm/srmDB 從系統中移除。如果您不需要此檔案,請自行以手動的方式將它移除。

現在您已經成功地從系統中移除 Solaris Resource Manager。