此内容没有您所选择的语言版本。
Chapter 3. Red Hat Storage Console Installation
3.1. Console Installation Overview 复制链接链接已复制到粘贴板!
3.1.1. Prerequisites 复制链接链接已复制到粘贴板!
- 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 Storage Nodes.
- The password you use to secure the Red Hat 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: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 is
- 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-ossp
extension had been loaded by the remote database server.
redhat
. - The organization name to use when creating the Console's security certificates. The default value is an automatically-detected domain-based name.
3.1.2. Registering to Red Hat Network 复制链接链接已复制到粘贴板!
Procedure 3.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 register
Copy 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 Storage Console:subscription-manager list --available | grep -A8 "Red Hat Enterprise Linux Server" subscription-manager list --available | grep -A8 "Red Hat Storage"
# subscription-manager list --available | grep -A8 "Red Hat Enterprise Linux Server" # subscription-manager list --available | grep -A8 "Red Hat 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 Server
andRed Hat Storage Console
entitlements 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 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-rpms
Copy 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 repolist
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure 3.2. Registering with Subscription Manager using GUI
- To register and to attach suitable subscription, see Registering from the GUI section in Red Hat Subscription Management Guide.
Important
To attach Red Hat Storage Console subscription, selectoption. - Run the following commands as
root
user to enable the repositories required to install Red Hat 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-rpms
Copy 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 repolist
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure 3.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_register
command 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 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-3
Copy 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-3
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
3.1.3. Installing Red Hat Storage Console 复制链接链接已复制到粘贴板!
Important
- Installing Red Hat Storage Console 3.0 on Red Hat Storage 3.0 is not supported.
- Set SELinux to permissive on the Nagios server.
- If you have existing installations of the technology preview version of the Red Hat Storage Console, you need to remove those installations and perform a fresh installation of the product. An upgrade from technical preview version is not supported.
Procedure 3.4. Installing the Red Hat Storage Console
- Use the
yum
command to enure that the most recent version of installed packages are in use.yum update
# yum update
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Use
yum
to initiate the installation of the rhsc package and all the dependencies. You must run this command as theroot
user.yum install rhsc
# yum install rhsc
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
3.1.4. Upgrading Red Hat Storage Console 复制链接链接已复制到粘贴板!
- 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 Storage hosts continue to operate independently. When the upgrade is complete, you can then upgrade your hosts to the latest versions of Red Hat Storage.
Important
3.1.4.1. Upgrades between Minor Releases 复制链接链接已复制到粘贴板!
Procedure 3.5. Checking for Red Hat Storage Console Updates
- Run the following command on the machine on which the Red Hat Storage Console is installed:
rhsc-upgrade-check
# rhsc-upgrade-check
Copy 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 3.6. Updating Red Hat Storage Console
- Stopping the
ovirt-engine
service. - Downloading and installing the updated packages.
- Backing up and updating the database.
- Performing post-installation configuration.
- Starting the
ovirt-engine
service.
- Run the following command to update the rhsc-setup package:
yum update rhsc-setup
# yum update rhsc-setup
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Run the following command to update the Red Hat Storage Console:
rhsc-setup
# rhsc-setup
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Run the following command to ensure that all packages are up to date:
yum update
# yum update
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Important
Procedure 3.7. Upgrading Red Hat Storage Console 2.1 Update 4 to Red Hat Storage Console 3.0 using Subscription Manager
- Verify the subscription status by running the following command:
migrate-rhs-classic-to-rhsm --status
# migrate-rhs-classic-to-rhsm --status
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Install the required packages using the following command:
yum install subscription-manager-migration
# yum install subscription-manager-migration
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Execute the following command to migrate from Red Hat Network Classic to Red Hat Subscription Manager:
migrate-rhs-classic-to-rhsm --rhn-to-rhsm
# migrate-rhs-classic-to-rhsm --rhn-to-rhsm
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - To enable the Red Hat Storage Console 3.0 repositories, execute the following command:
migrate-rhs-classic-to-rhsm --upgrade --version 3
# migrate-rhs-classic-to-rhsm --upgrade --version 3
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - To verify if the migration from Red Hat Network Classic to Red Hat Subscription Manager is successful, execute the following command:
migrate-rhs-classic-to-rhsm --status
# migrate-rhs-classic-to-rhsm --status
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Run the following command to ensure that you have the most recent version of
rhsc-setup
by updating therhsc-setup
package:yum update rhsc-setup
# yum update rhsc-setup
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Run the following command and follow the prompts to upgrade the Red Hat Storage Console:
rhsc-setup
# rhsc-setup
Copy to Clipboard Copied! Toggle word wrap Toggle overflow EnterYes
orNo
when prompted to select whether to enable or disable monitoring. - Remove or disable the Red Hat Storage Console 2.1 repositories to ensure that the system does not use any Red Hat Storage Console 2.1 packages using the following command:
subscription-manager repos --disable=rhsc-2.1-for-rhel-6-server-rpms
# subscription-manager repos --disable=rhsc-2.1-for-rhel-6-server-rpms
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Run the following command to ensure all packages are up to date:
yum update
# yum update
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure 3.8. Upgrading Red Hat Storage Console 2.1 Update 4 to Red Hat Storage Console 3.0 using Red Hat Satellite Server
- Subscribe the system on which the Red Hat Storage Console is installed to the required channels for receiving Red Hat Storage Console 3.0 packages using the following command:
rhn-channel --add --channel rhel-x86_64-server-6-rhs-rhsc-3 --channel rhel-x86_64-server-6-rhs-nagios-3
# rhn-channel --add --channel rhel-x86_64-server-6-rhs-rhsc-3 --channel rhel-x86_64-server-6-rhs-nagios-3
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Run the following command to ensure that you have the most recent version of
rhsc-setup
by updating therhsc-setup
package:yum update rhsc-setup
# yum update rhsc-setup
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Run the following command and follow the prompts to upgrade the Red Hat Storage Console:
rhsc-setup
# rhsc-setup
Copy to Clipboard Copied! Toggle word wrap Toggle overflow EnterYes
orNo
when prompted to select whether to enable or disable monitoring. - Remove or disable the Red Hat Storage Console 2.1 channels to ensure that the system does not use any Red Hat Storage Console 2.1 packages using the following command:
rhn-channel --remove --channel rhel-x86_64-server-6-rhs-rhsc-2.1
# rhn-channel --remove --channel rhel-x86_64-server-6-rhs-rhsc-2.1
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Run the following command to ensure all packages are up to date:
yum update
# yum update
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
3.1.5. Post-Upgrade Tasks 复制链接链接已复制到粘贴板!
Note
Procedure 3.9. Migrating Red Hat Storage Nodes
- Log in to the Administration Portal as the administrative user. By default this is the
admin
user. - Click the Hosts tab and select the desired host to display the Details pane.
- Click Maintenance and click to place the host in maintenance mode.
- Upgrade the Red Hat Storage nodes.For more information, refer section Upgrading from Red Hat Storage 2.1 Update 4 to Red Hat Storage 3.0 using yum in Red Hat Storage 3 Administration Guide.
- Click the Hosts tab and select the host to display General tab with the host details.
- Click here link in Action Items to reinstall the hosts.
- Enter the password for the Host in Install Host window and click OK.
Procedure 3.10. Changing the Cluster Compatibility Version
- Log in to the Administration Portal as the administrative user. By default this is the
admin
user. - 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 thebutton.
- Change the Compatibility Version to the desired value.For more information on the Cluster compatibility version, refer Cluster Properties section in Red Hat Storage Console Administration Guide.
- Click Change Cluster Compatibility Version confirmation window.to open the
- Clickto confirm.
3.1.6. Configuring Red Hat Storage Console 复制链接链接已复制到粘贴板!
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 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 3.11. Configuring the Console
- Execute
rhsc-setup
command#rhsc-setup
#rhsc-setup
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Packages CheckThe
rhsc-setup
script checks if it is performing an upgrade, or an installation. No user input is required at this stage.Checking for product updates... No product updates found
Checking for product updates... No product updates found
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Network ConfigurationA reverse look-up is also performed on the hostname, which is automatically detected. You can correct the auto-detected hostname if it is incorrect. 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 Therhsc-setup
script 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 - Database ConfigurationYou 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]: Automatic
Copy to Clipboard Copied! Toggle word wrap Toggle overflow For information on how to prepare a postgrSQL database, see Section 3.1.9, “Preparing a PostgreSQL Database Server for use with Red Hat Storage Console” - Set the administrator credentialsYou need to set an administrator password for the automatically created administrative user of the Red Hat 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. - PKI ConfigurationThe 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 - Apache ConfigurationThe 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]: Automatic
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The Red Hat Storage Console uses the Apache web server to present a landing page to users.rhsc-setup
script 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 - System ConfigurationThe
rhsc-setup
script 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 Gluster
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Therhsc-setup
script 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-setup
script 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 RHSC 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 RHSC to be brokered through a proxy server? (Yes, No) [No]: No
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Therhsc-setup
script prompts to confirm whether to enable or disable monitoring by enteringYes
orNo
For information on how to configure Nagios, see Configuring Nagios for Red Hat Storage Console in Red Hat Storage Console 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
OK
and 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.
- SummaryWhen 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 the
SSH Certificate fingerprint
,SSH Public key fingerprint
, andRed Hat Storage Console URL
for later reference.Copy to Clipboard Copied! Toggle word wrap Toggle overflow - End of SummaryAt this stage, the engine service and http daemon are started.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note
Automated installations are created by providing therhsc-setup
with an answer file. An answer file contains answers to the questions asked by the setup command.- To create an answer file, use the
--generate-answer
parameter 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-append
parameter to specify the path and file name of the answer file to be used. Therhsc-setup
command 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
Runrhsc-setup
for a full list of parameters.--help
The Red Hat Storage Console is installed and configured. You can connect to the Administration Portal using the instructions in Section 3.1.8, “Connecting to the Administration Portal”.
Note
3.1.7. Removing Red Hat Storage Console 复制链接链接已复制到粘贴板!
Warning
rhsc-cleanup
command removes all the existing Red Hat Storage Console data. This includes configuration settings, certificates, and database tables.
Procedure 3.12. 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 Storage Console packages using yum
.
- Execute
rhsc-cleanup
on the system that Red Hat Storage Console is installed on. You must be logged in as the root user to runrhsc-cleanup
.rhsc-cleanup
# rhsc-cleanup
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Confirm that you want to remove all of the Red Hat 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]: yes
Copy 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 Storage Console. If you choose to proceed, the
ovirt-engine
service 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]: OK
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The configuration files of the environment are removed. - You can safely uninstall the Red Hat Storage Console packages using
yum
.yum remove rhsc*
# yum remove rhsc*
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Note
3.1.8. Connecting to the Administration Portal 复制链接链接已复制到粘贴板!
- In a browser, navigate to https://<IP Address>/webadmin. Replace <IP Address> with the URL provided during installation.
- When initially connecting to the Administration Portal, a prompt appears asking if the
ca.cer
certificate 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
admin
as the User Name. Enter the password set during installation in the Password field. Select theinternal
domain from the Domain list.Clickto log in.
posgresql
and postgresql-server
packages are installed.
rhsc-setup
utility.
Procedure 3.13. Preparing a PostgreSQL Database Server for use with Red Hat Storage Console
- Initialize the database and start the postgreSQL service by running the commands:
service postgresql initdb
# service postgresql initdb # service postgresql start
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Create a postgreSQL user for the Red Hat 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.conf
file, and add this line:host all all X.X.X.X/24 trust
host all all X.X.X.X/24 trust
Copy 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.conf
file, and add this line:listen_addresses='*' port = 5432
listen_addresses='*' port = 5432
Copy 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
postgres
service. This step is required on both local and remote manually configured database servers.service postgresql restart
service postgresql restart
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
service postgresql initdb
# service postgresql initdb
# service postgresql start
rhsc-setup
utility, you can opt to use a manually configured database. You can select to use a locally or remotely installed postgreSQL database.
Procedure 3.14. Configuring the Manager to use a Manually Configured Local or Remote PostgreSQL Database
- During the Red Hat Storage Console installation using the
rhsc-setup
utility, 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 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-setup
utility 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.