background image

Chapter 5. Managing GFS

51

5.9.1.1. Usage

mount

-t gfs

BlockDevice MountPoint

-o noatime

BlockDevice

Specifies the block device where the GFS file system resides.

MountPoint

Specifies the directory where the GFS file system should be mounted.

5.9.1.2. Example

In this example, the GFS file system resides on the

/dev/vg01/lvol0

and is mounted on

directory

/gfs1

with atime updates turned off.

mount -t gfs /dev/vg01/lvol0 /gfs1 -o noatime

5.9.2. Tune GFS

atime

Quantum

When

atime

updates are enabled, GFS (by default) only updates them once an hour. The

time quantum is a tunable parameter that can be adjusted using the

gfs_tool

command.

Each GFS node updates the access time based on the difference between its system time

and the time recorded in the inode. It is required that system clocks of all GFS nodes in a

cluster be synchronized. If a node’s system time is out of synchronization by a significant

fraction of the tunable parameter,

atime_quantum

, then

atime

updates are written more

frequently. Increasing the frequency of

atime

updates may cause performance degradation

in clusters with heavy work loads.
By using the

gettune

flag of the

gfs_tool

command, all current tunable parameters

including

atime_quantum

(default is 3600 seconds) are displayed.

The

gfs_tool

settune

command is used to change the

atime_quantum

parameter

value. It must be set on each node and each time the file system is mounted. (The set-

ting is not persistent across unmounts.)

5.9.2.1. Usage

Displaying Tunable Parameters

gfs_tool

gettune

MountPoint

Summary of Contents for GFS 6.1 -

Page 1: ...Red Hat GFS 6 1 Administrator s Guide ...

Page 2: ...lable at http www opencontent org openpub Distribution of substantively modified versions of this document is prohibited without the explicit permission of the copyright holder Distribution of the work or derivative of the work in any standard paper book form for commercial purposes is prohibited unless prior permission is obtained from the copyright holder Red Hat and the Red Hat Shadow Man logo ...

Page 3: ...formance 5 1 3 GFS Functions 6 1 4 GFS Software Subsystems 7 1 5 Before Setting Up GFS 9 2 System Requirements 11 2 1 Platform Requirements 11 2 2 Red Hat Cluster Suite 11 2 3 Fencing 12 2 4 Fibre Channel Storage Network 12 2 5 Fibre Channel Storage Devices 12 2 6 Network Power Switches 13 2 7 Console Access 13 3 Installing GFS 15 3 1 Installing the Red Hat Cluster Suite Packages 15 3 1 1 Automati...

Page 4: ...ystem 44 5 6 1 Usage 45 5 6 2 Comments 45 5 6 3 Examples 45 5 6 4 Complete Usage 46 5 7 Direct I O 47 5 7 1 O_DIRECT 47 5 7 2 GFS File Attribute 47 5 7 3 GFS Directory Attribute 48 5 8 Data Journaling 49 5 8 1 Usage 49 5 8 2 Examples 50 5 9 Configuring atime Updates 50 5 9 1 Mount with noatime 50 5 9 2 Tune GFS atime Quantum 51 5 10 Suspending Activity on a File System 52 5 10 1 Usage 52 5 10 2 Ex...

Page 5: ...with Red Hat GFS 59 6 1 GNBD Driver and Command Usage 59 6 1 1 Exporting a GNBD from a Server 60 6 1 2 Importing a GNBD on a Client 61 6 2 Running GFS on a GNBD Server Node 61 A Upgrading GFS 63 Index 67 Colophon 71 ...

Page 6: ......

Page 7: ...n words are represented in different fonts typefaces sizes and weights This highlighting is systematic different words are represented in the same style to indicate their inclusion in a specific category The types of words that are represented this way include the following command Linux commands and other operating system commands when used are represented this way This style should indicate to y...

Page 8: ...graphical session and returns you to the graphical login screen or the console text found on a GUI interface A title word or phrase found on a GUI interface screen or window is shown in this style Text shown in this style indicates that a particular GUI screen or an element on a GUI screen such as text associated with a checkbox or field Example Select the Require Password checkbox if you would li...

Page 9: ...s shown in this style Examples stephen maturin stephen leopard login user input Text that the user types either on the command line or into a text box on a GUI screen is displayed in this style In the following example text is displayed in this style To boot your system into the text based installation program you must type in the text command at the boot prompt replaceable Text used in examples t...

