Creating A Mirrored Lvm Logical Volume In A Cluster - Red Hat ENTERPRISE LINUX 4 - LVM ADMINISTRATOR Manual

Cluster logical volume manager
Table of Contents

Advertisement

[root@tng3-1 ~]# vgreduce myvg /dev/sdb1
Removed "/dev/sdb1" from volume group "myvg"
You can now reallocate the disk to another volume group or remove the disk from the system.

5.5. Creating a Mirrored LVM Logical Volume in a Cluster

Creating a mirrored LVM logical volume in a cluster requires the same commands and procedures
as creating a mirrored LVM logical volume on a single node. However, in order to create a mirrored
LVM volume in a cluster the cluster and cluster mirror infrastructure must be running, the cluster must
be quorate, and the locking type in the lvm.conf file must be set correctly to enable cluster locking,
either directly or by means of the lvmconf command as described in
Volumes in a
Cluster".
The following procedure creates a mirrored LVM volume in a cluster. First the procedure checks to
see whether the cluster services are installed and running, then the procedure creates the mirrored
volume.
1. In order to create a mirrored logical volume that is shared by all of the nodes in a cluster, the
locking type must be set correctly in the lvm.conf file in every node of the cluster. By default, the
locking type is set to local. To change this, execute the following command in each node of the
cluster to enable clustered locking:
# /usr/sbin/lvmconf --enable-cluster
2. To create a clustered logical volume, the cluster infrastructure must be up and running on every
node in the cluster. The following example verifies that the clvmd daemon is running on the node
from which it was issued:
[root@doc-07 ~]# ps auxw | grep clvmd
root
17642
T20 -t 90
The following command shows the local view of the cluster status:
[root@doc-07 ~]# cman_tool services
Service
Code
...
DLM Lock Space:
[1 2 3]
...
3. Ensure that the cmirror and cmirror-kernel packages are installed. The cmirror-kernel
package that must be installed depends on the kernel that is running. For example, if the running
kernel is kernel-largesmp, it is necessary to have cmirror-kernel-largesmp for the
corresponding kernel version.
0.0
0.1 32164 1072 ?
Name
"clvmd"
Creating a Mirrored LVM Logical Volume in a Cluster
Section 3.1, "Creating LVM
Ssl
Apr06
0:00 clvmd -
GID LID State
7
3 run
-
61

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise linux 4

Table of Contents