Operating System - HP-UX
1752805 Members
5604 Online
108789 Solutions
New Discussion юеВ

Error in vgextend for alternate link

 
SOLVED
Go to solution
hboo
Frequent Advisor

Error in vgextend for alternate link

Hello all...

I want to add a alternate link for a disk belongs to a VG.

Output of vgextend command is:
#vgextend /dev/vg0x /dev/dsk/c18t0d6
.
.
.
vgextend: The physical volume "/dev/dsk/c18t0d6" is already recorded in the "/etc/lvmtab" file.

/etc/lvmtab contain:

^EM-zM-x|FM-^JM-^YM-^B^A/dev/dsk/c18t0d6

This is with "more" command

Somebody can help me to add alternate link /dev/dsk/c18t0d6 in my vg?

Thanks.
9 REPLIES 9
Geoff Wild
Honored Contributor

Re: Error in vgextend for alternate link

strings /etc/lvmtab

Then look to see which vg it is in...


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Torsten.
Acclaimed Contributor

Re: Error in vgextend for alternate link

The file
/etc/lvmtab
is binary, so a "more" will probably chrash your shell.
Do
# strings /etc/lvmtab

and you will see to which VG the device belongs.

obviously it is alreay included.

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!   
Geoff Wild
Honored Contributor

Re: Error in vgextend for alternate link

Another way to see which vg already has it:

vgdisplay -v |egrep "VG Name|c18t0d6"


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
hboo
Frequent Advisor

Re: Error in vgextend for alternate link

OK, strings /etc/lvmtab results:
/dev/vg00
/dev/dsk/c2t0d0
/dev/dsk/c2t1d0
/dev/vgoracle01
/dev/dsk/c9t0d0
/dev/dsk/c12t0d1
/dev/dsk/c15t0d1
/dev/dsk/c27t0d2
/dev/dsk/c27t0d1
/dev/dsk/c24t0d0
/dev/dsk/c21t0d1
/dev/dsk/c21t0d0
/dev/dsk/c18t0d0
/dev/dsk/c15t0d0
/dev/dsk/c15t0d2
/dev/dsk/c27t0d0
/dev/dsk/c12t0d0
/dev/dsk/c18t0d1
/dev/dsk/c9t0d1
/dev/dsk/c6t0d1
/dev/dsk/c24t0d1
/dev/dsk/c6t0d0
/dev/dsk/c24t0d2
/dev/dsk/c18t0d2
/dev/dsk/c9t0d2
/dev/dsk/c6t0d2
/dev/dsk/c6t0d3
/dev/dsk/c9t0d3
/dev/dsk/c18t0d3
/dev/dsk/c24t0d3
/dev/dsk/c18t0d4
/dev/dsk/c6t0d4
/dev/dsk/c24t0d4
/dev/dsk/c9t0d4
/dev/dsk/c24t0d5
/dev/dsk/c18t0d5
/dev/dsk/c9t0d5
/dev/dsk/c6t0d5
/dev/dsk/c6t0d6
/dev/dsk/c9t0d6
/dev/dsk/c24t0d6
/dev/vg01x
/dev/dsk/c18t0d6

But the principal link of /dev/dsk/c18t0d6 belong to /dev/vgoracle01, and the /etc/lvmtab shows that /dev/dsk/c18t0d6 belongs to /dev/vg01x (this is no active vg)
David Bellamy
Respected Contributor

Re: Error in vgextend for alternate link

Hayse do a vgchange -a n vg01x, then do a vgexport vg01x follow by a vgscan -av then try to vgextend the disk.
Geoff Wild
Honored Contributor
Solution

Re: Error in vgextend for alternate link

DON'T vgactivate the vg if you are positive that disk is an alternate link for another in an existing vg!

Just vgexport it

vgexport /dev/vg01x

then try your vgextend again.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Geoff Wild
Honored Contributor

Re: Error in vgextend for alternate link

BTW - just saw you lvmtab again - why do you have so many disks in vg00?

You really shouldn't mix your OS disk(s) with Applications - you should have them is separate vg's.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
hboo
Frequent Advisor

Re: Error in vgextend for alternate link

Thanks Geoff

The extends works good after the vgexport /dev/vg01x

Thanks.
hboo
Frequent Advisor

Re: Error in vgextend for alternate link

Thanks all of you....

Hayse