Console Installation Guide
Installing Red Hat Gluster Storage Console
Abstract
Part I. Before you Begin Copy linkLink copied to clipboard!
Chapter 1. Overview Copy linkLink copied to clipboard!
- Support to quickly create and manage storage clusters and volumes.
- Multilevel administration to enable administration of physical infrastructure as well as administration of virtual objects.
1.1. System Components Copy linkLink copied to clipboard!
- Red Hat Gluster Storage Console
- The Red Hat Gluster Storage Console is a centralized management system and is used to view and manage storage servers. Red Hat Gluster Storage Console features include search capabilities, resource management, and provisioning. The Red Hat Gluster Storage Console runs on Red Hat Enterprise Linux 6.x systems.The console provides a graphical user interface (GUI) to administer the storage environment's physical and logical resources. The console manages provisioning, user sessions, and high availability / clustering.The Red Hat Gluster Storage Console exposes an Administration Portal and an Application Programming Interface (API).
- The Administration Portal is used for set up, configuration, and management tasks for the Red Hat Gluster Storage environment.
- The REST API is an interface used to automate manual user tasks. Scripts for the REST API can be written in any language that supports accessing HTTP and HTTPS resources.
1.2. Installation Workflow Copy linkLink copied to clipboard!
Check System Requirements
- Install and configure the hardware requirements listed in Section 2.1, “Hardware Requirements”.
- Install and configure the software requirements listed in Section 2.3, “Software Requirements”.
Red Hat Gluster Storage Console Installation
- Install the Red Hat Gluster Storage Console. For details, see Part II, “Installing Red Hat Gluster Storage Console”.
Chapter 2. System Requirements Copy linkLink copied to clipboard!
Important
2.1. Hardware Requirements Copy linkLink copied to clipboard!
- One machine to act as the management server
- One or more machines to act as storage servers. At least two machines are required to support replicated volumes.
- One or more machines to be used as clients to access the Administration Portal.
2.1.1. Management Server Requirements Copy linkLink copied to clipboard!
Minimum Requirements
- A dual core CPU.
- 4 GB of available system RAM that is not being consumed by existing processes.
- One Network Interface Card (NIC) with bandwidth of at least 1 Gbps.
Recommended Requirements
- A quad core CPU or multiple dual core CPUs.
- 16 GB of available system RAM that is not being consumed by existing processes.
- One Network Interface Card (NIC) with bandwidth of at least 1 Gbps.
- An out of band management card to manage and monitor the Red Hat Gluster Storage Console node even when the server is down.
2.2. Storage Server Requirements Copy linkLink copied to clipboard!
Note
2.3. Software Requirements Copy linkLink copied to clipboard!
Important
rhsc-setup) supports the en_US.UTF-8, en_US.utf8, and en_US.utf-8 locales. Installing on a system without one of the supported locale values fails.
2.3.1. Red Hat Gluster Storage Console Operating System Requirements Copy linkLink copied to clipboard!
Important
2.3.2. Red Hat Gluster Storage Console Client Requirements Copy linkLink copied to clipboard!
- Mozilla Firefox 24 or later, on Red Hat Enterprise Linux is required to access the Administration Portal.
- Internet Explorer 9 or 10 on Microsoft Windows is required to access the Administration Portal. Use the desktop version, not the touchscreen version for Internet Explorer version 10.
2.3.3. Directory Services Copy linkLink copied to clipboard!
admin user configured. Use the domain management tool (rhsc-manage-domains) to authenticate additional users by attaching directory service domains.
Note
2.3.4. Firewall Configuration Copy linkLink copied to clipboard!
rhsc-setup script to automatically set up the firewall rules required by Red Hat Gluster Storage Console. If a firewall is already configured, manually integrate the existing configuration with the Red Hat Gluster Storage requirements in this section.
Note
iptables command to open a port:
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 5667 -j ACCEPT
# iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 5667 -j ACCEPT
# service iptables save
firewall-cmd --zone=zone_name --add-service=glusterfs firewall-cmd --zone=zone_name --add-service=glusterfs --permanent
# firewall-cmd --zone=zone_name --add-service=glusterfs
# firewall-cmd --zone=zone_name --add-service=glusterfs --permanent
firewall-cmd --zone=public --add-port=5667/tcp firewall-cmd --zone=public --add-port=5667/tcp --permanent
# firewall-cmd --zone=public --add-port=5667/tcp
# firewall-cmd --zone=public --add-port=5667/tcp --permanent
| Port(s) | Protocol | Source | Destination | Purpose |
|---|---|---|---|---|
| 22 | TCP |
|
| SSH (optional) |
| 80, 443 | TCP |
|
| Provides HTTP and HTTPS access to the console. |
2.3.5. Directory Server Firewall Requirements Copy linkLink copied to clipboard!
| Port(s) | Protocol | Source | Destination | Purpose |
|---|---|---|---|---|
| 88, 464 | TCP, UDP | Red Hat Gluster Storage Console | Directory Server | Kerberos authentication |
| 389, 636 | TCP | Red Hat Gluster Storage Console | Directory Server | Lightweight Directory Access Protocol (LDAP) and LDAP over SSL |
2.3.6. Database Server Firewall Requirements Copy linkLink copied to clipboard!
| Port | Protocol | Source | Destination | Purpose |
|---|---|---|---|---|
| 5432 | TCP, UDP | Red Hat Gluster Storage Console | PostgreSQL database server | Default port for PostgreSQL database connections. |
2.3.7. Red Hat Gluster Storage Server Firewall Requirements Copy linkLink copied to clipboard!
| Port | Protocol | Source | Destination | Purpose |
|---|---|---|---|---|
| 22 | TCP | Red Hat Gluster Storage Console | Red Hat Gluster Storage Servers | Secure Shell (SSH) access. |
| 54321 | TCP | Red Hat Gluster Storage Console | Red Hat Gluster Storage Servers | VDSM communications with the Red Hat Gluster Storage Console. |
2.3.8. Red Hat Gluster Storage Console User Accounts and Groups Copy linkLink copied to clipboard!
- The kvm group (GID 36) includes the vdsm user (UID 36)
- The ovirt group (GID 108) includes the ovirt user (UID108)
Part II. Installing Red Hat Gluster Storage Console Copy linkLink copied to clipboard!
- Online installation
- Install Red Hat Gluster Storage Console on a system that can access the internet to download installation packages.
- Offline installation
- Install Red Hat Gluster Storage Console on a system that cannot access the internet.
rhsc-setup script. See Chapter 6, Automating configuration for details.
Chapter 3. Prerequisites Copy linkLink copied to clipboard!
- The firewall rules, if any, present on the system. The default option is to allow the Console's setup script to configure the firewall automatically; this overwrites any existing settings. To integrate the existing settings with the firewall rules required by the Console, you must configure the firewall manually. If you choose to manually configure the firewall, the setup script provides a custom list of ports that need to be opened, based on the options selected during setup.
- The fully qualified domain name (FQDN) of the system on which the Console is to be installed. The default value is the system's current host name. The FQDN must be reachable from all the Red Hat Gluster Storage Nodes.
- The password you use to secure the Red Hat Gluster Storage Console administration account.
- The location of the database server to be used as the Console database. You can use the setup script to install and configure a local database server; this is the default setting. Alternatively, use an existing remote database server. This database must be created before the Console is configured. To use a remote database server you must know:
- The host name of the system on which the remote database server exists.
- The port on which the remote database server is listening. The default port is 5432.
- That the
uuid-osspextension had been loaded by the remote database server.
You must also know the name of the database, and the user name and password of a user that has permissions on the remote database server. The default name for both the database and the user isredhat. - The organization name to use when creating the Console's security certificates. The default value is an automatically-detected domain-based name.
Chapter 4. Installing the console from packages Copy linkLink copied to clipboard!
- Register your system so that it can download the packages required for installation.
- Install the Red Hat Gluster Storage Console packages.
- Run the setup script.
- Connect your storage servers to the console.
4.1. Registering to Red Hat Network Copy linkLink copied to clipboard!
Procedure 4.1. Registering with Subscription Manager using Command Line
Register the System with Subscription Manager
Run the following command and enter your Red Hat Network user name and password to register the system with the Red Hat Network:subscription-manager register
# subscription-manager registerCopy to Clipboard Copied! Toggle word wrap Toggle overflow Identify Available Entitlement Pools
Run the following commands to find entitlement pools containing the repositories required to install the Red Hat Gluster Storage Console:subscription-manager list --available | grep -A8 "Red Hat Enterprise Linux Server" subscription-manager list --available | grep -A8 "Red Hat Gluster Storage"
# subscription-manager list --available | grep -A8 "Red Hat Enterprise Linux Server" # subscription-manager list --available | grep -A8 "Red Hat Gluster Storage"Copy to Clipboard Copied! Toggle word wrap Toggle overflow Attach Entitlement Pools to the System
Use the pool identifiers located in the previous step to attach theRed Hat Enterprise Linux ServerandRed Hat Gluster Storage Consoleentitlements to the system. Run the following command to attach the entitlements:subscription-manager attach --pool=[POOLID]
# subscription-manager attach --pool=[POOLID]Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enable the Required Repositories
Run the following commands to enable the repositories required to install Red Hat Gluster Storage Console:subscription-manager repos --enable=rhel-6-server-rpms subscription-manager repos --enable=jb-eap-6-for-rhel-6-server-rpms subscription-manager repos --enable=rhsc-3-for-rhel-6-server-rpms subscription-manager repos --enable=rhs-nagios-3-for-rhel-6-server-rpms
# subscription-manager repos --enable=rhel-6-server-rpms # subscription-manager repos --enable=jb-eap-6-for-rhel-6-server-rpms # subscription-manager repos --enable=rhsc-3-for-rhel-6-server-rpms # subscription-manager repos --enable=rhs-nagios-3-for-rhel-6-server-rpmsCopy to Clipboard Copied! Toggle word wrap Toggle overflow Verify if the Repositories are enabled
Run the following command to verify if the repositories are enabled:yum repolist
# yum repolistCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure 4.2. Registering with Subscription Manager using GUI
Important
Verify if the Repositories are enabled
Run the following command to verify if the repositories are enabled:yum repolist
# yum repolistCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure 4.3. Registering with Red Hat Satellite Server
- Configure the client system to access Red Hat Satellite. Refer section Registering Clients with Red Hat Satellite Server in Red Hat Satellite 5.6 Client Configuration Guide.
- Run
rhn_registercommand to register the system with the Red Hat Satellite. - In the select operating system release page, select All available updates and follow the prompts to register the system to the standard base channel for Red Hat Enterprise Linux 6
rhel-x86_64-server-6. - Run the following command to subscribe the system to the required Red Hat Gluster Storage Console server channels.
rhn-channel --add --channel rhel-x86_64-server-6-rhs-rhsc-3 --channel jbappplatform-6-x86_64-server-6-rpm --channel rhel-x86_64-server-6-rhs-nagios-3
# rhn-channel --add --channel rhel-x86_64-server-6-rhs-rhsc-3 --channel jbappplatform-6-x86_64-server-6-rpm --channel rhel-x86_64-server-6-rhs-nagios-3Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Run the following command to verify that the system is registered successfully.
rhn-channel --list
# rhn-channel --list rhel-x86_64-server-6 rhel-x86_64-server-6-rhs-rhsc-3 jbappplatform-6-x86_64-server-6-rpm rhel-x86_64-server-6-rhs-nagios-3Copy to Clipboard Copied! Toggle word wrap Toggle overflow
4.2. Installing Red Hat Gluster Storage Console Copy linkLink copied to clipboard!
Important
- Installing Red Hat Gluster Storage Console 3.x on Red Hat Gluster Storage 3.x is not supported.
- Installing Red Hat Gluster Storage Console on Red Hat Enterprise Linux 7.x is not supported.
Procedure 4.4. Installing Red Hat Gluster Storage Console
- Use the
yumcommand to ensure that the most recent version of installed packages are in use.yum update
# yum updateCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Use
yumto initiate the installation of therhscpackage and all the dependencies. You must run this command as therootuser.yum install rhsc
# yum install rhscCopy to Clipboard Copied! Toggle word wrap Toggle overflow
4.3. Configuring Red Hat Gluster Storage Console Copy linkLink copied to clipboard!
rhsc-setup script is provided to assist with this task. The script asks you a series of questions, and configures the environment based on the answers. When required values are provided, the updated configuration is applied and the Red Hat Gluster Storage Console services are started. The rhsc-setup script guides you through several distinct configuration stages. The script suggests possible configuration defaults in square brackets. No additional input is required wherever the default values are acceptable.
Procedure 4.5. Configuring the Console
Start console setup
#rhsc-setup
#rhsc-setupCopy to Clipboard Copied! Toggle word wrap Toggle overflow The script then checks whether it is performing an upgrade or an installation before proceeding.Checking for product updates... No product updates found
Checking for product updates... No product updates foundCopy to Clipboard Copied! Toggle word wrap Toggle overflow Check hostname configuration
Therhsc-setupscript automatically detects the hostname. Correct the detected hostname if required. The fully qualified domain name should have both forward and reverse lookup records in DNS.Host fully qualified DNS name of this server [autodetected domain-based name]:
Host fully qualified DNS name of this server [autodetected domain-based name]:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Configure firewall
Therhsc-setupscript looks for firewall managers which are both active and enabled in the environment and you can choose to configure the firewall.Setup can automatically configure the firewall on this system. Note: automatic configuration of the firewall may overwrite current settings. Do you want Setup to configure the firewall? (Yes, No) [Yes]: yes [INFO] iptables will be configured as firewall manager.
Setup can automatically configure the firewall on this system. Note: automatic configuration of the firewall may overwrite current settings. Do you want Setup to configure the firewall? (Yes, No) [Yes]: yes [INFO] iptables will be configured as firewall manager.Copy to Clipboard Copied! Toggle word wrap Toggle overflow Configure database
You can use either a local or remote PostgreSQL database. The script can automatically configure the database, including adding a user and a database, or use the values that you provide.Where is the database located? (Local, Remote) [Local]: Local Setup can configure the local postgresql server automatically for the engine to run. This may conflict with existing applications. Would you like Setup to automatically configure postgresql, or prefer to perform that manually? (Automatic, Manual) [Automatic]: Automatic
Where is the database located? (Local, Remote) [Local]: Local Setup can configure the local postgresql server automatically for the engine to run. This may conflict with existing applications. Would you like Setup to automatically configure postgresql, or prefer to perform that manually? (Automatic, Manual) [Automatic]: AutomaticCopy to Clipboard Copied! Toggle word wrap Toggle overflow For information on how to prepare a PostgreSQL database, see Chapter 8, Use a PostgreSQL Database Server with Red Hat Gluster Storage ConsoleConfigure administrator credentials
You need to set an administrator password for the automatically created administrative user of the Red Hat Gluster Storage Console: admin@internal.Engine admin password: Confirm engine admin password:
Engine admin password: Confirm engine admin password:Copy to Clipboard Copied! Toggle word wrap Toggle overflow A message appears on the terminal if the password you have set is weak.Configure certificates
The Console uses certificates to communicate securely with its hosts. You need to provide the organization name for the certificate. This certificate can also optionally be used to secure HTTPS communications with the Console.Organization name for certificate [autodetected domain-based name]:
Organization name for certificate [autodetected domain-based name]:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Configure web server
The external SSL (HTTPS) communications with the Console are secured with the self-signed certificate created in the PKI configuration stage by default, to securely communicate with hosts. You may choose to use another certificate for external HTTPS connections, without affecting how the Console communicates with hosts.Setup can configure apache to use SSL using a certificate issued from the internal CA. Do you wish Setup to configure that, or prefer to perform that manually? (Automatic, Manual) [Automatic]: Automatic
Setup can configure apache to use SSL using a certificate issued from the internal CA. Do you wish Setup to configure that, or prefer to perform that manually? (Automatic, Manual) [Automatic]: AutomaticCopy to Clipboard Copied! Toggle word wrap Toggle overflow The Red Hat Gluster Storage Console uses the Apache web server to present a landing page to users.rhsc-setupscript can make the Console's landing page the default page presented by Apache.Setup can configure the default page of the web server to present the application home page. This may conflict with existing applications. Do you wish to set the application as the default page of the web server? (Yes, No) [Yes]:
Setup can configure the default page of the web server to present the application home page. This may conflict with existing applications. Do you wish to set the application as the default page of the web server? (Yes, No) [Yes]:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Configure console settings
Therhsc-setupscript by default uses the GlusterFS application mode and skips the NFS configuration.[ INFO ] NFS configuration skipped with application mode Gluster
[ INFO ] NFS configuration skipped with application mode GlusterCopy to Clipboard Copied! Toggle word wrap Toggle overflow Therhsc-setupscript validates all the inputs, and warns you of any possible problem. Further input is only required if any of the inputs you provided would adversely impact the environment.Therhsc-setupscript prompts to confirm whether to connect to the Red Hat Access Plug-in.On agreeing to configure the proxy server, you are prompted to enter the IP address and the port number of the proxy server. You also have the option to set a user name for the proxy server with a password.Would you like transactions from the Red Hat Access Plug-in sent from the Red Hat Gluster Storage Console to be brokered through a proxy server? (Yes, No) [No]: No
Would you like transactions from the Red Hat Access Plug-in sent from the Red Hat Gluster Storage Console to be brokered through a proxy server? (Yes, No) [No]: NoCopy to Clipboard Copied! Toggle word wrap Toggle overflow Therhsc-setupscript prompts to confirm whether to enable or disable monitoring by enteringYesorNoFor information on how to configure Nagios, see Configuring Nagios for Red Hat Gluster Storage Console in Red Hat Gluster Storage Console 3.3 Administration GuideWould you like external monitoring to be enabled? (Yes, No) [Yes]:
Would you like external monitoring to be enabled? (Yes, No) [Yes]:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Copy to Clipboard Copied! Toggle word wrap Toggle overflow - To confirm the displayed configuration values, type
OKand press Enter. - To correct one or more configuration values, type
cancel, this causes the set-up to fail. Run the setup again to provide the correct values.
Confirm summary
When all the required values are provided, the script lists the values for a final confirmation.When the script completes, note the additional information provided. Copy theSSH Certificate fingerprint,SSH Public key fingerprint, andRed Hat Gluster Storage Console URLfor later reference.Copy to Clipboard Copied! Toggle word wrap Toggle overflow At this stage, the engine service and httpd daemon are started.Copy to Clipboard Copied! Toggle word wrap Toggle overflow
The Red Hat Gluster Storage Console is installed and configured. You can connect to the Administration Portal using the instructions in Chapter 7, Connecting to the Administration Portal.
Note
4.3.1. Enabling SELinux Copy linkLink copied to clipboard!
Note
- If Nagios server is installed on the Console node, set the following boolean:
setsebool -P nagios_run_sudo on
# setsebool -P nagios_run_sudo onCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Set the following booleans on Red Hat Gluster Storage node for Nagois to function:
setsebool -P nagios_run_sudo on setsebool -P logging_syslogd_run_nagios_plugins on
# setsebool -P nagios_run_sudo on # setsebool -P logging_syslogd_run_nagios_plugins onCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Chapter 5. Installing the console from the virtual appliance Copy linkLink copied to clipboard!
5.1. Installing the virtual appliance on a virtual machine Copy linkLink copied to clipboard!
- Obtain the Red Hat Gluster Storage Console Appliance and upload it to Red Hat Virtualization Management.
- Create a virtual machine to act as a server for Red Hat Gluster Storage Console, using the Red Hat Gluster Storage Console Appliance OVA file as a template.
- Boot the new virtual machine and run the setup script.
Important
5.1.1. Before you begin Copy linkLink copied to clipboard!
5.1.2. Install Red Hat Gluster Storage Console on a RHV-M virtual machine Copy linkLink copied to clipboard!
Procedure 5.1. Uploading the appliance into Red Hat Virtualization Manager
Download the appliance
- Log on to the Red Hat Customer Portal (http://access.redhat.com/).
- Click on to go to Software and Download Center.
- Click to go to Download Red Hat Gluster Storage.
- Set the Product Variant to
Red Hat Gluster Storage Management Console (for RHEL Server). - Set the Version to the appropriate version. The appliance is available in version 3.1 or later.
- Click on Download Now beside the appropriate version of Red Hat Gluster Gluster Storage Console Appliance to download the appliance OVA file.
Upload the appliance to RHV-M
Upload the appliance OVA file from/path/to/appliance.ovato a Red Hat Virtualization Manager storage domain.ovirt-image-uploader -n appliance_name -e rhvm_storage_domain upload /path/to/appliance.ova
# ovirt-image-uploader -n appliance_name -e rhvm_storage_domain upload /path/to/appliance.ovaCopy to Clipboard Copied! Toggle word wrap Toggle overflow Enter the REST API password for the Red Hat Virtualization Manager administrative user (admin@internal) when prompted.
Procedure 5.2. Creating a virtual machine with the appliance template
Start creating a new virtual machine
Log in to the Red Hat Virtualization Manager interface and navigate to the Virtual Machines tab in the navigation pane.Click New VM to start the creation process.Use the appliance as a template
Follow the prompts, ensuring that you select appliance_name in the Based on Template drop-down menu.
Procedure 5.3. Configuring the console appliance virtual machine
Ensure spice-xpi is installed
Ensure that spice-xpi is installed on your local system so that you can view the console of your new virtual machine.Start the new virtual machine
When your new virtual machine is finished installing, start the virtual machine.Configure the new virtual machine
Open the console of your new virtual machine. Run therhsc-setupcommand and follow the prompts to complete setup of Red Hat Gluster Storage.By default,rhsc-setupruns in the online mode. This requires registration to Red Hat Network channels or repositories. Follow the steps in Section 4.1, “Registering to Red Hat Network” to register with Red Hat Network and subscribe to the appropriate channels and repositories.If your system has limited connectivity, or you don't want to configure repositories now, you can run this command in the offline mode:rhsc-setup --offline
# rhsc-setup --offlineCopy to Clipboard Copied! Toggle word wrap Toggle overflow If you are configuring a number of machines the same way, you can also use the--config-appendparameter to use a pre-configured answers file.When setup is complete, you can follow the normal process of setting up bricks, volumes, and trusted storage pools. If you set up in offline mode, you can also optionally register Red Hat Gluster Storage Console for updates by following the instructions in Section 4.1, “Registering to Red Hat Network”.
Chapter 6. Automating configuration Copy linkLink copied to clipboard!
rhsc-setup script with an answer file. An answer file contains answers to the questions asked by the rhsc-setup command.
- To create an answer file, use the
--generate-answerparameter to specify a path and file name with which to create the answer file. When this option is specified, the answers for the questions in the setup process are recorded in the answer file.rhsc-setup --generate-answer=[ANSWER_FILE]
# rhsc-setup --generate-answer=[ANSWER_FILE]Copy to Clipboard Copied! Toggle word wrap Toggle overflow - To use an answer file for a new installation, use the
--config-appendparameter to specify the path and file name of the answer file to be used. Therhsc-setupcommand will use the answers stored in the file to complete the installation.rhsc-setup --config-append=[ANSWER_FILE]
# rhsc-setup --config-append=[ANSWER_FILE]Copy to Clipboard Copied! Toggle word wrap Toggle overflow --config - replaces default system configuration.--config-append - appends configuration to existing system configuration.
rhsc-setup --help for a full list of parameters.
Chapter 7. Connecting to the Administration Portal Copy linkLink copied to clipboard!
- In a browser, navigate to https://<IP Address>/ovirt-engine. Replace <IP Address> with the URL provided during installation.
- When initially connecting to the Administration Portal, a prompt appears asking if the
ca.cercertificate is trusted. Follow the prompts and then click the new link that appears on the page to reload the Administration Portal. - The portal log in screen displays. Enter
adminas the User Name. Enter the password set during installation in the Password field. Select theinternaldomain from the Domain list.Click to log in.
Chapter 8. Use a PostgreSQL Database Server with Red Hat Gluster Storage Console Copy linkLink copied to clipboard!
posgresql and postgresql-server packages are installed.
rhsc-setup utility.
Procedure 8.1. Manually Preparing a PostgreSQL Database Server for use with Red Hat Gluster Storage Console
- Initialize the database and start the postgreSQL service by running the commands:
service postgresql initdb service postgresql start
# service postgresql initdb # service postgresql startCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Create a postgreSQL user for the Red Hat Gluster Storage Console to use when it reads from and writes to the database, and a database to store information about the environment in. This step is required on both local and remote manually configured database servers.
su - postgres psql
# su - postgres $ psql postgres=# create user USER password 'PASSWORD'; postgres=# create database DATABASE owner USER;Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Make sure that database can be accessed remotely by enabling client authentication. This step is required on manually configured remote database servers. Edit the
/var/lib/pgsql/data/pg_hba.conffile, and add this line:host all all X.X.X.X/24 trust
host all all X.X.X.X/24 trustCopy to Clipboard Copied! Toggle word wrap Toggle overflow Replace X.X.X.X with the IP address of the Console server. - Allow TCP/IP connections to the database. This step is required on manually configured remote database servers. Edit the
/var/lib/pgsql/data/postgresql.conffile, and add this line:listen_addresses='*' port = 5432
listen_addresses='*' port = 5432Copy to Clipboard Copied! Toggle word wrap Toggle overflow This example makes postgreSQL listen for connections on all interfaces. You can specify an interface by giving its IP address.This requires a restart of the postgreSQL server. - Restart the
postgresservice. This step is required on both local and remote manually configured database servers.service postgresql restart
service postgresql restartCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure 8.2. Configuring the Manager to use a Manually Configured Local or Remote PostgreSQL Database
- During the Red Hat Gluster Storage Console installation using the
rhsc-setuputility, you are prompted to decide where the database is located.Where is the database located? (Local, Remote) [Local]:
Where is the database located? (Local, Remote) [Local]:Copy to Clipboard Copied! Toggle word wrap Toggle overflow The steps involved in manually configuring the Red Hat Gluster Storage Console to use remote and local databases are the same, except that to use a remotely hosted database, you need to provide the hostname of the remote database server, and the port it is listening on. - If you are using a remote manually configured database, supply the
rhsc-setuputility with the hostname of the database server and the port it is listening on.Database host [localhost]: Database port [5432]:
Database host [localhost]: Database port [5432]:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - In either case, you are prompted to confirm whether the database uses a secured connection. Provide a username and password for the newly configured database.
Database secured connection (Yes, No) [No]: Database name [engine]: Database user [engine]: Database password:
Database secured connection (Yes, No) [No]: Database name [engine]: Database user [engine]: Database password:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note
Using a secured connection to the database requires you to have also manually configured secured database connections.
rhsc-setup utility continues with the rest of the storage environment configuration.
Chapter 9. Upgrading Red Hat Gluster Storage Console Copy linkLink copied to clipboard!
- Configuring channels and entitlements.
- Updating the required packages.
- Performing the upgrade.
rhsc-setup, which provides an interactive interface. While the upgrade is in process, Red Hat Gluster Storage hosts continue to operate independently. When the upgrade is complete, you can then upgrade your hosts to the latest versions of Red Hat Gluster Storage.
9.1. Upgrades between Minor Releases Copy linkLink copied to clipboard!
Procedure 9.1. Checking for Red Hat Gluster Storage Console Updates
- Run the following command on the machine on which the Red Hat Gluster Storage Console is installed:
rhsc-upgrade-check
# rhsc-upgrade-checkCopy to Clipboard Copied! Toggle word wrap Toggle overflow - If there are no updates are available, the command will output the text
No upgrade:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - If updates are available, the command will list the packages to be updated:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure 9.2. Updating Red Hat Gluster Storage Console
- Stopping the
ovirt-engineservice. - Downloading and installing the updated packages.
- Backing up and updating the database.
- Performing post-installation configuration.
- Starting the
ovirt-engineservice.
- Run the following command to update the
rhsc-setuppackage:yum update rhsc-setup
# yum update rhsc-setupCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Run the following command to update the Red Hat Gluster Storage Console:
rhsc-setup
# rhsc-setupCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Run the following command to ensure that all packages are up to date:
yum update
# yum updateCopy to Clipboard Copied! Toggle word wrap Toggle overflow If this includes updates to the Nagios plugin (nagios-server-addons), re-run the Nagios configuration command to ensure it is correctly configured after upgrade.configure-gluster-nagios
# configure-gluster-nagiosCopy to Clipboard Copied! Toggle word wrap Toggle overflow
9.2. Post-Upgrade Tasks Copy linkLink copied to clipboard!
Note
Procedure 9.3. Migrating Red Hat Gluster Storage Nodes
- Log in to the Administration Portal as the administrative user. By default this is the
adminuser. - Click the Hosts tab and select the desired host to display the Details pane.
- Click Maintenance and to place the host in maintenance mode.
- Upgrade the Red Hat Gluster Storage nodes.For more information, refer section Upgrading from Red Hat Gluster Storage 2.1 Update 4 to Red Hat Gluster Storage 3.0 using yum in Red Hat Gluster Storage 3 Administration Guide.
- Click Edit and change the protocol to JSON by checking the Use JSON Protocol checkbox.
- On the Hosts tab, click Reinstall to reinstall the hosts.
- Enter the password for the Host in Install Host window and click OK.
Procedure 9.4. Changing the Cluster Compatibility Version
- Log in to the Administration Portal as the administrative user. By default this is the
adminuser. - Click the Clusters tab.
- Select the cluster to change from the list displayed. If the list of clusters is too long to filter visually then perform a search to locate the desired cluster.
- Click the button.
- Change the Compatibility Version to the desired value.For more information on the Cluster compatibility version, refer Cluster Properties section in Red Hat Gluster Storage Console Administration Guide.
- Click to open the Change Cluster Compatibility Version confirmation window.
- Click to confirm.
Chapter 10. Removing Red Hat Gluster Storage Console Copy linkLink copied to clipboard!
Warning
rhsc-cleanup command removes all the existing Red Hat Gluster Storage Console data. This includes configuration settings, certificates, and database tables.
Procedure 10.1. Removing the Console
rhsc-cleanup utility to allow quick and easy removal of the data files associated with the installation. After rhsc-cleanup is run, you can remove the Red Hat Gluster Storage Console packages using yum.
- Execute
rhsc-cleanupon the system that Red Hat Gluster Storage Console is installed on. You must be logged in as the root user to runrhsc-cleanup.rhsc-cleanup
# rhsc-cleanupCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Confirm that you want to remove all of the Red Hat Gluster Storage Console components. These include PKI Keys, the locally hosted ISO domain file system layout, PKI Configuration, the local NFS exports configuration, and the engine database content.
Do you want to remove all components? (Yes, No) [Yes]: yes
Do you want to remove all components? (Yes, No) [Yes]: yesCopy to Clipboard Copied! Toggle word wrap Toggle overflow Note
A backup of the Engine database and a compressed archive of the PKI keys and configuration are always automatically created. These are saved under/var/lib/ovirt-engine/backups/, and their filenames include the date and engine- and engine-pki-, respectively. - You will be prompted to confirm the action to remove Red Hat Gluster Storage Console. If you choose to proceed, the
ovirt-engineservice is stopped, and the configuration is removed according to the options you select.During execution engine service will be stopped (OK, Cancel) [OK]: OK ovirt-engine is about to be removed, data will be lost (OK, Cancel) [Cancel]: OK
During execution engine service will be stopped (OK, Cancel) [OK]: OK ovirt-engine is about to be removed, data will be lost (OK, Cancel) [Cancel]: OKCopy to Clipboard Copied! Toggle word wrap Toggle overflow The configuration files of the environment are removed. - You can safely uninstall the Red Hat Gluster Storage Console packages using
yum.yum remove rhsc*
# yum remove rhsc*Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Note
Part III. Appendices Copy linkLink copied to clipboard!
Appendix A. Additional Utilities Copy linkLink copied to clipboard!
A.1. The Domain Management Tool Copy linkLink copied to clipboard!
rhsc-manage-domains. This command is only accessible from the machine on which Red Hat Gluster Storage Console is installed, and must be run as the root user.
A.1.1. Syntax of the Domain Management Tool Copy linkLink copied to clipboard!
rhsc-manage-domains -action=ACTION [options]
rhsc-manage-domains -action=ACTION [options]
rhsc-manage-domains command's help output:
rhsc-manage-domains --help
# rhsc-manage-domains --help
A.1.2. Adding Domains to a Configuration Copy linkLink copied to clipboard!
rhsc-manage-domains command is used to add the ActiveDirectory domain test.redhat.com to the Red Hat Gluster Storage Console configuration. The configuration is set to use the administrator user when querying the domain; the password is provided interactively.
Example A.1. rhsc-manage-domains Add Action
A.1.3. Editing a Domain in the Configuration Copy linkLink copied to clipboard!
rhsc-manage-domains command is used to edit the directory.test.redhat.com domain in the Red Hat Gluster Storage Console configuration. The configuration is updated to use the administrator user when querying this domain; the password is provided interactively.
Example A.2. rhsc-manage-domains Edit Action
A.1.4. Deleting a Domain from the Configuration Copy linkLink copied to clipboard!
rhsc-manage-domains command is used to remove the directory.test.redhat.com domain from the Red Hat Gluster Storage Console configuration. Users defined in the removed domain will no longer be able to authenticate with the Red Hat Gluster Storage Console. The entries for the affected users will remain defined in the Red Hat Gluster Storage Console until they are explicitly removed.
Example A.3. rhsc-manage-domains Delete Action
A.1.5. Validating a Domain Configuration Copy linkLink copied to clipboard!
rhsc-manage-domains command is used to validate the Red Hat Gluster Storage Console configuration. The command attempts to log into each listed domain with the credentials provided in the configuration. The domain is reported as valid if the attempt is successful.
Example A.4. rhsc-manage-domains Validate Action
rhsc-manage-domains -action=validate
# rhsc-manage-domains -action=validate
Domain test.redhat.com is valid.
The configured user for domain test.redhat.com is admin@TEST.REDHAT.COM
Manage Domains completed successfully
A.1.6. Listing the Domains in a Configuration Copy linkLink copied to clipboard!
rhsc-manage-domains command is used to list the domains defined in the Red Hat Gluster Storage Console configuration. For each configuration entry, the command displays the domain, the user name - in User Principle Name (UPN) format - and whether the domain is local or remote.
Example A.5. rhsc-manage-domains List Action
rhsc-manage-domains -action=list
# rhsc-manage-domains -action=list
Domain: test.redhat.com
User name: admin@TEST.REDHAT.COM
Manage Domains completed successfully
Appendix B. Revision History Copy linkLink copied to clipboard!
| Revision History | |||
|---|---|---|---|
| Revision 3.3-01 | Wed Sep 13 2017 | ||
| |||