Escolar Documentos
Profissional Documentos
Cultura Documentos
0 Installation Guide
Edition 1
Anjana Suparna Sriram Red Hat Engineering Content Services asriram@redhat.com Divya Muntimadugu Red Hat Engineering Content Services divya@redhat.com
Legal Notice
Legal Notice
Copyright 2012 Red Hat Inc. T he text of and illustrations in this document are licensed by Red Hat under a Creative Commons AttributionShare Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version. Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law. Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, MetaMatrix, Fedora, the Infinity Logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries. Linux is the registered trademark of Linus T orvalds in the United States and other countries. Java is a registered trademark of Oracle and/or its affiliates. XFS is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries. MySQL is a registered trademark of MySQL AB in the United States, the European Union and other countries. All other trademarks are the property of their respective owners. 1801 Varsity Drive Raleigh, NC 27606-2072 USA Phone: +1 919 754 3700 Phone: 888 733 4281 Fax: +1 919 754 3701
Abstract
T his guide describes the prerequisites and provides step-by-instructions to install Red Hat Storage using different methods.
Table of Contents
Table of Contents
Preface 1. Audience 2. License 3. Document Conventions 3.1. T ypographic Conventions 3.2. Pull-quote Conventions 3.3. Notes and Warnings 4. Getting Help and Giving Feedback 4.1. Do You Need Help? 4.2. We Need Feedback! 1. Introduction 2. Obtaining Red Hat Storage 2.1. Obtaining Red Hat Storage Server for On-Premise 2.2. Obtaining Red Hat Storage Server for Public Cloud 3. Planning Red Hat Storage Installation 3.1. Prerequisites 3.1.1. Network T ime Protocol Setup 3.2. Is Your Hardware Compatible? 4. Installing Red Hat Storage 4.1. Installing from an .ISO Image 4.2. Booting from a PXE Server 5. Registering to Red Hat Network (RHN) 6. Setting up Software Updates 6.1. Updating Red Hat Storage 7. Managing glusterd Service 7.1. Starting and Stopping glusterd Manually 8. Using the Gluster Command Line Interface A. Revision History
Preface
Red Hat Storage is scale-out network attached storage (NAS) for private cloud or datacenter, public cloud, and hybrid cloud environments. It is software-only, open source, and designed to meet unstructured data storage requirements. T his installation guide describes the Red Hat Storage installation process, describes the minimum requirements, and provides step-by-step instructions to install the software and manage your storage environment.
1. Audience
T his guide is intended for anyone responsible for installing Red Hat Storage. T his guide assumes that you are familiar with the Linux operating system, concepts of file system, and GlusterFS concepts.
2. License
T he Red Hat Storage End User License Agreement (EULA) is available at http://www.redhat.com/licenses/rhel_rha_eula.html.
3. Document Conventions
T his manual uses several conventions to highlight certain words and phrases and draw attention to specific pieces of information. In PDF and paper editions, this manual uses typefaces drawn from the Liberation Fonts set. T he Liberation Fonts set is also used in HT ML editions if the set is installed on your system. If not, alternative but equivalent typefaces are displayed. Note: Red Hat Enterprise Linux 5 and later includes the Liberation Fonts set by default. 3.1. T ypographic Conventions Four typographic conventions are used to call attention to specific words and phrases. T hese conventions, and the circumstances they apply to, are as follows. Mono-spaced Bold Used to highlight system input, including shell commands, file names and paths. Also used to highlight keycaps and key combinations. For example: T o see the contents of the file m y_next_bestselling_novel in your current working directory, enter the cat m y_next_bestselling_novel command at the shell prompt and press Enter to execute the command. T he above includes a file name, a shell command and a keycap, all presented in mono-spaced bold and all distinguishable thanks to context. Key combinations can be distinguished from keycaps by the plus sign that connects each part of a key combination. For example: Press Enter to execute the command. Press Ctrl + Alt+ F2 to switch to a virtual terminal. T he first paragraph highlights the particular keycap to press. T he second highlights two key
Preface
combinations (each a set of three keycaps with each set pressed simultaneously). If source code is discussed, class names, methods, functions, variable names and returned values mentioned within a paragraph will be presented as above, in m ono-spaced bold . For example: File-related classes include filesystem for file systems, file for files, and dir for directories. Each class has its own associated set of permissions. Proportional Bold T his denotes words or phrases encountered on a system, including application names; dialog box text; labeled buttons; check-box and radio button labels; menu titles and sub-menu titles. For example: Choose System Preferences Mouse from the main menu bar to launch Mouse Preferences. In the Buttons tab, click the Left-handed m ouse check box and click Close to switch the primary mouse button from the left to the right (making the mouse suitable for use in the left hand). T o insert a special character into a gedit file, choose Applications Accessories Character Map from the main menu bar. Next, choose Search Find from the Character Map menu bar, type the name of the character in the Search field and click Next. T he character you sought will be highlighted in the Character T able . Double-click this highlighted character to place it in the T ext to copy field and then click the Copy button. Now switch back to your document and choose Edit Paste from the gedit menu bar. T he above text includes application names; system-wide menu names and items; application-specific menu names; and buttons and text found within a GUI interface, all presented in proportional bold and all distinguishable by context. Mono-spaced Bold Italic or Proportional Bold Italic Whether mono-spaced bold or proportional bold, the addition of italics indicates replaceable or variable text. Italics denotes text you do not input literally or displayed text that changes depending on circumstance. For example: T o connect to a remote machine using ssh, type ssh username@ domain.name at a shell prompt. If the remote machine is exam ple.com and your username on that machine is john, type ssh john@ exam ple.com . T he m ount -o rem ount file-system command remounts the named file system. For example, to remount the /hom e file system, the command is m ount -o rem ount /hom e . T o see the version of a currently installed package, use the rpm -q package command. It will return a result as follows: package-version-release. Note the words in bold italics above username, domain.name, file-system, package, version and release. Each word is a placeholder, either for text you enter when issuing a command or for text displayed by the system. Aside from standard usage for presenting the title of a work, italics denotes the first use of a new and important term. For example: Publican is a DocBook publishing system. 3.2. Pull-quote Conventions T erminal output and source code listings are set off visually from the surrounding text.
Source-code listings are also set in m ono-spaced rom an but add syntax highlighting as follows:
package org.jboss.book.jca.ex1; import javax.naming.InitialContext; public class ExClient { public static void main(String args[]) throws Exception { InitialContext iniCtx = new InitialContext(); Object ref = iniCtx.lookup("EchoBean"); EchoHome home = (EchoHome) ref; Echo echo = home.create(); System.out.println("Created Echo"); System.out.println("Echo.echo('Hello') = " + echo.echo("Hello")); } }
3.3. Notes and Warnings Finally, we use three visual styles to draw attention to information that might otherwise be overlooked.
Note
Notes are tips, shortcuts or alternative approaches to the task at hand. Ignoring a note should have no negative consequences, but you might miss out on a trick that makes your life easier.
Important
Important boxes detail things that are easily missed: configuration changes that only apply to the current session, or services that need restarting before an update will apply. Ignoring a box labeled 'Important' will not cause data loss but may cause irritation and frustration.
Warning
Warnings should not be ignored. Ignoring warnings will most likely cause data loss.
Preface
Portal at http://access.redhat.com. T hrough the customer portal, you can: search or browse through a knowledgebase of technical support articles about Red Hat products. submit a support case to Red Hat Global Support Services (GSS). access other product documentation. Red Hat also hosts a large number of electronic mailing lists for discussion of Red Hat software and technology. You can find a list of publicly available mailing lists at https://www.redhat.com/mailman/listinfo. Click on the name of any mailing list to subscribe to that list or to access the list archives. 4 .2. We Need Feedback! If you find a typographical error in this manual, or if you have thought of a way to make this manual better, we would love to hear from you! Please submit a report in Bugzilla: http://bugzilla.redhat.com/ against the product Red Hat Storage. When submitting a bug report, be sure to mention the manual's identifier: doc-Installation_Guide If you have a suggestion for improving the documentation, try to be as specific as possible when describing it. If you have found an error, please include the section number and some of the surrounding text so we can find it easily.
Chapter 1. Introduction
Red Hat Storage is software only, scale-out storage that provides flexible and affordable unstructured data storage for the enterprise. Red Hat Storage 2.0 provides new opportunities to unify data storage and infrastructure, increase performance, and improve availability and manageability in order to meet a broader set of an organizations storage challenges and needs. GlusterFS, a key building block of Red Hat Storage, is based on a stackable user space design and can deliver exceptional performance for diverse workloads. GlusterFS aggregates various storage servers over network interconnects into one large parallel network file system. T he POSIX compatible GlusterFS servers, which use XFS file system format to store data on disks, can be accessed using industry standard access protocols including NFS and CIFS. Red Hat Storage can be deployed in the private cloud or datacenter using Red Hat Storage Server for On-premise. Red Hat Storage can be installed on commodity servers and storage hardware resulting in a powerful, massively scalable, and highly available NAS environment. Additionally, Red Hat Storage can be deployed in the public cloud using Red Hat Storage Server for Public Cloud, for example, within the Amazon Web Services (AWS) cloud. It delivers all the features and functionality possible in a private cloud or datacenter to the public cloud by providing massively scalable and high available NAS in the cloud. Red Hat Storage Server for On-Premise Red Hat Storage Server for On-Premise enables enterprises to treat physical storage as a virtualized, scalable, and centrally managed pool of storage by using commodity server and storage hardware. Red Hat Storage Server for Public Cloud Red Hat Storage Server for Public Cloud packages GlusterFS as an Amazon Machine Image (AMI) for deploying scalable NAS in the AWS public cloud. T his powerful storage server provides a highly available, scalable, virtualized, and centrally managed pool of storage for Amazon users.
10
11
3.1. Prerequisites
Ensure that your environment meets the following requirements. File System Requirements XFS - It is mandatory that the back-end file system be formatted using XFS for GlusterFS bricks. It supports metadata journaling, which facilitates quicker crash recovery. T he XFS file system can also be defragmented and expanded while mounted and active.
Note
If you are an existing Gluster Storage Software Appliance customer and use ext3 or ext4 as your back-end file systems, Red Hat will assist you to upgrade to a supported Red Hat Storage with XFS back-end file system.
Logical Volume Manager You must format GlusterFS bricks using XFS on Logical Volume Manager. Network T ime Configuration Ensure to synchronize time on all Red Hat Storage servers. You are recommended to set up NT P (Network T ime Protocol) daemon to sync time. 3.1.1. Network T ime Protocol Setup You can also synchronize the system clock with a remote server over the Network T ime Protocol (NT P). T o synchronize the time at boot time automatically, set the ntpd daemon to synchronize the time. 1. Open the NT P configuration file /etc/ntp.conf in a text editor such as vi or nano.
# nano /etc/ntp.conf
2. Now add or edit the list of public NT P servers. If you are using Red Hat Enterprise Linux 6, the file should already contain the following lines, but feel free to change or expand these according to your needs:
server 0.rhel.pool.ntp.org server 1.rhel.pool.ntp.org server 2.rhel.pool.ntp.org
12
3. Once you have the list of servers complete, in the same file, set the proper permissions, giving the unrestricted access to localhost only:
restrict restrict restrict restrict default kod nomodify notrap nopeer noquery -6 default kod nomodify notrap nopeer noquery 127.0.0.1 -6 ::1
4. Save all changes, exit the editor, and restart the NT P daemon:
# service ntpd restart
You can use the ntpdate command for the one-time synchronization of NT P. For more information about this feature, refer to the Red Hat Enterprise Linux Deployment Guide.
13
Press Enter to begin the installation process. 2. Set the Root Password screen displays. Setting up a root account and password is one of the most important steps during your installation as you will use this account's credentials to install packages, upgrade RPMs, and perform most system maintenance. You cannot proceed to the next stage of the installation process without entering a root password.
Note
T he root user (also known as the superuser) has complete access to the entire system; for this reason, logging in as the root user is best done only to perform system maintenance or administration.
14
Set Root Password screen prompts you to set a root password for your system. You must set the root password in order to proceed. Enter the root password into the Root Password field. Red Hat Storage Software Appliance displays the characters as asterisks for security. T ype the same password into the Confirm field to ensure it is set correctly. After you set the root password, select Next to proceed. 3. T he Partitioning T ype screen displays. Choose the type of partition you wish for your system. You can choose Create Custom Layout option to partition storage devices manually and create customized layouts. If you do not feel comfortable with partitioning your system, choose one of the first four options that allow you to perform an automated installation without having to partition your storage devices yourself. Depending on the option that you choose, you can still control what data (if any) is removed from the system. Your options are: Use All Space Replace Existing Linux System(s) Shrink Current System Use Free Space Create Custom Layout Choose your preferred partitioning method by clicking the radio button to the left of its description in the dialog box.
15
Click Next once you have made your selections to proceed. 4. T he Package Installation screen displays. Red Hat Storage Server reports the installation progress on the screen as it writes the selected packages to your system.
16
6. Click Reboot to reboot the server. Congratulations! Your Red Hat Storage Server installation is now complete.
17
Important
Choose Limited Updates for "RHEL EUS Server (v. 6.2.z for 64 bit x86_64)", while registering to RHN. For more information on how you can register and receive Red Hat Storage updates, see https://access.redhat.com/knowledge/articles/147493 .
18
Note
Asynchronous errata update releases of Red Hat Storage includes all fixes that were released asynchronously since the last release as a cumulative update. T o manually update the system, run the following command:
# yum update
T he update process automatically restarts the glusterd management deamon. T he glusterfs server processes, glusterfsd is not restarted by default since restarting this daemon affects the active read and write operations. After all the nodes in the cluster are updated, the volume must be restarted for the changes to be applied. Red Hat recommends that you restart the system when there are no active read and write operations running on the cluster. T o restart the volume, run the following commands:
# gluster volume stop VOLNAME # gluster volume start VOLNAME
19
or
#service glusterd start
or
#service glusterd stop
20
Note
If you suffix --m ode=script to any command on the CLI, the specified action is executed automatically without any prompts for confirmation. Running the Gluster CLI You can run the Gluster CLI on any Red Hat Storage server either by invoking the commands or by running the Gluster CLI in an interactive mode. You can also use the gluster command remotely using SSH. T o run commands directly: # gluster peer command For example: # gluster peer status T o run the Gluster CLI in interactive mode # gluster You can execute gluster commands from the CLI prompt: gluster> command For example: T o view the status of the peer server: # gluster gluster> peer status Displays the status of the peer. T o view the gluster help: # gluster gluster> help Displays the list of gluster commands and options.
21
Revision History
Revision 1-16 Mon Oct 01 2012 Anjana Suparna Sriram Bug fixes and updated the guide with instructions on how to update Red Hat Storage. Revision 1-13 Bug fixes. Revision 1-1 Version for 2.0 GA release. Revision 1-0 Draft T ue Sep 04 2012 Anjana Suparna Sriram
T ue Jun 26 2012
Divya Muntimadugu
T hu Jun 21 2012