HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

Serviceguard

 
Patrick B Boafo
Occasional Contributor

Serviceguard

have 2 nodes with serviceguard running. wants to create a LVM such and make it accessible to the nodes using serviceguard. Size of LVM to be created is 1.2TB. what should i do to achieve this?
3 REPLIES
Benoy Daniel
Trusted Contributor

Re: Serviceguard

Patrick,

it is similar to any other LV creation. Get similar amount of shared storage, create new VG with higher PE size, include VG and LV in the package control file, export map file to secondary node, recompile cluster.
njia_1
Trusted Contributor

Re: Serviceguard

Hi Patrick

First, the disk device file needs to be identical on both servers.

so if /dev/dsk/c1t1d0 is the disk you want to share between the servers it needs to be /dev/dsk/c1t1d0 on all the servers.

Once that is done, here is how I do it

create vg on primary node
# pvcreate /dev/rdsk/c1t1d0
# mkdir /dev/vgwhatever
# mknod /dev/vgwhatever/group c 64 0x0?0000 ( you need to decide what number to use, it needs to be same on primary and standby node too)
# vgcreate /dev/vgwhatever /dev/dsk/c1t1d0

then create LV, file system

# vgexport -p -v -s -m /tmp/vgwhatever.map /dev/vgwhatever

copy that vgwhatever.map to standby node and issue the following command (on standby node)
# mkdir /dev/vgwhatever
# mknod /dev/vgwhatever/group c 64 0x0?0000 ( ? is the same number you used on primary node)
# vgimport -v -s -m /tmp/vgwhatever.map /dev/vgwhatever

then do strings /etc/lvmtab on both node to verify that vgwhatever is configured the same.

if so, you can continue with your cluster configuration
Matti_Kurkela
Honored Contributor

Re: Serviceguard

Note: njia's instructions are for HP-UX, not for Linux. Since this is the Linux section, I assume you're asking about Serviceguard for Linux.

Here you can find all the documentation for Linux Serviceguard:
http://www.hp.com/go/linux-serviceguard-docs

The document you want is "Managing Serviceguard for Linux". Here is a direct link to the latest version:
http://bizsupport1.austin.hp.com/bc/docs/support/SupportManual/c02048872/c02048872.pdf

Choose a version of the document that matches your version of Serviceguard.

Within that document, you'll find detailed instructions on configuring Linux LVM volume groups for Serviceguard use.

If you need instructions for the basic use of LVM, perhaps you should read the LVM documentation of your distribution first.
For example, here's the LVM Administrator's Guide for RedHat Enterprise Linux (written for RHEL 5, mostly applicable to any Linux systems with a 2.6.* series kernel):

https://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.5/html/Logical_Volume_Manager_Administration/index.html

MK
MK