Re: howto software raid under FreeBSD?
-- quoting Christian Hiris -- If you use the whole disk as provider and your disk has left free 512 bytes after the end of the last slice, gmirror setup works very easy and fast (no need to use dump/restore or dd): - Boot into the live-filesystem. - Do a 'gmirror load' and label your old disk with 'gmirror label -v ...'. - Mount the (now mirrored) / partition on /mnt. - echo 'geom_mirror_load=YES' /mnt/boot/loader.conf - echo 'swapoff=YES' /mnt/etc/rc.conf - Edit /mnt/etc/fstab to reflect the newly created mirror devices. - Reboot. - Add a second disk to the mirror: 'gmirror insert -v ...'. - If you use gdm replace 'reboot' by 'shutdown -r now'. thanks for this, it worked liked a charm! greets, Matthias -- I don't want to look like a weirdo. I'll just go with a muumuu. -- Homer Simpson King-Size Homer ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: howto software raid under FreeBSD?
-- quoting Emanuel Strobl -- Why going outside and searching the internet? You have a complete operating system, and it's one of the best documented out there. Just 'man ata', 'man atacontrol' and 'man gmirror'. Remember that FreeBSD isn't just a hacked kernel with lots of stuff arround without any sense, it's standardized an documented! ;) Ok, I looked at man gmirror, but found nothing for my 5.2.1 system. As you mentioned, gmirror is for 5.3 only. I missed man atacontrol, sorry for this. Now I've looked at its man page, looks good. Only one problem: man page says that I can only rebuild an RAID1 array on RAID capable ATA controllers. But I have no such real ATA controller. How can I replace a faulty disk with atacontrol on a normal ATA controller then? Thanks for your help, Emanuel! Greetings, Matthias -- You don't know what it's like -- I'm the one out there every day putting his ass on the line. And I'm not out of order! You're out of order! The whole freaking system is out of order! -- Homer Simpson Secrets of a Successful Marriage ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: howto software raid under FreeBSD?
Am Sonntag, 31. Oktober 2004 19:01 schrieb Matthias F. Brandstetter: -- quoting Emanuel Strobl -- Why going outside and searching the internet? You have a complete operating system, and it's one of the best documented out there. Just 'man ata', 'man atacontrol' and 'man gmirror'. Remember that FreeBSD isn't just a hacked kernel with lots of stuff arround without any sense, it's standardized an documented! ;) Ok, I looked at man gmirror, but found nothing for my 5.2.1 system. As you mentioned, gmirror is for 5.3 only. I missed man atacontrol, sorry for this. Now I've looked at its man page, looks good. Only one problem: man page says that I can only rebuild an RAID1 array on RAID capable ATA controllers. But I have no such real ATA controller. How can I replace a faulty disk with atacontrol on a normal ATA controller then? You can use 'atacontrol detach' then powerdown, replace the drive and after booting you can 'atacontrol addspar ar0 ad6' (or what ever drive and array failed) and 'atacontrol rebuild ar0'. I've done some simulation of this but never had a real failed drive, also I never checked data integry by md5 sums or something like that. One important thing: If you simulate the failure by 'atacontrol detach' make sure to wipe out the first and last sectors of the failed disk, because otherwise ata would detect two raid arrays when booting next time and if you failed the first drive you get messed up! -Mano Thanks for your help, Emanuel! Greetings, Matthias pgpJPCNTDZajb.pgp Description: PGP signature
Re: howto software raid under FreeBSD?
-- quoting Emanuel Strobl -- You can use 'atacontrol detach' then powerdown, replace the drive and after booting you can 'atacontrol addspar ar0 ad6' (or what ever drive and array failed) and 'atacontrol rebuild ar0'. Problem is, that man page says atacontrol rebuild is only valid on RAID capable ATA controllers. But since I have no such controller, I can't use this command. How can I rebuild the array on a normal ATA controller? Greetings, Matthias -- Marge, I ate those fancy soaps you bought for the bathroom. -- Homer Simpson The Front ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: howto software raid under FreeBSD?
-- quoting Matthias F. Brandstetter -- Problem is, that man page says atacontrol rebuild is only valid on RAID capable ATA controllers. But since I have no such controller, I can't use this command. Ahh, would it be possible to dd data to the new disk? And if yes: Is this the correct way create the array for the first time? I mean I have an existing installation on one disk. Now can I just dd data to the second disk, create mirror via atacontrol, edit fstab accordingly, and reboot into RAID without any other changes? Greetings, Matthias -- It takes two to lie. One to lie and one to listen. -- Homer Simpson Colonel Homer ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: howto software raid under FreeBSD?
Am Sonntag, 31. Oktober 2004 19:42 schrieb Matthias F. Brandstetter: -- quoting Emanuel Strobl -- You can use 'atacontrol detach' then powerdown, replace the drive and after booting you can 'atacontrol addspar ar0 ad6' (or what ever drive and array failed) and 'atacontrol rebuild ar0'. Problem is, that man page says atacontrol rebuild is only valid on RAID capable ATA controllers. But since I have no such controller, I can't use this command. I don't know why this is in the man page, last time I read it (some years ago) it was not in there. You can use the rebuild command also on non-raid controllers, at least it was possible for me when I did some tests about 3 months ago. As I can see you're considering gmirror, perhaps that's the better solution for you. In all cases, simulate a drive failure, so you do know what to do when one drive really fails. -Mano How can I rebuild the array on a normal ATA controller? Greetings, Matthias pgpicGnquEGHP.pgp Description: PGP signature
Re: howto software raid under FreeBSD?
-- quoting Emanuel Strobl -- I don't know why this is in the man page, last time I read it (some years ago) it was not in there. You can use the rebuild command also on non-raid controllers, at least it was possible for me when I did some tests about 3 months ago. As I can see you're considering gmirror, perhaps that's the better solution for you. In all cases, simulate a drive failure, so you do know what to do when one drive really fails. Any docs for gmirror except man page out there anywhere? Something like how to use it for root file system, how to convert a non-gmirror system, kernel configuration etc. Greets, Matthias -- Pfft. Now you tell me. -- Homer Simpson, finding out that working at a nuclear plant can make one sterile I Married Marge ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: howto software raid under FreeBSD?
-- quoting Emanuel Strobl -- Problem is, that man page says atacontrol rebuild is only valid on RAID capable ATA controllers. But since I have no such controller, I can't use this command. I don't know why this is in the man page, last time I read it (some years ago) it was not in there. You can use the rebuild command also on non-raid controllers, at least it was possible for me when I did some tests about 3 months ago. Ok thx for that. Only one last question: Is it enough to just dd onto 2nd disk, create the raid via atacontrol and edit fstab to ar0 to use it on root partition as well? Thx again for your help! Greetings, Matthias -- Homer: Aw, Marge, kids, I miss my club. Marge: Oh, Homey. You know, you are a member of a very exclusive club. Homer: The Black Panthers? Homer the Great ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: howto software raid under FreeBSD?
On Sunday 31 October 2004 23:33, Matthias F. Brandstetter wrote: Any docs for gmirror except man page out there anywhere? Something like how to use it for root file system, how to convert a non-gmirror system, kernel configuration etc. Short time ago there was a thread on the current list: http://lists.freebsd.org/pipermail/freebsd-current/2004-October/thread.html#39904 If you use the whole disk as provider and your disk has left free 512 bytes after the end of the last slice, gmirror setup works very easy and fast (no need to use dump/restore or dd): - Boot into the live-filesystem. - Do a 'gmirror load' and label your old disk with 'gmirror label -v ...'. - Mount the (now mirrored) / partition on /mnt. - echo 'geom_mirror_load=YES' /mnt/boot/loader.conf - echo 'swapoff=YES' /mnt/etc/rc.conf - Edit /mnt/etc/fstab to reflect the newly created mirror devices. - Reboot. - Add a second disk to the mirror: 'gmirror insert -v ...'. - If you use gdm replace 'reboot' by 'shutdown -r now'. This also works for an already existing ataraid raid1 array, you just need to delete the mirror before you start with the gmirror setup. That's how gmirror converted my devices when I a command like: 'gmirror label -v -b split -s 4096 mirror0 ad4': slice /dev/ad4s1 -- /dev/mirror/mirror0s1 / /dev/ad4s1a -- /dev/mirror/mirror0s1a swap /dev/ad4s1b -- /dev/mirror/mirror0s1b raw -- /dev/mirror/mirror0s1c /usr /dev/ad4s1d -- /dev/mirror/mirror0s1d /home /dev/ad4s1e -- /dev/mirror/mirror0s1e If you have a more complex slice/partition setup, it's a good idea to do at least a fine backup of your disklabels before you start conversion. HTH, ch -- Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: howto software raid under FreeBSD?
-- quoting Subhro -- Buddy, software RAIDs had always been a pain in the neck. they simply are not worth it as the kernel is busy babysitting the RAID and other applications suffer. Also in case of software RAID failures, it is a nightmare. I do not think so. I never ever had any diffuiculties or hatches with software raids on Linux systems. I use them for several years in several machines now, w/o any errors. AND: it's damn easy on Linux to create the array, hotadd a new disk and so on... greets, Matthias -- Homer/Apu/Moe: You can do it, Otto! You can do it, Otto! Apu: Make this spare, I'll give you free gelato! Moe: Then go back to my place where I will get you blotto! Homer: Domo arigato, Mister Roboto! Team Homer ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: howto software raid under FreeBSD?
-- quoting Emanuel Strobl -- Why not, but you also have gmirror and ataraid, the former only on 5.3. For ataraid you can use 'atacontrol create RAID1 ad4 ad6' for example For gmirror you can use 'gmirror label -v -b split -s 2048 mrr ad4 ad6' And you mentioned vinum and ccd already. why: because ccd seems not very good when it comes to replace a disk... and ad ataraid and gmirror: where do I find docs about them on internet? greets, Matthias -- Flanders: They're not perfect, but the Lord says love they neighbor -- Homer: Shut up, Flanders. Flanders: Okely-dokely-do. Hurricane Neddy ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: howto software raid under FreeBSD?
On Sat, 30 Oct 2004 12:17:05 +0200, Matthias F. Brandstetter [EMAIL PROTECTED] wrote: I never ever had any diffuiculties or hatches with software raids on Linux systems. You got me wrongly. The primary reason why I would make a RAID is fault tolerance. In case of hardware RAIDs, rebuilding a sick RAID is without any troubles. On the other hand for software RAIDs its quite a trouble (atleast I am not confortablw with it, maybe I am biased towards hardware). Also I guess you didn't notice that I mentioned about the performance issues too. Regards S. -- Subhro Sankha Kar School of Information Technology Block AQ-13/1 Sector V ZIP 700091 India ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: howto software raid under FreeBSD?
Am Samstag, 30. Oktober 2004 12:18 schrieb Matthias F. Brandstetter: -- quoting Emanuel Strobl -- Why not, but you also have gmirror and ataraid, the former only on 5.3. For ataraid you can use 'atacontrol create RAID1 ad4 ad6' for example For gmirror you can use 'gmirror label -v -b split -s 2048 mrr ad4 ad6' And you mentioned vinum and ccd already. why: because ccd seems not very good when it comes to replace a disk... and ad ataraid and gmirror: where do I find docs about them on internet? Why going outside and searching the internet? You have a complete operating system, and it's one of the best documented out there. Just 'man ata', 'man atacontrol' and 'man gmirror'. Remember that FreeBSD isn't just a hacked kernel with lots of stuff arround without any sense, it's standardized an documented! ;) -Harry greets, Matthias pgpx7djwyVDHB.pgp Description: PGP signature
Re: howto software raid under FreeBSD?
Am Samstag, 30. Oktober 2004 23:52 schrieb Emanuel Strobl: Am Samstag, 30. Oktober 2004 12:18 schrieb Matthias F. Brandstetter: -- quoting Emanuel Strobl -- Why not, but you also have gmirror and ataraid, the former only on 5.3. For ataraid you can use 'atacontrol create RAID1 ad4 ad6' for example For gmirror you can use 'gmirror label -v -b split -s 2048 mrr ad4 ad6' And you mentioned vinum and ccd already. why: because ccd seems not very good when it comes to replace a disk... and ad ataraid and gmirror: where do I find docs about them on internet? Why going outside and searching the internet? You have a complete operating system, and it's one of the best documented out there. Just 'man ata', 'man atacontrol' and 'man gmirror'. Remember that FreeBSD isn't just a hacked kernel with lots of stuff arround without any sense, it's standardized an documented! ;) And I forgot to emphasize that users have a wonderful hadbook at: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ Also developer etc. have theri handbook at: http://www.freebsd.org/doc/en_US.ISO8859-1/books/ Just IBM writes handboocs which can compare ;) -Harry greets, Matthias pgpeqngwp8ZMl.pgp Description: PGP signature
howto software raid under FreeBSD?
Hi all, I want to create a software RAID 1 of two same disks. Coming from Linux I am used to the very simple /etc/raidtab files. Now I looked into vinum docs in FreeBSD handbook, and it seems somewhat difficult to me. So my question is: Is vinum the only way to create a software RAID 1 from two ATA disks? I've read about ccd, but after reading its man page I do not tend to it. Hope you guys can help me! Greetings, Matthias -- Hey, if you want wild bears eatin' your children and scarin' your salmon, that's your business. But I'm not gonna take it! Who's with me? -- Homer Simpson Much Apu About Nothing ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: howto software raid under FreeBSD?
Am Freitag, 29. Oktober 2004 23:55 schrieb Matthias F. Brandstetter: Hi all, I want to create a software RAID 1 of two same disks. Coming from Linux I am used to the very simple /etc/raidtab files. Now I looked into vinum docs in FreeBSD handbook, and it seems somewhat difficult to me. So my question is: Is vinum the only way to create a software RAID 1 from two ATA disks? I've read about ccd, but after reading its man page I do not tend to it. Why not, but you also have gmirror and ataraid, the former only on 5.3. For ataraid you can use 'atacontrol create RAID1 ad4 ad6' for example For gmirror you can use 'gmirror label -v -b split -s 2048 mrr ad4 ad6' And you mentioned vinum and ccd already. -Harry Hope you guys can help me! Greetings, Matthias pgpiuoCbLAGAZ.pgp Description: PGP signature
Re: howto software raid under FreeBSD?
On Fri, 29 Oct 2004 23:55:43 +0200, Matthias F. Brandstetter [EMAIL PROTECTED] wrote: Hi all, I want to create a software RAID 1 of two same disks. Buddy, software RAIDs had always been a pain in the neck. they simply are not worth it as the kernel is busy babysitting the RAID and other applications suffer. Also in case of software RAID failures, it is a nightmare. Regards S. -- Subhro Sankha Kar School of Information Technology Block AQ-13/1 Sector V ZIP 700091 India ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]