4.10 lvm
1.准备磁盘分区:
fdisk /dev/sdb
n 创建三个新分区,分别1G
t 改变分区类型为8e
2.准备物理卷
pvcreate /dev/sdb1
pvcreate /dev/sdb2
pvcreate /dev/sdb3
pvdisplay/pvs 列出当前的物理卷
pvremove /dev/sdb3 删除物理卷
yum provides "/*/pvcreate"
yum -y install lvm2
partprobe - inform the OS of partition table changes
partprobe is a program that informs the operating system kernel
of partition table changes, by requesting that
the operating system re-read the partition table.
# partprobe
pvcreate - Initialize physical volume(s) for use by LVM
# pvcreate /dev/sdb1
WARNING: xfs signature detected on /dev/sdb1 at offset 0. Wipe it? [y/n]: y
Wiping xfs signature on /dev/sdb1.
Physical volume "/dev/sdb1" successfully created.
pvdisplay - Display various attributes of physical volume(s)
# pvdisplay
"/dev/sdb1" is a new physical volume of "1.00 GiB"
--- NEW Physical volume ---
PV Name /dev/sdb1
VG Name
PV Size 1.00 GiB
Allocatable NO
PE Size 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID 0TaR4c-d2Z7-3Der-Y5aO-w0dd-ndri-NOsc81
pvs - Display information about physical volumes
# pvs
PV VG Fmt Attr PSize PFree