This post is more than 5 years old

2 Intern

 • 

360 Posts

2370

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

238 Posts

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

142 Posts

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.

2 Intern

 • 

360 Posts

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

2 Intern

 • 

360 Posts

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

142 Posts

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 ?

9 Legend

 • 

20.4K Posts

April 17th, 2008 10:00

Dennis,

i bet something needs to be cleaned up within ODM.

26 Posts

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..

142 Posts

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.

2 Intern

 • 

360 Posts

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

9 Legend

 • 

20.4K Posts

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 ?

2 Intern

 • 

360 Posts

April 17th, 2008 19:00

Yes, data will be there intact.

follow emc93300 doc, it need to remove fiber card instance.

It's possible to run my environment because I have only on fiber card and use it for booting.

run following command:

odmdelete -q name=$i -o CuAt
odmdelete -q name=$i -o CuDv
odmdelete -q value3=$i -o CuDvDr
done
odmdelete -q name=powerpath0 -o CuDv
odmdelete -q name=powerpath0 -o CuAt
rm /dev/powerpath0

the RAID type is still R5.

Thanks for your respones.
Dennis

9 Legend

 • 

20.4K Posts

April 17th, 2008 20:00

so i see you also tried solution emc108127. It mentions removing and re-installing PowerPath, so if you are booting from the SAN and PowerPath is not there ..you can tell AIX to boot from a native disk and not hdisk ..can't you ?

238 Posts

April 17th, 2008 20:00

As noted by colddesertrat, even though the RAID type has been changed, the array will continue to return consistent LUN configuration information to the host, to ensure the host continues to see the same LUNs in an identical manner. Part of the configuration information that is returned to a host is a text string that contains the characters "RAID 5" for a LUN originally built on a RAID 5 group, "RAID 3" for a LUN originally built on a RAID 3 group, etc. Even though the RAID type has been changed during a LUN Migration action to now be RAID 1/0, the array will continue to report the original text string, which in this case is "RAID 5". This does not have any functional impact on the LUNs (that is, the RAID type really has been changed). Also see Support Solutions emc154613 and emc150097.

Regards,
DGM

9 Legend

 • 

20.4K Posts

April 17th, 2008 21:00

oh wow ..did not know that. This behavior does not apply to DMX does it ? For example if i change STD device to an R1 ?

Thanks

4 Operator

 • 

5.7K Posts

April 18th, 2008 03: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 ?

0 events found

No Events found!

Top