1843946 Members
2118 Online
110226 Solutions
New Discussion

disks handled by SG

 
SOLVED
Go to solution
Jannik
Honored Contributor

disks handled by SG

How can i see the disks handled by SG. I could login to the active node and see it. But how can i get the information out of the SG configuration.

This is to make sure i don't have any unused disks in the system. And disks handled by SG is shown as unused by LVM on a inactive cluter node.
jaton
13 REPLIES 13
Rita C Workman
Honored Contributor
Solution

Re: disks handled by SG

The control script.

Rita
Patrick Wallek
Honored Contributor

Re: disks handled by SG

SG does not really handle disks. It deals with VGs.

Each package generally has its own VG or VGs that it activates and mounts filesystems from when the package starts.

Your best bet would be to look through the configuration for each package and not down the VGs used. The do a 'strings /etc/lvmtab' and note the disk devices used by each VG. You could then compare that list to your 'ioscan -kfnC disk' output to see any "extra" disks on each system.
IT_2007
Honored Contributor

Re: disks handled by SG

Your question is not clear.

Disks are shared between nodes in cluster other than vg00 disks.

If node1 is active then you can see disks are writable under node1. At the same time, node2 doesn't have access to the same volume group which is defined in cluster config.

If you want to see any unused disks then compare your /etc/lvmtab to "sympd list" for EMC disks.

Re: disks handled by SG

Jannik,

strings /etc/lvmtab

will show all the disks used by LVM, even if the VG they are in is not currently active on that node.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Victor Fridyev
Honored Contributor

Re: disks handled by SG

Hi,

SG works with volume groups as it mantioned above. In order to see used volume groups, look at the cluster *.ascii file. The groups are listed at the end of the file.
Also you can llok at all *cntl files:

find /etc/cmcluster -name "*.cntl" -exec grep VG\[ {} \; |grep -v ^#

Both these ways give you list of volume groups. The next stage is :
strings /etc/lvmtab , in order to see appropriate disks

HTH
Entities are not to be multiplied beyond necessity - RTFM
Stephen Doud
Honored Contributor

Re: disks handled by SG

There is no single command available to identify the disks that are governed by Serviceguard.

To identify them, use with 'cmgetconf, which will survey the disks, and recreate a cluster configuration file with a list of LVM volume groups that have the cluster ID on them. Then use 'strings /etc/lvmtab' on each server to locate the /dev/dsk paths to the disks operated by each volume group.

If the /etc/lvmtab is not current and does not describe all volume groups managed by Serviceguard, then it is more difficult to identify which disks has Serviceguard structures on them. If you have this situation, open a case with an HP Support Center and discuss the capabilites of the 'lvm' command to divulge the cluster-related information contained in the VGDA on a disk.
Kevin Wright
Honored Contributor

Re: disks handled by SG

If you cluster is setup right, all cluster VG's should be set to not be activated in /etc/lvmconf. Otherwise, grep for the VG's in your package directories under /etc/cmcluster.
Kevin Wright
Honored Contributor

Re: disks handled by SG

make that /etc/lvmrc... sorry.
sajeer_2
Regular Advisor

Re: disks handled by SG


To see the disks connected to system,
#ioscan -fnC disk

To see the disks configured using lvm,
#strings /etc/lvmtab

To See the VGs using in cluster,
check the cluster ASCII file and also check package control scripts.

Vivek Pendse
Occasional Advisor

Re: disks handled by SG

you will get it in the package control scripts.
Vivek Pendse
Mauro Gatti
Valued Contributor

Re: disks handled by SG

In the LVM header area you can find the cluster ID of the cluster to which the volume group belongs.
Tro to check
echo "0x12080?8x"|adb /dev/dsk/cXtYdZ
You should look for an "1" that means the vg was marked using "vgchange -c y" command.

RGDS

Mauro
Ubi maior, minor cessat!
Lakshmikanth Baddam
Frequent Advisor

Re: disks handled by SG

Hi Jannik,

You can view all the VG, LVM, which are part pf cluster in cd /etc/cmcluster/PKG/PKG.cntl


LK
Jannik
Honored Contributor

Re: disks handled by SG

Thanks all.
I will build a script to handle it. I will go though all the answers in that process and assign point acording to the usefullness :-).
jaton