Page 10: ...ffect until you restart the DHCP daemon Caution Do not perform routine tasks as root use a regular user account unless you need to use the root account for system administration tasks Warning Be careful to remove only the necessary partitions Removing other partitions could result in data loss or a corrupted system environment 3 More to Come The Red Hat GFS Administrator s Guide is part of Red Hat...

Page 11: ...nd the support doc umentation included in your subscription you must activate your subscription by register ing with Red Hat Registration includes these simple steps Provide a Red Hat login Provide a subscription number Connect your system The first time you boot your installation of Red Hat Enterprise Linux you are prompted to register with Red Hat using the Setup Agent If you follow the prompts ...

Page 12: ...n Client helps you connect your system so that you can begin to get updates and perform systems management There are three ways to connect 1 During the Setup Agent Check the Send hardware information and Send sys tem package list options when prompted 2 After the Setup Agent has been completed From Applications the main menu on the panel go to System Tools then select Red Hat Network 3 After the S...

Page 13: ...eo Syngress 2001 Best practices for building Fibre Channel SANs based on the Brocade family of switches including core edge topology for large SAN fabrics Building Storage Networks Second Edition by Marc Farley Osborne McGraw Hill 2001 Provides a comprehensive overview reference on storage networking technologies Applications and High Availability Blueprints for High Availability Designing Resilie...

Page 14: ...viii Introduction ...

Page 15: ...upport GFS provides a versatile method of networking your storage according to the performance scalability and economic needs of your storage environment This chapter provides some very basic abbreviated information as background to help you understand GFS It contains the following sections Section 1 1 New and Changed Features Section 1 2 Performance Scalability and Economy Section 1 3 GFS Functio...

Page 16: ...peration only New volume manager LVM2 The pool volume manager in earlier releases of Red Hat GFS is replaced with LVM2 for this release LVM2 is used in conjunction with CLVM Cluster Logical Volume Manager This release provides a tool to convert GFS 6 0 pool volumes to the LVM2 format For information about converting pool volumes to the LVM2 format refer to Appendix A Upgrading GFS Enhanced gfs_fsc...

Page 17: ...lowing sections provide examples of how GFS can be deployed to suit your needs for performance scalability and economy Section 1 2 1 Superior Performance and Scalability Section 1 2 2 Performance Scalability Moderate Price Section 1 2 3 Economy and Performance Note The deployment examples in this chapter reflect basic configurations your needs might require a combination of configurations shown in...

Page 18: ...ock storage devices by GNBD servers From the perspective of a client application storage is accessed as if it were directly attached to the server in which the application is running Stored data is actually on the SAN Storage devices and data can be equally shared by network client applications File locking and sharing functions are handled by GFS for each network client Note Clients implementing ...

Page 19: ...N 1 2 3 Economy and Performance Figure 1 3 shows how Linux client applications can take advantage of an existing Ethernet topology to gain shared access to all block storage devices Client data files and file systems can be shared with GFS on each client Application failover can be fully automated with Red Hat Cluster Suite ...

Page 20: ... Cluster management of GFS nodes is managed through Red Hat Cluster Suite Volume management is managed through CLVM Cluster Logical Volume Manager For information about Red Hat Cluster Suite refer to Red Hat Cluster Suite Configuring and Managing a Cluster For information about using CLVM refer to the LVM HOWTO http www tldp org HOWTO LVM HOWTO index html Note CLVM is a cluster wide implementation...

Page 21: ...laying Extended GFS Information and Statistics Repairing a File System Context Dependent Path Names CDPN 1 4 GFS Software Subsystems GFS consists of the following subsystems GFS and GNBD Table 1 1 summarizes the GFS Software subsystems and their components Software Subsystem Components Description GFS gfs ko Kernel module that implements the GFS file system and is loaded on GFS cluster nodes gfs_f...

Page 22: ...M lock module lock_dlm ko lock_dlm ko A lock module that implements DLM locking for GFS It plugs into the lock harness lock_harness ko and communicates with the DLM lock manager in Red Hat Cluster Suite lock_gulm ko A lock module that implements GULM locking for GFS It plugs into the lock harness lock_harness ko and communicates with the GULM lock manager in Red Hat Cluster Suite lock_nolock ko A ...

