From owner-freebsd-questions@FreeBSD.ORG Wed May 17 23:47:17 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F262816A753 for ; Wed, 17 May 2006 23:47:16 +0000 (UTC) (envelope-from joe@netmusician.org) Received: from netmusician.org (netmusician.org [216.9.132.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id 92D0043D45 for ; Wed, 17 May 2006 23:47:16 +0000 (GMT) (envelope-from joe@netmusician.org) Received: from localhost (localhost [127.0.0.1]) by netmusician.org (Postfix) with ESMTP id 0DEEB153427; Wed, 17 May 2006 19:47:16 -0400 (EDT) X-Virus-Scanned: by amavisd-new at netmusician.org Received: from netmusician.org ([127.0.0.1]) by localhost (jauty.suso.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 829hx8xAqg3z; Wed, 17 May 2006 19:47:15 -0400 (EDT) Received: from [192.168.0.2] (unknown [12.205.33.5]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by netmusician.org (Postfix) with ESMTP id 5D5CF153418; Wed, 17 May 2006 19:47:15 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v750) In-Reply-To: References: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Joe Auty Date: Wed, 17 May 2006 19:47:14 -0400 To: Craig Ryhorchuk , FreeBSD Questions X-Mailer: Apple Mail (2.750) Cc: Subject: Re: undo geom mirror 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: Wed, 17 May 2006 23:47:17 -0000 Hi Craig (sending this to the list too, for the general interest of whomever): I tried this out on a test machine: 1) rolled back fstab to original (non-mirror version) 2) commented out automatic load of mirror in /boot/loader.conf 3) rebooted This worked fine, however, going back to the mirrored version of fstab would even allow me to boot the machine until I deactivated the mirrored drive, and reattached it (which forced it to rebuild). Not too difficult to do though. Now, I just need to know whether it is wise to ensure that no writing or changes to the disk are occurring when the drives are syncing for the first time. Any ideas? On May 17, 2006, at 4:11 PM, Craig Ryhorchuk wrote: > Good question, but I'd think there would be a chance of things getting > messed up if the kernel thought you had a mirror and you were > trying to > use the two drives independently. Stuff like whatever you write to / > ending up in the middle of your /usr partition on drive 2 as well. > Or it might just not boot or maybe it'd work. I'm not willing to try > it just because I don't want to have to rebuild everything on the one > server I have it set up on. > > -----Original Message----- > From: Joe Auty [mailto:joe@netmusician.org] > Sent: May 17, 2006 3:58 PM > To: Craig Ryhorchuk > Subject: Re: undo geom mirror > > Thanks for your response! > > So, basically, all I have to do is just undo fstab and loader.conf, > and that will essentially get me back up and running? What would > happen if I didn't remove the mirror? > > On May 17, 2006, at 3:40 PM, Craig Ryhorchuk wrote: > >> I'm sending this off-list because apparently even though spammers >> have free posting access to the list, I don't. >> >> Just to be safe, I'd recommend removing your primary bootdisk from >> the >> mirror, changing your /etc/fstab back to the original values as >> well as /boot/loader.conf. >> >> At this point you should be safely able to simply boot from the >> original >> boot disk and remove the second drive from the GM and delete the >> whole >> mirror. >> >> Make sure you have the boot CD available just in case. If you >> forget/mess up one step like I did when setting one up it's easy to >> fix. >> >> - Craig >> >> -----Original Message----- >> From: owner-freebsd-questions@freebsd.org >> [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Joe Auty >> Sent: May 17, 2006 7:47 AM >> To: FreeBSD Questions >> Subject: undo geom mirror >> >> Hello, >> >> What is the best way to "undo" a geom-based mirror, just out of >> curiosity, and return the configuration to allowing independent >> control over the two disks? >> >> something like this? >> >> gmirror clear mirror/gm0 >> gmirror remove ad1 >> gmirror remove ad2 >> >> - unload geom, remove from boot/loader.conf >> - revise /etc/fstab >> >> >> Please help me fill in the gaps here, I've never successfully done >> this.... Or, is this procedure inadvisable? >> >> >> >> >> >> >> ----------- >> Joe Auty >> NetMusician: web publishing software for musicians >> http://www.netmusician.org >> joe@netmusician.org >> >> >> _______________________________________________ >> 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" >