linux-handling-note:disable-ext4-journal
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
linux-handling-note:disable-ext4-journal [2013/08/20 00:35] – admin | linux-handling-note:disable-ext4-journal [2013/08/20 00:50] (現在) – [ジャーナルが無効化を確認] admin | ||
---|---|---|---|
行 14: | 行 14: | ||
===== 操作手順 ===== | ===== 操作手順 ===== | ||
+ | * 操作対象のパーティションは **/ | ||
- | < | + | ==== ジャーナルが有効かを確認 ==== |
- | ubuntu@ubuntu: | + | 以下のコマンドの実行結果に、**has_journal** が含まれていれば、ジャーナルが有効になっている。 |
+ | |||
+ | < | ||
+ | $ sudo debugfs -R features /dev/sdd1 | ||
debugfs 1.42.5 (29-Jul-2012) | debugfs 1.42.5 (29-Jul-2012) | ||
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize | Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize | ||
+ | </ | ||
- | ubuntu@ubuntu:~$ sudo tune2fs -o journal_data_writeback /dev/sdd1 | + | ==== ジャーナルを無効にする ==== |
+ | |||
+ | マウントのデフォルトオプションを設定する。このオプションは、 fstab や mount に指定するオプションで上書きが可能。 | ||
+ | |||
+ | * [[http:// | ||
+ | |||
+ | < | ||
+ | $ sudo tune2fs -o journal_data_writeback /dev/sdd1 | ||
tune2fs 1.42.5 (29-Jul-2012) | tune2fs 1.42.5 (29-Jul-2012) | ||
- | + | </ | |
- | ubuntu@ubuntu: | + | |
+ | ファイルシステムのジャーナルを無効にする。 | ||
+ | |||
+ | < | ||
+ | $ sudo tune2fs -O ^has_journal /dev/sdd1 | ||
tune2fs 1.42.5 (29-Jul-2012) | tune2fs 1.42.5 (29-Jul-2012) | ||
+ | </ | ||
- | ubuntu@ubuntu: | + | ==== ファイルシステムのチェック ==== |
+ | |||
+ | 設定後にファイルシステムに問題がないかチェックする。 | ||
+ | |||
+ | < | ||
+ | $ sudo e2fsck -f /dev/sdd1 | ||
e2fsck 1.42.5 (29-Jul-2012) | e2fsck 1.42.5 (29-Jul-2012) | ||
Pass 1: Checking inodes, blocks, and sizes | Pass 1: Checking inodes, blocks, and sizes | ||
行 34: | 行 56: | ||
Pass 4: Checking reference counts | Pass 4: Checking reference counts | ||
Pass 5: Checking group summary information | Pass 5: Checking group summary information | ||
- | wrt: 148608/ | + | foo: 148608/ |
- | ubuntu@ubuntu: | + | </ |
+ | ==== ジャーナルが無効化を確認 ==== | ||
- | ubuntu@ubuntu: | + | **has_journal** の記述が消えていることを確認。 |
+ | |||
+ | < | ||
+ | $ sudo debugfs -R features /dev/sdd1 | ||
debugfs 1.42.5 (29-Jul-2012) | debugfs 1.42.5 (29-Jul-2012) | ||
Filesystem features: ext_attr resize_inode dir_index filetype extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize | Filesystem features: ext_attr resize_inode dir_index filetype extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize | ||
+ | </ | ||
+ | |||
- | </ |
linux-handling-note/disable-ext4-journal.1376926521.txt.gz · 最終更新: 2013/08/20 00:35 by admin