LoginSignup
2
1

More than 5 years have passed since last update.

Fedora24 Serverのroot partitionを拡張する

Last updated at Posted at 2016-08-07

Fedora24 Serverをインストールしたら

何故か論理ボリュームが最大まで割り当てられていなかった。そういう設定になったのかな?

論理ボリュームの確認の仕方

# lvdisplay
コマンドで現在の割り当て状況を確認
# pvscan
で使えるLVMの容量を確認

論理ボリューム(lv)の拡張

面倒なので/に前振り。
# lvextend -l +100%FREE /dev/fedora/root
これでlvmが管理している残りのボリュームが全部/dev/fedora/rootに割り当てられる。
# xfs_growfs /dev/mapper/fedora-root
これをやらないとファイルシステムが新たに拡張したボリュームを認識しない。
ext3, ext4なファイルシステムの場合はresize2fsコマンドで同様

2
1
0

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
2
1