From owner-freebsd-fs@FreeBSD.ORG Mon Dec 13 13:33:17 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 19FA3106564A for ; Mon, 13 Dec 2010 13:33:17 +0000 (UTC) (envelope-from mike.barnardq@gmail.com) Received: from mail-gw0-f49.google.com (mail-gw0-f49.google.com [74.125.83.49]) by mx1.freebsd.org (Postfix) with ESMTP id C64898FC13 for ; Mon, 13 Dec 2010 13:33:16 +0000 (UTC) Received: by gwj20 with SMTP id 20so3779355gwj.36 for ; Mon, 13 Dec 2010 05:33:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=gCH9rELIVZAPSehd6pnUH3C96cODSvGgMSyRAf9fEcc=; b=xJae+Y4yjHXVZdtYp9PyqII8S5szSt/CDihAcz9vopBQ9yh2e8DHBDF9MCaM1izbyc 7Fxj/8onQ3TODp6vvmAQ4r0FzANnIk0ZdXZ+hOAEO0bosFHwClMkV0N6cZY6LVSHUghp Im066VSh70PlJ/FlIXQFMLlOtttb6g0VyQ50A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=KpVsaYVp4n/jWr2MctmOE1zpUX7/Tw/exALRNevFkqYFzAu/o4FeCuLY3BcFlBEJeU 2T5tMxheHx7UU1bR2buLf3ePbvUDpVAP0UgxRKRSCsPrp6L54RGBf2GOAwvmn0+kW3oR Lwh03qpaMgGTXMMSr+cAvpb0t3rTRyxcK8BDA= MIME-Version: 1.0 Received: by 10.100.172.4 with SMTP id u4mr2641276ane.70.1292247195973; Mon, 13 Dec 2010 05:33:15 -0800 (PST) Received: by 10.100.38.18 with HTTP; Mon, 13 Dec 2010 05:33:15 -0800 (PST) In-Reply-To: References: Date: Mon, 13 Dec 2010 16:33:15 +0300 Message-ID: From: Mike Barnard To: Freddie Cash Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-fs@freebsd.org Subject: Re: HAST role failure X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2010 13:33:17 -0000 Thanks Freddie, For some reason, I still get the same error even after destroying the journal. hastctl create shared [ERROR] [shared] Unable to open /dev/da0s1g: Operation not permitted. When I check the status on the primary, I get this: shared: role: init provname: shared localpath: /dev/da0s1g extentsize: 0 keepdirty: 0 remoteaddr: tcp4://172.19.254.15 replication: memsync dirty: 0 bytes I get the same log entry in var/log/messages: Dec 13 16:24:53 hastA hastd[2325]: [shared] (primary) Unable to open /dev/da0s1g: Operation not permitted. Dec 13 16:24:58 hastA hastd[2319]: [shared] (primary) Worker process exited ungracefully (pid=2325, exitcode=66). Is there a way I can destroy a hast resource once created? Regards, Mike On Fri, Dec 10, 2010 at 6:39 PM, Freddie Cash wrote: > On Fri, Dec 10, 2010 at 5:05 AM, Mike Barnard > wrote: > > I have setup HAST on 2 FreeBSD 8.1-STABLE, hastA being primary and hastB > > secondary. > > > > hastctl create mirror works with no problem on hastA, but when I run > hastctl > > role primary shared on the primary, it gives an error and fails: > > > > Dec 10 15:47:24 hastA hastd[9911]: [shared] (primary) Unable to open > > /dev/da0s1g.journal: Operation not permitted. > > Dec 10 15:47:29 hastA hastd[9888]: [shared] (primary) Worker process > exited > > ungracefully (pid=9911, exitcode=66). > > Create hast on the bare partition. > > Then create the gjournal device on top of the /dev/hast device. > > Then use the gjournal device for your filesystem. > > HAST really should be the lowest level in the storage chain. > > -- > Freddie Cash > fjwcash@gmail.com > -- Mike Of course, you might discount this possibility, but remember that one in a million chances happen 99% of the time. ------------------------------------------------------------