0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[Linux][command] XFSファイルシステム管理

Last updated at Posted at 2025-02-23

XFSファイルシステム操作コマンド

コマンド 英語の由来 説明
mkfs.xfs make filesystem XFSファイルシステムを作成する
xfs_check check XFSファイルシステムの整合性をチェックする
xfs_repair repair XFSファイルシステムのエラーを修復する
xfs_growfs grow filesystem マウントされたXFSファイルシステムのサイズを拡張する
xfs_admin administer XFSファイルシステムの管理情報を変更する
xfs_quota quota XFSのディスククォータを管理する

使用例

XFSファイルシステムを作成

# mkfs.xfs /dev/sdb1
  • /dev/sdb1 にXFSファイルシステムを作成

XFSファイルシステムの整合性をチェック

# xfs_check /dev/sdb1
  • /dev/sdb1 のXFSファイルシステムをチェック

XFSファイルシステムのエラーを修復

# xfs_repair /dev/sdb1
  • /dev/sdb1 のXFSファイルシステムのエラーを修復

XFSファイルシステムのサイズを拡張

# xfs_growfs /mnt/data
  • /mnt/data のXFSファイルシステムのサイズを拡張

XFSファイルシステムのラベルを変更

# xfs_admin -l "NewLabel" /dev/sdb1
  • /dev/sdb1 のラベルを "NewLabel" に変更

Ping-t

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?