ソス_ソスソスソス{ソスソスソスソスソス[ソスソスソスTソスCソスYソスkソスソス

ソスナ終ソスXソスVソスソスソスF 2017.11.25

ソスソスソスTソスv

ソス_ソスソスソス{ソスソスソスソスソス[ソスソスソスTソスCソスYソスソスソスkソスソスソスソスソスソスB
ソスソスソスuソスkソスソスソスソス_ソスソスソス{ソスソスソスソスソス[ソスソスソスTソスCソスYソスソスソスgソスpソスソスソスTソスCソスYソスvソスナゑソスソス驍アソスソス


ソスyLVMソスTソスvソスz


ソスyソス_ソスソスソス{ソスソスソスソスソス[ソスソスソスkソスソスソスvソスフ】
ソスtソス@ソスCソスソスソスVソスXソスeソスソスソスTソスCソスYソスkソスソス
ソスソス
LVソスTソスCソスYソスkソスソス



ソスソスLVソスkソスソスソスソスソスソスソス[ソスgソスfソスBソスソスソスNソスgソスソス

ソスソスソス_ソスソスソス{ソスソスソスソスソス[ソスソスソスソスソスkソスソスソスソスソスソスノは該ソスソスソス_ソスソスソス{ソスソスソスソスソス[ソスソスソスソスソスAソスソスソス}ソスEソスソスソスgソスソスソスネゑソスソスソスホなゑソスネゑソスソスソスソスAソスYソスソスソス_ソスソスソス{ソスソスソスソスソス[ソスソスソスソス/(ソスソスソス[ソスgソスfソスBソスソスソスNソスgソスソス)ソスソスソス}ソスEソスソスソスgソスソスソスソストゑソスソスソス鼾ソスAソスVソスXソスeソスソスソスメ難ソスソスソスソスソス/(ソスソスソス[ソスgソスfソスBソスソスソスNソスgソスソス)ソスヘアソスソスソス}ソスEソスソスソスgソスナゑソスソスネゑソスソスソスソス゚、ソスソスソスXソスLソスソスソス[ソスソスソス[ソスhソスナ搾ソスニゑソスソスsソスソス
[root@centos ~]# df -hソス@ソスソスソス@ソス}ソスEソスソスソスgソス況照会ソス
Filesystem          ソスTソスCソスY  ソスgソスp  ソスcソスソス ソスgソスp% ソス}ソスEソスソスソスgソスハ置
/dev/mapper/VolGroup00-LogVol00
                      3.3G  1.6G  1.6G  52% /ソス@ソスソスソス@ソスkソスソスソスホ擾ソスLV
/dev/sda1              99M   24M   71M  25% /boot
tmpfs                 125M     0  125M   0% /dev/shm

[root@centos ~]# lvdisplay /dev/VolGroup00/LogVol00ソス@ソスソスソス@ソスkソスソスソスホ擾ソスLVソスニ会ソス
  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol00
  VG Name                VolGroup00
  LV UUID                H37kZ2-u6pm-mwul-k7Wr-MBfg-Mh3T-4sOg8M
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                3.38 GBソス@ソスソスソス@ソスkソスソスソスOLVソスTソスCソスY
  Current LE             108
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0

ソスCソスソスソスXソスgソス[ソスソスソスfソスBソスXソスNソスソスソスfソスBソスXソスNソスhソスソスソスCソスuソスノセソスbソスgソスソスソストシソスXソスeソスソスソスト起ソスソス


boot: linux rescueソス@ソスソスソス@ソスソスソスXソスLソスソスソス[ソスソスソス[ソスhソスナ起ソスソス


Choose a LanguageソスソスEnglishソスフまゑソスOK


Keyboard Typeソスソスjp106ソスソスIソスソスソスソスソスソスOK


Setup NetworkingソスソスNo


RescueソスソスSkip

sh-3.2# lvm vgchange -a yソス@ソスソスソス@VGソスソスLソスソスソスノゑソスソスソス

sh-3.2# fsck.ext3 -f /dev/VolGroup00/LogVol00ソス@ソスソスソス@ソスkソスソスソスホ擾ソスLVソスtソス@ソスCソスソスソスVソスXソスeソスソスソスソスソスソスソスソスソス`ソスFソスbソスN
ソスソスソスtソス@ソスCソスソスソスVソスXソスeソスソスソスソスソスソスソスソスソス`ソスFソスbソスNソスソスソスsソスソスネゑソスソスニ趣ソスソスソスresize2fsソスソスソスナゑソスソスネゑソス

sh-3.2# resize2fs /dev/VolGroup00/LogVol00 2Gソス@ソスソスソス@ソスkソスソスソスホ擾ソスLVソスtソス@ソスCソスソスソスVソスXソスeソスソスソスTソスCソスYソスソス2GBソスノ変更

sh-3.2# lvm lvreduce -L2G /dev/VolGroup00/LogVol00ソス@ソスソスソス@ソスkソスソスソスホ擾ソスLVソスTソスCソスYソスソス2GBソスノ縮ソスソス
Do you really want to reduce LogVol00? [y/n]: yソス@ソスソスソス@yソスソスソスソス

sh-3.2# exitソス@ソスソスソス@ソスト起ソスソス

ソスCソスソスソスXソスgソス[ソスソスソスfソスBソスXソスNソス抜ゑソス

[root@centos ~]# lvdisplay /dev/VolGroup00/LogVol00ソス@ソスソスソス@ソスkソスソスソスホ擾ソスLVソスニ会ソス
  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol00
  VG Name                VolGroup00
  LV UUID                H37kZ2-u6pm-mwul-k7Wr-MBfg-Mh3T-4sOg8M
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                2.00 GBソス@ソスソスソス@ソスkソスソスソスソスLVソスTソスCソスY
  Current LE             64
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0

[root@centos ~]# vgdisplayソス@ソスソスソス@VGソスニ会ソス
  --- Volume group ---
  VG Name               VolGroup00
  System ID
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  10
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                3
  Open LV               3
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               4.84 GB
  PE Size               32.00 MB
  Total PE              155
  Alloc PE / Size       111 / 3.47 GB
  Free  PE / Size       44 / 1.38 GBソス@ソスソスソス@VGソスノ空きゑソスソスナゑソスソスソス
  VG UUID               9wGRk1-6iy1-03Hi-BX2b-W8u8-saiV-P6wfiL

ソスソスLVソスkソスソスソスソスソスルーソスgソスfソスBソスソスソスNソスgソスソス

[root@centos ~]# dfソス@ソスソスソス@LVソス}ソスEソスソスソスgソス況照会ソス
Filesystem           1K-ソスuソスソスソスbソスN    ソスgソスp   ソスgソスpソスソス ソスgソスp% ソス}ソスEソスソスソスgソスハ置
/dev/mapper/VolGroup00-LogVol00
                       3047184   1668784   1315488  56% /
/dev/sda1               101086     23800     72067  25% /boot
tmpfs                   127796         0    127796   0% /dev/shm
/dev/mapper/VolGroup00-lvol0
                        999832     17652    931392   2% /mntソス@ソスソスソス@ソスkソスソスソスホ擾ソスLV

[root@centos ~]# lvdisplay /dev/VolGroup00/lvol0ソス@ソスソスソス@ソスkソスソスソスホ擾ソスLVソスニ会ソス
  --- Logical volume ---
  LV Name                /dev/VolGroup00/lvol0
  VG Name                VolGroup00
  LV UUID                gN1ffx-4vUj-27cU-JK8b-958P-TnQ3-fyEsvG
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                992.00 MBソス@ソスソスソス@ソスkソスソスソスOLVソスTソスCソスY
  Current LE             31
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:2

[root@centos ~]# umount /mnt/ソス@ソスソスソス@ソスkソスソスソスホ擾ソスLVソスAソスソスソス}ソスEソスソスソスg

[root@centos ~]# dfソス@ソスソスソス@LVソス}ソスEソスソスソスgソス況照会ソス
Filesystem           1K-ソスuソスソスソスbソスN    ソスgソスp   ソスgソスpソスソス ソスgソスp% ソス}ソスEソスソスソスgソスハ置
/dev/mapper/VolGroup00-LogVol00
                       3047184   1668784   1315488  56% /
/dev/sda1               101086     23800     72067  25% /boot
tmpfs                   127796         0    127796   0% /dev/shm

[root@centos ~]# fsck.ext3 -f /dev/VolGroup00/lvol0ソス@ソスソスソス@ソスkソスソスソスホ擾ソスLVソスtソス@ソスCソスソスソスVソスXソスeソスソスソスソスソスソスソスソスソス`ソスFソスbソスN
ソスソスソスtソス@ソスCソスソスソスVソスXソスeソスソスソスソスソスソスソスソスソス`ソスFソスbソスNソスソスソスsソスソスネゑソスソスニ趣ソスソスソスresize2fsソスソスソスナゑソスソスネゑソス
e2fsck 1.39 (29-May-2006)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/VolGroup00/lvol0: 11/126976 files (9.1% non-contiguous), 8407/253952 blocks

[root@centos ~]# resize2fs /dev/VolGroup00/lvol0 512Mソス@ソスソスソス@ソスkソスソスソスホ擾ソスLVソスtソス@ソスCソスソスソスVソスXソスeソスソスソスTソスCソスYソスソス512MBソスノ変更
resize2fs 1.39 (29-May-2006)
Resizing the filesystem on /dev/VolGroup00/lvol0 to 131072 (4k) blocks.
The filesystem on /dev/VolGroup00/lvol0 is now 131072 blocks long.

[root@centos ~]# lvreduce -L512M /dev/VolGroup00/lvol0ソス@ソスソスソス@ソスkソスソスソスホ擾ソスLVソスTソスCソスYソスソス512MBソスノ縮ソスソス
  WARNING: Reducing active logical volume to 512.00 MB
  THIS MAY DESTROY YOUR DATA (filesystem etc.)
Do you really want to reduce lvol0? [y/n]: yソス@ソスソスソス@yソスソスソスソス
  Reducing logical volume lvol0 to 512.00 MB
  Logical volume lvol0 successfully resized

[root@centos ~]# mount /dev/VolGroup00/lvol0 /mnt/ソス@ソスソスソス@ソスkソスソスソスホ擾ソスLVソス}ソスEソスソスソスg

[root@centos ~]# dfソス@ソスソスソス@LVソス}ソスEソスソスソスgソス況照会ソス
Filesystem           1K-ソスuソスソスソスbソスN    ソスgソスp   ソスgソスpソスソス ソスgソスp% ソス}ソスEソスソスソスgソスハ置
/dev/mapper/VolGroup00-LogVol00
                       3047184   1668788   1315484  56% /
/dev/sda1               101086     23800     72067  25% /boot
tmpfs                   127796         0    127796   0% /dev/shm
/dev/mapper/VolGroup00-lvol0
                        516296     17164    478164   4% /mntソス@ソスソスソス@ソスkソスソスソスホ擾ソスLV

[root@centos ~]# lvdisplay /dev/VolGroup00/lvol0ソス@ソスソスソス@ソスkソスソスソスホ擾ソスLVソスニ会ソス
  --- Logical volume ---
  LV Name                /dev/VolGroup00/lvol0
  VG Name                VolGroup00
  LV UUID                gN1ffx-4vUj-27cU-JK8b-958P-TnQ3-fyEsvG
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                512.00 MBソス@ソスソスソス@ソスkソスソスソスソスLVソスTソスCソスY
  Current LE             16
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:2

[root@centos ~]# vgdisplayソス@ソスソスソス@VGソスニ会ソス
  --- Volume group ---
  VG Name               VolGroup00
  System ID
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  42
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                3
  Open LV               3
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               4.84 GB
  PE Size               32.00 MB
  Total PE              155
  Alloc PE / Size       140 / 4.38 GB
  Free  PE / Size       15 / 480.00 MBソス@ソスソスソス@VGソスノ空きゑソスソスナゑソスソスソス
  VG UUID               9wGRk1-6iy1-03Hi-BX2b-W8u8-saiV-P6wfiL


ソスソスソスヨ連ソスRソスソスソスeソスソスソスc

<!ソス\ソスeソスLソスXソスgソスフみゑソス4ソスsソス\ソスソスソスノ追会ソスソスソスCソスソスソスソスソスソス\>



ソスソスソスソスソスフペソス[ソスWソスフトソスbソスvソスヨ戻ゑソス

ソスvソスソスソスCソスoソスVソス[ソス|ソスソスソスVソス[
centossrv.com