[Sheepdog] Small sheepdog howto
PCextreme B.V. - Wido den Hollander
wido at pcextreme.nl
Mon Jan 25 17:30:42 CET 2010
Hi,
root at wido-desktop:~# corosync-cfgtool -s
Printing ring status.
Local node ID 537307328
RING ID 0
id = 192.168.6.32
status = ring 0 active with no faults
root at wido-desktop:~#
And my shepherd gives back:
root at wido-desktop:~# shepherd info -t dog
Idx Node id (FNV-1a) - Host:Port
--------------------------------------------------
0 4c212f70289e9103 - 127.0.1.1:7000
1 4c212f70289e9103 - 127.0.1.1:7000
* 2 4c212f70289e9103 - 127.0.1.1:7000
3 4c212f70289e9103 - 127.0.1.1:7000
4 4c212f70289e9103 - 127.0.1.1:7000
root at wido-desktop:~#
I've attached my "corosync.conf" where i have auth turned on and a
synced "authkey" file on all the nodes.
Tried without auth turned on, but gave the same result.
root at wido-desktop:~# corosync-cfgtool -s
Printing ring status.
Local node ID 537307328
RING ID 0
id = 192.168.6.32
status = ring 0 active with no faults
root at wido-desktop:~# corosync-cfgtool -a 268871872
192.168.6.16
root at wido-desktop:~#
It seems that my desktop knows the IP of "sheepdog01":
root at sheepdog01:~# corosync-cfgtool -s
Printing ring status.
Local node ID 268871872
RING ID 0
id = 192.168.6.16
status = ring 0 active with no faults
root at sheepdog01:~#
--
Met vriendelijke groet,
Wido den Hollander
Hoofd Systeembeheer / CSO
Telefoon Support Nederland: 0900 9633 (45 cpm)
Telefoon Support België: 0900 70312 (45 cpm)
Telefoon Direct: (+31) (0)20 50 60 104
Fax: +31 (0)20 50 60 111
E-mail: support at pcextreme.nl
Website: http://www.pcextreme.nl
Kennisbank: http://support.pcextreme.nl/
Netwerkstatus: http://nmc.pcextreme.nl
On Mon, 2010-01-25 at 16:04 +0000, Piavlo wrote:
> PCextreme B.V. - Wido den Hollander wrote:
> > Hi,
> >
> > I just changed the port numbers and started to get:
> >
> Why do you need to change the port number?
> Can you post the output of
> corosync-cfgtool -s & corosync-cpgtool when collie listens on default
> 7000 port
>
> > root at wido-desktop:~# shepherd info -t dog
> > Idx Node id (FNV-1a) - Host:Port
> > --------------------------------------------------
> > * 0 3c4cf26613f12626 - 127.0.1.1:7001
> > 1 4c212f70289e9103 - 127.0.1.1:7000
> > 2 71df6c9fd5773550 - 127.0.1.1:7003
> > 3 f95821c88a410795 - 127.0.1.1:7002
> > root at wido-desktop:~#
> >
> > But now mkfs still fails:
> >
> > root at wido-desktop:~# shepherd mkfs --copies=3
> > unknown error
> > root at wido-desktop:~#
> >
> > I've attached a strace from the "mkfs" command.
> >
> > But how do i tell shepherd to connect to another port then 7000? I have
> > collie listening on 7000 on one host, so i am using shepherd on that
> > particular host, but i should be able to use shepherd on all the hosts i
> > assume?
> >
> > Image creation also fails (which seems obvious):
> >
> > root at wido-desktop:~# /opt/qemu-kvm/bin/qemu-img create -f sheepdog
> > "Wido's Disk" 10G
> > Formatting 'Wido's Disk', fmt=sheepdog size=10737418240
> > do_sd_create 1270: I/O error, Wido's Disk
> > qemu-img: Error while formatting
> > root at wido-desktop:~#
> >
> > I am using ext4 on all four machines with user_xattr turned on.
> >
> >
> >
>
-------------- next part --------------
# Please read the openais.conf.5 manual page
totem {
version: 2
# How long before declaring a token lost (ms)
token: 3000
# How many token retransmits before forming a new configuration
token_retransmits_before_loss_const: 10
# How long to wait for join messages in the membership protocol (ms)
join: 60
# How long to wait for consensus to be achieved before starting a new round of membership configuration (ms)
consensus: 1500
# Turn off the virtual synchrony filter
vsftype: none
# Number of messages that may be sent by one processor on receipt of the token
max_messages: 20
# Limit generated nodeids to 31-bits (positive signed integers)
clear_node_high_bit: yes
# Disable encryption
secauth: on
# How many threads to use for encryption/decryption
threads: 2
# Optionally assign a fixed node id (integer)
# nodeid: 30117188
# This specifies the mode of redundant ring, which may be none, active, or passive.
rrp_mode: none
interface {
# The following values need to be set based on your environment
ringnumber: 0
bindnetaddr: 192.168.6.0
mcastaddr: 226.94.1.1
mcastport: 5405
}
}
amf {
mode: disabled
}
service {
# Load the Pacemaker Cluster Resource Manager
ver: 0
name: pacemaker
}
aisexec {
user: root
group: root
}
logging {
fileline: off
to_stderr: yes
to_logfile: no
to_syslog: yes
syslog_facility: daemon
debug: off
timestamp: on
logger_subsys {
subsys: AMF
debug: off
tags: enter|leave|trace1|trace2|trace3|trace4|trace6
}
}
More information about the sheepdog
mailing list