Page 23: ...form of a parameter variable For example this book uses file system names gfs1 and gfs2 in some example procedures Journals Determine the number of journals for your GFS file systems One journal is required for each node that mounts a GFS file system Make sure to account for additional journals needed for future expansion GFS nodes Determine which nodes in the Red Hat Cluster Suite will mount the ...

Page 24: ...10 Chapter 1 GFS Overview ...

Page 25: ... Table 2 1 shows the platform requirements for GFS Operating System Hardware Architecture RAM Red Hat Enterprise Linux AS ES or WS Version 4 or later ia64 x86 64 x86 SMP supported 256 MB minimum Table 2 1 Platform Requirements 2 2 Red Hat Cluster Suite Red Hat GFS runs with Red Hat Cluster Suite 4 0 or later The Red Hat Cluster Suite software must be installed on the cluster nodes before you can i...

Page 26: ...S node Connection method Fibre Channel switch Note If an FC switch is used for fencing you may want to consider using Brocade McData or Vixel FC switches for which Red Hat Cluster Suite fencing agents exist Refer to Red Hat Cluster Suite Configuring and Managing a Cluster for more information about supported fencing agents Note When a small number of nodes is used it may be possible to connect the...

Page 27: ...e 8 TB maximum supported per GFS file systen Table 2 3 Fibre Channel Storage Device Requirements 2 6 Network Power Switches You can fence GFS nodes with power switches and fencing agents available with Red Hat Cluster Suite For more information about fencing with network power switches refer to Red Hat Cluster Suite Configuring and Managing a Cluster 2 7 Console Access Make sure that you have cons...

Page 28: ...14 Chapter 2 System Requirements ...

Page 29: ...Red Hat GFS RPMs 3 1 Installing the Red Hat Cluster Suite Packages Red Hat Cluster Suite consists of the following RPM packages rgmanager Manages cluster services and resources system config cluster Contains the Cluster Configuration Tool used to graphically configure the cluster and the display of the current status of the nodes resources fencing agents and cluster services ccsd Contains the clus...

Page 30: ...s gnbd kernel header files Tip You can access the Red Hat Cluster Suite and Red Hat GFS products by using Red Hat Network to subscribe to and access the channels containing the Red Hat Cluster Suite and Red Hat GFS packages From the Red Hat Network channel you can manage entitlements for your cluster nodes and upgrade packages for each node within the Red Hat Network Web based interface For more i...

Page 31: ... option up2date skips kernels by default 2 Run up2date force installall channel label for Red Hat Cluster Suite The following example shows running the command for i386 RPMs up2date force installall rhel i386 as 4 cluster 3 Optional If you are installing Red Hat GFS run up2date force installall channel label for Red Hat GFS The following example shows running the command for i386 RPMs up2date forc...

Page 32: ...r Suite with DLM Table 3 2 For Red Hat Cluster Suite with GULM Table 3 3 For Red Hat GFS The tables contain the following information to assist you in determining which packages to install RPMs The names of the RPMs excluding revision numbers Inclusion The tables provide the following information about whether an RPM should be included in the installation Req Required RPM You must install the RPM ...

Page 33: ...t 3 With the information gathered in the previous steps proceed to install the RPMs using the procedures in Section 3 1 2 2 Installing Packages with the rpm Utility RPMs Inclusion Depends on Kernel Type Purpose ccs ver rel arch Req No The Cluster Configuration System cman ver rel arch Req No The Cluster Manager cman kernel ver rel arch cman kernel hugemem ver rel arch cman kernel smp ver rel arch ...

Page 34: ...rand Unified Lock Manager GULM available for this release and earlier versions of Red Hat GFS perl Net Telnet ver rel arch Req No Net Telnet Perl module rgmanager ver rel arch Opt No Open source HA resource group failover system config cluster ver rel arch Req No GUI to manage cluster configuration ipvsadm ver rel arch Opt No Utility to administer the Linux Virtual Server piranha ver rel arch Opt ...

Page 35: ...Cluster Suite with DLM RPMs Inclusion Depends on Kernel Type Purpose ccs ver rel arch Req No The Cluster Configuration System fence ver rel arch Req No The cluster I O fencing system gulm ver rel arch Req No The Grand Unified Lock Manager GULM available for this release and earlier versions of Red Hat GFS iddev ver rel arch Req No A library that identifies device contents magma ver rel arch Req No...

