검색

이 콘텐츠는 선택한 언어로 제공되지 않습니다.

1.5. Replacement Functions for gfs2_tool in Red Hat Enterprise Linux 7

download PDF
The gfs2_tool command is not supported in Red Hat Enterprise Linux 7. Table 1.2, “gfs2_tool Equivalent Functions in Red Hat Enterprise Linux 7” summarizes the equivalent functionality for the gfs2_tool command options in Red Hat Enterprise Linux 7.
Table 1.2. gfs2_tool Equivalent Functions in Red Hat Enterprise Linux 7
gfs2_tool optionReplacement Functionality
clearflag Flag File1 File2 ...
Clear an attribute flag on a file
Linux standard chattr command
freeze mountpoint
Freeze (quiesce) a GFS2 file system
Linux standard fsfreeze -f mountpoint command
gettune mountpoint
Print out current values of tuning parameters
For many cases, has been replaced by mount (get mount options). Other tuning parameters may be fetched from the respective sysfs files: /sys/fs/gfs2/dm-3/tune/*.
journals mountpoint
Print out information on the journals in a GFS2 file system
Information about journals can be fetched with gfs2_edit -p journals device. You can run this command when the file system is mounted.
# gfs2_edit -p journals /dev/clus_vg/lv1 
Block #Journal Status:       of 2620416 (0x27fc00) 
-------------------- Journal List --------------------
journal0: 0x14    128MB clean.
journal1: 0x805b  128MB clean.
------------------------------------------------------
lockdump mountpoint
Print out information about the locks this machine holds for a given file system
The GFS2 lock information may be obtained by mounting debugfs, then executing a command like such as the following:
# cat /sys/kernel/debug/gfs2/clustername:file_system_name/glocks
sb device proto [newvalue]
View (and possibly replace) the locking protocol
To fetch the current value of the locking protocol, you can use the following command:
# tunegfs2 -l device | grep protocol
To replace the current value of the locking protocol, you can use the following command:
# tunegfs2 -o lockproto=lock_dlm device
sb device table [newvalue]
View (and possibly replace) the name of the locking table
To fetch the current value of the name of the locking table, you can use the following command:
# tunegfs2 -l device | grep table
To replace the current value of the name of the locking table, you can use the following command:
# tunegfs2 -o locktable=file_system_name device
sb device ondisk [newvalue]
View (and possibly replace) the ondisk format number
Do not perform this task.
sb device multihost [newvalue]
View (and possibly replace) the multihost format number
Do not perform this task.
sb device uuid [newvalue]
View (and possibly replace) the uuid value
To fetch the current value of the uuid , you can use the following command:
# tunegfs2 -l device | grep UUID
To replace the current value of the uuid, you can use the following command:
# tunegfs2 -U uuid device
sb device all
Print out the GFS2 superblock
# tunegfs2 -l device
setflag Flag File1 File2 ...
Sets an attribute flag on a file
Linux standard chattr command
settune mountpoint parameter newvalue
Set the value of a tuning parameter
For many cases, has been replaced by mount (-o remount with options). Other tuning parameters may be set by the respective sysfs files: /sys/fs/gfs2/cluster_name:file_system_name/tune/*
unfreeze mountpoint
Unfreeze a GFS2 file system
Linux standard fsfreeze -unfreeze mountpoint command
version
Displays version of the gfs2_tool command
N/A
withdraw mountpoint
Cause GFS2 to abnormally shutdown a given file system
# echo 1 > /sys/fs/gfs2/cluster_name:file_system_name/tune/withdraw
Red Hat logoGithubRedditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

© 2024 Red Hat, Inc.