-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05.01.2012 04:45, Jeff Cranmer wrote: > On Thu, 2012-01-05 at 04:01 +0100, Volker Armin Hemmann wrote: > >> the short one: >> >> partition one disk with (c)fdisk. Use sfdisk to transfer the >> partition scheme to the other disks. >> >> run mdadm --create /dev/md0 level=whatever you want --raid- >> devices=thenumberofdevices /dev/sdXY /dev/sdZY ... >> >> mdadm --detail --scan >> /etc/mdadm.conf >> >> done >> >> > OK, but there is active data on the disks, so I don't want to > partition them. They should already partitioned, and running fdisk > will erase the data. > > If I run mdadm --create /dev/md0 level=5 --raid-devices=3 /dev/sdb > /dev/sdc /dev/sdd, will that erase data already on the disks? > > Prior to running this command, there is no /dev/md entry. Is this > correct? > > Looking further by using fdisk, it appears that sdc has a linux > partition on sdc1 starting at sector 34, and a GPT partition of > size 0+ at /dev/sdc4, sector 0. Nothing else is on that disk (no > sdc2 or sdc3). > > sdd and sdb report invalid partition table flags and do not appear > to have active partitions. Does this make sense? > > Is it possible that I ordered the disks incorrectly when I > installed them, and by simply swapping disks b and c at the raid I > can get things to start making sense? Is there an order to a set > of RAID5 disks? I thought any two of three RAID5 disks could be > recovered, regardless of which one dies? > >> there is a reason why I never ever touch genkernel. >> >> you should forget that crap. You don't need to copy around >> anything. If your root is not on some fancy setup, you don't need >> initramfs. >> >> Just make a nice kernel, put it in /boot. Done. >> > OK. The OS disk is non-RAID (120GB SSD), so I don't need any > fancy options in my kernel. All the domdadm and dodmraid stuff is > needed just when your OS disk is raided. Correct? > > Thanks > > Jeff
If you used a hardware-based RAID before, you should do nothing with mdadm or fdisk until you have a working copy of your data. If I recall correctly, you said, you used that RAID-array on a different mobo before. Then the mobo died and you want just to reuse the array. Correct? If that's correct you may be in serious trouble, because afaik there ist no real standart in how to create a hardware RAID. If the old RAID-controller/firmware isn't available anymore you could try to find an identical one. There may be even the possibility that through your tries with the new controller/mobo the array is damaged right now. That is - by the way - one very good reason to use a software-based solution like mdadm: you aren't restricted to specific hardware... -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPBV29AAoJEJwwOFaNFkYcdhYH/A6zUEe8AQGYR959DNYvfkIV V4XRyP1QbVYNcC5hou3vtC8ey7SvZisOXh3JX7vo534ATtY+KW6hRIHu5xlDJe67 KuX1aa37fZ9ivhkpLaGGXOluDZIlf28L70jGV48FMd95TMWFmK4tO12CwTbmRy30 ckuyHFgLrJOsYcTIlrlB/DSsosklsQ3wyMJX5XbqUi7dJuae+h+yiphuPoAU99iX FnO/QxhjfrX37Ch56ughvTSMKxRe6XDtECyIB/v3/2Dq1GH07FHONjIfJ8qEbqjK bfa4W9XHygkWd/Wwfop//2hmz1bXJmGrVRd9iLzs9prnc/Cgv0yDuAPoUhFKgkw= =Yrz+ -----END PGP SIGNATURE-----

