From owner-freebsd-questions@FreeBSD.ORG Tue Jun 17 03:32:13 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 CB713106566B for ; Tue, 17 Jun 2008 03:32:13 +0000 (UTC) (envelope-from stanislav@corp.n9.ru) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.187]) by mx1.freebsd.org (Postfix) with ESMTP id 6051F8FC14 for ; Tue, 17 Jun 2008 03:32:12 +0000 (UTC) (envelope-from stanislav@corp.n9.ru) Received: by mu-out-0910.google.com with SMTP id i2so3121080mue.3 for ; Mon, 16 Jun 2008 20:32:11 -0700 (PDT) Received: by 10.103.240.5 with SMTP id s5mr1120499mur.62.1213673530895; Mon, 16 Jun 2008 20:32:10 -0700 (PDT) Received: by 10.103.247.10 with HTTP; Mon, 16 Jun 2008 20:32:10 -0700 (PDT) Message-ID: <319048390806162032r18db9f2ck254b7298ee9747bb@mail.gmail.com> Date: Tue, 17 Jun 2008 07:32:10 +0400 From: Stanislav To: "Erik Trulsson" In-Reply-To: <20080616132738.GA25990@owl.midgard.homeip.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <319048390806160513i57a85b47vcf8f1b1f141e161e@mail.gmail.com> <57200BF94E69E54880C9BB1AF714BBCB5DDF04@w2003s01.double-l.local> <319048390806160619h3390fadfyf7e1ea4b85b3c077@mail.gmail.com> <20080616132738.GA25990@owl.midgard.homeip.net> 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: Tue, 17 Jun 2008 03:32:14 -0000 Hi all, After moving one disk to motherboard FreeBSD didn't recognize it. So I booted into rescue linux (via LAN), than mounted disk on motherboard and FreeBSD-netinst ISO into qemu (installed it on virtual disk) virtual machine and quickly installed FreeBSD via VNC. After that moved data from disk on 3ware controller. Quite easy ;) Best Regards 2008/6/16 Erik Trulsson : > 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 >