Operating System - HP-UX
1833049 Members
2431 Online
110049 Solutions
New Discussion

Unable to form cluster - Mirror disk are in stale condition

 
Dayanand Naik_2
Occasional Contributor

Unable to form cluster - Mirror disk are in stale condition

Hi Folks,

I'm facing a problem while starting the cluster, the disk which is mirrored is not getting displayed. After doing a vgdisplay one of the disk is missing. There is no error on the syslog file. The mirror disk is /dev/dsk/c5t0d0.

Attached are the log files for all commands. Do I need to break the cluster or is it the problem with the Disk.

Can someone help me in fixing the same.


Regards,
Dayanand Naik.
6 REPLIES 6
Geoff Wild
Honored Contributor

Re: Unable to form cluster - Mirror disk are in stale condition

Can you do:

diskinfo dev/rdsk/c5t0d0

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Bharat Katkar
Honored Contributor

Re: Unable to form cluster - Mirror disk are in stale condition

Dayanand,
One immediate way is to remove the mirror and put your server back working (I think is your production server).
So one option i assume you haven't tried.

# lvreduce -k -m 0 /dev/vgora/lvu01 /dev/dsk/c4t0d0

I hope this should work. See man lvreduce to read about -k option. This is specially for such conditions.

That should help.
Regards,
You need to know a lot to actually know how little you know
Geoff Wild
Honored Contributor

Re: Unable to form cluster - Mirror disk are in stale condition

whoa - hold the horses - correct me if I'm wrong, but from your output it appears that /dev/dsk/c5t0d0 is missing - not /dev/dsk/c4t0d0....

Next - is this the same on all nodes in cluster?

If cluster is down, a vgdisplay /dev/vgora should reveal

vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vgora".

Then, on one of the nodes, vgchange -c n /dev/vgora
vgchange -a y /dev/vgora

Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Bharat Katkar
Honored Contributor

Re: Unable to form cluster - Mirror disk are in stale condition

Geoff you are obsolutely right.
Daya please read the line in previous post:# lvreduce -k -m 0 /dev/vgora/lvu01 /dev/dsk/c4t0d0

as
# lvreduce -k -m 0 /dev/vgora/lvu01 /dev/dsk/c5t0d0

Regards,
Bharat

p.s. I simply did cut and paste of the command. Anyway apologies for the same.




You need to know a lot to actually know how little you know
Stephen Doud
Honored Contributor

Re: Unable to form cluster - Mirror disk are in stale condition

I note from the lvdisplay output from /dev/vgora/lvu01 that some of the extents are stale and others are not. This could be because some of the extents have not yet been updated.
If diskinfo proves the /dev/dsk/c5t1d0 disk is unavailable, then the VG can still be activated through the package control script.
While awaiting the repair/replacement of that disk, change the control script line that reads:

VGCHANGE="vgchange -a e"
to
VGCHANGE="vgchange -a e -q n"

-SD-
Dayanand Naik_2
Occasional Contributor

Re: Unable to form cluster - Mirror disk are in stale condition

Hi All,

sorry i could not reply back, as suggested i tried to reduce the volume group but it gives an error. Attached is the same.

It was a production server, which is moved to another location. So i had to bring this up, while doing the same, Cluster was not comming up.

root @ csora1 # lvreduce -k -m 0 /dev/vgora/lvu01 /dev/dsk/c5t0d0
Physical extents on remaining physical volumes are stale or
Remaining physical volumes are not responding.
lvreduce: The LVM device driver failed to reduce mirrors on
the logical volume "/dev/vgora/lvu01".

Do i have to remove this logical volume and recreate the same. Doing this i will loose data, and i can restore the data back as i have all the backups in place. Kindly let know the steps in doing the same.

Any suggestions.