From owner-freebsd-questions@FreeBSD.ORG Tue Jun 10 08:54:46 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 079EC106566B for ; Tue, 10 Jun 2008 08:54:46 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id CDE668FC15 for ; Tue, 10 Jun 2008 08:54:44 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.2/8.14.2) with ESMTP id m5A8sfCZ021939; Tue, 10 Jun 2008 10:54:41 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.2/8.14.2/Submit) with ESMTP id m5A8scml021909; Tue, 10 Jun 2008 10:54:40 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Tue, 10 Jun 2008 10:54:38 +0200 (CEST) From: Wojciech Puchar To: "B. Cook" In-Reply-To: Message-ID: <20080610104830.O18194@wojtek.tensor.gdynia.pl> References: <228F7E24-AFA2-4BD6-91B6-D610380C789A@poughkeepsieschools.org> <20080609181202.V51848@wojtek.tensor.gdynia.pl> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: gmirror and resizing partitions.. 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, 10 Jun 2008 08:54:46 -0000 >> >> more exact info please. >> >> gmirror status >> mount or cat /etc/fstab > now much better - i know that you mirrored whole drives and then partitioned. are whole mirror labeled? if yes - what partition you have to trim down? if now - where are place (give me bsdlabel gm0s1 output) as you have 2 drives it's quite easy: it would be like that: gmirror remove gm0 ad6 gmirror forget ad6 gmirror clear /dev/ad6 gmirror label -b round-robin -s 1048576 m0 /dev/ad6 ^^^^^^^^^^^^^^^^^^^^^^^^ that's options i use, use what you think it's good for you. now - you have 2 degraded mirrors. old - gm0, new - m0 now partition m0 as you like. then - get the system down to single user, unmount everything except /, make / read-only then: with partition that are same sized use dd if=/dev/oldpartition of=/dev/newpartition bs=1m others - use newfs and tar|tar to copy files after all done, mount new root partition somewhere read write, and fix etc/fstab at the end - don't forget to bsdlabel -B then reboot from ad6. after successful boot: gmirror stop gm0 gmirror clear ad4 gmirror insert m0 ad4 to get all new things mirrored. PS. my advice. make one big partition+swap instead of so many. you won't have such problems again > > > > Name Status Components > mirror/gm0 COMPLETE ad4 > ad6 > > > # Device Mountpoint FStype Options Dump Pass# > /dev/mirror/gm0s1b none swap sw 0 0 > /dev/mirror/gm0s1a / ufs rw 1 1 > /dev/mirror/gm0s1h /exports ufs rw 2 2 > /dev/mirror/gm0s1g /home ufs rw 2 2 > /dev/mirror/gm0s1d /usr ufs rw 2 2 > /dev/mirror/gm0s1e /usr/local ufs rw 2 2 > /dev/mirror/gm0s1f /var ufs rw 2 2 > /dev/acd0 /cdrom cd9660 ro,noauto 0 0 > > #/dev/da0s1 /mnt/root ufs ro 0 0 > #/dev/da0s1b none swap sw 0 0 > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >