Manually upgrading to the Cluster Edition

NoteStart the Cluster Edition in a single instance until the upgrade is complete.

  1. Back up all old databases.

  2. Start the earlier version of Adaptive Server:

    • Move to the old $SYBASE directory

      cd $SYBASE
      
    • Source SYBASE.sh (Bourne shell) or SYBASE.csh (C shell).

      source SYBASE.csh
      
    • Execute the runserver file:

      $SYBASE/$SYBASE_ASE/install/RUN_server_name
      
  3. In another window, change to the new $SYBASE directory

  4. Source SYBASE.sh (Bourne shell) or SYBASE.csh (C shell) in the new $SYBASE directory:

    source SYBASE.csh
    
  5. Run the preupgrade test on the old server using the preupgrade utility, located at $SYBASE/ASE-15_0/upgrade. The server configuration resides in $SYBASE/$SYBASE_ASE in the old release directory.

    Do not change the default packet size from 512 to 2048 until after the upgrade is complete.

    Note If during pre-upgrade the default network packet size is set to 2048 then you cannot login to finish the pre-upgrade on a 12.5.x server because there is no way to tell preupgrade to use 2048 bytes as a packet size.

    1. Execute the following, where password is the system administrator’s password:

      $SYBASE_ASE/upgrade/preupgrade -Sserver_name -Ppassword
      
    2. Correct all errors from the output of the preupgrade test. Re-run preupgrade until it succeeds without errors.

    3. Restart the old Adaptive Server, if required.

  6. Run the reserved word check on the Cluster Edition:

    1. Install the Cluster Edition version of installupgrade:

      isql -Usa -Ppassword -Sserver_name 
      -i$SYBASE/$SYBASE_ASE/scripts/installupgrade
      
    2. Install the Cluster Edition version of usage.sql:

      isql -Usa -Ppassword -Sserver_name 
      -i$SYBASE/$SYBASE_ASE/upgrade/usage.sql
      
    3. Log in to the old Adaptive Server and execute sp_checkreswords on all databases:

      use sybsystemprocs
      go
      sp_checkreswords
      go
      
    4. Correct any errors the reserved word check reveals.

  7. Shut down the old Adaptive Server.

  8. Create the cluster input file. For example the file 'mycluster.inp':

    [cluster]
    name = mycluster
    max instances = 2
    master device = /dev/raw/raw101
    config file = /sybase/mycluster.cfg
    interfaces path =
    traceflags =
    primary protocol = udp
    secondary protocol = udp
    
    [management nodes]
    hostname = blade1
    hostname = blade2
    
    [instance]
    id = 1
    name = ase1
    node = blade1
    primary address = blade1
    primary port start = 38456
    secondary address = blade1
    secondary port start = 38466
    errorlog = /sybase/install/mycluster_ase1.log
    interfaces path = /sybase/
    traceflags =
    additional run parameters =
    

    For an example of what this input file must contain, see “Creating the cluster input file” for more information.

  9. Copy the old Adaptive Server configuration file (server_name.cfg) from the old $SYBASE directory to the new $SYBASE directory

  10. Add an additional entry to the interfaces file for each of the instances in your cluster input file (described in Step 9). See “Configuring the interfaces file” for more information.

  11. Determine the raw device used for the quorum device. For the version of the Cluster Edition, use a raw device on shared disks. Do not use a file- system device.

  12. Create the quorum device and start the new instance with the old master device:

    $SYBASE/$SYBASE_ASE/bin/dataserver\
    --instance=ase1\
    --cluster_input=mycluster.inp\
    --quorum_dev=/dev/raw/raw101
    --buildquorum
    

    NoteThe instance_name you indicate with the --instance parameter must be the name of one of the instances in the new cluster, and the interfaces file must contain an entry for this instance. Any additional options such as -M must be present in the RUN_FILE as dataserver won’t read them from the quorum. For complete dataserver documentation see the Users Guide.

  13. Run the upgrade utility:

    $SYBASE/$SYBASE_ASE/upgrade/upgrade -S instance_name -Ppassword
    

    The instance you include with the --instance parameter is the name of the instance in your cluster that was started in step 13.

  14. Log in to the instance. Create the local system temporary database devices and local system temporary databases for each of the instances in your cluster. The syntax is:

    create system temporary database database_name for instance instance_name on device_name = size
    

    See “Setting up local system temporary databases” for more detailed information.

  15. Shut down the instance. Log in to the instance with isql and issue:

    shutdown instance_name
    
  16. Restart the cluster. $SYBASE/$SYBASE_ASE/bin/dataserver \ --instance=ase1\ --quorum_dev=/dev/raw/raw101\

  17. Log in to the Cluster Edition and execute sp_checkreswords on all of databases. For example, log in to the instance and execute:

    use sybsystemprocs
    go
    sp_checkreswords
    go
    
  18. Correct any errors from the reserved word check.

  19. Copy and modify the old run_server file to new directory. You must edit it to point to binaries in the correct $SYBASE directories:

    See “Creating the runserver files” for more information.

  20. Start the instance:

    cd $SYBASE/$SYBASE_ASE/install
    startserver -fRUN_server_name
    
  21. Install the system procedures:

    isql -Usa -Ppassword -Sserver_name
    -i$SYBASE/$SYBASE_ASE/scripts/installmaster
    
  22. If Adaptive Server includes auditing, run installsecurity:

    isql -Usa -P password -S server_name 
    -i$SYBASE/$SYBASE_ASE/scripts/installsecurity
    
  23. Run installcommit:

    isql -Usa -Ppassword -Sserver_name
    -i$SYBASE/$SYBASE_ASE/scripts/installcommit