HP G8 migrate RAID0 to RAID1 with CLI commands

migrationraid0raid1

This is a Dynamic Smart Array B120i. The SSA (Smart Storage Administrator) is ver 1.50.4.0 The OS was installed into a single hard disc (bay 1), the SSA reports like RAID 0. Then I add a new hard disc into bay 2 (same size disc). I want to use this new hd like mirror of the first.

As you know the GUI SSA dont have a option to migrate this scenario into RAID 1. The CLI commands what I run:

  • To create bay2 disc like another RAID 0 (it is necesary?)

    ctrl slot=0 create type=ld drives=allunassigned
    
  • This is my command to modify RAID0 into RAID1, but it doesn't work.

    ctrl slot=0 type=ld modify raid=1 
    

What I'm doing wrong?

Best Answer

The problem is that with the first command you create a new logical drive - when finished you will have two LDs, each containing one disk.

What you need to do instead is add the unassigned disk to the original RAID0 LD and then invoke the modify command.

In other words:

ctrl slot=0 ld=1 add drives=allunassigned

And then:

ctrl slot=0 ld=1 modify raid=1

Also consider increasing the rebuild priority before the above steps with:

ctrl slot=0 modify rebuildpriority=high

That should work.

Related Topic