Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

It is possible to migrate a single disk, to Raid 1 as per Table 10 in the User Guide Page 122:

http://www.3ware.com/support/UserDocs/3ware9650SE-UsrGuide.pdf

I am trying to find what the best method is to migrate a disk currently exported as JBOD to a RAID - 1 mirror with a second drive without destroying the data on the original (jbod exported) drive.

The Unit 0 disk contains my current operating system. I cannot migrate the disk from the 3BM BIOS configuration manager, because I do not see that option. I need to access either 3DM2 or tw_cli to issue the migrate commands, however you cannot migrate the disk in jbod mode, and since 3dm2 and tw_cli are both available only while the system is booted, I am in a catch-22 situation.

Any help appreciated, I do not want to destroy my OS drive.

So far the OS is booting fine through the 3ware Raid Controller when setting the Interface Policy JBOD Export to yes.

Thanks. 3DM2 Configuration shown here: http://i.stack.imgur.com/D8yTi.jpg

share|improve this question

3 Answers 3

You would have to boot to a system that doesn't require anything from the disk. A Linux livecd would probably be your best bet.

However, make sure you have WORKING backups available, RAID controller firmware generally isn't the most robust software. You don't want to end up nuking all your data because the controller did something you didn't expect.

Honestly, I wouldn't even attempt this. You should be able to setup a 1 drive RAID1 on the new drive, then manually copy everything over. Configure the system to boot off the new drive, and test and make sure everything works. When you're confident the data has been safely transferred, destroy the JBOD, and add the disk to the RAID1.

share|improve this answer
    
You can't create a 1 disk Raid 1 configuration (a degraded mirror). I also probably couldn't create the array and then overwrite one of the drives with an image, since apparently 3ware writes raid specific information to the beginning of drives that are added to a unit. –  Loose Cannon Feb 28 '12 at 4:45

Unless you're dealing with a raid controller that has instructions for what you're trying to do in the manual, don't waste time trying to figure it out. Back up your system with an image, raid the disks, and then restore the backup image to the blank volume on the new raid.

share|improve this answer
up vote 2 down vote accepted

You cannot migrate a JBOD unit disk into a raid 1 mirror.

You must deselect export JBOD policy in the 3ware controller first. Once you do this the disk in question will remain as a "JBOD" unit and not automatically be considered a "single disk." According to the RAID level migration chart that is linked to in the question, the Single Disk Unit is migrate-able to a mirror "unit." In order to migrate the disk, you will need to delete the unit and recreate it. The disk will be updated to "Single Disk." To complete this change the partition table on the disk will be wiped.

Essentially there is no direct way.

However you can use partimage to make a disk image back up of the your windows boot drive (in my case my desktop Windows 7 x64 Professional disk configuration has a partition configuration as follows: sda1 [110mb as boot] and sda2 [110->1000GB as c:\ system drive]). Use this backup to restore to your raid 1 mirror disk after it is created.

Note: Make sure that you use a partition backup/restore utility that allows you flexibility in restoring images of partitions to larger or smaller target partitions. Otherwise you can run into this problem that I ran into using partimage:

http://www.partimage.org/forums/viewtopic.php?p=2784#2783

If you run into this problem with partimage, or with another disk image utility, you're going to have to follow the steps I've outlined here to resize the partition backup before being able to restore it:

http://serverfault.com/a/365145/111963

Do yourself the favor of resizing your partitions to the smallest possible size using parted before you create your partition backups so that you don't end up having to jump through hoops to restore your data. Keep in mind that Partimage is old and development on it has stopped, unfortunately I did not know this. The Linux Rescue CD (which btw works very will with the 3ware 9650) includes this old software that you can use successfully to take partition backups. Partimage like CloneZilla has network backup features if like myself you only have two disks available to play with.


The best way to migrate your disk then is as follows:


  1. Boot to a rescue cd that has parted or gparted and either partimage or clonezilla.
  2. Resize BOTH your BOOT partition (SDA1) and your windows partition (SDA2) to the smallest possible size using gparted. This will not only resize the partition but the filesystem itself will be shrunk as well, remember this for step 8.
  3. Take the backups of these partitions, I used partimage, because I needed to send the partition back up image files to a network server, CloneZilla has this capability and still enjoys active development. Make sure you read the limitations section of the CloneZilla page.
  4. Once you are confident that you have backups of the mbr and all partitions on the disk:
  5. Use 3ware bios raid manager to delete both units (jbod and single disk) and merge into single raid 1 unit.
  6. Boot to rescue CD again and use parted to recreate the partition table and the partitions to the original full size configuration. (you'll noticed that your 1 Terabyte drive and useable disk space is somewhat smaller than the original single disk).
  7. Because you now have full size partitions, the backups you took of the resized smaller original partitions should all restore with no problem.
  8. Because the file systems that have been restored to your full size partitions reflect the maximum partition size of the shrunk partitions (steps b and c) you may need to resize the filesystem to take advantage of the rest of the space on each partition. Clonezilla should resize the filesystem for you when restoring the image. If it doesn't then you will need to resize it yourself. You can use Windows Vista/7's built in resize option. In Linux you can use ntfsresize.
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.