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?

More than 5 years have passed since last update.

LVM パーティション切らずにデバイスごとVolume Groupに追加

Last updated at Posted at 2019-01-17

備忘メモです。
とりあえずLVの容量拡張できればなんでもいいとき用。

追加するデバイス名は/dev/sdb

command
# df -h
# fdisk -l

# pvdisplay
# pvcreate /dev/sdb
# pvdisplay

# vgdisplay
# vgextend <VG NAME> /dev/sdb
# vgdisplay
# pvdisplay

# lvdisplay
# lvextend -l +100%FREE /dev/mapper/<追加対象LVディスク>
# lvdisplay

# df -h

(CentOS 6)
# resize2fs /dev/mapper/<追加対象LVディスク>

(CentOS 7 /dev/centos/からもディスク指定可能)
# xfs_growfs /dev/mapper/<追加対象LVディスク>

# df -h
0
0
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
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?