LVM and VxVM

rp4440 hpux 11i,mirror disk, all lv of vg00,vg can not sync automaticly!

 
xia yunduan
Occasional Contributor

rp4440 hpux 11i,mirror disk, all lv of vg00,vg can not sync automaticly!

a rp4440 with hpux 11i installed,two internal disk is in the same vg vg00,all lv is mirrored,boot from both disk is ok tested.

when i removed one disk(hot pluy)and installed it again,the vg can not sync automaticly! and the pv is not actived.
but when i redo this (remove,install) several times,the pv is actived and the vg can sync !

so strange!

another rp4440 is ok with this test.
8 REPLIES 8
Thayanidhi
Honored Contributor

Re: rp4440 hpux 11i,mirror disk, all lv of vg00,vg can not sync automaticly!

Hi,
Patch levels are same in both servers?
Post the syslog output of both servers.
You would see PVx failed....
PVx returned ...some thing like that.

After you plug the disk back, is the disk claimed in ioscan?

Regds
TT
Attitude (not aptitude) determines altitude.
xia yunduan
Occasional Contributor

Re: rp4440 hpux 11i,mirror disk, all lv of vg00,vg can not sync automaticly!

disk state is ok,only pv state is not ok.



Torsten.
Acclaimed Contributor

Re: rp4440 hpux 11i,mirror disk, all lv of vg00,vg can not sync automaticly!

Hi again,

generally speaking, most internal disks are hot-plugable, but not hot-swapable. (if you have no RAID-controller and you are using LVM, of course)
So many documentation say

"A hot-plug device may require interaction with the operating system before the device can be
safely removed from or installed into the server..."

In this case, you have to interact.
Normally, you will pull out the bad disk and insert a new, blank disk. So you have to follow the procedure to restore configuration, boot-headers ...(vgcfgrestore ... and so on).

If one of the disks is not responding, the system will take notice about (perhaps some time later) and marks the extends "stale". If the disk is responding again, the system will try to lvsync the lvols. But if you have this scenario, your disk is going bad - in other words, you have to change the disk.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Florian Heigl (new acc)
Honored Contributor

Re: rp4440 hpux 11i,mirror disk, all lv of vg00,vg can not sync automaticly!

can You try if a pvchange -a y /dev/dsk/something changes the problem?

and, like already said, dmesg/syslog outputs would be really interesting ;)
yesterday I stood at the edge. Today I'm one step ahead.
Devender Khatana
Honored Contributor

Re: rp4440 hpux 11i,mirror disk, all lv of vg00,vg can not sync automaticly!

Hi,

You need to enable the disk for LVM before it can sync back.

Here is the official guide describing it.
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf

HTH,
Devender
Impossible itself mentions "I m possible"
xia yunduan
Occasional Contributor

Re: rp4440 hpux 11i,mirror disk, all lv of vg00,vg can not sync automaticly!

another rp4440 pass the test ok!

with the good rp4440,i used the command dd to clone the entire disk to a new disk,and place the new disk in the test-fail rp4440,then mirror all lvs too,do the test again(remove and install),this time it is ok,the pv is actived and vg is synced automaticly!

so strange! maybe some os patch is missed?

Manuel Abellan
Occasional Advisor

Re: rp4440 hpux 11i,mirror disk, all lv of vg00,vg can not sync automaticly!

Hi Xia:

I just saw your message and wanted to mention that this happened to me in the past with other servers and it turned out to be a SCSI patch. What happened is that when you pull out the disk and pull back in it is never spinned. If you pay attention you will notice that without the patch the disk is not spinning, after the patch was installed the sync happened the way it is supposed to. Hope this will clarify the mystery.

Manuel
Robert-Jan Goossens
Honored Contributor

Re: rp4440 hpux 11i,mirror disk, all lv of vg00,vg can not sync automaticly!

99 times out of a hundred this goes well, If you look at the seagate site they report above behavior sometimes.

HOTPLUG/HOTSWAP in no guarantee

Check you disk for errors.

# dd if=/dev/rdsk/cxtydz of=/dev/null bs=512k

Best regards,
Robert-Jan