此内容没有您所选择的语言版本。
4.3. Configuring Red Hat Gluster Storage Console
When package installation is complete, the Red Hat Gluster Storage Console must be configured. The
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-setup
Copy 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 found
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Check hostname configuration
Therhsc-setup
script 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-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 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]: Automatic
Copy 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]: Automatic
Copy 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-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 Configure console settings
Therhsc-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 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]: 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 Gluster Storage Console in Red Hat Gluster Storage Console 3.4 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.
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 URL
for 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
Result:
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
Red Hat periodically provides updates for the Red Hat Gluster Storage Console.
4.3.1. Enabling SELinux 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
To enable SELinux on Console and the storage nodes refer Red Hat Gluster Storage 3.4 Administration Guide which provides more information on enabling SELinux.
Note
Ensure to place the nodes into maintenance mode before enabling SELinux on the Red Hat Gluster Storage nodes managed via Console.
On the upgraded Red Hat Gluster Storage Console and Red Hat Gluster Storage nodes, set following SELinux booleans:
- If Nagios server is installed on the Console node, set the following boolean:
setsebool -P nagios_run_sudo on
# setsebool -P nagios_run_sudo on
Copy 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 on
Copy to Clipboard Copied! Toggle word wrap Toggle overflow