Operating System - HP-UX
1833883 Members
2386 Online
110063 Solutions
New Discussion

vgimport volume group vg00

 
SOLVED
Go to solution
Tariq Hasan
Occasional Advisor

vgimport volume group vg00

Hi,

I had been reinstalling the OP on my server.
I created vg00 with only one disk; extended all the file systems a recover vg00 from a previous backup.
Initially my server had 4 disks on vg00.
After finish the restore the server is ok but my server is confused about how many disks are on vg00.
The kernel thinks that there is only one but /etc/lvmtab shows 4.
I have used the comand vgscan -a to update lvmtab but is asking me to vgimport the disks again.

I don't have information important on the 3 disks that vg00 can't make a physical query.

I'm not sure if I can vgimport vg00 because the OS is in that disk.

I also have tried vgreduce and vgcfgreestore but is coming back with can't make a physical query.

Can you let me know if there is anyway to remove the 3 disks from /etc/lvmtab?.

Thanks in advance
Raquel
7 REPLIES 7
Animesh Chakraborty
Honored Contributor
Solution

Re: vgimport volume group vg00

Hi ,
Do mv /etc/lvmtab /etc/lvmtab.old
vgscan


It should work

best of luck
Animesh
Did you take a backup?
Ravi_8
Honored Contributor

Re: vgimport volume group vg00

Hi,
vgscan -a Scan all controller device paths to all physical volumes on the system.
Since your vg00 sits on primary controller device path. do #vgscan -v
After lvmtab created successfully
Do the following to resync information on disk.

# vgchange -a y

# lvlnboot -R

later
never give up
Marcin Wicinski
Trusted Contributor

Re: vgimport volume group vg00

Hi,

try to move lvmtab to lvmtab.old and then perform vgscan.
Marcin Wicinski
Manel Ventura
Advisor

Re: vgimport volume group vg00

Hi,

I had a similar problem. The solution in my case was the vgreduce command with the parameter "- f" (force reduction of missing physical volume in a given volume group).

Hope this helps.
Sridhar Bhaskarla
Honored Contributor

Re: vgimport volume group vg00

Just try doing a vgchange -a y and see if the problem is gotten rid of before doing anything. If this didn't fix the problem, then
mv /etc/lvmtab /etc/lvmtab.old and then do
a vgscan -v to recreate the lvmtab. Again don't forget to do vgchange -a y after vgscan.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Animesh Chakraborty
Honored Contributor

Re: vgimport volume group vg00

Hi raquel,
Just wondering is this problem solved ?



Thanks
Animesh

Did you take a backup?
Tariq Hasan
Occasional Advisor

Re: vgimport volume group vg00

Thanks very much for your responses.
It worked ok after I move /etc/lvmtab and create the new one using vgscan.

Cheers
Raquel