<DIV>Hi Milan,</DIV>
<DIV>      Thank you very much for so qucik answer.</DIV>
<DIV>      The reason cause me to read the source code is you mentioned in your email: 'vgscan'. When I use the 'vgs' cmd, it maybe take a long time, the 'vgs' can't be executed  parallelly? The 'vgs' cmd will scan all the devices, once one device locked, it will wait till timeout or err come(device err)?  </DIV>
<DIV> </DIV>
<DIV> Best Regards,</DIV>
<DIV>Busby</DIV><PRE> > -----原始邮件-----
> 发件人: "Milan Broz" <mbroz@redhat.com>
> 发送时间: 2010年4月13日 星期二
> 收件人: "LVM general discussion and development" <linux-lvm@redhat.com>
> 抄送: "Busby.Cheung" <chaimvy@163.com>
> 主题: Re: [linux-lvm] what does 'orphan vg' mean?(global vg?)

> On 04/13/2010 09:16 AM, Busby.Cheung wrote:
> >       While I was reading the lvm source code, I can't understand what
> > 'is_orphan' means(like 'is_orphan_vg' function). what's the different
> > between orphan and global vg?

> Orphan PV is device with PV label which is not attached to any Volume Group.
> (IOW it is handled by LVM, but space on it is not yet allocatable.)

> There is no such thing like Global VG in LVM2, only "global lock".
> It is internal lock used to avoid parallel scanning of all devices.
> (you will see it in vgscan command for example).

> Milan
</PRE><br><br><span title="neteasefooter"/></span>