Page 36: ...brary gulm devel ver rel arch Dev No gulm libraries iddev devel ver rel arch Dev No iddev development libraries magma devel ver rel arch Dev No A cluster lock manager API abstraction library Table 3 2 RPM Selection Criteria Red Hat Cluster Suite with GULM RPMs Inclusion Depends on Kernel Type Purpose GFS ver rel arch Req No The Red Hat GFS module GFS kernel ver rel arch GFS kernel hugemem ver rel ...

Page 37: ...he rpm Utility You can use the rpm utility to install RPMs from CDs created with RHN ISOs The pro cedure consists of copying RPMs to a local computer removing the RPMs that are not needed for the installation copying the RPMs to the cluster nodes and installing them To install the RPMs follow these instructions 1 At a local computer one that is not part of the cluster make a temporary directory to...

Page 38: ...m RedHat RPMS rpm tmp RPMS Note If your local computer is running a version of Red Hat Enterprise Linux that is earlier than Red Hat Enterprise Linux 4 the path to the RPMs on the CD may be different For example on Red Hat Enterprise Linux 3 the path is mnt cdrom RedHat RPMS 7 Eject the CD from the CD ROM drive 8 Change to the temporary directory containing the copied RPM files For example cd tmp ...

Page 39: ...e scp command For example to copy the RPMs to node rhcs node 01 run the following command at the local computer scp tmp RPMS rpm root rhcs node 01 tmp node RPMS 12 At each node logged in as root change to the temporary directory created earlier tmp node RPMS and install the RPMs by running the rpm utility as follows cd tmp node RPMS rpm Uvh ...

Page 40: ...26 Chapter 3 Installing GFS ...

Page 41: ...es are synchronized It is recommended that you use the Network Time Protocol NTP software provided with your Red Hat Enterprise Linux distribution Note The system clocks in GFS nodes must be within a few minutes of each other to pre vent unnecessary inode time stamp updating Unnecessary inode time stamp updating severely impacts cluster performance 4 2 Initial Setup Tasks Initial GFS setup consist...

Page 42: ...terName FSName j NumberJournals BlockDevice 3 At each node mount the GFS file systems For more information about mounting a GFS file system refer to Section 5 2 Mounting a File System Command usage mount t gfs BlockDevice MountPoint mount t gfs o acl BlockDevice MountPoint The o acl mount option allows manipulating file ACLs If a file system is mounted without the o acl mount option users are allo...

Page 43: ...nfiguring atime Updates Section 5 10 Suspending Activity on a File System Section 5 11 Displaying Extended GFS Information and Statistics Section 5 12 Repairing a File System Section 5 13 Context Dependent Path Names 5 1 Making a File System Once a cluster is set up and running you can create a GFS file system with the gfs_mkfs command A file system is created on an activated CLVM volume The follo...

Page 44: ...Red Hat cluster for which the GFS file system is being created FSName the file system name can be 1 to 16 characters long and the name must be unique among all file systems in the cluster Number Specifies the number of journals to be created by the gfs_mkfs command One jour nal is required for each node that mounts the file system More journals than are needed can be specified at creation time to ...

Page 45: ...ize of the journal in megabytes Default journal size is 128 megabytes The minimum size is 32 megabytes j Number Specifies the number of journals to be created by the gfs_mkfs command One journal is required for each node that mounts the file system Note More journals than are needed can be specified at creation time to allow for future expansion p LockProtoName Specifies the name of the locking pr...

Page 46: ...st be unique among all file systems in the cluster V Displays command version information Table 5 1 Command Options gfs_mkfs 5 2 Mounting a File System Before you can mount a GFS file system the file system must exist refer to Section 5 1 Making a File System the volume where the file system exists must be activated and the supporting clustering and locking systems must be started refer to Chapter...

Page 47: ...fs1 5 2 3 Complete Usage mount t gfs BlockDevice MountPoint o option The o option consists of GFS specific options refer to Table 5 2 or acceptable stan dard Linux mount o options or a combination of both Multiple option parameters are separated by a comma and no spaces Note The mount command is a Linux system command In addition to using GFS specific op tions described in this section you can use...

