Installing CTERA Portal Instances
  • 4 Minutes to read
  • Dark
    Light
  • PDF

Installing CTERA Portal Instances

  • Dark
    Light
  • PDF

Article Summary

Use the following workflow to install CTERA Portal in a GCP environment.

  1. Creating a Portal Instance.
  2. Logging in to the Server to Create the Storage
  3. Optionally, configure a default gateway.
  4. For the first server you install, follow the steps in Configuring the Primary Server.
  5. For any additional servers beside the primary server, install the server as described below and configure it as an additional server, as described in Installing and Configuring Additional CTERA Portal Servers.
  6. Make sure that you replicate the database, as described in Configuring the CTERA Portal Database for Backup.
  7. Backup the server as described in Backing Up the CTERA Portal Servers and Storage.

Creating a Portal Instance

To access the CTERA Portal disk image you must supply CTERA support with the email address you use to access GCP.

Note

You do not need to provide CTERA support with any passwords.

To create the CTERA Portal server instance in Google Cloud:

  1. Create an SSH key to access the instance from another instance. This is required when defining additional severs.
  2. Log in to your Google Cloud Platform as a user with rights to deploy images and create virtual machines and storage.
    image.png
  3. Select a project from the Select a project drop-down.
  4. Click Compute Engine > Snapshots in the navigation menu.
    The Snapshots page is displayed.
    image.png
  5. Click CREATE SNAPSHOT SCHEDULE.
    Note

    If the CREATE SNAPSHOT SCHEDULE is not displayed, click the three vertical dots to display it.

    The Create a Snapshot schedule page is displayed.
    image.png
  6. Name the schedule and provide the following:
    Region – The region for this schedule. This should be the same region as the VM instance.
    Schedule frequency – The frequency for taking the snapshots.
    Start time – The start time to take each snapshot.
    Autodelete snapshots after – How long to keep each snapshots.
  7. Select the Deletion rule.
  8. Leave all the other settings with their defaults and click CREATE.
  9. Click Compute Engine > VM instances in the navigation menu.
    Note

    If the Compute Engine API is not enabled for the project, click ENABLE.

    The VM Instances page is displayed.
    image.png
  10. Click CREATE INSTANCE.
    The Create an instance page is displayed.
    image.png
  11. Specify the portal virtual machine configuration.
    Name – A unique name to identify the portal virtual machine.
    Region – The location you want to host the virtual machine.
    Zone – The zone within the location to host the virtual machine.
  12. Under Machine Configuration, select the Machine family and Series. CTERA recommends using the GENERAL-PURPOSE family and the E2 series.
    Under Machine type, select the Custom option from the drop-down and specify the cores and memory.
    Note

    The number of cores and memory depends on the type of server you want. For details, see Requirements.

    Cores – The number of CPUs.
    Memory – The machine RAM.
    image.png
  13. Click CHANGE under Boot disk to select the CTERA Portal image.
    The Boot disk window is displayed.
    image.png
  14. Click CUSTOM IMAGES.
  15. Select the project supplied by CTERA Support, to be able to select the portal image.
  16. Select the image from the Image drop-down.
  17. Change the Boot disk type to SSD persistent disk.
  18. Click SELECT.
  19. Under Firewall, check Allow HTTP traffic and Allow HTTPS traffic.
  20. Under Advanced options click the Networking, disks, security, management, sole-tenancy link and click Disks.
    image.png
  21. Click ADD NEW DISK.
  22. Specify the following disk configuration.
    Name – A unique name to identify the disk.
    Description – An optional description of the disk.
    Disk type – The type of disk. CTERA recommends SSD persistent disk.
    Size – The disk size. See Requirements for disk sizing. Prior to going to production, contact CTERA Support to evaluate whether the attached drive's performance meets CTERA's performance requirements.
    Snapshot schedule (Recommended) – Select the snapshot schedule.
  23. Leave all the other settings with their defaults and click SAVE.
  24. For the primary database server and secondary, replication, server click ADD NEW DISK.
    1. Specify the following disk configuration.
      Name – A unique name to identify the archive pool disk.
      Description – An optional description of the archive pool disk.
      Disk type – The type of disk. CTERA recommends Standard persistent disk.
      Size – The disk size. See Requirements for disk sizing.
      Snapshot schedule (Recommended) – Select the snapshot schedule.
    2. Leave all the other settings with their defaults and click SAVE.
  25. Click Security.
  26. Click MANAGE ACCESS.
  27. Click ADD ITEM.
  28. Paste the generated public key in Public key.
    Note

    The content of the public key file typically starts with ssh-rsa and ends with your user ID.

  29. Leave all the other settings with their defaults and click CREATE.
    The VM is created and powered on.
    image.png
    Note the Zone and External IP address. The external IP is the address you use to access the portal.
  30. Continue with Logging in to the Server to Create the Storage.

Logging in to the Server to Create the Storage

You need to create a data pool and on the primary database server, and when PostgreSQL streaming replication is required, also on the secondary, replication, server, an archive pool. See Using PostgreSQL Streaming Replication for details about PostgreSQL streaming replication.

To create the data and archive pools:

  1. Click SSH to log in to the virtual machine using the account SSH user and key and switch to root by running sudo -i.
  2. Run fdisk -l to identify the disk to use for the data pool and archive pool.
  3. Run the following command to create the data pool: portal-storage-util.sh create_xfs_storage Device
    where Device is the Device name of the disk to use for the data pool.
    For example: portal-storage-util.sh create_xfs_storage sdb
  4. Run the following command to create the archive pool: portal-storage-util.sh create_db_archive_pool Device
    Where Device is the Device name of the disk to use for the archive pool.
    For example: portal-storage-util.sh create_db_archive_pool sdc
  5. Edit /etc/ctera/portal.cfg and add the Google Cloud Platform zone specified in step 11 as the value for the CTERA_GC_REGION parameter.
    # CTERA portal Google specific parameters
    ### Google Parameters ###
    # CTERA_GC_REGION - Google Availability Zone
    CTERA_GC_REGION=<enter_zone_from_step_11>
    
  6. Start CTERA Portal services, by running the following command: portal-manage.sh start

Was this article helpful?