From owner-freebsd-questions@FreeBSD.ORG Mon Aug 18 09:58:53 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 C3334106564A for ; Mon, 18 Aug 2008 09:58:53 +0000 (UTC) (envelope-from henkka@spheroid.fi) Received: from mail.taivas.com (mail.taivas.com [193.65.127.70]) by mx1.freebsd.org (Postfix) with ESMTP id 8B4C38FC21 for ; Mon, 18 Aug 2008 09:58:53 +0000 (UTC) (envelope-from henkka@spheroid.fi) Received: from localhost (localhost [127.0.0.1]) by mail.taivas.com (Postfix) with ESMTP id 780A42FA8384 for ; Mon, 18 Aug 2008 12:39:12 +0300 (EEST) Received: from mail.taivas.com ([127.0.0.1]) by localhost (mail.taivas.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18145-02 for ; Mon, 18 Aug 2008 12:39:11 +0300 (EEST) Received: from dhcp-55.ego.fi (dhcp-55.ego.fi [83.150.106.55]) by mail.taivas.com (Postfix) with ESMTP id 5367A2FA8379 for ; Mon, 18 Aug 2008 12:39:11 +0300 (EEST) Message-Id: From: Henry Karpatskij To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Date: Mon, 18 Aug 2008 12:39:10 +0300 X-Mailer: Apple Mail (2.926) X-Virus-Scanned: by amavisd-new at taivas.com Subject: Migrating to gmirrored RAID1 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, 18 Aug 2008 09:58:53 -0000 Hi, I have a failing IDE disk which is running my 7.0-p1 server. I've been investigating the possible solutions and I've decided to go with two new IDE disks and gmirror. However, I'm not too familiar with disk internals, I know how to install the system and somehow understand the concept of slices and partitions, but that's about it. I found some examples on how to install the gmirror on a running system, but they all have in common that they just add new spare disk to the system and turn on the mirroring to it, but I need to replace the current disk which is not the same size as the new ones. Any suggestions how one would do such an operation? Should I just re- install the server to a new disk, turn on the mirroring and then restore the configuration and files from the failing disk? Or is it easier to add the disks to the running system, turn on mirroring and then somehow dump the current disk to the mirror and then re-configure it to boot from the gmirror and remove the failing disk? Current df output: Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s1a 507630 159262 307758 34% / devfs 1 1 0 100% /dev /dev/ad0s1e 507630 56 466964 0% /tmp /dev/ad0s1f 33573476 6044408 24843190 20% /usr /dev/ad0s1d 1762414 381632 1239790 24% /var devfs 1 1 0 100% /var/named/dev Thanks in advance, -- Henry Karpatskij http://ripe.net/fcgi-bin/whois?searchtext=HK1203-RIPE