We help IT Professionals succeed at work.

How do you migrate a 2x18.2GB stripe to a 32GB volume in a PERC3/Di array using afacli on Linux?

engerd
engerd asked
on
375 Views
Last Modified: 2013-12-16
How do you migrate a 2x18.2GB stripe to a 32GB volume in a PERC3/Di array using afacli on Linux?

I have 2x18GB disks in a RAID0 stripe, which I would like to replace with a single 32GB disk.  As this is the boot disk, I have to do all this "online" using afacli.  How is this achieved?  Here is how the array looks just now.

AFA0> container list
Executing: container list
Num          Total  Oth Chunk          Scsi   Partition
Label Type   Size   Ctr Size   Usage   B:ID:L Offset:Size
----- ------ ------ --- ------ ------- ------ -------------
 0    Volume 33.8GB            Valid  
 /dev/sda
  63  Volume 33.8GB                    0:00:0 64.0KB:16.9GB
                                      0:01:0 64.0KB:16.9GB

 2    Mirror  136GB            Valid   0:03:0 64.0KB: 136GB
 /dev/sdb             R1               0:04:0 64.0KB: 136GB
Comment
Watch Question

Author

Commented:
Ooops - that's a 36GB single volume, so yes, it WILL fit the 2x18.2GB stripe set.
CERTIFIED EXPERT

Commented:
I am not sure I gather what you are really asking aside from how to clone the data over.  If thats all you want to know then you should check out this link
http://www.mckeay.net/secure/2004/10/using_dd_to_clone_a_hd.html
You can use a tool called dd to migrate the partition over from the old drives to the new one.

Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
If you don't have ghost you could just boot a linux boot cd (if you have one with the right drivers for the array) and "dd" the old to the new.

Author

Commented:
Thanks guys - I know all about dd and ghost.  Having tried this, the PERC3/Di gets very confused, and randomly (within minutes) sets the new container to read_only which upsets RHEL4 as you might imagine.

It would ofcourse be much easier if this wasn't the boot disk, and I wasn't using LVM2, sigh.

I was hoping to do this "transparently" using afacli, without mesing with downtime and dd.  As an aside, how do you "undo" a "container add_level 0" command?  Or a "container promote 0" command for that matter?  Sinmply "container delete 63" or suchlike?

Thanks.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.