1.3. 群​​​​​​​集​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​管​​​​​​​理​​​​​​​器​​​​​​​(CLVM)

群​​​​​​​集​​​​​​​的​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​过​​​​​​​滤​​​​​​​器​​​​​​​(CLVM)是​​​​​​​ LVM 的​​​​​​​一​​​​​​​组​​​​​​​群​​​​​​​集​​​​​​​的​​​​​​​扩​​​​​​​展​​​​​​​。​​​​​​​这​​​​​​​些​​​​​​​扩​​​​​​​展​​​​​​​允​​​​​​​许​​​​​​​计​​​​​​​算​​​​​​​机​​​​​​​群​​​​​​​集​​​​​​​使​​​​​​​用​​​​​​​ LVM 管​​​​​​​理​​​​​​​共​​​​​​​享​​​​​​​存​​​​​​​储​​​​​​​(例​​​​​​​如​​​​​​​:在​​​​​​​ SAN 中​​​​​​​)。​​​​​​​
您​​​​​​​是​​​​​​​否​​​​​​​应​​​​​​​该​​​​​​​使​​​​​​​用​​​​​​​ CLVM 取​​​​​​​决​​​​​​​于​​​​​​​您​​​​​​​的​​​​​​​系​​​​​​​统​​​​​​​要​​​​​​​求​​​​​​​:
  • 如​​​​​​​果​​​​​​​您​​​​​​​的​​​​​​​系​​​​​​​统​​​​​​​中​​​​​​​只​​​​​​​有​​​​​​​一​​​​​​​个​​​​​​​节​​​​​​​点​​​​​​​需​​​​​​​要​​​​​​​访​​​​​​​问​​​​​​​您​​​​​​​正​​​​​​​在​​​​​​​将​​​​​​​其​​​​​​​配​​​​​​​置​​​​​​​为​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​的​​​​​​​存​​​​​​​储​​​​​​​,那​​​​​​​么​​​​​​​您​​​​​​​可​​​​​​​以​​​​​​​使​​​​​​​用​​​​​​​ LVM 而​​​​​​​不​​​​​​​是​​​​​​​ LVM 扩​​​​​​​展​​​​​​​,且​​​​​​​在​​​​​​​该​​​​​​​节​​​​​​​点​​​​​​​中​​​​​​​生​​​​​​​成​​​​​​​的​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​对​​​​​​​该​​​​​​​节​​​​​​​点​​​​​​​来​​​​​​​说​​​​​​​都​​​​​​​是​​​​​​​本​​​​​​​地​​​​​​​的​​​​​​​。​​​​​​​
  • 如​​​​​​​果​​​​​​​您​​​​​​​正​​​​​​​在​​​​​​​使​​​​​​​用​​​​​​​群​​​​​​​集​​​​​​​的​​​​​​​系​​​​​​​统​​​​​​​进​​​​​​​行​​​​​​​故​​​​​​​障​​​​​​​切​​​​​​​换​​​​​​​,其​​​​​​​中​​​​​​​在​​​​​​​任​​​​​​​意​​​​​​​时​​​​​​​间​​​​​​​只​​​​​​​有​​​​​​​那​​​​​​​个​​​​​​​访​​​​​​​问​​​​​​​该​​​​​​​存​​​​​​​储​​​​​​​的​​​​​​​单​​​​​​​一​​​​​​​节​​​​​​​点​​​​​​​是​​​​​​​活​​​​​​​跃​​​​​​​的​​​​​​​,您​​​​​​​应​​​​​​​该​​​​​​​使​​​​​​​用​​​​​​​高​​​​​​​性​​​​​​​能​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​管​​​​​​​理​​​​​​​代​​​​​​​理​​​​​​​(HA-LVM)。​​​​​​​有​​​​​​​关​​​​​​​ HA-LVM 的​​​​​​​详​​​​​​​情​​​​​​​请​​​​​​​参​​​​​​​考​​​​​​​《​​​​​​​配​​​​​​​置​​​​​​​和​​​​​​​管​​​​​​​理​​​​​​​红​​​​​​​帽​​​​​​​群​​​​​​​集​​​​​​​》​​​​​​​。​​​​​​​
  • 如​​​​​​​果​​​​​​​您​​​​​​​的​​​​​​​群​​​​​​​集​​​​​​​中​​​​​​​有​​​​​​​一​​​​​​​个​​​​​​​以​​​​​​​上​​​​​​​的​​​​​​​节​​​​​​​点​​​​​​​需​​​​​​​要​​​​​​​访​​​​​​​问​​​​​​​您​​​​​​​的​​​​​​​存​​​​​​​储​​​​​​​,那​​​​​​​么​​​​​​​该​​​​​​​存​​​​​​​储​​​​​​​会​​​​​​​在​​​​​​​所​​​​​​​有​​​​​​​活​​​​​​​跃​​​​​​​的​​​​​​​节​​​​​​​点​​​​​​​间​​​​​​​共​​​​​​​享​​​​​​​,则​​​​​​​您​​​​​​​必​​​​​​​须​​​​​​​使​​​​​​​用​​​​​​​ CLVM。​​​​​​​CLVM 允​​​​​​​许​​​​​​​用​​​​​​​户​​​​​​​通​​​​​​​过​​​​​​​在​​​​​​​配​​​​​​​置​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​时​​​​​​​锁​​​​​​​定​​​​​​​对​​​​​​​物​​​​​​​理​​​​​​​存​​​​​​​储​​​​​​​的​​​​​​​访​​​​​​​问​​​​​​​来​​​​​​​在​​​​​​​共​​​​​​​享​​​​​​​存​​​​​​​储​​​​​​​中​​​​​​​配​​​​​​​置​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​,并​​​​​​​使​​​​​​​用​​​​​​​群​​​​​​​集​​​​​​​的​​​​​​​锁​​​​​​​定​​​​​​​服​​​​​​​务​​​​​​​管​​​​​​​理​​​​​​​共​​​​​​​享​​​​​​​存​​​​​​​储​​​​​​​。​​​​​​​
