RedHat HA normal disk replacement LVM

Source: Internet
Author: User

RedHat HA normal disk replacement LVM

RedHatHA General disk transformation LVM logical volume test report

Rhel 5.7 ha lvm test:

Rhel 5.7 ha lvm test: 1

Test frame diagram: 1

Cluster software installation 2

Configure cluster lvm2

Add Resource 3

Cluster test 10

Test result 12

Test frame diagram:

Ha1: ha2

Hostname = ha1.example.com hostname = ha2.example.com

Eth1: 10.0.0.1/8 eth1: 10.0.0.2/8

Eth2: 255.0.0.1/24 eth2: 255.0.0.2/24

Eth1 indicates the business, and eth2 indicates the heartbeat

Modify the hosts file of two nodes Cat/etc/hosts

255.0.0.1 ha1.example.com

255.0.0.2 ha2.example.com

Cluster Software Installation

Yum groupinstall Clustering-y

Yum install lvm2-cluster *-y cluster logical Group Management

Configure cluster lvm

Vim/etc/lvm. conf supports lvm in cluster mode (both nodes need to be modified)

Change locking_type = 1 in normal mode to 3. Enable lvm in cluster mode.

-------------------------------------- Split line --------------------------------------

Disk management-LVM

Linux Tutorial: Use LVM logical volume manager to manage flexible storage

Configure LVM (logical volume management) in CentOS 6.3)

Linux LVM (Logical Volume Manager) Study Notes

LVM-snapshot: LVM snapshot-based backup preparation

LVM-snapshot: LVM-based snapshot Backup

RHEL5.9 LVM usage

-------------------------------------- Split line --------------------------------------

Syetem-config-cluster

Add nodes, add virtual fence, and create fault domains. Synchronize the cluster. conf file to another node.

You can perform the following operations on a node:

/Etc/init. d/cman start

/Etc/init. d/clvmd start

Create a cluster lcuster lvm

Use iscsi storage to initiate and attach to a local device

Pv/dev/sd (c, e, f, g ......)

Vg vg_01/dev/sd (c, e, f, g ......) After creating the vg, start clvmd on another node. Synchronize vg)

Lv-L + 10G-n lvm_01 vg_01

Add Resource

Add virtual vip first

Add lvm

Here, when you add lvm, the name is the name you give to lvm (this command can be self-executed), and the vg name must be the name when you create the vg. Lvm name: enter the name of the lv when the lv is created.

Example:

Add File System

Fill in the lvm mount point

Add lvm

Add File System

For more details, please continue to read the highlights on the next page:

  • 1
  • 2
  • Next Page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.