Hi.
I have a Centos 4.2 installed but the Raid 1 configuration wasn't set during the installation process. How could I build the Raid 1 after the system has been installed?
Thanks.
-- Cleber P. de Souza
Hi There,
I know exactly what this error means, I am using Centos 4.2 on a Via EPIA system booting from a 2Gig Flash card.
Power management is disabled and the flash card seems to work ok with DMA enabled (its a compact flash on an IDE adapter). But this crops up every day or so and the machine hangs.
I have several of these boxes all from difference batches and suppliers and they all do it....
If anyone has any ideas I'm open to suggestions as how to cure this, I've tried all the usual.
I am using Kingston 2Gig Single level cell flash cards (medium - high speed).
Regards
Pete
There was a Linux Journal article on just this scenario, it should be on their website, I found it via Google.
On 1/23/06, Cleber P. de Souza cleberps@gmail.com wrote:
Hi.
I have a Centos 4.2 installed but the Raid 1 configuration wasn't set during the installation process. How could I build the Raid 1 after the system has been installed?
Thanks.
-- Cleber P. de Souza _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
-- Howard Fore, howard.fore@gmail.com "The less you know, the more you believe." - U2, Last Night On Earth
On 1/23/06, Cleber P. de Souza < cleberps@gmail.com> wrote:
Hi.
I have a Centos 4.2 installed but the Raid 1 configuration wasn't set during the installation process. How could I build the Raid 1 after the system has been installed?
man mdadm Very comprehensive command for making and managng raid. -- Sudev Barar Learning Linux
Sudev Barar spake the following on 1/23/2006 2:16 PM:
On 1/23/06, Cleber P. de Souza < cleberps@gmail.com> wrote:
Hi.
I have a Centos 4.2 installed but the Raid 1 configuration wasn't set during the installation process. How could I build the Raid 1 after the system has been installed?
man mdadm Very comprehensive command for making and managng raid. -- Sudev Barar Learning Linux
Are you trying to convert a system running on 1 hard drive to one running on a mirrored pair?
Hi Scott.
It's exactly what I want to do. any suggestion?
Thanks
On 1/23/06, Scott Silva ssilva@sgvwater.com wrote:
Sudev Barar spake the following on 1/23/2006 2:16 PM:
On 1/23/06, Cleber P. de Souza < cleberps@gmail.com> wrote:
Hi.
I have a Centos 4.2 installed but the Raid 1 configuration wasn't set during the installation process. How could I build the Raid 1 after the system has been installed?
man mdadm Very comprehensive command for making and managng raid. -- Sudev Barar Learning Linux
Are you trying to convert a system running on 1 hard drive to one running on a mirrored pair?
--
/-----------------------\ |~~_____/~~__ | | MailScanner; The best |___________ \N1____====== )-+ | protection on the net!| ~~~|/~~ | -----------------------/ ()
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
-- Cleber P. de Souza
Cleber P. de Souza spake the following on 1/24/2006 6:11 AM:
Hi Scott.
It's exactly what I want to do. any suggestion?
It will take a little bit of work, but it can be done as I did it a couple of years on our mailservers. The second hard drive will need to be blank to make things easier. Get a copy of the software raid howto (http://www.tldp.org/HOWTO/Software-RAID-HOWTO.html), and read it.You might want to look carefully at the sections on mdadm and swap on raid. Also get this article; http://www.linuxdevcenter.com/pub/a/linux/2002/12/05/RAID.html. Make sure you have a current rescue boot floppy or cd as grub will have problems until you get it corrected. The migration part is in this section; http://www.tldp.org/HOWTO/Software-RAID-HOWTO-7.html#ss7.6 but use mdadm instead, as you can make a raid array with one drive missing, copy the data from the old drive to the equivalent raid device on the new drive. Then edit your /etc/fstab "carefully" and reboot. If everythings running ok on the second drive, then you can copy the partition structure to the old drive and add the partitions to their respective array and let them rebuild.
Thanks Scott.
I read all this docs and found some interesting thinks about my environment that I had forgotten. I use mkinitrd to put raid1 module into kernel, thus all are fine now. My centos installation had raid1 as a module and due this i had so troubles.
On 1/24/06, Scott Silva ssilva@sgvwater.com wrote:
Cleber P. de Souza spake the following on 1/24/2006 6:11 AM:
Hi Scott.
It's exactly what I want to do. any suggestion?
It will take a little bit of work, but it can be done as I did it a couple of years on our mailservers. The second hard drive will need to be blank to make things easier. Get a copy of the software raid howto (http://www.tldp.org/HOWTO/Software-RAID-HOWTO.html), and read it.You might want to look carefully at the sections on mdadm and swap on raid. Also get this article; http://www.linuxdevcenter.com/pub/a/linux/2002/12/05/RAID.html. Make sure you have a current rescue boot floppy or cd as grub will have problems until you get it corrected. The migration part is in this section; http://www.tldp.org/HOWTO/Software-RAID-HOWTO-7.html#ss7.6 but use mdadm instead, as you can make a raid array with one drive missing, copy the data from the old drive to the equivalent raid device on the new drive. Then edit your /etc/fstab "carefully" and reboot. If everythings running ok on the second drive, then you can copy the partition structure to the old drive and add the partitions to their respective array and let them rebuild.
--
/-----------------------\ |~~_____/~~__ | | MailScanner; The best |___________ \N1____====== )-+ | protection on the net!| ~~~|/~~ | -----------------------/ ()
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
-- Cleber P. de Souza
Cleber P. de Souza spake the following on 1/25/2006 12:37 PM:
Thanks Scott.
I read all this docs and found some interesting thinks about my environment that I had forgotten. I use mkinitrd to put raid1 module into kernel, thus all are fine now. My centos installation had raid1 as a module and due this i had so troubles.
If you have raid as a module it will still work, as long as you have the module in your initrd. The easist way with redhat is to insmod the proper raid module and re-install the kernel RPM. It has a script to make an initial ramdisk including any modules that are running. I had this code at one time, but I will be slapped silly if I can find it.