要​​​​​​​使​​​​​​​用​​​​​​​ CLVM,则​​​​​​​必​​​​​​​须​​​​​​​运​​​​​​​行​​​​​​​红​​​​​​​帽​​​​​​​群​​​​​​​集​​​​​​​套​​​​​​​件​​​​​​​软​​​​​​​件​​​​​​​,其​​​​​​​中​​​​​​​包​​​​​​​括​​​​​​​ clmvd 守​​​​​​​护​​​​​​​进​​​​​​​程​​​​​​​。​​​​​​​clvmd 守​​​​​​​护​​​​​​​进​​​​​​​程​​​​​​​是​​​​​​​ LVM 的​​​​​​​关​​​​​​​键​​​​​​​群​​​​​​​集​​​​​​​扩​​​​​​​展​​​​​​​。​​​​​​​clvmd 在​​​​​​​每​​​​​​​个​​​​​​​群​​​​​​​集​​​​​​​计​​​​​​​算​​​​​​​机​​​​​​​中​​​​​​​运​​​​​​​行​​​​​​​,并​​​​​​​在​​​​​​​群​​​​​​​集​​​​​​​中​​​​​​​发​​​​​​​布​​​​​​​ LVM 元​​​​​​​数​​​​​​​据​​​​​​​更​​​​​​​新​​​​​​​,用​​​​​​​相​​​​​​​同​​​​​​​的​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​视​​​​​​​图​​​​​​​来​​​​​​​显​​​​​​​示​​​​​​​每​​​​​​​个​​​​​​​群​​​​​​​集​​​​​​​计​​​​​​​算​​​​​​​机​​​​​​​。​​​​​​​有​​​​​​​关​​​​​​​安​​​​​​​装​​​​​​​和​​​​​​​管​​​​​​​理​​​​​​​红​​​​​​​帽​​​​​​​群​​​​​​​集​​​​​​​套​​​​​​​件​​​​​​​的​​​​​​​详​​​​​​​情​​​​​​​请​​​​​​​参​​​​​​​考​​​​​​​《​​​​​​​配​​​​​​​置​​​​​​​和​​​​​​​管​​​​​​​理​​​​​​​红​​​​​​​帽​​​​​​​群​​​​​​​集​​​​​​​》​​​​​​​。​​​​​​​
要​​​​​​​确​​​​​​​定​​​​​​​在​​​​​​​引​​​​​​​导​​​​​​​时​​​​​​​启​​​​​​​动​​​​​​​了​​​​​​​ clmvd,您​​​​​​​可​​​​​​​对​​​​​​​ clmvd 服​​​​​​​务​​​​​​​执​​​​​​​行​​​​​​​ chkconfig ... on 命​​​​​​​令​​​​​​​,如​​​​​​​下​​​​​​​:
# chkconfig clvmd on
如​​​​​​​果​​​​​​​还​​​​​​​没​​​​​​​有​​​​​​​启​​​​​​​动​​​​​​​ clvmd 守​​​​​​​护​​​​​​​进​​​​​​​程​​​​​​​,您​​​​​​​可​​​​​​​以​​​​​​​对​​​​​​​ clvmd 服​​​​​​​务​​​​​​​执​​​​​​​行​​​​​​​ service ... start 命​​​​​​​令​​​​​​​,如​​​​​​​下​​​​​​​:
# service clvmd start
Creating LVM logical volumes in a cluster environment is identical to creating LVM logical volumes on a single node. There is no difference in the LVM commands themselves, or in the LVM graphical user interface, as described in 第 4 章 用​​​​​​​ CLI 命​​​​​​​令​​​​​​​管​​​​​​​理​​​​​​​ LVM and 第 7 章 用​​​​​​​ LVM GUI 进​​​​​​​行​​​​​​​ LVM 管​​​​​​​理​​​​​​​. In order to enable the LVM volumes you are creating in a cluster, the cluster infrastructure must be running and the cluster must be quorate.
By default, logical volumes created with CLVM on shared storage are visible to all computers that have access to the shared storage. It is possible, however, to create logical volumes when the storage devices are visible to only one node in the cluster. It is also possible to change the status of a logical volume from a local volume to a clustered volume. For information, see 第 4.3.2 节 “在​​​​​​​群​​​​​​​集​​​​​​​中​​​​​​​创​​​​​​​建​​​​​​​卷​​​​​​​组​​​​​​​” and 第 4.3.7 节 “修​​​​​​​改​​​​​​​卷​​​​​​​组​​​​​​​参​​​​​​​数​​​​​​​”.
图 1.2 “CLVM 总​​​​​​​览​​​​​​​” shows a CLVM overview in a Red Hat cluster.
CLVM 总​​​​​​​览​​​​​​​

