AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  removing PVID from odm

    Posted Mon June 16, 2008 03:17 PM

    Originally posted by: SystemAdmin


    Hi.
    Here's the situation. I have several LUNs configured for Oracle's ASM. These LUNs have PVIDs assigned to them but in reality, the PVIDs are not written on the first 4k of the LUN. The reason is that ASM uses and overwrites the first 40 bytes of the LUN.

    Theses LUN should not have had a PVID assigned to begin with. The lquerypv -h /dev/hdiskxx command clearly shows the ASM labels, and no PVID. But when an 'lspv' is run, the drives are listed with PVIDs.

    I can not run a chdev because it overwrites the first 4k of the LUN, thus clearing the ASM Label. And if there is no label the drive is no longer usable by ASM, and the data is lost.

    So I'm thinking of removing the PVID from the ODM with the following command: odmdelete -q value=0073659c2c6d26f10000000000000000 -o CuAt (where 0073659c2c6d26f1 = PVID).

    My question is: Does anybody know if AIX will run a chdev at any time (cfgmgr, reboot...) to clear the PVID from the drive as the ODM has changed ? Remember that it is critical that no 'chdev' be run on these ASM drives.

    TKS.


  • 2.  Re: removing PVID from odm

    Posted Mon June 16, 2008 03:38 PM

    Originally posted by: jvk


    Run rmdev -dl hdiskN
    cfgmgr


  • 3.  Re: removing PVID from odm

    Posted Mon June 16, 2008 10:33 PM

    Originally posted by: SystemAdmin


    Simple! I was looking way to far...

    I think it should do the trick. I will have to test it though as any mishaps could could corrupt the drive and there for lose all the data.

    Tks.