Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Dec 2010 16:33:15 +0300
From:      Mike Barnard <mike.barnardq@gmail.com>
To:        Freddie Cash <fjwcash@gmail.com>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: HAST role failure
Message-ID:  <AANLkTi=67KdWnZmTGKCgubO9ECA0hLu_2o3jH3ySKGUi@mail.gmail.com>
In-Reply-To: <AANLkTinoZ8pTEi_aB4RRrpL-4BKbBiebo7TMsg0wTg_9@mail.gmail.com>
References:  <AANLkTim70T5rA=F-Nhrp=FtHHR8Njuwt9dfXaoH_z=8g@mail.gmail.com> <AANLkTinoZ8pTEi_aB4RRrpL-4BKbBiebo7TMsg0wTg_9@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <fjwcash@gmail.com> wrote:

> On Fri, Dec 10, 2010 at 5:05 AM, Mike Barnard <mike.barnardq@gmail.com>
> 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.
------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=67KdWnZmTGKCgubO9ECA0hLu_2o3jH3ySKGUi>