1836384 Members
3746 Online
110100 Solutions
New Discussion

Re: Vgscan

 
SOLVED
Go to solution
Bruno Misculin Rosamili
Occasional Advisor

Vgscan

Ciao,
I have a problem with a L class whith HP-UX 11.00.
After saving /etc/lvmtab I made a vgscan and after that in the new lvmtab I had /dev instead of /dev/vg00.
It happens every time.
Somebody can help me?
Ciao
Federico
9 REPLIES 9
PIYUSH D. PATEL
Honored Contributor

Re: Vgscan

Hi Bruno,

Apart from /dev are you getting /dev/vg00 also and the disks which are included in the volume group.

What problem are you facing......why are you doing a vgscan ???

Piyush
James R. Ferguson
Acclaimed Contributor

Re: Vgscan

Hi:

One thing is to make sure that you move aside the current 'lvmtab' before doing the 'vgscan'. Otherwise it will be used to in building the new one.

Try this:

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

Regards!

...JRF...
Jeff Schussele
Honored Contributor

Re: Vgscan

Hi Bruno,

Are you removing the original lvmtab by mv or copy/rm or just making a safe copy?
You should make sure it doesn't exist prior to the vgscan command or it'll use the lvmtab as reference.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Helen French
Honored Contributor

Re: Vgscan

Hi Bruno:

May be this latest patch - PHCO_24645 (s700_800 11.00 LVM commands cumulative patch) will solve your problem.

HTH,
Shiju
Life is a promise, fulfill it!
S.K. Chan
Honored Contributor
Solution

Re: Vgscan

2 possibilities ..
1) Move the lvmtab file first
# cd /etc
# mv lvmtab lvmtab.org
# vgscan -v
2) /dev/slvmvg file problem (if it exists you..)
# cd /etc
# rm /dev/slvmvg
# mv lvmtab lvmtab.org
# vgscan -v
erics_1
Honored Contributor

Re: Vgscan

Federico,

Take a look within your /dev directory for a file that was mknod'ed the same as the /dev/vg00/group file. If there is, this file needs to be moved elsewhere.

Hope this helps!

Eric
MANOJ SRIVASTAVA
Honored Contributor

Re: Vgscan

Bruno


form the patch no PHCO_25814 :details


( SR:8606166168 CR:JAGad35455 )
The vgscan command puts a bogus entry in the lvmtab
file, when a special file /dev/slvmvg is present
with the same minor number as /dev/vg00.


May be you need to look in this direction.


Manoj Srivastava
Bruno Misculin Rosamili
Occasional Advisor

Re: Vgscan

Ciao,
my problem was that I had a disk that doesen't work. On this disk I had vg01 ( the system had to be in cluster mode ) but unfortunately when I try to change disk with a new one it was not possible to remove/reduce vg01 because vg01 was not active ( vgchange command doesent't work because disk was not ok ).
So I try with vgscan and it was ok but /dev/vg00 appears as /dev in lvmtab
I resolve my problem with vgexport vg01 but I would like to know how to solve the problem regarding vg00 mistake doing vgscan.

P:S. I made a mv to save lvmtab
Sorry for my bad English!
Ciao Federico
S.K. Chan
Honored Contributor

Re: Vgscan

Did you try option 2 (from my previous post), only if /dev/slvmvg exists ?