Page 48: ...t file system By default using lock_nolock automatically turns on the localcaching and localflocks flags localcaching Caution This option should not be used when GFS file systems are shared Tells GFS that it is running as a local file system GFS can then turn on selected optimization capabilities that are not available when running in cluster mode The localcaching flag is automatically turned on b...

Page 49: ...ing information Use this option with care Note This option is turned on automatically if lock_nolock locking is specified however you can override it by using the ignore_local_fs option upgrade Upgrade the on disk format of the file system so that it can be used by newer versions of GFS Table 5 2 GFS Specific Mount Options 5 3 Unmounting a File System The GFS file system can be unmounted the same ...

Page 50: ...er Linux quota facilities cannot be used with GFS 5 4 1 Setting Quotas Two quota settings are available for each user ID UID or group ID GID a hard limit and a warn limit A hard limit is the amount of space that can be used The file system will not let the user or group use more than that amount of disk space A hard limit value of zero means that no limit is enforced A warn limit is usually a valu...

Page 51: ...actions apply 5 4 1 2 Examples This example sets the hard limit for user Bert to 1024 megabytes 1 gigabyte on file system gfs gfs_quota limit u Bert l 1024 f gfs This example sets the warn limit for group ID 21 to 50 kilobytes on file system gfs gfs_quota warn g 21 l 50 k f gfs 5 4 2 Displaying Quota Limits and Usage Quota limits and current usage can be displayed for a specific user or group usin...

Page 52: ...e system to which the actions apply 5 4 2 2 Command Output GFS quota information from the gfs_quota command is displayed as follows user User limit LimitSize warn WarnSize value Value group Group limit LimitSize warn WarnSize value Value The LimitSize WarnSize and Value numbers values are in units of megabytes by default Adding the k s or b flags to the command line change the units to kilobytes s...

Page 53: ...nizing Quotas GFS stores all quota information in its own internal file on disk A GFS node does not update this quota file for every file system write rather it updates the quota file once every 60 seconds This is necessary to avoid contention among nodes writing to the quota file which would cause a slowdown in performance As a user or group approaches their quota limit GFS dynamically reduces th...

Page 54: ...on to file system gfs gfs_quota sync f gfs This example changes the default time period between regular quota file updates to one hour 3600 seconds for file system gfs on a single node gfs_tool settune gfs quota_quantum 3600 5 4 4 Disabling Enabling Quota Enforcement Enforcement of quotas can be disabled for a file system without clearing the limits set for all users and groups Enforcement can als...

Page 55: ...quotas 5 4 4 3 Examples This example disables quota enforcement on file system gfs gfs_tool settune gfs quota_enforce 0 This example enables quota enforcement on file system gfs gfs_tool settune gfs quota_enforce 1 5 4 5 Disabling Enabling Quota Accounting By default quota accounting is enabled therefore GFS keeps track of disk usage for every user and group even when no quota limits have been set...

Page 56: ...tialized to account for all current disk usage for users and groups on the file system The quota file is initialized by running gfs_quota init f MountPoint Note Initializing the quota file requires scanning the entire file system and may take a long time 5 4 5 3 Examples This example disables quota accounting on file system gfs on a single node gfs_tool settune gfs quota_account 0 This example ena...

Page 57: ...rred and automatically start using the new space To verify that the changes were successful use the gfs_grow command with the T test and v verbose flags Running the command with those flags displays the current state of the mounted GFS file system 5 5 1 Usage gfs_grow MountPoint MountPoint Specifies the GFS file system to which the actions apply 5 5 2 Comments Before running the gfs_grow command B...

Page 58: ...o the disk and do not expand the file system V Displays command version information v Turns up the verbosity of messages Table 5 3 GFS specific Options Available While Expanding A File System 5 6 Adding Journals to a File System The gfs_jadd command is used to add journals to a GFS file system after the device where the file system resides has been expanded Running a gfs_jadd command on a GFS file...

Page 59: ...MountPoint command to display the volume used by the file system where journals will be added Expand the underlying cluster volume with LVM Refer to the LVM HOWTO at http www tldp org HOWTO LVM HOWTO index html for command usage with CLVM After running the gfs_jadd command run a gfs_jadd command with the T and v flags enabled to check that the new journals have been added to the file system 5 6 3 ...

