From owner-freebsd-questions@FreeBSD.ORG Mon Jun 16 13:27:42 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2EF1106566C for ; Mon, 16 Jun 2008 13:27:42 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp01.sth.basefarm.net (ch-smtp01.sth.basefarm.net [80.76.149.212]) by mx1.freebsd.org (Postfix) with ESMTP id 295688FC22 for ; Mon, 16 Jun 2008 13:27:42 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-253-25-183.bredband.comhem.se ([83.253.25.183]:64814 helo=falcon.midgard.homeip.net) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1K8EkH-0001et-3v for freebsd-questions@freebsd.org; Mon, 16 Jun 2008 15:27:41 +0200 Received: (qmail 25073 invoked from network); 16 Jun 2008 15:27:38 +0200 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 16 Jun 2008 15:27:38 +0200 Received: (qmail 26027 invoked by uid 1001); 16 Jun 2008 15:27:38 +0200 Date: Mon, 16 Jun 2008 15:27:38 +0200 From: Erik Trulsson To: Stanislav Message-ID: <20080616132738.GA25990@owl.midgard.homeip.net> References: <319048390806160513i57a85b47vcf8f1b1f141e161e@mail.gmail.com> <57200BF94E69E54880C9BB1AF714BBCB5DDF04@w2003s01.double-l.local> <319048390806160619h3390fadfyf7e1ea4b85b3c077@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <319048390806160619h3390fadfyf7e1ea4b85b3c077@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-IP: 83.253.25.183 X-Scan-Result: No virus found in message 1K8EkH-0001et-3v. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1K8EkH-0001et-3v e3058318310988b80e369f0ab7b7edfc Cc: Johan Hendriks , freebsd-questions@freebsd.org Subject: Re: Move data from 3ware RAID-1 disk to MB disk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jun 2008 13:27:42 -0000 On Mon, Jun 16, 2008 at 05:19:43PM +0400, Stanislav wrote: > Dear Johan, > > But hetzner support told me that data will be lost if connect disk to > motherboard controller: > "If we connect the HDD's on the Mainboard-controller, they were detected as > empty HDD, because the controller write the sectors in a other way, like the > RAID-controler!" That is probably correct. > > But I think that maybe 3ware writes their RAID table somewhere near MBR record. Maybe. > So maybe I have to rewrite MBR and that disk will work on motherboard > controller? Maybe, but you don't know how you should rewrite the MBR (i.e. what should be written to it), and neither do I (and probably not the people at hetzner either.) You could try asking the 3Ware people directly, but I doubt they support such an operation. > > I have backups, but this is production system, and I want to switch to > MB controller with minimal downtime. That might not be possible. One of the drawbacks with real hardware-RAID is that each controller (or at least each manufacturer) has its own format and it is usually not possible to move disks between different controllers without losing the data on them. > > Kind Regards > > 2008/6/16 Johan Hendriks : > > > >>Hi, > > > >>I have FreeBSD 7.0 with 3ware 8006-2LP RAID-1 controller hosted at > >>hetzner.de. > > > >>Now I want remove 3ware controller, and to stay with motherboard > >>controller. Is it possible to do without data loss? > >>I suggest to move one disk to motherboard controller, than boot via > >>LAN to Linux rescue, and than do "dd" from 3ware to MB disk. > >>Is it possible to do so or I will copy 3ware RAID table, and MB disk > >>will not be bootable? > > > >>Kind Regards > > > > I freebsd detect the onboard controller and the drives on it, all you > > need to do is to make sure /etc/fstab points to the right disks. > > > > Now it probberly points to /dev/twe0s1* and so on if your onboard > > controller uses ad then it needs to be changed to /dev/da0s1* > > > > Make sure you have backups!!!!!!!!!!!!!!!!!!!!!! > > -- Erik Trulsson ertr1013@student.uu.se