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

Posted on 2007-10-10
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  
  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
Question by:engerd

    Author Comment

    Ooops - that's a 36GB single volume, so yes, it WILL fit the 2x18.2GB stripe set.
    LVL 3

    Expert Comment

    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
    You can use a tool called dd to migrate the partition over from the old drives to the new one.

    LVL 14

    Accepted Solution

    I don't believe there is a way to move the container.  What I'd suggest would be to create a new container then shut the system down, boot from a ghost CD, ghost the old container to the new one, physically yank the old drives, and boot back up.  If all goes well, remove the old container from the controller config (and don't pop them back in or it'll re-sync up and you may boot the wrong container).
    LVL 14

    Expert Comment

    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 Comment

    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?


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Solid State Drive Performance Tips: Solid state storage technology is now a standard.  After testing and using several different brands and revisions of SSD's over the years I have put together a collection of tips,tools and suggestions that I ha…
    In this article, I provide some information on storage disks which go into calculations that will help you figure out how much Input/output Operations Per Second (IOPS) your disk subsystem can deliver. To effectively size & tune up applications l…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    This video teaches viewers how to encrypt an external drive that requires a password to read and edit the drive. All tasks are done in Disk Utility. Plug in the external drive you wish to encrypt: Make sure all previous data on the drive has been …

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now