图 1.2. CLVM 总​​​​​​​览​​​​​​​

注意

在​​​​​​​红​​​​​​​帽​​​​​​​群​​​​​​​集​​​​​​​套​​​​​​​件​​​​​​​中​​​​​​​使​​​​​​​用​​​​​​​的​​​​​​​共​​​​​​​享​​​​​​​存​​​​​​​储​​​​​​​要​​​​​​​求​​​​​​​您​​​​​​​要​​​​​​​运​​​​​​​行​​​​​​​群​​​​​​​集​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​管​​​​​​​理​​​​​​​器​​​​​​​守​​​​​​​护​​​​​​​进​​​​​​​程​​​​​​​(clvmd)或​​​​​​​者​​​​​​​高​​​​​​​可​​​​​​​用​​​​​​​性​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​管​​​​​​​理​​​​​​​代​​​​​​​理​​​​​​​(HA-LVM)。​​​​​​​如​​​​​​​果​​​​​​​您​​​​​​​有​​​​​​​与​​​​​​​操​​​​​​​作​​​​​​​原​​​​​​​因​​​​​​​或​​​​​​​者​​​​​​​您​​​​​​​没​​​​​​​有​​​​​​​正​​​​​​​确​​​​​​​的​​​​​​​权​​​​​​​利​​​​​​​而​​​​​​​无​​​​​​​法​​​​​​​使​​​​​​​用​​​​​​​ clvmd 守​​​​​​​护​​​​​​​进​​​​​​​程​​​​​​​或​​​​​​​者​​​​​​​ HA-LVM,您​​​​​​​就​​​​​​​不​​​​​​​能​​​​​​​在​​​​​​​共​​​​​​​享​​​​​​​磁​​​​​​​盘​​​​​​​中​​​​​​​使​​​​​​​用​​​​​​​单​​​​​​​一​​​​​​​事​​​​​​​件​​​​​​​ LVM,因​​​​​​​为​​​​​​​这​​​​​​​将​​​​​​​导​​​​​​​致​​​​​​​数​​​​​​​据​​​​​​​崩​​​​​​​溃​​​​​​​。​​​​​​​如​​​​​​​果​​​​​​​您​​​​​​​有​​​​​​​任​​​​​​​何​​​​​​​疑​​​​​​​问​​​​​​​请​​​​​​​与​​​​​​​您​​​​​​​的​​​​​​​红​​​​​​​帽​​​​​​​服​​​​​​​务​​​​​​​代​​​​​​​表​​​​​​​联​​​​​​​络​​​​​​​。​​​​​​​

注意

CLVM requires changes to the lvm.conf file for cluster-wide locking. Information on configuring the lvm.conf file to support clustered locking is provided within the lvm.conf file itself. For information about the lvm.conf file, see 附录 B, LVM 配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​.