Operating System - Linux
1753720 Members
4678 Online
108799 Solutions
New Discussion юеВ

Re: Red Hat Clustering - LVM

 
SOLVED
Go to solution
MikeL_4
Super Advisor

Red Hat Clustering - LVM

I've just installed Red Hat Cluster Server software on two Red Hat nodes. We are using one server as a primary database server with the other node as a standby server..

We are Using LVM with ext3 logical volumes.

My question is what the procedure would be to shutdown the logical volumes and Volume Group on the primary server, and move it to the backup server ?

The disk are visable on both servers currently, and /dev/mapper shows the Volume Group and Logical Volumes that are defined..

Just wondering the proper commands and sequence of commands to move from server to server..

Thanks
6 REPLIES 6
Tim Nelson
Honored Contributor

Re: Red Hat Clustering - LVM

I believe the shared filesytems need to be GFS filesystems, or at least some type oc cluster aware FS, and obviously shareable via SAN.

Once configured in the cluster these will failover with your cluster package.
Serviceguard for Linux
Honored Contributor

Re: Red Hat Clustering - LVM

I don't believe that GFS is a requirement, although it will certainly work. I believe there is an LVM Resource Agent. That can be used to move the appropriate VGs.
Steven E. Protter
Exalted Contributor
Solution

Re: Red Hat Clustering - LVM

Shalom,

GFS lets the filesystem be mounted from both nodes. Seems you don't want that.

Then you need to do it kind of serviceguard style.

vgchange -a n vg## # on the node giving it up.

vgchange -a y vg## # on the receiving node.

You can build this step into the startup script for the application.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Tim Nelson
Honored Contributor

Re: Red Hat Clustering - LVM

Sorry about that guys, I had a one track mind yesterday.

The RH clustering admin and RH LVM admin guide have the best info.


http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.4/html/Logical_Volume_Manager_Administration/index.html
loco_vikide
Frequent Advisor

Re: Red Hat Clustering - LVM

Assuming that you are using latest version of RedHat cluster (5.x), you should configure the floating logical volumes in a cluster package and let the Redhat cluster lvm daemon manages the proper failover/failback of the logical volumes between cluster nodes.

The command you could use to move cluster package from node to node, given that the cluster and the package are up and running:

# clusvcadm -r your_package_name -m your_secondary_hostname.

Refer to the man pages for the handy RedHat cluster commands:
clusvadm
clustat
cman_tool
ccs_tool
ccs_test
rg_test

Cheers
MikeL_4
Super Advisor

Re: Red Hat Clustering - LVM

Thanks