From owner-freebsd-questions@FreeBSD.ORG Tue Jun 17 20:56:17 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 BE7B3106567E for ; Tue, 17 Jun 2008 20:56:17 +0000 (UTC) (envelope-from sonic2000gr@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.freebsd.org (Postfix) with ESMTP id 414648FC15 for ; Tue, 17 Jun 2008 20:56:17 +0000 (UTC) (envelope-from sonic2000gr@gmail.com) Received: by ug-out-1314.google.com with SMTP id q2so712991uge.37 for ; Tue, 17 Jun 2008 13:56:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=KKVcQYm+y5Mu6UtDbpQn/LIoJX+euCBULJwgkU/O9Ek=; b=dkIkrd4V/GL5foA5/axzu2sPEIEPE9nplpbRkJjsNZsMQKBqgPe+GIQ9quwUN3rV09 laNxF10l9m0QsP84aoj96OGB9DlOeYC0ErwM96DGau0+t8q6T75kOEkUMRr1AKnXiWDW ivxFCVMk7lov8cPs6PnDYr08/3ybjRH5IjFMc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=uixEVyOfRfmCTikWaEV3hqBaNohqMOX00G1ku73I6MRYOYb964WdYbQ0K9vqF+UT/k QSc/j+nRGMaiXsRba+SIS1PiJ6wrO2UXXIFUgjCKVLWoyuWI54BF8eoK9atnffCHGmD9 E20fp5wrhimjmM/27d9il7w9ADXd/XRWUUK/c= Received: by 10.67.116.11 with SMTP id t11mr8286653ugm.61.1213736176090; Tue, 17 Jun 2008 13:56:16 -0700 (PDT) Received: from atlantis.dyndns.org ( [79.131.199.221]) by mx.google.com with ESMTPS id k30sm13062101ugc.33.2008.06.17.13.56.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 17 Jun 2008 13:56:15 -0700 (PDT) Message-ID: <485824EC.3000808@gmail.com> Date: Tue, 17 Jun 2008 23:56:12 +0300 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.14 (X11/20080607) MIME-Version: 1.0 To: =?UTF-8?B?QXNoaXNoIFNodWtsYSDgpIbgpLbgpYDgpLcg4KS24KWB4KSV4KWN4KSy?= References: <86y753reuz.fsf@chateau.d.lf> In-Reply-To: <86y753reuz.fsf@chateau.d.lf> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-questions@freebsd.org Subject: Re: Using gjournal + gmirror on 7.0-RELEASE-p1 (amd64) server 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 20:56:17 -0000 Ashish Shukla आशीष शुक्ल wrote: > Hi list, > > I've two Intel Xeon dual core-based servers running 7.0-RELEASE-p1 > (amd64). Those servers are running a software raid-1 using > geom_gmirror. Today, when I rebooted them twice with 'reboot' command, > raid-1 running on both servers got degraded to 0% + filesystem check > resulted in 4-5 lost non-critical files. Later I found out that > 'reboot' is not a recommended way to reboot a system, and I should use > 'shutdown -r now'. > > Anyways, I'm thinking to use gjournal (in addition to gmirror) on both > servers to avoid such situation in future. I'm already using gjournal > on my desktop (with no gmirror) running FreeBSD 7.0-RELEASE-p1 > (amd64), with no issues. So, I wanted to know if gjournal + gmirror > combo is stable enough to be used on a servers. > > And, if I go for gjournal, since I've an existing filesystem, I've to > create a separate gjournal slice, so is it okay to create that gjournal > slice on a non-gmirror backed storage, hmm...? > > TIA > You should keep in mind that the space required for the journal depends on the usage load and not the size of the data provider. In other words, if you are using the default 1Gb journal size on your desktop, it may not be enough for a busy server. I've used gjournal+gmirror on a machine - not anything really heavy loaded, but it has given me no problems. I first created the journals, and the gmirror-ed the entire disk. It works as you should expect. I have not tried creating the journal on a non-mirrored storage. I suppose this would work too, but I have no idea how safe it would be.