ソスnソス[ソスhソスfソスBソスXソスNソス除

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

ソスソスソスTソスv

ソス_ソスソスソス{ソスソスソスソスソス[ソスソスソスソスソス除ソスAソスワゑソスソスソスソス_ソスソスソス{ソスソスソスソスソス[ソスソスソスTソスCソスYソスソスソスkソスソスソスソスソスト厄ソスソスgソスpソスニなゑソスソスソスソスnソス[ソスhソスfソスBソスXソスNソスソス_ソスソスソス{ソスソスソスソスソス[ソスソスソスヌ暦ソスソスソスソスソスソスソス除ソスソスソスソスB

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

ソスyソスnソス[ソスhソスfソスBソスXソスNソス除ソスvソスフ】
VGソスソスソスソスPVソス除
ソスソス
PVソス除
ソスソス
ソスpソス[ソスeソスBソスVソスソスソスソスソス除
ソスソス
ソスnソス[ソスhソスfソスBソスXソスNソスソスソスOソスソス


ソスソスVGソスソスソスソスPVソス除

[root@centos ~]# vgdisplay -vソス@ソスソスソス@PVソス除ソスOVGソス況照会ソス
    Finding all volume groups
    Finding volume group "VolGroup00"
  --- Volume group ---
  VG Name               VolGroup00
  System ID
  Format                lvm2
  Metadata Areas        3
  Metadata Sequence No  22
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                3
  Open LV               3
  Max PV                0
  Cur PV                3
  Act PV                3
  VG Size               5.81 GB
  PE Size               32.00 MB
  Total PE              186
  Alloc PE / Size       155 / 4.84 GB
  Free  PE / Size       31 / 992.00 MB
  VG UUID               9wGRk1-6iy1-03Hi-BX2b-W8u8-saiV-P6wfiL

  --- 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
  Current LE             108
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0

  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol01
  VG Name                VolGroup00
  LV UUID                YBWq23-hqGZ-1atm-NiKl-T8QL-yr8o-ZjEeAa
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                512.00 MB
  Current LE             16
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1

  --- Physical volumes ---
  PV Name               /dev/sda2
  PV UUID               uD1dJT-5X84-uQzr-t32U-ys6O-r203-rPZ8Uh
  PV Status             allocatable
  Total PE / Free PE    124 / 0

ソス|ソス|ソス除ソスホ擾ソスPVソスソスソス(ソスソスソスソスソスソスソスソス)ソス|ソス|
  PV Name               /dev/sdb1
  PV UUID               XeklfB-SmXh-rBVU-XCE7-3ebb-wqii-LQ3R6Y
  PV Status             allocatable
  Total PE / Free PE    31 / 31
ソス|ソス|ソス除ソスホ擾ソスPVソスソスソス(ソスソスソスソスソスワゑソス)ソス|ソス|

[root@centos ~]# vgreduce VolGroup00 /dev/sdb1ソス@ソスソスソス@VGソスソスソスソスPVソス除
  Removed "/dev/sdb1" from volume group "VolGroup00"

[root@centos ~]# vgdisplay -vソス@ソスソスソス@PVソス除ソスソスVGソス況照会ソス
    Finding all volume groups
    Finding volume group "VolGroup00"
  --- Volume group ---
  VG Name               VolGroup00
  System ID
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  23
  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       155 / 4.84 GB
  Free  PE / Size       0 / 0
  VG UUID               9wGRk1-6iy1-03Hi-BX2b-W8u8-saiV-P6wfiL

  --- 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
  Current LE             108
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0

  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol01
  VG Name                VolGroup00
  LV UUID                YBWq23-hqGZ-1atm-NiKl-T8QL-yr8o-ZjEeAa
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                512.00 MB
  Current LE             16
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1

  --- Physical volumes ---
  PV Name               /dev/sda2
  PV UUID               uD1dJT-5X84-uQzr-t32U-ys6O-r203-rPZ8Uh
  PV Status             allocatable
  Total PE / Free PE    124 / 0

ソス|ソス|ソス除ソスホ擾ソスPVソスソスソスネゑソスソス|ソス|

ソスソスPVソス除

[root@centos ~]# pvdisplayソス@ソスソスソス@PVソス除ソスOPVソス況照会ソス
  --- Physical volume ---
  PV Name               /dev/sda2
  VG Name               VolGroup00
  PV Size               3.90 GB / not usable 24.72 MB
  Allocatable           yes (but full)
  PE Size (KByte)       32768
  Total PE              124
  Free PE               0
  Allocated PE          124
  PV UUID               uD1dJT-5X84-uQzr-t32U-ys6O-r203-rPZ8Uh

ソス|ソス|ソス除ソスホ擾ソスPVソスソスソス(ソスソスソスソスソスソスソスソス)ソス|ソス|
  "/dev/sdb1" is a new physical volume of "1019.72 MB"
  --- NEW Physical volume ---
  PV Name               /dev/sdb1
  VG Name
  PV Size               1019.72 MB
  Allocatable           NO
  PE Size (KByte)       0
  Total PE              0
  Free PE               0
  Allocated PE          0
  PV UUID               XeklfB-SmXh-rBVU-XCE7-3ebb-wqii-LQ3R6Y
ソス|ソス|ソス除ソスホ擾ソスPVソスソスソス(ソスソスソスソスソスワゑソス)ソス|ソス|

[root@centos ~]# pvremove /dev/sdb1ソス@ソスソスソス@PVソス除
  /dev/cdrom: open failed: ソスヌみ搾ソスソスン撰ソスpソスtソス@ソスCソスソスソスVソスXソスeソスソスソスナゑソス
  Attempt to close device '/dev/cdrom' which is not open.
  Labels on physical volume "/dev/sdb1" successfully wiped

[root@centos ~]# pvdisplayソス@ソスソスソス@PVソス除ソスソスPVソス況照会ソス
  --- Physical volume ---
  PV Name               /dev/sda2
  VG Name               VolGroup00
  PV Size               3.90 GB / not usable 24.72 MB
  Allocatable           yes (but full)
  PE Size (KByte)       32768
  Total PE              124
  Free PE               0
  Allocated PE          124
  PV UUID               uD1dJT-5X84-uQzr-t32U-ys6O-r203-rPZ8Uh

ソス|ソス|ソス除ソスホ擾ソスPVソスソスソスネゑソスソス|ソス|

ソスソスソスpソス[ソスeソスBソスVソスソスソスソスソス除

[root@centos ~]# fdisk /dev/sdbソス@ソスソスソス@ソス除ソスホ象ハソス[ソスhソスfソスBソスXソスNソスpソス[ソスeソスBソスVソスソスソスソスソスン抵ソス

ソスRソス}ソスソスソスh (m ソスナヘソスソスソスv): pソス@ソスソスソス@p(ソスpソス[ソスeソスBソスVソスソスソスソスソス\ソスソス)ソスソスソスソス

Disk /dev/sdb: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = ソスVソスソスソスソスソス_ソスソス of 16065 * 512 = 8225280 bytes

ソスfソスoソスCソスX Boot      Start         End      Blocks   Id  System
/dev/sdb1               1         130     1044193+  8e  Linux LVM

ソスRソス}ソスソスソスh (m ソスナヘソスソスソスv): dソス@ソスソスソス@d(ソスpソス[ソスeソスBソスVソスソスソスソスソス除)ソスソスソスソス
Selected partition 1

ソスRソス}ソスソスソスh (m ソスナヘソスソスソスv): pソス@ソスソスソス@p(ソスpソス[ソスeソスBソスVソスソスソスソスソス\ソスソス)ソスソスソスソス

Disk /dev/sdb: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = ソスVソスソスソスソスソス_ソスソス of 16065 * 512 = 8225280 bytes

ソスfソスoソスCソスX Boot      Start         End      Blocks   Id  System
ソス|ソス|ソスpソス[ソスeソスBソスVソスソスソスソスソスネゑソスソス|ソス|

ソスRソス}ソスソスソスh (m ソスナヘソスソスソスv): wソス@ソスソスソス@w(ソスpソス[ソスeソスBソスVソスソスソスソスソスソスソスfソスBソスXソスNソスヨ擾ソスソスソスソスソスソスソス)ソスソスソスソス
ソスフ茨ソスeソス[ソスuソスソスソスヘ鯉ソスソスソスソスソスソスソスワゑソスソスソスソスI

ioctl() ソスソスソストび出ソスソスソスト領茨ソスeソス[ソスuソスソスソスソスソスト読搾ソスソスンゑソスソスワゑソスソスB
ソスfソスBソスXソスNソス同奇ソスソスソスソスソスソスワゑソスソスB

ソスVソスXソスeソスソスソスソス~ソスソスAソスnソス[ソスhソスfソスBソスXソスNソスソスソスOソスソス


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

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



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

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