迎访问phome.net
/dev/cciss/c0d0p3 2054 35690 270189202 83 Linux
,我在这里屏蔽以 c0d0开头的磁盘. ^c0d0
在这些做好后,multipath -ll,应该就可以看到聚合链路的信息了.multipath -v3也可以看到path list信息了.
做好后,我们应该会在/dev/mapper目录中发现mpath0 mpath1,类似的命名.这些就是我们映射过来的虚拟磁盘了.如果看不到,执行multipath -F ,清空multipath 的信息,重新计算 聚合路径.
至此,multipath 设置好了,剩下的就跟普通硬盘一样了.
==================================================================
制作LVM
pvcreat /dev/mapper/mpath0
pvcreat /dev/mapper/mpath0
pvdisplay ,显示制作的 物理盘
[root@nissanweb3 /]# pvdisplay
--- Physical volume ---
PV Name /dev/dm-3
VG Name www
PV Size 600.00 GB / not usable 3.93 MB
Allocatable yes (but full)
PE Size (KByte) 4096
Total PE 153599
Free PE 0
Allocated PE 153599
PV UUID lduJUm-DWGu-gfz4-IYXo-mst9-e1N9-N9gO1c
--- Physical volume ---
PV Name /dev/dm-2
VG Name app
PV Size 200.00 GB / not usable 1.34 MB
Allocatable yes (but full)
PE Size (KByte) 4096
Total PE 51199
Free PE 0
Allocated PE 51199
PV UUID ANQfeE-2eJH-cjMq-Ol55-a0hp-23dM-vTBTOm
-------------------------------------------------------------------------
vgcreat www /dev/dm-3 创建名叫www的卷组 ,对应dm-3物理盘
vgcreat app /dev/dm-2 创建名叫app的卷组 ,对应dm-2物理盘
拥有帝国一切,皆有可能。欢迎访问phome.net
vgdisplay 显示
--- Volume group ---
VG Name www
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size 600.00 GB
PE Size 4.00 MB
Total PE 153599
Alloc PE / Size 153599 / 600.00 GB
Free PE / Size 0 / 0
VG UUID T9vssb-udUg-Mcjb-aUOe-3cVj-nqgB-vHTZc3
--- Volume group ---
VG Name app
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size 200.00 GB
PE Size 4.00 MB
Total PE 51199
Alloc PE / Size 51199 / 200.00 GB
Free PE / Size 0 / 0
VG UUID fdrG5P-DI3W-tgmG-NHx3-lzBa-7m4v-5lqAyg
-----------------------------------------------------------------------------------------------
lvcreat -l 15359 |