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. Контексто зависимые имена путей

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.ko — модуль ядра, отвечающий за реализацию файловой системы GFS. gfs2.ko — модуль ядра, отвечающий за реализацию GFS2.

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, который можно использовать в GFS для определения частоты обновлений atime. Вместо него GFS2 использует опции монтирования relatime и noatime. В частности, указание опции relatime аналогично установке параметра atime_quantum в GFS.

1.2.2.7. Параметр data= команды mount

При монтировании файловых систем GFS2 можно использовать параметры data=ordered и data=writeback команды mount. data=ordered приведет к переносу измененных в ходе транзакции данных пользователя на диск, прежде чем транзакция будет сохранена на диск. Это позволит избежать появления в файле неинициализированных блоков в случае сбоя. Если указать data=writeback, то данные пользователя будут записываться на диск в любое время, что позволит ускорить скорость работы в некоторых случаях, не не гарантирует постоянства. По умолчанию используется режим ordered.

1.2.2.8. Команда gfs2_tool

gfs2_tool для GFS2 поддерживает набор параметров, отличный от набора, поддерживаемого gfs_tool для GFS, в том числе:
  • gfs2_tool поддерживает параметр journals, который выводит информацию о настроенном журнале и общее число журналов в системе.
  • gfs2_tool не поддерживает флаг counters, который gfs_tool использует для отображения статистики GFS.
  • 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 для GFS2 поддерживает набор параметров, отличный от набора, поддерживаемого командой gfs_edit для GFS.