Page 60: ...es To add journals of different sizes to the file system the gfs_jadd command must be run for each size journal The size specified is rounded down so that it is a multiple of the journal segment size that was specified when the file system was created j Number Specifies the number of new journals to be added by the gfs_jadd command The default value is 1 T Test Do all calculations but do not write...

Page 61: ...e is opened When a file is opened with O_DIRECT or when a GFS direct I O attribute is attached to a file all I O operations must be done in block size multiples of 512 bytes The memory being read from or written to must also be 512 byte aligned One of the following methods can be used to enable direct I O on a file O_DIRECT GFS file attribute GFS directory attribute 5 7 1 O_DIRECT If an applicatio...

Page 62: ...n be used to assign set a direct I O attribute flag inherit_directio to a GFS directory Enabling the inherit_directio flag on a directory causes all newly created regular files in that directory to automatically inherit the directio flag Also the inherit_directio flag is inherited by any new subdirectories created in the directory The inherit_directio flag can also be cleared 5 7 3 1 Usage Setting...

Page 63: ... faster than the time it takes to write the file data to the main file system Applications that rely on fsync to sync file data may see improved performance by us ing data journaling Data journaling can be enabled automatically for any GFS files created in a flagged directory and all its subdirectories Existing files with zero length can also have data journaling turned on or off Using the gfs_too...

Page 64: ...ctime The last time the inode status was changed mtime The last time the file or directory data was modified atime The last time the file or directory data was accessed If atime updates are enabled as they are by default on GFS and other Linux file systems then every time a file is read its inode needs to be updated Because few applications use the information provided by atime those updates can r...

Page 65: ... time based on the difference between its system time and the time recorded in the inode It is required that system clocks of all GFS nodes in a cluster be synchronized If a node s system time is out of synchronization by a significant fraction of the tunable parameter atime_quantum then atime updates are written more frequently Increasing the frequency of atime updates may cause performance degra...

Page 66: ...nt gfs1 are displayed gfs_tool gettune gfs1 In this example the atime update period is set to once a day 86 400 seconds for the GFS file system on mount point gfs1 gfs_tool settune gfs1 atime_quantum 86400 5 10 Suspending Activity on a File System You can suspend write activity to a file system by using the gfs_tool freeze command Suspending write activity allows hardware based device snapshots to...

Page 67: ...mand for displaying statistics space usage and extended status 5 11 1 Usage Displaying Statistics gfs_tool counters MountPoint The counters flag displays statistics about a file system If c is used the gfs_tool command continues to run displaying statistics once per second Displaying Space Usage gfs_tool df MountPoint The df flag displays a space usage summary of a given file system The informatio...

Page 68: ...orage subsystem failures When that type of corruption occurs you can recover the GFS file system by using the gfs_fsck command The gfs_fsck command must only be run on a file system that is unmounted from all nodes Note The gfs_fsck command has changed from previous releases of Red Hat GFS in the following ways You can no longer set the interactive mode with Ctrl C Pressing Ctrl C now can cels the...

Page 69: ...ir are automatically answered with yes gfs_fsck y dev vg01 lvol0 5 13 Context Dependent Path Names Context Dependent Path Names CDPNs allow symbolic links to be created that point to variable destination files or directories The variables are resolved to real files or directories each time an application follows the link The resolved value of the link depends on the node or user following the link...

Page 70: ...LinkName is followed the destination depends on the type of variable and the node or user doing the following Variable Description hostname This variable resolves to a real file or directory named with the hostname string produced by the output of the following command echo uname n mach This variable resolves to a real file or directory name with the machine type string produced by the output of t...

Page 71: ...To do this no actual log directory is created instead an hostname CDPN link is created with the name log Individual directories gfs n01 gfs n02 and gfs n03 are created that will be the actual directories used when each node references gfs log n01 cd gfs n01 mkdir n01 n02 n03 n01 ln s hostname log n01 ls l gfs lrwxrwxrwx 1 root root 9 Apr 25 14 04 log hostname drwxr xr x 2 root root 3864 Apr 25 14 ...

Page 72: ...58 Chapter 5 Managing GFS ...

Page 73: ...not use GNBD GNBD without multipath is available 6 1 GNBD Driver and Command Usage The Global Network Block Device GNBD driver allows a node to export its local storage as a GNBD over a network so that other nodes on the network can share the storage Client nodes importing the GNBD use it like any other block device Importing a GNBD on multiple clients forms a shared storage configuration through ...

