2019-01-01
2019-01-01 本文已影响0人
Eren_Jaeger
我的简书
试试简书是否好用
[root@centos-linux-03 dev]# pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 centos lvm2 a-- <63.00g 4.00m
[root@centos-linux-03 dev]# pvcreate /dev/sdb /dev/sdc
Physical volume "/dev/sdb" successfully created.
Physical volume "/dev/sdc" successfully created.
[root@centos-linux-03 dev]# pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 centos lvm2 a-- <63.00g 4.00m
/dev/sdb lvm2 --- 102.00m 102.00m
/dev/sdc lvm2 --- 102.00m 102.00m
[root@centos-linux-03 dev]# vgs
VG #PV #LV #SN Attr VSize VFree
centos 1 3 0 wz--n- <63.00g 4.00m
[root@centos-linux-03 dev]# vgcreate lnlvm /dev/sdb /dev/sdc
Volume group "lnlvm" successfully created
[root@centos-linux-03 dev]# vgs
VG #PV #LV #SN Attr VSize VFree
centos 1 3 0 wz--n- <63.00g 4.00m
lnlvm 2 0 0 wz--n- 200.00m 200.00m
[root@centos-linux-03 dev]# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
home centos -wi-ao---- <20.01g
root centos -wi-ao---- 40.98g
swap centos -wi-ao---- 2.00g
[root@centos-linux-03 dev]# lvcreate -n lna -L 50M lnlvm
Rounding up size to full physical extent 52.00 MiB
WARNING: xfs signature detected on /dev/lnlvm/lna at offset 0. Wipe it? [y/n]: y
Wiping xfs signature on /dev/lnlvm/lna.
Logical volume "lna" created.
[root@centos-linux-03 dev]# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
home centos -wi-ao---- <20.01g
root centos -wi-ao---- 40.98g
swap centos -wi-ao---- 2.00g
lna lnlvm -wi-a----- 52.00m
[root@centos-linux-03 dev]# mkfs.xfs /dev/lnlvm/lna
meta-data=/dev/lnlvm/lna isize=512 agcount=2, agsize=6656 blks
= sectsz=4096 attr=2, projid32bit=1
= crc=1 finobt=0, sparse=0
data = bsize=4096 blocks=13312, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal log bsize=4096 blocks=1605, version=2
= sectsz=4096 sunit=1 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
[root@centos-linux-03 dev]# mkdir /liu && mount /dev/lnlvm/lna /liu