ユーザ用ツール

サイト用ツール


サイドバー



最近の更新



Tag Cloud

タグ#
6
10
1
3
1
2
17
7
1
1
6
12
4
1
2
202
1
6
2
7
14
5
1
27
3
3
1
6
1
1
41
1
3
3
1
1
1
1
1
1
24
46
7
9
10
5
10
3
3
2
8
2
2
6
5
1
1
4
9
4
3
3
2
1
8
2
4
1
5
27
2
12
2
3
1
1
2
2
1
1
1
4
3
2
4
2
2
1
1
2
1
2
1
2
1
26
2
1
2
2
2
1
1
2
3
13
5
8
1
1
2
12
1
5
1
2
7
1
1
1
1
1
8
1
5
2
1
1
1
3
3
10
1
2
1
1
7
3
1
10
1
1
4
1
2
1
2
7
2
1
3
1
1
3
1
2
1
2
2
2
1
2
3
1
2
3
4
1
3
1
3
3
2
1
1
7
1
3
3
1
1
1
1
5
1
32
2
1
2
1
2
2
3
1
1
1
3
1
2
1
1
1
3
1
1
1
2
4
2
1
1
1
3
1
2
4
2
1
2
1
1
1
1
2
1
1
1
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

Yesterday:185 Today:177 Total:00362