Re: From linux software raid to none software raid?
On Tue, Jan 15, 2008 at 09:55:40PM +0100, Paul Csanyi wrote: > 2008/1/15, Douglas A. Tutty <[EMAIL PROTECTED]>: > > Well, since its raid1, everything on disk 2 is on disk one. > > > > Turn off the box, unplug disk 2, turn on the box. The box will run > > just fine with a degraded (one disk) raid1 array. Remove the "failed" > > disk from the array so that it isn't looking for it. > > How can I remove the "failed" disk from the array? > Where can I do that? > > Maybe with mdam? I am reading now man mdadm. > Yes, that is what I meant. You can also read the raid HOWTO (tldp) (doc-linux-HTML package). And yes, I would suggest changing grub and fstab. Then you can probably get rid of mdadm. Doug. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: From linux software raid to none software raid?
2008/1/15, Douglas A. Tutty <[EMAIL PROTECTED]>: > Well, since its raid1, everything on disk 2 is on disk one. > > Turn off the box, unplug disk 2, turn on the box. The box will run > just fine with a degraded (one disk) raid1 array. Remove the "failed" > disk from the array so that it isn't looking for it. How can I remove the "failed" disk from the array? Where can I do that? Maybe with mdam? I am reading now man mdadm. -- Regards, Paul Csanyi http://www.freewebs.com/csanyi-pal/index.htm -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: From linux software raid to none software raid?
On Tue, Jan 15, 2008 at 05:23:53PM +0100, Paul Csanyi wrote: > 2008/1/15, Andrew Sackville-West <[EMAIL PROTECTED]>: > > On Tue, Jan 15, 2008 at 01:37:28PM +0100, Benjamin Schmidt wrote: > > > Paul Csanyi wrote: > > > >> I have installed Debian Etch with software raid 1. > > >> > > >> I am using for this two sata drives. > > >> > > >> Is it possyble to turn this system to non software raid? > > >> > > >> Doing so I wish to get the first sata drive to use with > > >> Debian Etch as non software raid, and to use second > > >> sata drive as a backup, and data drive. > > > > > > 1. Place your second harddisk to another bus (or plug it on over an > > > usb-sata adapter) OR Remove in ~ /etc/mdadm the second disk. > > > > can't you just remove the second disk from mdadm and be done? I guess > > you should turn off the raid portions of the boot by > > > > update-rc.d -f mdadm-raid remove > > > > I've not tested this, so buyer beware. > > Before that it is good maybe to edit fstab like bellow. > What do you think? > > # software raid > # > #/dev/md0/boot ext3defaults0 2 > #/dev/md1noneswapsw 0 0 > #/dev/md2/ ext3defaults,errors=remount-ro 0 1 > #/dev/md3/home ext3defaults0 2 > #/dev/md4/adatok ext3defaults0 2 > > # GNU/Linux > # > /dev/sda3 /boot ext3defaults0 2 > /dev/sda5 noneswapsw 0 0 > /dev/sda6 / ext3defaults,errors=remount-ro 0 1 > /dev/sda7 /home ext3defaults0 2 > /dev/sda8 /adatok ext3defaults0 2 > > these abowe corresponds togeather (each - others). definitely a good idea. you might have to rebuild the initrd as well. A signature.asc Description: Digital signature
Re: From linux software raid to none software raid?
On Tue, Jan 15, 2008 at 10:57:38AM +0100, Paul Csanyi wrote: > I have installed Debian Etch with software raid 1. > > I am using for this two sata drives. > > Is it possyble to turn this system to non software raid? > > Doing so I wish to get the first sata drive to use with > Debian Etch as non software raid, and to use second > sata drive as a backup, and data drive. > Well, since its raid1, everything on disk 2 is on disk one. Turn off the box, unplug disk 2, turn on the box. The box will run just fine with a degraded (one disk) raid1 array. Remove the "failed" disk from the array so that it isn't looking for it. Turn off the box, plug disk2 back in, turn the box on. The disk will not be automatically put into the array. I don't know where on the disk the raid1 marker goes. Normally, I'd say just dd if=/dev/zero the whole drive but if its a 1T drive, that could take a while. Don't know the answer to this. Doug. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: From linux software raid to none software raid?
2008/1/15, Andrew Sackville-West <[EMAIL PROTECTED]>: > On Tue, Jan 15, 2008 at 01:37:28PM +0100, Benjamin Schmidt wrote: > > Paul Csanyi wrote: > >> I have installed Debian Etch with software raid 1. > >> > >> I am using for this two sata drives. > >> > >> Is it possyble to turn this system to non software raid? > >> > >> Doing so I wish to get the first sata drive to use with > >> Debian Etch as non software raid, and to use second > >> sata drive as a backup, and data drive. > > > > 1. Place your second harddisk to another bus (or plug it on over an > > usb-sata adapter) OR Remove in ~ /etc/mdadm the second disk. > > can't you just remove the second disk from mdadm and be done? I guess > you should turn off the raid portions of the boot by > > update-rc.d -f mdadm-raid remove > > I've not tested this, so buyer beware. Before that it is good maybe to edit fstab like bellow. What do you think? # software raid # #/dev/md0/boot ext3defaults0 2 #/dev/md1noneswapsw 0 0 #/dev/md2/ ext3defaults,errors=remount-ro 0 1 #/dev/md3/home ext3defaults0 2 #/dev/md4/adatok ext3defaults0 2 # GNU/Linux # /dev/sda3 /boot ext3defaults0 2 /dev/sda5 noneswapsw 0 0 /dev/sda6 / ext3defaults,errors=remount-ro 0 1 /dev/sda7 /home ext3defaults0 2 /dev/sda8 /adatok ext3defaults0 2 these abowe corresponds togeather (each - others). -- Regards, Paul Csanyi http://www.freewebs.com/csanyi-pal/index.htm -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: From linux software raid to none software raid?
On Tue, Jan 15, 2008 at 01:37:28PM +0100, Benjamin Schmidt wrote: > Paul Csanyi wrote: >> Hello! >> >> I have installed Debian Etch with software raid 1. >> >> I am using for this two sata drives. >> >> Is it possyble to turn this system to non software raid? >> >> Doing so I wish to get the first sata drive to use with >> Debian Etch as non software raid, and to use second >> sata drive as a backup, and data drive. > > 1. Place your second harddisk to another bus (or plug it on over an > usb-sata adapter) OR Remove in ~ /etc/mdadm the second disk. can't you just remove the second disk from mdadm and be done? I guess you should turn off the raid portions of the boot by update-rc.d -f mdadm-raid remove I've not tested this, so buyer beware. A signature.asc Description: Digital signature
Re: From linux software raid to none software raid?
Paul Csanyi wrote: Hello! I have installed Debian Etch with software raid 1. I am using for this two sata drives. Is it possyble to turn this system to non software raid? Doing so I wish to get the first sata drive to use with Debian Etch as non software raid, and to use second sata drive as a backup, and data drive. Any advice will be appreciated! Hey Paul I would do it this way: 1. Place your second harddisk to another bus (or plug it on over an usb-sata adapter) OR Remove in ~ /etc/mdadm the second disk. 2. Restart and boot from a newer kanotix live-cd (maybe others work also). With it, you can easily mount a raid partition. 3. Maybe repartition and format your first drive and copy the new files on it. 4. Write MBR and other things with lilo/grub (this is the tricky part). 5. Boot Maybe someone else has a better solution. But that's the way I do such things. "Fixes" are welcome ;) Best regards, Benjamin Schmidt smime.p7s Description: S/MIME Cryptographic Signature