From owner-freebsd-questions@freebsd.org Thu Jan 14 08:32:00 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 69DFFA82505 for ; Thu, 14 Jan 2016 08:32:00 +0000 (UTC) (envelope-from vsasjason@gmail.com) Received: from mail-wm0-x231.google.com (mail-wm0-x231.google.com [IPv6:2a00:1450:400c:c09::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 01CB8107D for ; Thu, 14 Jan 2016 08:32:00 +0000 (UTC) (envelope-from vsasjason@gmail.com) Received: by mail-wm0-x231.google.com with SMTP id u188so334524552wmu.1 for ; Thu, 14 Jan 2016 00:31:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=VQbGzCOfRt/3UISTYLcgUdZ8rs0HCcDGhK71TxUe3yk=; b=IPWhi+D01P4W1YEkJyocLALirkVII6cYnEZqjoDyv3FkwHAJ03NGVnYmb3qa8SnqEC 1eJ2W3ap8ONUvsCSmuxnblvUj4qAoWwIjmYWf9dl0IDkyC0tTEtTCzvwYxHitvWzRQeK GENgL19AQJadELymwiMw1rP4/BxGhgvfiONZ00g2vVEX37mu5o3bNL2HtCtQ/mdAyt37 LeTr1XimrJLXRvVflB61r+wHMqBnfAvzBExLKfhvtLKDPMNBdwm34FxAOasCZSuRUD8Z pYFU+R/YNf43l0taYv69SSOCUiGnKBMwzCkEhwAk3AfsNhFQ72K/WAeQrDZM6lDcSuAj YLvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=VQbGzCOfRt/3UISTYLcgUdZ8rs0HCcDGhK71TxUe3yk=; b=LYufnx88BI4VD0/aPeBZHxXNSWB7GYqPX4cRhVIU1jxqNCpXeXh8LkbM5TAyKeWvW2 /xhdjNaYzljunT693EmRjETXpPa64omlLqey9pIaK+bKZIpLLE3keT6pWBmKftFBWRNS wv+/jVHZKeoUdiy+xvDhfZqX7jeuhPVqhPmXR6DE+68c6uZptqgZ5iOO44oIKuAjeaTB w3vb45h3cYRlA3MvkO+dCZojLvmTfMr9YU1p5aw+UWHd0GSO7ycM31fay7g4ICFFszVD gN5SAJXcIr2PYVA1oUvOplPLSXQ+rxnF/Fzp/x8pyj8mUP9ol5clUpXz5PLdVvNQII6J i5RQ== X-Gm-Message-State: ALoCoQnoxtROjZQruiWP/FBeevMi+TuA7Kv25jmyrE8pEZ93rZ5zO3VEiUePCKmlGr+0YcO17LvYt1RdxfLBRBTHemimJISxUA== MIME-Version: 1.0 X-Received: by 10.28.229.20 with SMTP id c20mr3112731wmh.79.1452760318260; Thu, 14 Jan 2016 00:31:58 -0800 (PST) Received: by 10.194.153.134 with HTTP; Thu, 14 Jan 2016 00:31:58 -0800 (PST) Received: by 10.194.153.134 with HTTP; Thu, 14 Jan 2016 00:31:58 -0800 (PST) In-Reply-To: References: Date: Thu, 14 Jan 2016 11:31:58 +0300 Message-ID: Subject: Re: the switching time hastd from secondary to primary From: Anton Sayetsky To: Shahin Hasanov Cc: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jan 2016 08:32:00 -0000 14 =D1=8F=D0=BD=D0=B2. 2016 =D0=B3. 10:25 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0= =BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C "Shahin Hasanov" < shahinhasanov@hotmail.com> =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB: > > I can't change the switching time hastd from secondary to primary. it is default time 20 sec.is it possible? In despite of that in etc/hast.conf was written timeout 10 > > resource HAST0 { > replication memsync > compression lzf > timeout 10 > on node1 { > local /dev/da1p1 > remote 10.190.190.4 > } > on node2 { > local /dev/da1p1 > remote 10.190.190.3 > } > } http://www.freebsd.org/cgi/man.cgi?hastd A hastd daemon never picks its role automatically. The role has to be configured with the hastctl(8) control utility by additional software like ucarp or heartbeat that can reliably manage role separation and switch secondary node to primary role in case of the primary's failure.