On Monday, October 22, 2012 10:03:20 PM UTC+1, Chewey wrote:
Joao
Thanks for your response. Very grateful. I've added comments below (in blue) out of interest although I'm hoping (after some lengthy experimentation with Putty - learnt lots!) I've got it sorted. For reasons I still don't understand (but I suspect it was something I did in steps 1-6 below) it was not possible to mount either of the 1TB drives through Alt-F. Eventually I gave up and inserted and reformatted both 2TB drives and created a new RAID 1 array. As a last resort, I then attached the Failed 1TB drive via USB. Still no joy through Alt-F but, through Putty, I could mount the drive and then Alt-F finally recognised it. As we speak, all the data from the 1TB drive is being copied onto the new 2TB RAID array. It is looking like it could take 2-3 days but was still cause of a minor celebration!! (I'm hoping Failed 1TB won't actually fail in this period but, in theory, I still have Good 1TB to try again if it does.)
Using USB as you did is a simple way to change both RAID1 disks.
The recipe, for others reference:
1-power off the box, using System->Utilities, remove both RAID1 disks from its bays, save one of them in a drawer (your backup, in case things go wrong), connect the other to a SATA to USB adapter (cheap), but don't connect it to the box yet.
2-insert the two new disks in the box, power it up and using the Disk Wizard create a new RAID1, that will probably be called md0
3-power up the SATA to USB adapter and disk, wait a couple of seconds and connect it to the box rear USB connector. A new degraded RAID array should appear, probably called md1, with all your data.
4-Using Setup->Folders
a) select the degraded RAID mountpoint, probably /mnt/md1, and hit the CopyContents button
b) select the new disks RAID array mountpoint, probably /mnt/md0, and hit the Paste button. Wait. And wait, it is going to take a while, depending on the amount of data to copy.
5-When it finish copying, power down the box using System->Utilities, unplug the SATA to USB adapter and power-up the box.
The "right" RAID way to do things recipe:
0-take note of the RAID components and drive bays, usually sda2/right, sdb2/left
1-Fail, then remove one of the RAID components, then remove its drive (Disk->Utilities->Eject). The array will become degraded but your data is still there and usable.
2-insert the new drive and partition it using the Disk Partitioner (be sure you are using the new disk!). Use a 500MB first swap partition and the remaining space for a RAID partition. Don't create a filesystem on it, it's a wast of time.
3-Using Disk->RAID, add the new disk partition to the existing degraded RAID. A resync should start while all data is replicated to the new component. Wait until it finish.
4.Repeat steps 1,2,3 for the other old drive.
If the new disks are of the same capacity of the older ones, you are done.
If the new disks are bigger, then you have to grow the RAID and filesystem:
5-Using Disk->RAID, select "Enlarge". Wait until it finish
6-Using Disk->Filesystem, select "Enlarge". That's it.
This RAID way of doing things is more involved than the USB method, but your data will be always available (in read/write mode!) during the process, this might be important if you are running a business or web server.
It might seem to be slower than the USB method, as two resyncs will happen, but it will be not, as internal transfer is faster than USB to internal disks. Also, when copying from USB to the new RAID1, two copies are in fact being done, as there are two disks to copy to (mirror). Only experimentation will tell for sure.
I dislike recipes, as people might follow them blindly, and if a typo happens you end-up with a salty dessert :-)
If the copy isn't successful, and if you don't mind, I'll be back in touch!
Of course.
One final question. I've noticed that my users folder is now located on the USB drive (Failed 1TB).
The Users, Public, Backup, Alt-F and ffp folders are setup for use when they are first detected (at powerup or hotplug time).
Do I have to move this to the new RAID array before disconnecting the USB?
After you finish copying the data, two sets of the above folders will exist, but only the first ones (USB) will be used.
When you will eject the USB these will stop being used, but the new ones, in the RAID, are already there and will not be used. You have either to reboot or to Stop then Start the RAID array in order for them to be detected and start being used. You can trying doing the latter (after ejecting the USB drive), but because of the Start/Stop button RAID bug in RC2 it might not work and you will have to reboot.
If so, do I move it to md0 or should it go on a separate partition?
If you are copying all the data, as you should, you will be copying all the above folders to the RAID (md0)
The latter could be an issue as I have 3 partitions: swap, md0 (=sda2/sdb2) and sda3/sdb3. The third partition is tiny and was only created because Alt-F presumably does something clever to make sure the main partition isn't an inconvenient size.
Yes.
Keep up the good work! Now I've used it a bit more, I'm even more impressed with Alt-F.
Regards
Saul
...
From your next post, everything looks fine on the 1TB disks, I don't understand why the RAID is not started.
Doesn't a RAID device appears in the lower section of the RAID web page? With a "Start" button on it? What happens if you hit it? There was only a stop button. In fact, the only other option I had was to "Destroy" the RAID and that sounded like a bad choice... (I understand that this should not destroy the data but I was still hopeful I could get the array restarted.)
Or only a "Stop" button appears (this is a bug for RC2)?
Yes, a bug :-(
In any case, try at the command line "mdadm --assemble /dev/md0". Error? What does it say? This is not a command I tried. Not being confident with mdadm I was worried the assembly would result in the same problem I had from step (6).
This is what the Start button does: "Assemble the components of a previously created array into an active array".
This is different from "Create", "Create a new array"
Thanks, Joao