Tanti Technology

My photo
Bangalore, karnataka, India
Sandeep Kumar | Founder, Tanti Technologies At Tanti Technologies, I share practical knowledge, hands-on tutorials, and real-world solutions across Python, SQL, Docker, Kubernetes, CI/CD, AWS, Azure, Machine Learning, Generative AI, and Agentic AI. My mission is to simplify complex technologies and provide actionable insights that help developers, engineers, and businesses learn faster, build better, automate smarter, and innovate with confidence. 🚀 Learn • Build • Automate • Innovate Follow Tanti Technologies for practical technology insights and next-generation AI solutions.

Monday, 17 February 2014

How to clear the PV id in AIX



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