When you assign a disk to a volume group,the disk automatically gets a PVID(Physical Volume ID).
For instance , the following example shows that hdisk2 has a PVID because it is a member in hacmp_VG and hdisk1 has no PVID
because it is not a member in any VG:
# lspv hdisk2 00f6c0100e3c830e hacmp_VG active hdisk0 00f6c0105a881049 rootvg active hdisk1 none None
let`s remove hacmp_VG and check the state of the PVID of hdisk2″
# reducevg hacmp_VG hdisk2 ldeletepv: Volume Group deleted since it contains no physical volumes.
# lsvg rootvg
# lspv hdisk2 00f6c0100e3c830e None hdisk0 00f6c0105a881049 rootvg active hdisk1 none None
Now,we removed the hacmp_VG and hdisk2 still has the same PVID!
To remove the hdisk2 PVID:
#chdev -l hdisk2 -a pv=clear hdisk2 changed
let`s check it again:
#lspv hdisk2 none None hdisk0 00f6c0105a881049 rootvg active hdisk1 none None
Now,we removed hdisk2 PVID.
No comments:
Post a Comment