Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

1.2.2. GFS 및 GFS2의 기타 다른 차이점

This section summarizes the additional differences in GFS and GFS2 administration that are not described in 1.2.1절. “GFS2 명령어 ”.

1.2.2.1. 문맥 의존적 (Context-Dependent) 경로 이름

GFS2 file systems do not provide support for context-dependent path names, which allow you to create symbolic links that point to variable destination files or directories. For this functionality in GFS2, you can use the bind option of the mount command. For information on managing pathnames in GFS2, see 3.11절. “바인드 마운트 및 문맥 의존적 경로 이름 ”.

1.2.2.2. gfs2.ko 모듈

GFS 파일 시스템을 구현하는 커널 모듈은 gfs.ko입니다. GFS2 파일 시스템을 구현하는 커널 모듈은 gfs2.ko입니다.

1.2.2.3. GFS2에서 쿼터 강제 활성화

In GFS2 file systems, quota enforcement is disabled by default and must be explicitly enabled. To enable and disable quotas for GFS2 file systems, you use the quota=on|off|account option for the mount command. For information on enabling and disabling quota enforcement, see 3.4.4절. “쿼터 강제 활성화/비활성화 ”.

1.2.2.4. 데이터 저널링

GFS2 file systems support the use of the chattr command to set and clear the j flag on a file or directory. Setting the +j flag on a file enables data journaling on that file. Setting the +j flag on a directory means "inherit jdata", which indicates that all files and directories subsequently created in that directory are journaled. Using the chattr command is the preferred way to enable and disable data journaling on a file.

1.2.2.5. 동적으로 저널 추가

In GFS2 file systems, journals are plain (though hidden) files instead of embedded metadata. This means that journals can be dynamically added as additional servers mount a filesystem. For information on adding journals to a GFS2 file system, see 3.6절. “파일 시스템에 저널 추가 ”.

1.2.2.6. atime_quantum 매개 변수 삭제

GFS2 파일 시스템은 atime_quantum 조정 가능 매개 변수를 지원하지 않으며, 이는 얼마나 자주 atime 업데이트를 실행할 것인지를 지정하기 위해 GFS 파일 시스템에 의해 사용될 수 있습니다. 여기서 GFS2는 relatimenoatime 마운트 옵션을 지원합니다. GFS에서 atime_quantum 매개 변수를 설정하기 위해 relatime 마운트 옵션을 사용하는 것이 좋습니다.

1.2.2.7. 마운트 명령의 data= 옵션

GFS2 파일 시스템을 마운트할 경우, mount 명령의 data=ordered 또는 data=writeback 옵션을 지정할 수 있습니다. data=ordered가 설정되면, 트랜젝션에 의해 수정된 사용자 데이터는 트랜젝션이 디스크로 커밋되기 이전에 디스크에서 삭제됩니다. 이는 크래시 후 파일에 있는 초기화되지 않은 블록을 사용자가 보지 못하게 합니다. data=writeback이 설정되면, 사용자 데이터는 언제든지 디스크에 작성될 수 있습니다. 이는 ordered 모드에서 처럼 동일한 일관성이 보장되지 않지만, 일부 작업 부하에 대해 좀 더 빠르게 처리될 수 있습니다. 기본값은 ordered 모드입니다.

1.2.2.8. gfs2_tool 명령

gfs2_tool 명령은 GFS에 대한 gfs_tool 명령이 지원하는 것 이외에 GFS2에 대한 다른 옵션 모음을 지원합니다.
  • gfs2_tool은 파일 시스템에 있는 저널 수를 포함하여 현재 설정된 저널에 관한 정보를 출력하는 journals 매개 변수를 지원합니다.
  • gfs2_tool 명령은 GFS 통계를 보기위해 gfs_tool 명령이 사용하는 counters 플래그를 지원하지 않습니다.
  • The gfs2_tool command does not support the inherit_jdata flag. To flag a directory as "inherit jdata", you can set the jdata flag on the directory or you can use the chattr command to set the +j flag on the directory. Using the chattr command is the preferred way to enable and disable data journaling on a file.

1.2.2.9. gfs2_edit 명령

gfs2_edit 명령은 GFS에 대해 gfs_edit 명령이 지원하는 것 이외에 GFS2에 대해 다른 옵션 모음을 지원합니다.