ユーザ用ツール

サイト用ツール


サイドバー

このページの翻訳:



最近の更新



Tag Cloud

01_linux:99_その他:19_vgextend

19 vgextend

VGを増やす

# pvcreate --metadatasize 50M /dev/xvda3 
  Physical volume "/dev/xvda3" successfully created

# pvs
  PV         VG         Fmt  Attr PSize  PFree 
  /dev/xvda2 VolGroup00 lvm2 a--   4.88g     0 
  /dev/xvda3            lvm2 ---  45.00g 45.00g

# vgextend VolGroup00 /dev/xvda3 
  Volume group "VolGroup00" successfully extended

# vgs
  VG         #PV #LV #SN Attr   VSize  VFree 
  VolGroup00   2   2   0 wz--n- 49.84g 44.97g



# lvs
  LV       VG         Attr       LSize Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  LogVol00 VolGroup00 -wi-ao---- 2.88g                                                    
  LogVol01 VolGroup00 -wi-ao---- 2.00g 

# lvextend -l +100%FREE /dev/VolGroup00/LogVol00 
  Size of logical volume VolGroup00/LogVol00 changed from 2.88 GiB (92 extents) to 47.84 GiB (1531 extents).
  Logical volume LogVol00 successfully resized

# lvs
  LV       VG         Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  LogVol00 VolGroup00 -wi-ao---- 47.84g                                                    
  LogVol01 VolGroup00 -wi-ao----  2.00g  


# resize2fs  /dev/VolGroup00/LogVol00 
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/VolGroup00/LogVol00 is mounted on /; on-line resizing required
old desc_blocks = 1, new_desc_blocks = 3
Performing an on-line resize of /dev/VolGroup00/LogVol00 to 12541952 (4k) blocks.
The filesystem on /dev/VolGroup00/LogVol00 is now 12541952 blocks long.
01_linux/99_その他/19_vgextend.txt · 最終更新: 2020/01/14 18:33 by matsui