Showing posts with label ClearCase. Show all posts
Showing posts with label ClearCase. Show all posts

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.

Tuesday, September 15, 2009

Sun Cluster Data Service for ClearCase. Prepare

If builders built buildings the way programmers wrote programs, the first woodpecker to come along would destroy civilization.
Weinberg's Second Law

Building Solaris Cluster based on sparc at home is not a trivial Task. Just because lack of hardware. I had already almost everything except additional Ethernet PCI adapters. But, thanks Werner and Alex, I got two nice Dual Gigabit Ethernet PCI adapters for my tests.

Cluster name: karc
Logical hostname: karc-cc

Hardware:
  • SunBlade 100 (karblade)
  • Sun Ultra 60 (karu60)
  • Sun StorEdge MultiPack UltraSCSI Drive Box
  • 2 x 18 Gb SCSI hard disks
  • PCI UltraSCSI host adapter for Blade 100
  • 2 x SCSI 68-68 pin cables
  • 2 x Dual Gigabit Ethernet PCI adapters for cluster interconnects
  • 2 x Gigabit Patch Cords
IP addresses and hostnames:
  • 192.168.10.41   karblade
  • 192.168.10.42   karu60
  • 192.168.10.46   karc-cc
Software:
  • Solaris 10 U7 5/09
  • Sun Cluster 3.2 1/09
  • IBM Rational ClearCase 7.0.1.0 IFIX01
Next:  Sun Cluster Data Service for ClearCase. Hardware Configuration

Monday, September 14, 2009

Sun Cluster Data Service for ClearCase. Prehistory

"I don't expect wetware to work as logically as software."
(C) AI Jane
ClearCase as a High Available cluster service? "Good Idea!" guessed we in early 2001. But closer analyzes and tests with Sun Cluster showed - ClearCase is not cluster aware. And we had to go away from this "Good idea". Actually, we did not miss a lot - ClearCase was really stable over years and (at least I do not remember) we did not have any problems with Availability.

Times changed, Rational Software was purchased by IBM, Sun Cluster rebrended to Solaris Cluster, our project was outsourced, I left the company. But a few days ago I visited former colleagues and we discussed old times. I looked on the Internet later that evening and ... times really changed... found on official IBM site Support Policy for High Availability clustering and ClearCase.

Unfortunately, support for Solaris Cluster exists only in the form of not jet implemented change request RATLC00585651. But the main step is done - ClearCase is cluster aware. And the topic of Configuring Rational ClearCase for high availability in ClearCase Administrator's Guide gives enough information for new analyzes and tests with Solaris Cluster.

I am looking currently for new projects and have a bit of free time. Why not to try? "Good Idea!" Lets see how far I can go this time.

Next:  Sun Cluster Data Service for ClearCase. Prepare