Page 74: ...command is used to export it Note A server should not import the GNBDs to use them as a client would If a server exports the devices uncached they may also be used by ccsd and gfs 6 1 1 1 Usage gnbd_export d pathname e gnbdname c pathname Specifies a storage device to export gnbdname Specifies an arbitrary name selected for the GNBD It is used as the device name on GNBD clients This name must be u...

Page 75: ...and its options refer to the gnbd_export man page 6 1 1 2 Examples This example exports device dev sdb2 as GNBD delta with cache enabled gnbd_export d dev sdb2 e delta c 6 1 2 Importing a GNBD on a Client The gnbd ko kernel module must be loaded on a node before it can import GNBDs When GNBDs are imported device nodes are created for them in dev gnbd with the name assigned when they were exported ...

Page 76: ...er node will fail 1 A GNBD server node must have local access to all storage devices needed to mount a GFS file system The GNBD server node must not import gnbd_import command other GNBD devices to run the file system 2 The GNBD server must export all the GNBDs in uncached mode and it must export the raw devices not logical volume devices 3 GFS must be run on top of a logical volume device not raw...

Page 77: ... GFS 6 1 However after the upgrade to GFS 6 1 you can change lock managers Refer to Red Hat Cluster Suite Configuring and Managing a Cluster for information about changing lock managers The following procedure demonstrates upgrading to Red Hat GFS 6 1 from a GFS 6 0 or GFS 5 2 1 configuration with an example pool configuration for a pool volume named argus refer to Example A 1 poolname argus subpo...

Page 78: ...mmand and start clvmd as shown in the following example ccsd lock_gulmd c Warning You didn t specify a cluster name before use_ccs Letting ccsd choose which cluster we belong to clvmd Note Ignore the warning message following the lock_gulmd c command Because the cluster name is already included in the converted configuration file there is no need to specify a cluster name when issuing the lock_gul...

Page 79: ...nly needs to be done once on the first mount of the GFS file system Note If static minor numbers were used on pool volumes and the GFS 6 1 nodes are using LVM2 for other purposes root file system there may be problems activating the pool volumes under GFS 6 1 That is because of static minor conflicts Refer to the following Bugzilla report for more information https bugzilla redhat com bugzilla sho...

Page 80: ...66 Appendix A Upgrading GFS ...

Page 81: ...ibute 48 file attribute 47 O_DIRECT 47 displaying extended GFS information and statistics 53 F features new and changed 1 feedback v fencing system requirements 12 fibre channel network requirements table 12 fibre channel storage device requirements table 12 fibre channel storage devices system requirements 12 fibre channel storage network system requirements 12 file system adding journals 44 atim...

Page 82: ...command usage 59 exporting from a server 60 importing on a client 61 using 59 using GFS on a GNBD server node 62 growing a file system 43 I initial tasks setup initial 27 installing system software 25 introduction i audience i references vi M making a file system 29 managing GFS 29 mount table 34 mounting a file system 32 N network power switches system requirements 13 O overview 1 configuration b...

Page 83: ...activity on a file system 52 system requirements 11 console access 13 fencing 12 fibre channel storage devices 12 fibre channel storage network 12 network power switches 13 platform 11 Red Hat Cluster Suite 11 T tables CDPN variable values 56 fibre channel network requirements 12 fibre channel storage device requirements 12 GFS software subsystem components 7 GFS specific options for adding journa...

Page 84: ......

Page 85: ...f the Red Hat Enterprise Linux Introduc tion to System Administration Primary Writer Maintainer of the Release Notes Contribut ing Writer to the Red Hat Enterprise Linux Installation Guide for x86 Itanium AMD64 and Intel Extended Memory 64 Technology Intel EM64T Karsten Wade Primary Writer Maintainer of the Red Hat SELinux Guide Contributing Writer to the Red Hat Enterprise Linux System Administra...

Page 86: ...itza Louze Spanish translations Noriko Mizumoto Japanese translations Ankitkumar Rameshchandra Patel Gujarati translations Rajesh Ranjan Hindi translations Nadine Richter German translations Audrey Simons French translations Francesco Valente Italian translations Sarah Wang Simplified Chinese translations Ben Hung Pin Wu Traditional Chinese translations Tongjie Tony Fu Simplified Chinese Translati...

Reviews: