Use the following workflow to install CTERA Portal.
- Creating a Portal Instance. The image is obtainable from CTERA support.
- Configuring Network Settings.
- Optionally, configure a default gateway.
- Additional Installation Instructions for Customers Without Internet Access.
- For the first server you install, follow the steps in Configuring the Primary Server.
- 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.
- Make sure that you replicate the database, as described in Configuring the CTERA Portal Database for Backup.
- Backup the server as described in Backing Up the CTERA Portal Servers and Storage.
You can use block-storage-level snapshots for backup, but snapshots are periodical in nature, configured to run every few hours. Therefore, you cannot recover the metadata to any point-in-time, and can lose a significant amount of data on failure. Also, many storage systems do not support block-level snapshots and replication, or do not do so efficiently.
Creating a Portal Instance
To create a CTERA Portal Server in Hyper-V:
- Open the Hyper-V Manager.
- Right-click the hypervisor and click New > Virtual Machine.

The New Virtual Machine Wizard opens, displaying the Before You Begin window.

- Click Next.
The Specify Name and Location window is displayed.

- Enter a name for the portal and click Next.
The Specify Generation window is displayed.

- Select the Generation 1 option and click Next.
The Assign Memory window is displayed.

- Specify the RAM for the machine. For details, see Requirements.
- Make sure Use Dynamic Memory for this virtual machine is unchecked.
- Click Next.
The Configure Networking window is displayed.

- Select the network from the Connection drop-down list and click Next.
The Connect Virtual Hard Disk window is displayed.

- Select the Use an existing virtual hard disk option and browse to the vhd file from CTERA.

- Click Next.
The Completing the New Virtual Machine Wizard window is displayed. - Click Finish.
- Right-click the new virtual machine and click Settings.
- Select Processor in the Hardware list and change the Number of virtual processors value, based on the server requirements. For details, see Requirements.
- Click Apply.
- Select SCSI Controller in the Hardware list and select Hard Drive and click Add.

- Click New.
The New Virtual Hard Disk Wizard is displayed.

- Click Next and make sure the
VHDXdisk format is selected. - Click Next and select the virtual disk type.
CTERA recommends selectingFixed sizefor the primary database server and secondary, replication, server andDynamically expandingdisk type for the other servers.

- Click Next and specify a name and location for the disk.
- Click Next and configure the disk.

- Specify the disk size, based on the server requirements. For details, see Requirements.
- Click Next and then Finish.
- Click Apply and then OK.
- Right-click the virtual machine and click Start.
The virtual machine starts up and on the first start up a script is run to create a data pool from the data disk and then to load portal dockers on to this data pool. Loading the dockers can take a few minutes. - Right-click the virtual machine and click Connect to open the machine console.
- Log in as
root.
The default password isctera321
You are prompted to change the password on your first login.NoteIf the script to create the data pool does not successfully run, it will start on every boot until it completes. The script has a timeout which means it will exit if the data pool is not created within the timeout after boot time. If the data pool is not created, dockers required by the portal are not loaded to the data pool.
To make sure that the script completed successfully, before continuing, run
docker imagesto check that the docker images are available, including zookeeper, which is the last docker to load to the data pool.If all the dockers do not load you need to run the script
/usr/bin/ctera_firstboot.shAlso, refer to Troubleshooting the Installation if the script does not complete successfully.
- For the primary database server and secondary, replication database, server, continue with Create the Archive Storage.
- If an IP is not assigned, configure network settings before starting the CTERA Portal services in the next step.
- Start CTERA Portal services, by running the following command:
portal-manage.sh startNoteDo not start the portal until both the sdconv and envoy dockers have been loaded to the data pool. You can check that these dockers have loaded in
/var/log/ctera_firstboot.logor by runningdocker images
Create the Archive Storage
You need to create the archive pool on the primary database server and when PostgreSQL streaming replication is required, also on the secondary, replication database, server. See Using PostgreSQL Streaming Replication for details about PostgreSQL streaming replication.
To create the archive pool:
- For the CTERA Portal primary database server and the secondary, replication database, server, right-click the virtual machine and click Settings and add a disk to use as the archive pool.
Note
The minimum archive pool should be 200GB but it should be sized around 2% of the expected global file system size. For more details, see Requirements.
- Select SCSI Controller in the Hardware list and select Hard Drive and click Add.
- Click New.
The New Virtual Hard Disk Wizard is displayed.

- Click Next and make sure the
VHDXdisk format is selected. - Click Next and select the virtual disk type.

CTERA recommends selectingFixed size - Click Next and specify a name and location for the disk.
- Click Next and configure the disk.

- Specify the disk size, based on the server requirements. For details, see Requirements.
- Click Next and then Finish.
- Click Apply and then OK.
- Right-click the virtual machine and click Connect to open the machine console.
- Log in as
root. - Run
lsblkorfdisk -lto identify the disks to use for the archive pool. - 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.
Troubleshooting the Installation
You can check on the progress of the docker loads in one of the following ways to ensure that all the dockers are loaded: The last docker to load is called zookeeper:
- In
/var/log/ctera_firstboot.log - By running
docker imagesto check that the docker images are available. - By checking if
/var/lib/ctera_firstboot_completedis present with the date and time when the installation was performed.
If all the dockers do not load you need to run the script /usr/bin/ctera_firstboot.sh