Showing results for 
Search instead for 
Did you mean: 


Patrick B Boafo
Occasional Contributor


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?
Benoy Daniel
Trusted Contributor

Re: Serviceguard


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.
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/ /dev/vgwhatever

copy that 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/ /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
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:

The document you want is "Managing Serviceguard for Linux". Here is a direct link to the latest version:

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):