Monday, September 28, 2009

Sun Cluster Data Service for ClearCase. ClearCase installation

Chaos and Order are not enemies, only opposites.
Richard Garriott

From my point of view, ClearCase brings exactly needed level of Order in software development Chaos. You can find in Internet a lot of negative comments about it. But the quality of ClearCase seems to be strongly related to the qualification of responsible for it personnel. I love ClearCase and never had a problem with it. Lets finally install it.

Actually all steps are described in Rational ClearCase configuration for High Availability. I just have to follow them carefully.
  1. Installation.
  2. root@[both]:/ # mount kars:sol /mnt
    root@[both]:/ # cd /mnt/cluster/cc/7.0.1/sun5/clearcase/install/
    root@[both]:/mnt/cluster/cc/7.0.1/sun5/clearcase/install # ./install_release
    
    1. Local Install:            Install occurs on the local host.
    2. Full-copy: Regular installation, with no links to this release area.
             User specified:Install into: /opt/rational
      3 : ClearCase Full Function Installation
      9 : ClearCase MultiSite Full Function Installation
      f : Finish selection
    Selection number(s)>> 3 9 f
    ClearCase (Atria) Licensing License Server Host[cclic]:karblade/karu60
    ClearCase Registry Server Host[ccreg]:karblade/karu60
    ClearCase Registry Backup Host(s)[Unknown]:
    ClearCase Registry Region[server]:karc
    Do you wish to exit the install to allow you to plan a VOB migration (yes, no, quit)[yes]?no
    
    ***************************************************************************
    >> Summary of installation selections
    ***************************************************************************
            ClearCase (Atria) Licensing License server host is karblade/karu60
            Install into: /opt/rational
            Install method:local
            Install model:full
            Registry backup host(s): Unknown
            Registry host is karblade/karu60
            Registry region: karc
            Release area pathname:/mnt/cluster/cc/7.0.1/sun5
             
             Depending on the type of installation and components selected,
             the disk space required could be as much as 325 Megabytes.
             Please consult the Installation Guide for disk space 
             requirements for each kind of installation.
             
             The interactive portion of the installation is complete.
             If you choose to continue, the previously listed components
             will be installed/updated.
    
             Upon completion,  the installation status will indicate whether
             there were problems, and provide reminders of post-installation
             steps.
    
             This WILL include stopping all currently running ClearCase Product Family
             software.
             This WILL NOT require a reboot of the system.
             
    **** Enter 'quit' or 'no' to abort the installation ****
    **** Enter 'yes' or press  to continue ****
    
    Continue installation?(yes, no, quit)[yes]:
    
    
    root@[both]:/mnt/cluster/cc/7.0.1/sun5/clearcase/install # cd
    root@[both]:/ # umount /mnt 
    
  3. Deactivate startup.
  4. root@[both]:/ # /etc/init.d/clearcase stop
    root@[both]:/ # rm /etc/rc2.d/S77clearcase /etc/rc0.d/K35clearcase
    root@[both]:/ # mv /etc/init.d/clearcase /etc/init.d/cl.clearcase
    
  5. Define logical hostname karc-cc as an ClearCase alternate hostname.
  6. root@[both]:/ # echo karc-cc > /var/adm/rational/clearcase/config/alternate_hostnames
    
  7. Move registry configuration on shared FS.
  8. (on karblade only)
    root@karblade:/ # cldg switch -n karblade ccset
    root@karblade:/ # mount /local/cc
    root@karblade:/ # cp -rp /var/adm/rational/clearcase/rgy /local/cc/rgy
    (on both)
    root@[both]:/ # mv /var/adm/rational/clearcase/rgy /var/adm/rational/clearcase/rgy.old
    root@[both]:/ # ln -s /local/cc/rgy /var/adm/rational/clearcase/rgy
    
  9. Every host should have separate license set. But license host should be the same.
  10. root@karblade:/ # vi /var/adm/rational/clearcase/license.db
    root@karblade:/ # echo karc-cc > /var/adm/rational/clearcase/config/license_host
    
Finally we can start with Data Service for ClearCase.

No comments:

Post a Comment