Re: o2cb/ocfs2 : cluster is offline after reboot

2017-09-19 Thread Sven Hartge
Roman Serbski  wrote:
> On Tue, Sep 19, 2017 at 11:25 AM, Roman Serbski  
> wrote:
>> On Mon, Sep 18, 2017 at 6:18 PM, Sven Hartge  wrote:
>>> Roman Serbski  wrote:
>>>
>>> Maybe o2cb and ocfs2 need to be ordered after network-online.target?
>>
>> I thought about it too, but according to /etc/init.d/o2cb and
>> /etc/init.d/ocfs2 they seem to start after $network:

> Nailed it!

> update-rc.d -f o2cb remove
> update-rc.d -f ocfs2 remove
> update-rc.d o2cb defaults
> update-rc.d ocfs2 defaults

> did the trick. Perhaps this is a leftover from Jessie...

Please report this as a bug, the above should not be needed after
dist-upgrading.

Grüße,
Sven.

-- 
Sigmentation fault. Core dumped.



Re: o2cb/ocfs2 : cluster is offline after reboot

2017-09-19 Thread Roman Serbski
On Tue, Sep 19, 2017 at 11:25 AM, Roman Serbski
 wrote:
> On Mon, Sep 18, 2017 at 6:18 PM, Sven Hartge  wrote:
>> Roman Serbski  wrote:
>>
>> Maybe o2cb and ocfs2 need to be ordered after network-online.target?
>
> I thought about it too, but according to /etc/init.d/o2cb and
> /etc/init.d/ocfs2 they seem to start after $network:

Nailed it!

update-rc.d -f o2cb remove
update-rc.d -f ocfs2 remove
update-rc.d o2cb defaults
update-rc.d ocfs2 defaults

did the trick. Perhaps this is a leftover from Jessie...

Before:

