zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

Pacemaker: fix timeout warnings

March 15, 2011 by Igor Drobot 3 Comments

Sometimes if you add a new resource or change something in your cluster configuration you get some warnings like this one.

Or if you run a configuration syntax check:

1
root@node1:~# crm configure verify

root@node1:~# crm configure verify

1
2
3
4
5
6
7
crm(live)configure# verify 
WARNING: mount_srv: default timeout 20s for start is smaller than the advised 60
WARNING: mount_srv: default timeout 20s for stop is smaller than the advised 60
WARNING: drbd_r0: default timeout 20s for start is smaller than the advised 240
WARNING: drbd_r0: default timeout 20s for stop is smaller than the advised 100
WARNING: pingnet: default timeout 20s for start is smaller than the advised 60
WARNING: pingnet: default timeout 20s for monitor_0 is smaller than the advised 60

crm(live)configure# verify WARNING: mount_srv: default timeout 20s for start is smaller than the advised 60 WARNING: mount_srv: default timeout 20s for stop is smaller than the advised 60 WARNING: drbd_r0: default timeout 20s for start is smaller than the advised 240 WARNING: drbd_r0: default timeout 20s for stop is smaller than the advised 100 WARNING: pingnet: default timeout 20s for start is smaller than the advised 60 WARNING: pingnet: default timeout 20s for monitor_0 is smaller than the advised 60

Solution: define new operations, use the same times 240s and 100s
op start interval=”0″ timeout=”240s”
op stop interval=”0″ timeout=”100s”

Config snippet:

1
2
3
4
5
primitive drbd_r0 ocf:linbit:drbd \
        params drbd_resource="drbd0" \
        op monitor interval="120s" \
        op start interval="0" timeout="240s" \
        op stop interval="0" timeout="100s"

primitive drbd_r0 ocf:linbit:drbd \ params drbd_resource="drbd0" \ op monitor interval="120s" \ op start interval="0" timeout="240s" \ op stop interval="0" timeout="100s"

Really dirty fix (set global timeouts):

1
crm configure property default-action-timeout="240"

crm configure property default-action-timeout="240"

Filed Under: Linux Tagged With: Corosync, corosync WARNING, crm, default timeout, Pacemaker

DRBD set sync speed

March 15, 2011 by Igor Drobot 1 Comment

The default sync rate is normally defined in your drbd configuration (mostly /etc/drbd.conf)

1
2
3
syncer {
    rate 100M; 
}

syncer { rate 100M; }

If you are setting up a virtual machine on drbd cluster you need to produce more I/O and your physical machines are under heavy load. You can stop some services or you can reduce the sync rate.

Set temporary sync rate:
You need to issue this command only on one of your nodes!

1
root@drbd-node1:~# drbdsetup /dev/drbd0 syncer -r 10M

root@drbd-node1:~# drbdsetup /dev/drbd0 syncer -r 10M

Enjoy the easy solution;)

Filed Under: Debian, Linux Tagged With: DRBD, drbd speed, drbd syncer

File systems part III – cluster filesystems

March 13, 2011 by Igor Drobot Leave a Comment


GFS2 – the Global File System
Very responsive on large files.

It allows a cluster of computers to simultaneously use a block device that is shared between them (with FC, iSCSI, NBD, etc…). GFS reads and writes to the block device like a local filesystem, but also uses a lock module to allow the computers coordinate their I/O so filesystem consistency is maintained.
[Read more…]

Filed Under: Linux Tagged With: cluster filesystem, GFS2, OCFS2

File systems part II – ext3 and ext4

March 13, 2011 by Igor Drobot Leave a Comment

What are the differences between ext3 and ext4?
Ext3
Journaling: Yes
Creation timestamps: No
Max file size: 16 GB – 2 TB
Max Volume size: 256 TB
[Read more…]

Filed Under: Linux Tagged With: ext3, ext4

File systems part I – NTFS and FAT32

March 13, 2011 by Igor Drobot Leave a Comment

I collected some facts and specs about windows filesystems. About their limits and security.

Mac-OS has still some problems with writing on NTFS partitions. If you work on windows and MAC you should use FAT-32.

Some answer are given below. [Read more…]

Filed Under: Windows Tagged With: fat, fat32, fs, ntfs, Windows, Windows 7, Windows Vista, Windows XP

  • « Previous Page
  • 1
  • …
  • 41
  • 42
  • 43
  • 44
  • 45
  • …
  • 74
  • Next Page »
Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok