sarpydog

updated

19 years ago

S

sarpydog

2 Intern

•

360 Posts

0

2531

April 17th, 2008 07:00

LUN migrate for AIX

Dear All,

I would like to migrate a LUN from RAID 5 to RAID 1/0 on AIX platform.

After doing LUN migration, The disks still showed RAID 5 disk via "lsdev -Cc disk" command, but actual LUN is on RAID 1/0 now.

The disk operation is fine.

Can I correct the disk name from R5 to R1/0?

Thanks,
Dennis Dai
  • DGM3

    238 Posts

    1154

    0

    Posted April 18th, 2008 14:00

    Wow indeed.... And how do you get it right ? Remove
    the LUN from the SG and re-insert it again or isn't
    it possible at all, besides unbinding the LUN and
    recreating it ?

    In order to ensure the migration is not visible to the host OS (so access to the LUN will not be impacted), the LUN's host-visible configuration information has to stay consistent, so the "right" action to accomplish that goal is keeping the host-visible configuration information the same. Note that Navisphere will accurately report the current RAID level; it is narrowly a text string embedded in some of the configuration information (which the host chooses to echo) that retains the original setting.
    If the goal is to cause the text string to be changed, an unbind/rebind/recreate action would be needed, or consider using SAN Copy (internal to the array) to accomplish the migration - neither of these alternate approaches is seemless.

    Regards,
    DGM
  • ovivier

    142 Posts

    776

    0

    Posted April 17th, 2008 08:00

    Did you try a "cfgmgr" and then "lsdev" ? I think it should work.

    If not, do you use PowerPath ? Then you could try to do a "rmdev" on a hdisk (the hdiskpower would still be available), then a "cfgmgr" and "lsdev". If it is succesful, do this on the other paths of the hdiskpower.
  • sarpydog

    2 Intern

    •

    360 Posts

    776

    0

    Posted April 17th, 2008 08:00

    Hi,

    I have tried following task:

    1. umomnt /fs
    2. varyoffvg myvg
    3. exportvg myvg
    4. powermt remove dev=hdiskpowerx
    5. rmdev dl hdiskx
    6. CARiiON LUN migrate
    7. emc_cfgmgr.sh
    8. importvg -y myvg hdiskpowerx
    9. varyonvg myvg
    10. mount /fs
    11. lsdev -Cc disk

    The disk showed RAID 5 again.

    Best Regards,
    Dennis
  • sarpydog

    2 Intern

    •

    360 Posts

    776

    0

    Posted April 17th, 2008 08:00

    Hi Ovivier,

    I create new RAID1/0 LUN and do LUN migrate directly from R5 to R1/0.
    This is CLARiiON data migrate function.

    Best Regards,
    Dennis Dai
  • ovivier

    142 Posts

    776

    0

    Posted April 17th, 2008 08:00

    If you try to create a new little RAID 1/0 LUN and then allocate it to your server, is it detected as RAID 5 too ?
  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    776

    0

    Posted April 17th, 2008 10:00

    Dennis,

    i bet something needs to be cleaned up within ODM.
  • rr_phx

    26 Posts

    776

    0

    Posted April 17th, 2008 13:00

    If the Lun type of Lun presented to an AIX host is changed from Raid5 to Raid10 the AIX host would treat the Lun as a new disk with a new hdisk#. This is why when you use the migrate function the Cx mask the Lun type change to AIX, otherwise it would look like a failed disk along with a new disk added..
  • ovivier

    142 Posts

    776

    0

    Posted April 17th, 2008 13:00

    Yes I see what you mean with the CLARiiON migrate feature. But I would like you to do a test, just create a RAID 1/0 lun, add it directly in the storage group and see if it is detected correctly. Then we could see if there is a ghost behaviour of the previous RAID 5 lun, or if globaly the server sees every lun as RAID 5.
  • sarpydog

    2 Intern

    •

    360 Posts

    776

    0

    Posted April 17th, 2008 18:00

    I create the new R1/0 LUN and present to my host.
    It identify the type is R1/0.

    ODM seems that keep the existing R5 LUN info, so it can't identify the RAID type changed.

    How to delete the info via ODM? Will Data be still alive if I clear the info via ODM?

    Thanks,
    Dennis
  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    776

    0

    Posted April 17th, 2008 19:00

    emc93300

    data will be there intact. Before you try this ..did you run powermt config after you ran emc_cfgmgr ?