Operating System - HP-UX
1827009 Members
2395 Online
109713 Solutions
New Discussion

Re: Volume Group still thinks it's active

 
SOLVED
Go to solution
gstonian
Trusted Contributor

Volume Group still thinks it's active

Had an issue with Business Copy this morning where:

vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 12 disks for "/dev/vg1_bc_data"; /etc/lvmtab has 9 disks

After reading ITRC I have tried a number of things including vgscan vgchange & eventually removing the group files etc.

My issue now is that the volume group still thinks it's active but as it's not in lvmtab, I cannot deactivate it ?

Errors I'm getting are :
pisces# vgimport /dev/vg1_bc_data /dev/dsk/c28t7d6
Volume group "/dev/vg1_bc_data" is still active.

vgchange -a n /dev/vg1_bc_data
vgchange: Volume group "/dev/vg1_bc_data" does not exist in the "/etc/lvmtab" file.


Does anyone know what options I can you to either force deactivation, or just remove it all together and start again ?

5 REPLIES 5
Florian Heigl (new acc)
Honored Contributor

Re: Volume Group still thinks it's active

can you supply vgscan -vp, vgdisplay -v, strings /etc/lvmtab and ioscan -fnkCdisk?

It might be too much asked, depending on your site policies but I dob't think it's good to point you anywhere with incomplete data.

Actually, even the grabbing the VGIDs off disk would be good :)

That 9/12 issue is not what I'd call a clean state.
yesterday I stood at the edge. Today I'm one step ahead.
Court Campbell
Honored Contributor

Re: Volume Group still thinks it's active

1. Restore your group file.
2. do a vgexport -f /dev/vg1_bc_data
3. follow the instructions that vgexport will state about making a copy of lvmtab, etc.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Steven E. Protter
Exalted Contributor
Solution

Re: Volume Group still thinks it's active

Shalom,

What about one of these two ideas:
1) Restore the lvmtab from backup and attempt another deactivate.
2) mv /etc/lvmtab /etc/lvmtab.save vgscan -a

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
perumal_2
Frequent Advisor

Re: Volume Group still thinks it's active

Hi

Preferably you can restore your lvmtab from the backup then repeat the vgexport and vgimport. After restoring your lvmtab
do an vgexport & import as follows
#vgchange -a n vg1_bc_data
#vgexport -v vg1_bc_data
#vgimport -v vg1_bc_data /dev/dsk/c28t7d6

Rgds
Perumal
gstonian
Trusted Contributor

Re: Volume Group still thinks it's active

Thanks for the ideas.

My problem was trying to get out of the loop where it thought the VG was active with no entry in the LVMTab so couldn't de-activate it. Looking back at it, a restore would of been a good idea.

I ended up cleaning the device files and rebooting the server (as it was out of hours) and finding out why why it thought it had only 9 out of 12 Disks active.

It turned out another Admin had added the 3 disks to the source VG and hadn't taken them into account for the business copy so I had to add them in for the import/activation to work.

Thanks for you responses - esp. over the weekend :-)