Podstrony
|
[ Pobierz całość w formacie PDF ]
hang. Ensure that fencing is configured correctly. The GFS2 file system may have withdrawn. Check through the messages logs for the word withdraw and check for any messages and calltraces from GFS2 indicating that the file system has been withdrawn. A withdraw is indicative of file system corruption, a storage failure, or a bug. Unmount the file system, update the gfs2-utils package, and execute the fsck command on the file system to return it to service. Open a support ticket with Red Hat Support. Inform them you experienced a GFS2 withdraw and provide sosreports with logs. For information on the GFS2 withdraw function, see Section 4.14, The GFS2 Withdraw Function . This error may be indicative of a locking problem or bug. Gather data during one of these occurences and open a support ticket with Red Hat Support, as described in Section 5.2, GFS2 File System 58 Chapter 5. Diagnosing and Correcting Problems with GFS2 File Systems Hangs and Requires Reboot of One Node . 5.4. GFS2 File System Does Not Mount on Newly-Added Cluster Node If you add a new node to a cluster and you find that you cannot mount your GFS2 file system on that node, you may have fewer journals on the GFS2 file system than you have nodes attempting to access the GFS2 file system. You must have one journal per GFS2 host you intend to mount the file system on (with the exception of GFS2 file systems mounted with the spectator mount option set, since these do not require a journal). You can add journals to a GFS2 file system with the gfs2_jadd command, as described in Section 4.7, Adding Journals to a File System . 5.5. Space Indicated as Used in Empty File System If you have an empty GFS2 file system, the df command will show that there is space being taken up. This is because GFS2 file system journals consume space (number of journals * journal size) on disk. If you created a GFS2 file system with a large number of journals or specified a large journal size then you will be see (number of journals * journal size) as already in use when you execute the df. Even if you did not specify a large number of journals or large journals, small GFS2 file systems (in the 1GB or less range) will show a large amount of space as being in use with the default GFS2 journal size. 59 Red Hat Enterprise Linux 6 Global File System 2 GFS2 Quota Management with the gfs2_quota Command As of the Red Hat Enterprise Linux 6.1 release, GFS2 supports the standard Linux quota facilities. In order to use this you will need to install the quota RPM. This is the preferred way to administer quotas on GFS2 and should be used for all new deployments of GFS2 using quotas. For information on using the standard Linux quota facilities, see Section 4.5, GFS2 Quota Management . For earlier releases of Red Hat Enterprise Linux, GFS2 required the gfs2_quota command to manage quotas. This appendix documents the use of the gfs2_quota command for managing GFS2 file system quotas. A.1. Setting Quotas with the gfs2_quota command Two quota settings are available for each user ID (UID) or group ID (GID): a hard limit and a soft 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 soft limit is usually a value less than the hard limit. The file system will notify the user or group when the soft limit is reached to warn them of the amount of space they are using. A soft limit value of zero means that no limit is enforced. You can set limits using the gfs2_quota command. The command only needs to be run on a single node where GFS2 is mounted. By default, quota enforcement is not set on GFS2 file systems. To enable quota accounting, use the quota= of the mount command when mounting the GFS2 file system, as described in Section A.4, Enabling/Disabling Quota Enforcement . Usage Setting Quotas, Hard Limit gfs2_quota limit -u User -l Size -f MountPoint gfs2_quota limit -g Group -l Size -f MountPoint Setting Quotas, Warn Limit gfs2_quota warn -u User -l Size -f MountPoint gfs2_quota warn -g Group -l Size -f MountPoint User A user ID to limit or warn. It can be either a user name from the password file or the UID number. Group A group ID to limit or warn. It can be either a group name from the group file or the GID number. Size Specifies the new value to limit or warn. By default, the value is in units of megabytes. The 60 Examples additional -k, -s and -b flags change the units to kilobytes, sectors, and file system blocks, respectively. MountPoint Specifies the GFS2 file system to which the actions apply. Examples This example sets the hard limit for user Bert to 1024 megabytes (1 gigabyte) on file system /mygfs2. # gfs2_quota limit -u Bert -l 1024 -f /mygfs2 This example sets the soft limit for group ID 21 to 50 kilobytes on file system /mygfs2. # gfs2_quota warn -g 21 -l 50 -k -f /mygfs2 A.2. Displaying Quota Limits and Usage with the gfs2_quota Command Quota limits and current usage can be displayed for a specific user or group using the gfs2_quota get command. The entire contents of the quota file can also be displayed using the gfs2_quota list command, in which case all IDs with a non-zero hard limit, soft limit, or value are listed. Usage Displaying Quota Limits for a User gfs2_quota get -u User -f MountPoint Displaying Quota Limits for a Group gfs2_quota get -g Group -f MountPoint Displaying Entire Quota File gfs2_quota list -f MountPoint User A user ID to display information about a specific user. It can be either a user name from the password file or the UID number. Group A group ID to display information about a specific group. It can be either a group name from the group file or the GID number. MountPoint Specifies the GFS2 file system to which the actions apply. 61 Red Hat Enterprise Linux 6 Global File System 2 Command Output GFS2 quota information from the gfs2_quota command is displayed as follows: user User: limit:LimitSize warn:WarnSize value:Value group Group: limit:LimitSize warn:WarnSize value:Value
[ Pobierz całość w formacie PDF ]
zanotowane.pldoc.pisz.plpdf.pisz.plkskarol.keep.pl
|