[gentoo-user] drbd primary standalone ...

2011-07-12 Thread Stefan G. Weichinger

Greets,

pls a quick pointer:

I prepare a 2node-cluster w/ DRBD, currently we only run on one node,
therefore we don't have something like heartbeat running yet.

This "mode" will have to be maintained for a while, now I have the
problem, that when the server gets rebooted, nobody sets the
DRBD-ressource to primary which leads to problems in sequence.

Where should I add "drbdadm primary all" to the init-scripts to fix that
temporarily?

I am a bit lost right now (pretty much annoying techwork right now) and
would appreciate a helping statement here.

Thanks Stefan



Re: [gentoo-user] drbd primary standalone ...

2011-07-12 Thread Eray Aslan
On 2011-07-12 2:50 PM, Stefan G. Weichinger wrote:
> Where should I add "drbdadm primary all" to the init-scripts to fix that
> temporarily?

Usually it is the resource manager's (such as pacemaker) job to decide
which node becomes primary.  If you are not using one, you might want to
check become-primary-on directive in drbd.conf

-- 
Eray Aslan 



Re: [gentoo-user] drbd primary standalone ...

2011-07-12 Thread Stefan G. Weichinger
Am 2011-07-12 15:58, schrieb Eray Aslan:
> On 2011-07-12 2:50 PM, Stefan G. Weichinger wrote:
>> Where should I add "drbdadm primary all" to the init-scripts to fix that
>> temporarily?
> 
> Usually it is the resource manager's (such as pacemaker) job to decide
> which node becomes primary.  If you are not using one, you might want to
> check become-primary-on directive in drbd.conf

thanks, yes. It becomes primary now although it does not get mounted ...
hmm.

fstab seems ok as a manual mount succeeds.

thx so far, Stefan