1830657 Members
28544 Online
110015 Solutions
New Discussion

pvdisplay question

 
SOLVED
Go to solution
Alex Lavrov.
Honored Contributor

pvdisplay question

Hello,

I have a question about pvdisplay. I had a VG with one PV connected by two channels. Primary and alternate.

I disconnected one channel and did vgreduce to one of the paths. Then, I connected it back and did pvdisplay on that disk. I got error which said that this PV does not belong to LVM. Weird, it's the same disk in VG. I did vgextend anyway, it worked and after this pvdisplay worked on it.

The question is why I got this message? Is it because the disk was not in /etc/lvmtab?

Thanx.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
5 REPLIES 5
Venkatesan_5
Frequent Advisor
Solution

Re: pvdisplay question

hi,

yes since the entry is not in /etc/lvmtab , you are getting this message ....

once vgreduce command is executed the entry from /etc/lvmtab is removed....so the vg has only one pv in it...



regds

Venkatesan.
Pedro Cirne
Esteemed Contributor

Re: pvdisplay question

Hi,

Yes, you got the message because the alternate link wasn't on the /etc/lvmtab.

Pedro
Alex Lavrov.
Honored Contributor

Re: pvdisplay question

Strange ... for some reason I thought that pvdisplay checks the disk itself ...


Thanx.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Kryno Bosman
Advisor

Re: pvdisplay question

Since pvdisplay is part of LVM it will probably always use /etc/lvmtab to check. You
Simplicity is too difficult for idiots like you and me...
Alex Lavrov.
Honored Contributor

Re: pvdisplay question

Thanks to all.
I don't give a damn for a man that can only spell a word one way. (M. Twain)