- 4 Minutes to read
- Print
- PDF
Installing CTERA Portal Instances
- 4 Minutes to read
- Print
- PDF
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
For the primary database server and secondary, replication, server, the portal instance is created with a fixed size data pool. If you require a larger data pool, which should be approximately 1% of the expected global file system size, you can extend the data pool as described in Hyper-V Specific Management.
To create a CTERA Portal Server in Hyper-V:
- Open the Hyper-V Manager.
- Right-click the hypervisor and click Import Virtual Machine....
The Import Virtual Machine wizard opens, displaying the Locate Folder window.
- Click Browse and browse to the CTERA Portal image folder.
- Click Next.
The Select Virtual Machine window is displayed.
- Click Next.
The Choose Import Type window is displayed.
- Select the Copy the virtual machine (create a new unique ID) option and click Next.
The Choose Folders for Virtual Machine Files window is displayed.
- Specify where to store the CTERA Portal virtual machine.
- Click Next.
The Choose Folders to Store Virtual Hard Disks window is displayed.
- Specify where to store the CTERA Portal data pool disk and click Next.
The Completing Import Wizard window is displayed.
- Click Finish.
- For the primary CTERA Portal database server and the secondary, replication, server, right-click the virtual machine and click Settings.
- Select Hard Drive under SCSI Controller in the Hardware list for a new hard drive.
- Click New.
The New Virtual Hard Disk Wizard is displayed.
- Click Next and make sure the
VHDX
disk format is selected. - Click Next and make sure the
Dynamically expanding
disk type is selected. - Click Next and specify the size for the new disk.
- Enter a size for the new hard disk.Note
The minimum archive pool should be 200GB but it should be sized around 2% of the expected global file system size.
- Click Apply and the OK.
- Select Hard Drive under SCSI Controller in the Hardware list for a new hard drive.
- 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. - For the primary database server and the secondary, replication, servers, continue with Creating the Storage.
- Start CTERA Portal services, by running the following command:
portal-manage.sh start
NoteDo 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.log
Creating the Storage
You need a data pool on every server. The data pool disk is created automatically when you first start the virtual machine and dockers loaded on to it.
You need to create an archive pool on the primary database server, and when PostgreSQL streaming replication is required, also on the secondary, replication, server. See Using PostgreSQL Streaming Replication for details about PostgreSQL streaming replication.
To log in to the CTERA Portal server:
- Right-click the virtual machine and click Connect to open the machine console.
The default password isctera321
You are prompted to change the password on your first login.
To create the archive pool:
- Connect to the virtual machine.
- Run
fdisk -l
to identify the disk 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.
For example:portal-storage-util.sh create_db_archive_pool sdc
This command creates both a logical volume and an LVM volume group using the specified device. Therefore, multiple devices can be specified if desired. For example: `portal-storage-util.sh create_db_archive_pool sdc sdd sde'
Troubleshooting the Installation
You can check on the progress of the docker loads in /var/log/ctera_firstboot.log
to ensure that all the dockers are loaded: The last docker to load is called zookeeper.
If all the dockers do not load you need to run the script /usr/bin/ ctera-firstboot.sh