Operating System - HP-UX
1834803 Members
2821 Online
110070 Solutions
New Discussion

Re: Can we use Cluster lock lun deivce in any volume group?

 
Nesan
Advisor

Can we use Cluster lock lun deivce in any volume group?

Hello,

It is two node cluster, I am trying to create cluster.

When I tried to execte the command cmapplyconf, it fails .

But the disk is not actually used.
I have verified in both nodes.

cmapplyconf -C cluster.ascii
Note : a NODE_TIMEOUT value of 2000000 was found in line 133. This value
is recommended if the top priority is to reform the cluster as fast
as possible in case of failure. If the top priority is to minimize
reformations, consider using a higher setting. For more information see
the cluster configuration ASCII file or the Managing Serviceguard manual.
Device /dev/dsk/c4t2d2 is specified as a lock lun device, but it is used by LVM on node spcmanp1
. Please specify another device for lock lun.
Invalid data for cluster lock LUN configuration
cmapplyconf: Unable to verify cluster file: cluster.ascii.
[root:-/etc/cmcluster]strings /etc/lvmtab | grep c4t2d2
[root:/etc/cmcluster]strings /etc/lvmtab | grep c4t2d3

Thank you
Regards
NS
Everything you don't know is an opportunity to learn
8 REPLIES 8
melvyn burnard
Honored Contributor

Re: Can we use Cluster lock lun deivce in any volume group?

You cannot use a PV that has been assigned to an LVM VG as a Lock Lun
You must use a Physical LUN that is not assigned to ANY type of volume manager.
You could of course still use a Cluster Lock Disk, which MUST be part of a an LVM VG

My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Nesan
Advisor

Re: Can we use Cluster lock lun deivce in any volume group?

Thank you Melvyn for your reply.

It says "Device /dev/dsk/c4t2d2 is specified as a lock lun device, but it is used by LVM on node "
eventhough, I haven't used this disk on any volume group.
Everything you don't know is an opportunity to learn
melvyn burnard
Honored Contributor

Re: Can we use Cluster lock lun deivce in any volume group?

well that LUN appears to be marked for use as an LVM disk
make sure you check on the node spcmanp1

You can then either remove it from a VG, or wipe it out using the dd command
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
psreedhar
Frequent Advisor

Re: Can we use Cluster lock lun deivce in any volume group?

Use the following commands to know whether a disk has LVM metadata or not

# pvdisplay -l /dev/dsk/c18t0d6
/dev/dsk/c18t0d6:LVM_Disk=yes


If your disk is part of a exported volume group then it might not show up in /etc/lvmtab or /etc/lvmtab_p
Nesan
Advisor

Re: Can we use Cluster lock lun deivce in any volume group?


It shows as part of LVM disk. How do i remove it?

[root:-/etc/cmcluster]pvdisplay -l /dev/dsk/c4t2d2
/dev/dsk/c4t2d2:LVM_Disk=yes

Thank you Sreedhar

Regards
Nesan
Everything you don't know is an opportunity to learn
melvyn burnard
Honored Contributor

Re: Can we use Cluster lock lun deivce in any volume group?

use pvremove:
man pvremove::

pvremove - remove LVM data structure from a physical volume
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Nesan
Advisor

Re: Can we use Cluster lock lun deivce in any volume group?

Thank you guys for your response.

Finally I was able to erase the header by the following command. It started working!.

dd if=/dev/zero of=/dev/rdsk/cXtYdZ bs=128k count=2048

Thank you
Regards
Nesan
Everything you don't know is an opportunity to learn
Nesan
Advisor

Re: Can we use Cluster lock lun deivce in any volume group?

Thank you guys for your response.

Finally I was able to erase the header by the following command. It started working!.

dd if=/dev/zero of=/dev/rdsk/cXtYdZ bs=128k count=2048

for some pvcreate -f didn't erase volume info.

dd command only worked.

Thank you
Regards
Nesan
Everything you don't know is an opportunity to learn