Operating System - HP-UX
1830250 Members
3495 Online
110000 Solutions
New Discussion

vgcfgbackup command fails

 
SOLVED
Go to solution
omars
Advisor

vgcfgbackup command fails

Hi ,
I have a volume group vg03 and
there are 4 physical volumes .
( ie 4 disk )

When i do vgcfgbackup on vg03 ,
it prompted
kernel is updated to have 5 disk . /etc/lvmtab has 4 disk .

All i need is to update vg03 to have 4 physical volumes since i have 4 disk .

I think it is the VGRA on pv's that needs to be update since
a vgdisplay on vg03 indicates
Cur Pv 5
Act Pv 4

So if i correct the Cur_Pv attribute , then vgcfgbackup on vg03 will be successful .

Any ideas ??
Nothing is too late to learn
5 REPLIES 5
Michael Tully
Honored Contributor

Re: vgcfgbackup command fails

Before you do anything, it seems that there are 5 disks in the volume group, not four. We need to make sure that removing the fifth disk to not do anything to your system. In the 'vgdisplay -v /dev/vg03' output what does the disk information display?
Anyone for a Mutiny ?
omars
Advisor

Re: vgcfgbackup command fails

Hi michael ,

There is only 4 disk in the cabinet. 100% sure .

A vgdisplay -v /dev/vg03 indicates 4 physical volumes
( last entries have 4 list of /dev/dsk/cXtXdX )

strings of /etc/lvmtab shows
again the same 4 entries of /dev/dsk/cXtXdX.

Nothing is too late to learn
Michael Tully
Honored Contributor
Solution

Re: vgcfgbackup command fails

To be sure, run an 'ioscan -fnC disk'

Then you could try this:

# cp /etc/lvmtab /etc/lvmtab.back
# vgreduce -f vg03
See man page for details.

# mv /etc/lvmtab /tmp
# vgscan -a

HTH
Michael
Anyone for a Mutiny ?
S.K. Chan
Honored Contributor

Re: vgcfgbackup command fails

You can try 3 things here ..
1) Rebuild /etc/lvmtab.
# cd /etc
# mv lvmtab lvmtab.old
# vgscan -v
2) Force reduction of missing PV.
# vgremove -f /dev/vg03
3) Export and import the VG.
==> After umounting all the FS on vg03..
# vgchange -a n /dev/vg03
==> Deactivate vg03
# vgexport -m /tmp/vg03map /dev/vg03
# mkdir /dev/vg03
# mknod /dev/vg03/group c 64 0x030000
==> minor number has to be unique
# vgimport -m /tmp/vg03map /dev/vg03 /dev/dsk/cXtXdX /dev/dsk/cYtYdY ....
Since you're sure it 4 disks, 1) is out of the question. You should try 2) and see if that helps. 3) will surely be able to update the correct LVM information onto the kernel.
omars
Advisor

Re: vgcfgbackup command fails

Thanks Miachel

The vgreduce -f vg03 works .
After the vgreduce , the vgdisplay shows
Cur Pv 4
Act Pv 4 .

Now the VGRA for all pv's are updated .

Now my vgcfgbackup on vg03 works
perfectly with no errors !
Thanks alot

Thnaks also goes to K C chan for the effort & time .

rgds,
omari
Nothing is too late to learn