Tanti Technology

My photo
Bangalore, karnataka, India
Multi-platform UNIX systems consultant and administrator in mutualized and virtualized environments I have 4.5+ years experience in AIX system Administration field. This site will be helpful for system administrator in their day to day activities.Your comments on posts are welcome.This blog is all about IBM AIX Unix flavour. This blog will be used by System admins who will be using AIX in their work life. It can also be used for those newbies who want to get certifications in AIX Administration. This blog will be updated frequently to help the system admins and other new learners. DISCLAIMER: Please note that blog owner takes no responsibility of any kind for any type of data loss or damage by trying any of the command/method mentioned in this blog. You may use the commands/method/scripts on your own responsibility. If you find something useful, a comment would be appreciated to let other viewers also know that the solution/method work(ed) for you.

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