LVM and VxVM

Volume activation problem on HP-UX

 
Tejas J Raval
Advisor

Volume activation problem on HP-UX

Dear Friends,

I am not able to activate one of the volumes on HP-UX. Following is the error

[sappro:K260]:/ # vgchange -a y /dev/vg10
vgchange: Volume group "/dev/vg10" does not exist in the "/etc/lvmtab" file.
You have mail in /var/mail/root

[sappro:K260]:/ # vgimport -v -m /etc/lvmconf/vg10.mapfile /dev/vg10 /dev/dsk/c9t0d0
Beginning the import process on Volume Group "/dev/vg10".
Volume group "/dev/vg10" is still active.

[sappro:K260]:/ # vgchange -a n /dev/vg10
vgchange: Volume group "/dev/vg10" does not exist in the "/etc/lvmtab" file.

Note: System is not allowing me to activate or deactivate the volume. Is here any way to deactivate the volume forcibly.




7 REPLIES 7
Robert-Jan Goossens
Honored Contributor

Re: Volume activation problem on HP-UX

Hi,

corrupt lvmtab?

# mv /etc/lvmtab /etc/lvmtab.old
# vgscan -a

# vgchange -a y /dev/vg10

Regards,
Robert-Jan
Tejas J Raval
Advisor

Re: Volume activation problem on HP-UX

Hi Robert-Jan,

I tried out the steps mentioned by you. But still I am not able to activate or deactivate.

vg00 & vg01 volumes are ok.

I am facing problem with volume v10. Is there any way to forcibly activate or deactivate the volume

Thanks,
Tejas
Torsten.
Acclaimed Contributor

Re: Volume activation problem on HP-UX

The facts:

- not in /etc/lvmtab (for any reason)
- still active

So run

# vgdisplay -v vg10
and
# vgscan -p -v

What is the result?
(post it)

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!   
Tim Nelson
Honored Contributor

Re: Volume activation problem on HP-UX

My guess on how this became corrupt.

/dev/vg10 was rm -r'd

As mentioned vgscan -p to see what it thinks is there.

Ultimately you will need to move lvmtab to lvmtab.old then do a full vgscan. It should then either record /dev/vg10 or tell you that you can now activate it.

Tejas J Raval
Advisor

Re: Volume activation problem on HP-UX

Hi Torsten,

Following is the output

[sappro:K260]:/ # vgdisplay -v vg10
vgdisplay: Volume group "/dev/vg10" does not exist in the "/etc/lvmtab" file.
vgdisplay: Cannot display volume group "vg10".
You have mail in /var/mail/root


[sappro:K260]:/ # vgscan -p -v
vgscan: The physical volume "/dev/dsk/c0t8d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c0t9d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c0t10d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c1t8d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c1t9d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c1t10d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c1t11d0" is already recorded in the "/etc/lvmtab" file.
Couldn't stat physical volume "/dev/dsk/c2t2d0":
Invalid argument


/dev/vg00
/dev/dsk/c0t8d0
/dev/dsk/c0t9d0
/dev/dsk/c0t10d0
/dev/dsk/c1t8d0
/dev/dsk/c1t9d0
/dev/dsk/c1t10d0


Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c0t11d0








Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c9t0d0
/dev/dsk/c9t1d0
/dev/dsk/c9t2d0
/dev/dsk/c9t3d0
/dev/dsk/c9t8d0
/dev/dsk/c9t9d0
/dev/dsk/c9t10d0


/dev/vg01
/dev/dsk/c1t11d0



Regards,
Tejas
Torsten.
Acclaimed Contributor

Re: Volume activation problem on HP-UX

To follow Tim's guess, what is the result of

# ll /dev/vg10

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!   
Torsten.
Acclaimed Contributor

Re: Volume activation problem on HP-UX

And BTW, there is always this message:

"You have mail in /var/mail/root"


I think your server is trying to tell you something. Have a look into the mailbox and the syslog file.

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!