5.2. cephfs-top ユーティリティーの使用
Ceph File System (CephFS) は、リアルタイムに Ceph File Systems でメトリックを表示する top
のようなユーティリティーを提供します。cephfs-top
ユーティリティーは、Ceph Manager の stats
モジュールを使用してクライアントパフォーマンスメトリックを取得して表示する curses
ベースの Python スクリプトです。
現在、cephfs-top
ユーティリティーは約 10,000 のクライアントをサポートしています。
現在、Red Hat Enterprise Linux 8 カーネルで、パフォーマンス統計がすべて利用できるわけではありません。cephfs-top
は Red Hat Enterprise Linux 8 以降でサポートされており、Red Hat Enterprise Linux の標準ターミナルの 1 つを使用します。
cephfs-top
ユーティリティーと互換性のある Python の最小バージョンは 3.6.0 です。
前提条件
- 正常かつ稼働中の Red Hat Ceph Storage クラスター
- Ceph File System のデプロイメント
- Ceph クライアントノードへのルートレベルのアクセスがある。
-
cephfs-top
パッケージのインストール
手順
Red Hat Ceph Storage 5 ツールリポジトリーがまだ有効になっていない場合は、有効にします。
Red Hat Enterprise Linux 8
[root@client ~]# subscription-manager repos --enable=rhceph-5-tools-for-rhel-8-x86_64-rpms
Red Hat Enterprise Linux 9
[root@client ~]# subscription-manager repos --enable=rhceph-5-tools-for-rhel-9-x86_64-rpms
cephfs-top
パッケージをインストールします。例:
[root@client ~]# dnf install cephfs-top
Ceph Manager
stats
プラグインを有効にします。例
[root@client ~]# ceph mgr module enable stats
Ceph ユーザー
client.fstop
を作成します。例:
[root@client ~]# ceph auth get-or-create client.fstop mon 'allow r' mds 'allow r' osd 'allow r' mgr 'allow r' > /etc/ceph/ceph.client.fstop.keyring
注記必要に応じて、
--id
引数を使用して、client.fstop
以外の別の Ceph ユーザーを指定します。cephfs-top
ユーティリティーを起動します。例
[root@client ~]# cephfs-top cephfs-top - Thu Jun 15 16:27:14 2023 All Filesystem Info Total Client(s): 4 - 3 FUSE, 1 kclient, 0 libcephfs COMMANDS: m - select a filesystem | s - sort menu | l - limit number of clients | r -reset to default | q - quit client_id mount_root chit(%) dlease(%) ofiles oicaps oinodes rtio(MB) raio(MB) rsp(ms) wtio(ms) waio(MB) wsp(MB/s) rlatavg(ms) rlatsd(ms) wlatavg(ms) wlatsd(ms) mlatavg(ms) mlatsd(ms) mount_point@host/addr Filesystem: cephfs1 - 2 clients(s) 4482 / 100.0 0.0 0 1 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 27.36 0.0 N/A@example/192.168.1.4 4488 / 100.0 0.0 0 1 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.34 0.0 /mnt/cephfs2@example/192.168.1.4 Filesystem: cephfs2 - 2 clients(s) 4494 / 100.0 0.0 0 1 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.37 0.0 /mnt/cephfs3@example/192.168.1.4 4500 / 100.0 0.0 0 1 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.29 0.0 /mnt/cephfs4@example/192.168.1.4
注記デフォルトでは、
cephfs-top
はストレージクラスター名 ceph に接続します。デフォルト以外のストレージクラスター名を使用するには、cephfs-top
ユーティリティーで--cluster NAME
オプションを使用できます。