$ ls -al /etc/rc*.d/*o2cb
lrwxrwxrwx 1 root root 14 Sep 10 15:08 /etc/rc0.d/K02o2cb -> ../init.d/o2cb
lrwxrwxrwx 1 root root 14 Sep 10 15:08 /etc/rc6.d/K02o2cb -> ../init.d/o2cb
lrwxrwxrwx 1 root root 14 Sep 10 15:06 /etc/rcS.d/S13o2cb -> ../init.d/o2cb

$ ls -al /etc/rc*.d/*ocfs2
lrwxrwxrwx 1 root root 15 Sep 10 15:08 /etc/rc0.d/K01ocfs2 -> ../init.d/ocfs2
lrwxrwxrwx 1 root root 15 Sep 10 15:08 /etc/rc6.d/K01ocfs2 -> ../init.d/ocfs2
lrwxrwxrwx 1 root root 15 Sep 10 15:06 /etc/rcS.d/S14ocfs2 -> ../init.d/ocfs2

After:

$ ls -al /etc/rc*.d/*o2cb
lrwxrwxrwx 1 root root 14 Sep 19 12:53 /etc/rc0.d/K02o2cb -> ../init.d/o2cb
lrwxrwxrwx 1 root root 14 Sep 19 12:53 /etc/rc1.d/K02o2cb -> ../init.d/o2cb
lrwxrwxrwx 1 root root 14 Sep 19 12:53 /etc/rc2.d/S02o2cb -> ../init.d/o2cb
lrwxrwxrwx 1 root root 14 Sep 19 12:53 /etc/rc3.d/S02o2cb -> ../init.d/o2cb
lrwxrwxrwx 1 root root 14 Sep 19 12:53 /etc/rc4.d/S02o2cb -> ../init.d/o2cb
lrwxrwxrwx 1 root root 14 Sep 19 12:53 /etc/rc5.d/S02o2cb -> ../init.d/o2cb
lrwxrwxrwx 1 root root 14 Sep 19 12:53 /etc/rc6.d/K02o2cb -> ../init.d/o2cb

$ ls -al /etc/rc*.d/*ocfs2
lrwxrwxrwx 1 root root 15 Sep 19 12:55 /etc/rc0.d/K01ocfs2 -> ../init.d/ocfs2
lrwxrwxrwx 1 root root 15 Sep 19 12:55 /etc/rc1.d/K01ocfs2 -> ../init.d/ocfs2
lrwxrwxrwx 1 root root 15 Sep 19 12:55 /etc/rc2.d/S05ocfs2 -> ../init.d/ocfs2
lrwxrwxrwx 1 root root 15 Sep 19 12:55 /etc/rc3.d/S05ocfs2 -> ../init.d/ocfs2
lrwxrwxrwx 1 root root 15 Sep 19 12:55 /etc/rc4.d/S05ocfs2 -> ../init.d/ocfs2
lrwxrwxrwx 1 root root 15 Sep 19 12:55 /etc/rc5.d/S05ocfs2 -> ../init.d/ocfs2
lrwxrwxrwx 1 root root 15 Sep 19 12:55 /etc/rc6.d/K01ocfs2 -> ../init.d/ocfs2

Thanks for pointing out the right direction!



Re: o2cb/ocfs2 : cluster is offline after reboot

2017-09-19 Thread Roman Serbski
On Mon, Sep 18, 2017 at 6:18 PM, Sven Hartge  wrote:
> Roman Serbski  wrote:
>
>> /etc/fstab
>
>> ###
>> /dev/drbd0   /var/www ocfs2   noauto,noatime   0   0
>> ###
>
>> After the reboot, no /var/www is mounted.
>
> Missing "_netdev"?

Thank you. Tried that -- no difference.

>> The status of both o2cb and ocfs2 services is inactive (dead) with the
>> ocfs2 cluster offline:
>
>> $ service o2cb status
>> o2cb.service - LSB: Load O2CB cluster services at system boot.
>>Loaded: loaded (/etc/init.d/o2cb; generated; vendor preset: enabled)
>>Active: inactive (dead)
>>  Docs: man:systemd-sysv-generator(8)
>
>> $ service ocfs2 status
>> ocfs2.service - LSB: Mount OCFS2 volumes at boot.
>>Loaded: loaded (/etc/init.d/ocfs2; generated; vendor preset: enabled)
>>Active: inactive (dead)
>>  Docs: man:systemd-sysv-generator(8)
>
> Maybe o2cb and ocfs2 need to be ordered after network-online.target?

I thought about it too, but according to /etc/init.d/o2cb and
/etc/init.d/ocfs2 they seem to start after $network:

#!/bin/bash
# init fragment for O2CB.
#
# chkconfig: 2345 24 19
# description: Load O2CB cluster services at system boot.
#
### BEGIN INIT INFO
# Provides: o2cb
# Required-Start: $network $local_fs
# Required-Stop: $network $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Load O2CB cluster services at system boot.
# Description: Load O2CB cluster services at system boot.
### END INIT INFO

#! /bin/bash
# Copyright (c) 2005 Oracle
# All rights reserved.
#
# chkconfig: 2345 25 18
# description: Mount OCFS2 volumes at boot.
#
### BEGIN INIT INFO
# Provides: ocfs2
# Required-Start: $local_fs $network o2cb
# Required-Stop: $local_fs $network o2cb
# Should-Start: drbd iscsi multipath-tools
# Should-Stop: drbd iscsi multipath-tools
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Mount OCFS2 volumes at boot.
# Description:  Mount OCFS2 volumes at boot.
### END INIT INFO

> Any output after a failed boot from "journalctl -b -u  o2cb.service" or
> "journalctl -b -u ocfs2.service"?

Nothing there:

$ journalctl -b -u o2cb.service
-- Logs begin at Tue 2017-09-19 10:13:16 CEST, end at Tue 2017-09-19
11:17:01 CEST. --
-- No entries --

$ journalctl -b -u ocfs2.service
-- Logs begin at Tue 2017-09-19 10:13:16 CEST, end at Tue 2017-09-19
11:17:01 CEST. --
-- No entries --

Thanks.



Re: o2cb/ocfs2 : cluster is offline after reboot

2017-09-18 Thread Sven Hartge
Roman Serbski  wrote:

> /etc/fstab

> ###
> /dev/drbd0   /var/www ocfs2   noauto,noatime   0   0
> ###

> After the reboot, no /var/www is mounted.

Missing "_netdev"?

> The status of both o2cb and ocfs2 services is inactive (dead) with the
> ocfs2 cluster offline:

> $ service o2cb status
> o2cb.service - LSB: Load O2CB cluster services at system boot.
>Loaded: loaded (/etc/init.d/o2cb; generated; vendor preset: enabled)
>Active: inactive (dead)
>  Docs: man:systemd-sysv-generator(8)

> $ service ocfs2 status
> ocfs2.service - LSB: Mount OCFS2 volumes at boot.
>Loaded: loaded (/etc/init.d/ocfs2; generated; vendor preset: enabled)
>Active: inactive (dead)
>  Docs: man:systemd-sysv-generator(8)

Maybe o2cb and ocfs2 need to be ordered after network-online.target?

Any output after a failed boot from "journalctl -b -u  o2cb.service" or
"journalctl -b -u ocfs2.service"?

Grüße,
Sven.

-- 
Sigmentation fault. Core dumped.