Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

4.3.2. 在​​​​​​​群​​​​​​​集​​​​​​​中​​​​​​​创​​​​​​​建​​​​​​​卷​​​​​​​组​​​​​​​

在​​​​​​​群​​​​​​​集​​​​​​​环​​​​​​​境​​​​​​​中​​​​​​​使​​​​​​​用​​​​​​​ vgcreate 命​​​​​​​令​​​​​​​创​​​​​​​建​​​​​​​卷​​​​​​​组​​​​​​​就​​​​​​​如​​​​​​​同​​​​​​​在​​​​​​​单​​​​​​​一​​​​​​​节​​​​​​​点​​​​​​​中​​​​​​​创​​​​​​​建​​​​​​​卷​​​​​​​组​​​​​​​。​​​​​​​
默​​​​​​​认​​​​​​​情​​​​​​​况​​​​​​​下​​​​​​​,在​​​​​​​所​​​​​​​有​​​​​​​可​​​​​​​访​​​​​​​问​​​​​​​共​​​​​​​享​​​​​​​存​​​​​​​储​​​​​​​的​​​​​​​计​​​​​​​算​​​​​​​机​​​​​​​中​​​​​​​都​​​​​​​可​​​​​​​看​​​​​​​到​​​​​​​ CLVM 在​​​​​​​共​​​​​​​享​​​​​​​存​​​​​​​储​​​​​​​中​​​​​​​创​​​​​​​建​​​​​​​的​​​​​​​卷​​​​​​​组​​​​​​​。​​​​​​​但​​​​​​​有​​​​​​​可​​​​​​​能​​​​​​​在​​​​​​​使​​​​​​​用​​​​​​​带​​​​​​​ -c n 选​​​​​​​项​​​​​​​的​​​​​​​ vgcreate 命​​​​​​​令​​​​​​​创​​​​​​​建​​​​​​​的​​​​​​​本​​​​​​​地​​​​​​​卷​​​​​​​组​​​​​​​,只​​​​​​​能​​​​​​​在​​​​​​​群​​​​​​​集​​​​​​​的​​​​​​​一​​​​​​​个​​​​​​​节​​​​​​​点​​​​​​​中​​​​​​​看​​​​​​​到​​​​​​​。​​​​​​​
当​​​​​​​在​​​​​​​群​​​​​​​集​​​​​​​环​​​​​​​境​​​​​​​中​​​​​​​执​​​​​​​行​​​​​​​以​​​​​​​下​​​​​​​命​​​​​​​令​​​​​​​时​​​​​​​,创​​​​​​​建​​​​​​​的​​​​​​​卷​​​​​​​组​​​​​​​对​​​​​​​执​​​​​​​行​​​​​​​该​​​​​​​命​​​​​​​令​​​​​​​的​​​​​​​节​​​​​​​点​​​​​​​来​​​​​​​说​​​​​​​是​​​​​​​本​​​​​​​地​​​​​​​的​​​​​​​。​​​​​​​该​​​​​​​命​​​​​​​令​​​​​​​创​​​​​​​建​​​​​​​一​​​​​​​个​​​​​​​名​​​​​​​为​​​​​​​ vg1 的​​​​​​​卷​​​​​​​组​​​​​​​,其​​​​​​​中​​​​​​​包​​​​​​​含​​​​​​​物​​​​​​​理​​​​​​​卷​​​​​​​ /dev/sdd1 和​​​​​​​ /dev/sde1。​​​​​​​
vgcreate -c n vg1 /dev/sdd1 /dev/sde1
You can change whether an existing volume group is local or clustered with the -c option of the vgchange command, which is described in 第 4.3.7 节 “修​​​​​​​改​​​​​​​卷​​​​​​​组​​​​​​​参​​​​​​​数​​​​​​​”.
您​​​​​​​可​​​​​​​以​​​​​​​使​​​​​​​用​​​​​​​ vgs 命​​​​​​​令​​​​​​​查​​​​​​​看​​​​​​​现​​​​​​​有​​​​​​​卷​​​​​​​组​​​​​​​是​​​​​​​否​​​​​​​为​​​​​​​群​​​​​​​集​​​​​​​卷​​​​​​​组​​​​​​​,如​​​​​​​是​​​​​​​则​​​​​​​会​​​​​​​显​​​​​​​示​​​​​​​ c 属​​​​​​​性​​​​​​​。​​​​​​​以​​​​​​​下​​​​​​​命​​​​​​​令​​​​​​​显​​​​​​​示​​​​​​​卷​​​​​​​组​​​​​​​ VolGroup00 和​​​​​​​ testvg1 的​​​​​​​属​​​​​​​性​​​​​​​。​​​​​​​在​​​​​​​这​​​​​​​个​​​​​​​示​​​​​​​例​​​​​​​中​​​​​​​,VolGroup00 不​​​​​​​是​​​​​​​群​​​​​​​集​​​​​​​的​​​​​​​,而​​​​​​​ testvg1 是​​​​​​​群​​​​​​​集​​​​​​​的​​​​​​​,如​​​​​​​ Attr 标​​​​​​​题​​​​​​​下​​​​​​​的​​​​​​​ c 属​​​​​​​性​​​​​​​所​​​​​​​示​​​​​​​。​​​​​​​
[root@doc-07]# vgs
  VG            #PV #LV #SN Attr   VSize  VFree
  VolGroup00      1   2   0 wz--n- 19.88G    0
  testvg1         1   1   0 wz--nc 46.00G 8.00M