Operating System - Linux
1745830 Members
3978 Online
108722 Solutions
New Discussion

RAID0 to RAID5 migration using hpacucli

 
v_levin
Occasional Visitor

RAID0 to RAID5 migration using hpacucli

Hi all!

 

I've got RAID0 on Smart Array P400.

 

Can i migrate it to RAID5 without data loss by adding one more HDD and doing this:

# hpacucli ctrl slot=6 ld 1 add drives=allunassigned
# hpacucli ctrl slot=6 ld 1 modify raid=5

 

If not, how can I swap data from one drive (with status "Predictive Failure") to newly added?


Thank you very much for your answers!


2 REPLIES 2
Modris Bremze
Esteemed Contributor

Re: RAID0 to RAID5 migration using hpacucli

If you use RAID0, the disk, which has the predictive failure, needs to be somehow duplicated so it can be removed from the array without data loss. Maybe this will help:

http://h30499.www3.hp.com/t5/System-Administration/Migrate-RAID0-to-RAID1-online-with-hpacucli/td-p/4756838

v_levin
Occasional Visitor

Re: RAID0 to RAID5 migration using hpacucli

hpacucli help says:

"<target> modify [drives=[#:]#:#,[#:]#:#,[#:]#:#-[#:]#:#],...]
[spares=[#:]#:#,[#:]#:#,[#:]#:#-[#:]#:#],...|none]


Specifies the drives to be used to replace drives and spares on an array (Drive Movement)."

 

# hpacucli ctrl slot=6 ld 1 modify drives=<pre-failed-drive> spares=<new-drive>

 

Don't you know, is this correct?