Operating System - HP-UX
1752661 Members
5849 Online
108788 Solutions
New Discussion

"vgchange -a y <volume group>" always synchrnonizes disks

 
Indranil
Occasional Contributor

"vgchange -a y <volume group>" always synchrnonizes disks

Hi,

I am using MirrorDisk/UX for a cluster managed by MC/ServiceGuard. Recently what happened was that one of the disk was found to be defective. So, I did a hotswap, put a new disk back in.

I saw that the new disk could be recognized.

# ioscan -fnC disk
The disk was found to be CLAIMED

# strings /etc/lvmtab
showed me the disk entry under the volume group vg01

Then, I restored the VG configuration by doing

# vgcfgbackup -n vg01 -l

Next, I tried to activate the VG

# vgchange -c n vg01
# vgchange -a y vg01

The vg started re-syncing. Previously there were some stale partitions left.

After the sync was complete, I did a
# vgdisplay -v vg01
The logical volume showed "available/syncd" status

# lvdisplay -v /dev/vg01/lvol1 did not report any stale partitions.

NOW, whenever I try to start my package or manually try to activate the volume group, it starts re-syncing again. Any ideas ?

Thanks
Indranil

 

 

P.S. this thread has been moved from Disk, Disk Arrays (Legacy) to HP-UX > LVM - HP Forums Moderator

1 REPLY 1
Jordi Gibal
Occasional Contributor

Re: "vgchange -a y <volume group>" always synchrnonizes disks

Hi Indranil,

can you try with this?

1) # strings /etc/lvmconf/vg_name.conf

2) # pvcreate ???f pv_path (/dev/rdsk/cxtydz)

3) # vgcfgrestore ???n vg_name pv_path (dev/rdsk/cxtydz)

4) # vgchange ???a y vg_name

5) # vgsync vg_name

good luck.
When you wake up early, God help's you.