running and troubleshooting a samba/ctdb cluster a ...obnox/presentations/sambaxp...a tutorial at...

77
Running And Troubleshooting A Samba/CTDB Cluster A Tutorial At sambaXP 2011 Michael Adam [email protected] SerNet / Samba Team 2011-05-09

Upload: others

Post on 25-Sep-2020

14 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Running And TroubleshootingA Samba/CTDB Cluster

A Tutorial At sambaXP 2011

Michael Adam

[email protected]

SerNet / Samba Team

2011-05-09

Page 2: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Welcome to enjoy today’s

Michael Adam tutorial sambaXP (2 / 18)

Page 3: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Starting Points

I given: file system cluster

I want: offer cluster file system on the network (Samba)

I want: all-active

I Samba daemons on nodes need to act as one Samba server

I ⇒ problems with Samba IPC between nodes

I ⇒ need to share some persistent data

I middleware CTDB makes Samba clusterable

Michael Adam tutorial sambaXP (3 / 18)

Page 4: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Starting Points

I given: file system cluster

I want: offer cluster file system on the network (Samba)

I want: all-active

I Samba daemons on nodes need to act as one Samba server

I ⇒ problems with Samba IPC between nodes

I ⇒ need to share some persistent data

I middleware CTDB makes Samba clusterable

Michael Adam tutorial sambaXP (3 / 18)

Page 5: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Starting Points

I given: file system cluster

I want: offer cluster file system on the network (Samba)

I want: all-active

I Samba daemons on nodes need to act as one Samba server

I ⇒ problems with Samba IPC between nodes

I ⇒ need to share some persistent data

I middleware CTDB makes Samba clusterable

Michael Adam tutorial sambaXP (3 / 18)

Page 6: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Starting Points

I given: file system cluster

I want: offer cluster file system on the network (Samba)

I want: all-active

I Samba daemons on nodes need to act as one Samba server

I ⇒ problems with Samba IPC between nodes

I ⇒ need to share some persistent data

I middleware CTDB makes Samba clusterable

Michael Adam tutorial sambaXP (3 / 18)

Page 7: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Starting Points

I given: file system cluster

I want: offer cluster file system on the network (Samba)

I want: all-active

I Samba daemons on nodes need to act as one Samba server

I ⇒ problems with Samba IPC between nodes

I ⇒ need to share some persistent data

I middleware CTDB makes Samba clusterable

Michael Adam tutorial sambaXP (3 / 18)

Page 8: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Starting Points

I given: file system cluster

I want: offer cluster file system on the network (Samba)

I want: all-active

I Samba daemons on nodes need to act as one Samba server

I ⇒ problems with Samba IPC between nodes

I ⇒ need to share some persistent data

I middleware CTDB makes Samba clusterable

Michael Adam tutorial sambaXP (3 / 18)

Page 9: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Starting Points

I given: file system cluster

I want: offer cluster file system on the network (Samba)

I want: all-active

I Samba daemons on nodes need to act as one Samba server

I ⇒ problems with Samba IPC between nodes

I ⇒ need to share some persistent data

I middleware CTDB makes Samba clusterable

Michael Adam tutorial sambaXP (3 / 18)

Page 10: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Challenges For Samba

I IPC: messaging (messages.tdb and signals)I IPC: share volatile session data:

I SMB sessions: sessionid.tdbI share connections: connections.tdbI share modes (open files): locking.tdbI byte range locks: brlock.tdb

I share persistent data:I user database: passdb.tdbI domain join information: secrets.tdbI id mapping tables: winbindd idmap.tdbI registry: registry.tdbI group mapping: group mapping.tdb

Michael Adam tutorial sambaXP (4 / 18)

Page 11: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Challenges For Samba

I IPC: messaging (messages.tdb and signals)I IPC: share volatile session data:

I SMB sessions: sessionid.tdbI share connections: connections.tdbI share modes (open files): locking.tdbI byte range locks: brlock.tdb

I share persistent data:I user database: passdb.tdbI domain join information: secrets.tdbI id mapping tables: winbindd idmap.tdbI registry: registry.tdbI group mapping: group mapping.tdb

Michael Adam tutorial sambaXP (4 / 18)

Page 12: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Challenges For Samba

I IPC: messaging (messages.tdb and signals)I IPC: share volatile session data:

I SMB sessions: sessionid.tdbI share connections: connections.tdbI share modes (open files): locking.tdbI byte range locks: brlock.tdb

I share persistent data:I user database: passdb.tdbI domain join information: secrets.tdbI id mapping tables: winbindd idmap.tdbI registry: registry.tdbI group mapping: group mapping.tdb

Michael Adam tutorial sambaXP (4 / 18)

Page 13: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Challenges For Samba

I IPC: messaging (messages.tdb and signals)I IPC: share volatile session data:

I SMB sessions: sessionid.tdbI share connections: connections.tdbI share modes (open files): locking.tdbI byte range locks: brlock.tdb

I share persistent data:I user database: passdb.tdbI domain join information: secrets.tdbI id mapping tables: winbindd idmap.tdbI registry: registry.tdbI group mapping: group mapping.tdb

Michael Adam tutorial sambaXP (4 / 18)

Page 14: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Challenges For Samba

I IPC: messaging (messages.tdb and signals)I IPC: share volatile session data:

I SMB sessions: sessionid.tdbI share connections: connections.tdbI share modes (open files): locking.tdbI byte range locks: brlock.tdb

I share persistent data:I user database: passdb.tdbI domain join information: secrets.tdbI id mapping tables: winbindd idmap.tdbI registry: registry.tdbI group mapping: group mapping.tdb

Michael Adam tutorial sambaXP (4 / 18)

Page 15: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Challenges For Samba

I IPC: messaging (messages.tdb and signals)I IPC: share volatile session data:

I SMB sessions: sessionid.tdbI share connections: connections.tdbI share modes (open files): locking.tdbI byte range locks: brlock.tdb

I share persistent data:I user database: passdb.tdbI domain join information: secrets.tdbI id mapping tables: winbindd idmap.tdbI registry: registry.tdbI group mapping: group mapping.tdb

Michael Adam tutorial sambaXP (4 / 18)

Page 16: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Challenges For Samba

I IPC: messaging (messages.tdb and signals)I IPC: share volatile session data:

I SMB sessions: sessionid.tdbI share connections: connections.tdbI share modes (open files): locking.tdbI byte range locks: brlock.tdb

I share persistent data:I user database: passdb.tdbI domain join information: secrets.tdbI id mapping tables: winbindd idmap.tdbI registry: registry.tdbI group mapping: group mapping.tdb

Michael Adam tutorial sambaXP (4 / 18)

Page 17: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Challenges For Samba

I IPC: messaging (messages.tdb and signals)I IPC: share volatile session data:

I SMB sessions: sessionid.tdbI share connections: connections.tdbI share modes (open files): locking.tdbI byte range locks: brlock.tdb

I share persistent data:I user database: passdb.tdbI domain join information: secrets.tdbI id mapping tables: winbindd idmap.tdbI registry: registry.tdbI group mapping: group mapping.tdb

Michael Adam tutorial sambaXP (4 / 18)

Page 18: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Challenges For Samba

I IPC: messaging (messages.tdb and signals)I IPC: share volatile session data:

I SMB sessions: sessionid.tdbI share connections: connections.tdbI share modes (open files): locking.tdbI byte range locks: brlock.tdb

I share persistent data:I user database: passdb.tdbI domain join information: secrets.tdbI id mapping tables: winbindd idmap.tdbI registry: registry.tdbI group mapping: group mapping.tdb

Michael Adam tutorial sambaXP (4 / 18)

Page 19: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Challenges For Samba

I IPC: messaging (messages.tdb and signals)I IPC: share volatile session data:

I SMB sessions: sessionid.tdbI share connections: connections.tdbI share modes (open files): locking.tdbI byte range locks: brlock.tdb

I share persistent data:I user database: passdb.tdbI domain join information: secrets.tdbI id mapping tables: winbindd idmap.tdbI registry: registry.tdbI group mapping: group mapping.tdb

Michael Adam tutorial sambaXP (4 / 18)

Page 20: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Challenges For Samba

I IPC: messaging (messages.tdb and signals)I IPC: share volatile session data:

I SMB sessions: sessionid.tdbI share connections: connections.tdbI share modes (open files): locking.tdbI byte range locks: brlock.tdb

I share persistent data:I user database: passdb.tdbI domain join information: secrets.tdbI id mapping tables: winbindd idmap.tdbI registry: registry.tdbI group mapping: group mapping.tdb

Michael Adam tutorial sambaXP (4 / 18)

Page 21: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Challenges For Samba

I IPC: messaging (messages.tdb and signals)I IPC: share volatile session data:

I SMB sessions: sessionid.tdbI share connections: connections.tdbI share modes (open files): locking.tdbI byte range locks: brlock.tdb

I share persistent data:I user database: passdb.tdbI domain join information: secrets.tdbI id mapping tables: winbindd idmap.tdbI registry: registry.tdbI group mapping: group mapping.tdb

Michael Adam tutorial sambaXP (4 / 18)

Page 22: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB provides

I clustered TDB implementation for volatile and persistent data

I volatile implementation scales better than general purpose cluster DBs

I messaging for Samba between nodes

I cluster service management (start/stop/monitor)

Michael Adam tutorial sambaXP (5 / 18)

Page 23: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB provides

I clustered TDB implementation for volatile and persistent data

I volatile implementation scales better than general purpose cluster DBs

I messaging for Samba between nodes

I cluster service management (start/stop/monitor)

Michael Adam tutorial sambaXP (5 / 18)

Page 24: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB provides

I clustered TDB implementation for volatile and persistent data

I volatile implementation scales better than general purpose cluster DBs

I messaging for Samba between nodes

I cluster service management (start/stop/monitor)

Michael Adam tutorial sambaXP (5 / 18)

Page 25: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB provides

I clustered TDB implementation for volatile and persistent data

I volatile implementation scales better than general purpose cluster DBs

I messaging for Samba between nodes

I cluster service management (start/stop/monitor)

Michael Adam tutorial sambaXP (5 / 18)

Page 26: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB Design – General

I one daemon ctdbd on each node (and temporary forks)

I smbd talks to local ctdbd for messaging and TDB access

I ctdbd handles metadata of TDBs via the network

I ctdbd keeps local TDB copy (LTDB) for fast data reads/writes

I the actual record read and write ops are directly to the LTDB

I normal and persistent TDBs are handled differently

I Note: each single samba client connection is served by a single nodeand not spread across multiple nodes.

Michael Adam tutorial sambaXP (6 / 18)

Page 27: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB Design – General

I one daemon ctdbd on each node (and temporary forks)

I smbd talks to local ctdbd for messaging and TDB access

I ctdbd handles metadata of TDBs via the network

I ctdbd keeps local TDB copy (LTDB) for fast data reads/writes

I the actual record read and write ops are directly to the LTDB

I normal and persistent TDBs are handled differently

I Note: each single samba client connection is served by a single nodeand not spread across multiple nodes.

Michael Adam tutorial sambaXP (6 / 18)

Page 28: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB Design – General

I one daemon ctdbd on each node (and temporary forks)

I smbd talks to local ctdbd for messaging and TDB access

I ctdbd handles metadata of TDBs via the network

I ctdbd keeps local TDB copy (LTDB) for fast data reads/writes

I the actual record read and write ops are directly to the LTDB

I normal and persistent TDBs are handled differently

I Note: each single samba client connection is served by a single nodeand not spread across multiple nodes.

Michael Adam tutorial sambaXP (6 / 18)

Page 29: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB Design – General

I one daemon ctdbd on each node (and temporary forks)

I smbd talks to local ctdbd for messaging and TDB access

I ctdbd handles metadata of TDBs via the network

I ctdbd keeps local TDB copy (LTDB) for fast data reads/writes

I the actual record read and write ops are directly to the LTDB

I normal and persistent TDBs are handled differently

I Note: each single samba client connection is served by a single nodeand not spread across multiple nodes.

Michael Adam tutorial sambaXP (6 / 18)

Page 30: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB Design – General

I one daemon ctdbd on each node (and temporary forks)

I smbd talks to local ctdbd for messaging and TDB access

I ctdbd handles metadata of TDBs via the network

I ctdbd keeps local TDB copy (LTDB) for fast data reads/writes

I the actual record read and write ops are directly to the LTDB

I normal and persistent TDBs are handled differently

I Note: each single samba client connection is served by a single nodeand not spread across multiple nodes.

Michael Adam tutorial sambaXP (6 / 18)

Page 31: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB Design – General

I one daemon ctdbd on each node (and temporary forks)

I smbd talks to local ctdbd for messaging and TDB access

I ctdbd handles metadata of TDBs via the network

I ctdbd keeps local TDB copy (LTDB) for fast data reads/writes

I the actual record read and write ops are directly to the LTDB

I normal and persistent TDBs are handled differently

I Note: each single samba client connection is served by a single nodeand not spread across multiple nodes.

Michael Adam tutorial sambaXP (6 / 18)

Page 32: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB Design – General

I one daemon ctdbd on each node (and temporary forks)

I smbd talks to local ctdbd for messaging and TDB access

I ctdbd handles metadata of TDBs via the network

I ctdbd keeps local TDB copy (LTDB) for fast data reads/writes

I the actual record read and write ops are directly to the LTDB

I normal and persistent TDBs are handled differently

I Note: each single samba client connection is served by a single nodeand not spread across multiple nodes.

Michael Adam tutorial sambaXP (6 / 18)

Page 33: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB Design – Daemons

Michael Adam tutorial sambaXP (7 / 18)

Page 34: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB Design – Management

I HA and cluster management features:

I monitor health of ctdb cluster and (optionally) services(Samba, NFS, . . . )

I fail over/fail back IP addresses and services

I In case of failover, connections are lost: clients need to reconnect(⇒ tickle acks)

I Recovery ensures consistent state of DBs in case of failure

Michael Adam tutorial sambaXP (8 / 18)

Page 35: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB Design – Management

I HA and cluster management features:

I monitor health of ctdb cluster and (optionally) services(Samba, NFS, . . . )

I fail over/fail back IP addresses and services

I In case of failover, connections are lost: clients need to reconnect(⇒ tickle acks)

I Recovery ensures consistent state of DBs in case of failure

Michael Adam tutorial sambaXP (8 / 18)

Page 36: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB Design – Management

I HA and cluster management features:

I monitor health of ctdb cluster and (optionally) services(Samba, NFS, . . . )

I fail over/fail back IP addresses and services

I In case of failover, connections are lost: clients need to reconnect(⇒ tickle acks)

I Recovery ensures consistent state of DBs in case of failure

Michael Adam tutorial sambaXP (8 / 18)

Page 37: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB Design – Management

I HA and cluster management features:

I monitor health of ctdb cluster and (optionally) services(Samba, NFS, . . . )

I fail over/fail back IP addresses and services

I In case of failover, connections are lost: clients need to reconnect(⇒ tickle acks)

I Recovery ensures consistent state of DBs in case of failure

Michael Adam tutorial sambaXP (8 / 18)

Page 38: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB Design – Management

I HA and cluster management features:

I monitor health of ctdb cluster and (optionally) services(Samba, NFS, . . . )

I fail over/fail back IP addresses and services

I In case of failover, connections are lost: clients need to reconnect(⇒ tickle acks)

I Recovery ensures consistent state of DBs in case of failure

Michael Adam tutorial sambaXP (8 / 18)

Page 39: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB Design – Node Roles

I recovery master of the cluster (recmaster)

I data master of a record (DMASTER)

I location master of a record (LMASTER)

Michael Adam tutorial sambaXP (9 / 18)

Page 40: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB Design – Node Roles

I recovery master of the cluster (recmaster)

I data master of a record (DMASTER)

I location master of a record (LMASTER)

Michael Adam tutorial sambaXP (9 / 18)

Page 41: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB Design – Node Roles

I recovery master of the cluster (recmaster)

I data master of a record (DMASTER)

I location master of a record (LMASTER)

Michael Adam tutorial sambaXP (9 / 18)

Page 42: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB - Basic Setup

Michael Adam tutorial sambaXP (10 / 18)

Page 43: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB - Configuration

I central file: /etc/sysconfig/ctdb

I debian based: /etc/default/ctdb

I set CTDB RECOVERY LOCK for split brain prevention

I fill /etc/ctdb/nodes with internal node addresses(one address per node)

I same file on all nodes!

I set CTDB PUBLIC ADDRESSES in /etc/sysconfig/ctdb

I typical value /etc/ctdb/public addresses

I lines of the form address/netmask interface

I pool of addresses that ctdb can distribute across the cluster

I consider CTDB SYSLOG=yes (logrotation missing...)

Michael Adam tutorial sambaXP (11 / 18)

Page 44: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB - Configuration

I central file: /etc/sysconfig/ctdb

I debian based: /etc/default/ctdb

I set CTDB RECOVERY LOCK for split brain prevention

I fill /etc/ctdb/nodes with internal node addresses(one address per node)

I same file on all nodes!

I set CTDB PUBLIC ADDRESSES in /etc/sysconfig/ctdb

I typical value /etc/ctdb/public addresses

I lines of the form address/netmask interface

I pool of addresses that ctdb can distribute across the cluster

I consider CTDB SYSLOG=yes (logrotation missing...)

Michael Adam tutorial sambaXP (11 / 18)

Page 45: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB - Configuration

I central file: /etc/sysconfig/ctdb

I debian based: /etc/default/ctdb

I set CTDB RECOVERY LOCK for split brain prevention

I fill /etc/ctdb/nodes with internal node addresses(one address per node)

I same file on all nodes!

I set CTDB PUBLIC ADDRESSES in /etc/sysconfig/ctdb

I typical value /etc/ctdb/public addresses

I lines of the form address/netmask interface

I pool of addresses that ctdb can distribute across the cluster

I consider CTDB SYSLOG=yes (logrotation missing...)

Michael Adam tutorial sambaXP (11 / 18)

Page 46: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB - Configuration

I central file: /etc/sysconfig/ctdb

I debian based: /etc/default/ctdb

I set CTDB RECOVERY LOCK for split brain prevention

I fill /etc/ctdb/nodes with internal node addresses(one address per node)

I same file on all nodes!

I set CTDB PUBLIC ADDRESSES in /etc/sysconfig/ctdb

I typical value /etc/ctdb/public addresses

I lines of the form address/netmask interface

I pool of addresses that ctdb can distribute across the cluster

I consider CTDB SYSLOG=yes (logrotation missing...)

Michael Adam tutorial sambaXP (11 / 18)

Page 47: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB - Configuration

I central file: /etc/sysconfig/ctdb

I debian based: /etc/default/ctdb

I set CTDB RECOVERY LOCK for split brain prevention

I fill /etc/ctdb/nodes with internal node addresses(one address per node)

I same file on all nodes!

I set CTDB PUBLIC ADDRESSES in /etc/sysconfig/ctdb

I typical value /etc/ctdb/public addresses

I lines of the form address/netmask interface

I pool of addresses that ctdb can distribute across the cluster

I consider CTDB SYSLOG=yes (logrotation missing...)

Michael Adam tutorial sambaXP (11 / 18)

Page 48: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB - Configuration

I central file: /etc/sysconfig/ctdb

I debian based: /etc/default/ctdb

I set CTDB RECOVERY LOCK for split brain prevention

I fill /etc/ctdb/nodes with internal node addresses(one address per node)

I same file on all nodes!

I set CTDB PUBLIC ADDRESSES in /etc/sysconfig/ctdb

I typical value /etc/ctdb/public addresses

I lines of the form address/netmask interface

I pool of addresses that ctdb can distribute across the cluster

I consider CTDB SYSLOG=yes (logrotation missing...)

Michael Adam tutorial sambaXP (11 / 18)

Page 49: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB - Configuration

I central file: /etc/sysconfig/ctdb

I debian based: /etc/default/ctdb

I set CTDB RECOVERY LOCK for split brain prevention

I fill /etc/ctdb/nodes with internal node addresses(one address per node)

I same file on all nodes!

I set CTDB PUBLIC ADDRESSES in /etc/sysconfig/ctdb

I typical value /etc/ctdb/public addresses

I lines of the form address/netmask interface

I pool of addresses that ctdb can distribute across the cluster

I consider CTDB SYSLOG=yes (logrotation missing...)

Michael Adam tutorial sambaXP (11 / 18)

Page 50: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB - Configuration

I central file: /etc/sysconfig/ctdb

I debian based: /etc/default/ctdb

I set CTDB RECOVERY LOCK for split brain prevention

I fill /etc/ctdb/nodes with internal node addresses(one address per node)

I same file on all nodes!

I set CTDB PUBLIC ADDRESSES in /etc/sysconfig/ctdb

I typical value /etc/ctdb/public addresses

I lines of the form address/netmask interface

I pool of addresses that ctdb can distribute across the cluster

I consider CTDB SYSLOG=yes (logrotation missing...)

Michael Adam tutorial sambaXP (11 / 18)

Page 51: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB - Configuration

I central file: /etc/sysconfig/ctdb

I debian based: /etc/default/ctdb

I set CTDB RECOVERY LOCK for split brain prevention

I fill /etc/ctdb/nodes with internal node addresses(one address per node)

I same file on all nodes!

I set CTDB PUBLIC ADDRESSES in /etc/sysconfig/ctdb

I typical value /etc/ctdb/public addresses

I lines of the form address/netmask interface

I pool of addresses that ctdb can distribute across the cluster

I consider CTDB SYSLOG=yes (logrotation missing...)

Michael Adam tutorial sambaXP (11 / 18)

Page 52: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB - Configuration

I central file: /etc/sysconfig/ctdb

I debian based: /etc/default/ctdb

I set CTDB RECOVERY LOCK for split brain prevention

I fill /etc/ctdb/nodes with internal node addresses(one address per node)

I same file on all nodes!

I set CTDB PUBLIC ADDRESSES in /etc/sysconfig/ctdb

I typical value /etc/ctdb/public addresses

I lines of the form address/netmask interface

I pool of addresses that ctdb can distribute across the cluster

I consider CTDB SYSLOG=yes (logrotation missing...)

Michael Adam tutorial sambaXP (11 / 18)

Page 53: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB - Toolbox

I ping pong: test the cluster file system POSIX locks

I ctdbd: ctdb daemonI ctdb: commandline tool to query/control ctdbd and manage

databasesI ctdb statusI ctdb ipI ctdb scriptstatusI ctdb getdbmapI ctdb catdbI ctdb backupdb / ctdb restoredbI ctdb wipedb

I onnode: run commands on all or on selected nodes

I ltdbtool: query and convert local tdb copies (NEW!)

Michael Adam tutorial sambaXP (12 / 18)

Page 54: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB - Toolbox

I ping pong: test the cluster file system POSIX locks

I ctdbd: ctdb daemonI ctdb: commandline tool to query/control ctdbd and manage

databasesI ctdb statusI ctdb ipI ctdb scriptstatusI ctdb getdbmapI ctdb catdbI ctdb backupdb / ctdb restoredbI ctdb wipedb

I onnode: run commands on all or on selected nodes

I ltdbtool: query and convert local tdb copies (NEW!)

Michael Adam tutorial sambaXP (12 / 18)

Page 55: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB - Toolbox

I ping pong: test the cluster file system POSIX locks

I ctdbd: ctdb daemonI ctdb: commandline tool to query/control ctdbd and manage

databasesI ctdb statusI ctdb ipI ctdb scriptstatusI ctdb getdbmapI ctdb catdbI ctdb backupdb / ctdb restoredbI ctdb wipedb

I onnode: run commands on all or on selected nodes

I ltdbtool: query and convert local tdb copies (NEW!)

Michael Adam tutorial sambaXP (12 / 18)

Page 56: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB - Toolbox

I ping pong: test the cluster file system POSIX locks

I ctdbd: ctdb daemonI ctdb: commandline tool to query/control ctdbd and manage

databasesI ctdb statusI ctdb ipI ctdb scriptstatusI ctdb getdbmapI ctdb catdbI ctdb backupdb / ctdb restoredbI ctdb wipedb

I onnode: run commands on all or on selected nodes

I ltdbtool: query and convert local tdb copies (NEW!)

Michael Adam tutorial sambaXP (12 / 18)

Page 57: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB - Toolbox

I ping pong: test the cluster file system POSIX locks

I ctdbd: ctdb daemonI ctdb: commandline tool to query/control ctdbd and manage

databasesI ctdb statusI ctdb ipI ctdb scriptstatusI ctdb getdbmapI ctdb catdbI ctdb backupdb / ctdb restoredbI ctdb wipedb

I onnode: run commands on all or on selected nodes

I ltdbtool: query and convert local tdb copies (NEW!)

Michael Adam tutorial sambaXP (12 / 18)

Page 58: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB - Toolbox

I ping pong: test the cluster file system POSIX locks

I ctdbd: ctdb daemonI ctdb: commandline tool to query/control ctdbd and manage

databasesI ctdb statusI ctdb ipI ctdb scriptstatusI ctdb getdbmapI ctdb catdbI ctdb backupdb / ctdb restoredbI ctdb wipedb

I onnode: run commands on all or on selected nodes

I ltdbtool: query and convert local tdb copies (NEW!)

Michael Adam tutorial sambaXP (12 / 18)

Page 59: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB - Toolbox

I ping pong: test the cluster file system POSIX locks

I ctdbd: ctdb daemonI ctdb: commandline tool to query/control ctdbd and manage

databasesI ctdb statusI ctdb ipI ctdb scriptstatusI ctdb getdbmapI ctdb catdbI ctdb backupdb / ctdb restoredbI ctdb wipedb

I onnode: run commands on all or on selected nodes

I ltdbtool: query and convert local tdb copies (NEW!)

Michael Adam tutorial sambaXP (12 / 18)

Page 60: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB - Toolbox

I ping pong: test the cluster file system POSIX locks

I ctdbd: ctdb daemonI ctdb: commandline tool to query/control ctdbd and manage

databasesI ctdb statusI ctdb ipI ctdb scriptstatusI ctdb getdbmapI ctdb catdbI ctdb backupdb / ctdb restoredbI ctdb wipedb

I onnode: run commands on all or on selected nodes

I ltdbtool: query and convert local tdb copies (NEW!)

Michael Adam tutorial sambaXP (12 / 18)

Page 61: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB - Toolbox

I ping pong: test the cluster file system POSIX locks

I ctdbd: ctdb daemonI ctdb: commandline tool to query/control ctdbd and manage

databasesI ctdb statusI ctdb ipI ctdb scriptstatusI ctdb getdbmapI ctdb catdbI ctdb backupdb / ctdb restoredbI ctdb wipedb

I onnode: run commands on all or on selected nodes

I ltdbtool: query and convert local tdb copies (NEW!)

Michael Adam tutorial sambaXP (12 / 18)

Page 62: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB - Toolbox

I ping pong: test the cluster file system POSIX locks

I ctdbd: ctdb daemonI ctdb: commandline tool to query/control ctdbd and manage

databasesI ctdb statusI ctdb ipI ctdb scriptstatusI ctdb getdbmapI ctdb catdbI ctdb backupdb / ctdb restoredbI ctdb wipedb

I onnode: run commands on all or on selected nodes

I ltdbtool: query and convert local tdb copies (NEW!)

Michael Adam tutorial sambaXP (12 / 18)

Page 63: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB - Toolbox

I ping pong: test the cluster file system POSIX locks

I ctdbd: ctdb daemonI ctdb: commandline tool to query/control ctdbd and manage

databasesI ctdb statusI ctdb ipI ctdb scriptstatusI ctdb getdbmapI ctdb catdbI ctdb backupdb / ctdb restoredbI ctdb wipedb

I onnode: run commands on all or on selected nodes

I ltdbtool: query and convert local tdb copies (NEW!)

Michael Adam tutorial sambaXP (12 / 18)

Page 64: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

CTDB - Toolbox

I ping pong: test the cluster file system POSIX locks

I ctdbd: ctdb daemonI ctdb: commandline tool to query/control ctdbd and manage

databasesI ctdb statusI ctdb ipI ctdb scriptstatusI ctdb getdbmapI ctdb catdbI ctdb backupdb / ctdb restoredbI ctdb wipedb

I onnode: run commands on all or on selected nodes

I ltdbtool: query and convert local tdb copies (NEW!)

Michael Adam tutorial sambaXP (12 / 18)

Page 65: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Demo Cluster Layout

Michael Adam tutorial sambaXP (13 / 18)

Page 66: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Clustered Samba

I upstream since version 3.3

I transaction rewrite in 3.5.2

I cluster branches v3-4-ctdb and v3-6-ctdb ingit://git.samba.org/obnox/samba-ctdb.git

I build: configure --with-cluster-support

I may: add idmap tdb2 to shared modules

I verify that gpfs.so is build for GPFS usage(hint: only need the open sourced headers for building)

I identical smb.conf on all nodes!

I hint: registry configuration

Michael Adam tutorial sambaXP (14 / 18)

Page 67: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Clustered Samba

I upstream since version 3.3

I transaction rewrite in 3.5.2

I cluster branches v3-4-ctdb and v3-6-ctdb ingit://git.samba.org/obnox/samba-ctdb.git

I build: configure --with-cluster-support

I may: add idmap tdb2 to shared modules

I verify that gpfs.so is build for GPFS usage(hint: only need the open sourced headers for building)

I identical smb.conf on all nodes!

I hint: registry configuration

Michael Adam tutorial sambaXP (14 / 18)

Page 68: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Clustered Samba

I upstream since version 3.3

I transaction rewrite in 3.5.2

I cluster branches v3-4-ctdb and v3-6-ctdb ingit://git.samba.org/obnox/samba-ctdb.git

I build: configure --with-cluster-support

I may: add idmap tdb2 to shared modules

I verify that gpfs.so is build for GPFS usage(hint: only need the open sourced headers for building)

I identical smb.conf on all nodes!

I hint: registry configuration

Michael Adam tutorial sambaXP (14 / 18)

Page 69: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Clustered Samba

I upstream since version 3.3

I transaction rewrite in 3.5.2

I cluster branches v3-4-ctdb and v3-6-ctdb ingit://git.samba.org/obnox/samba-ctdb.git

I build: configure --with-cluster-support

I may: add idmap tdb2 to shared modules

I verify that gpfs.so is build for GPFS usage(hint: only need the open sourced headers for building)

I identical smb.conf on all nodes!

I hint: registry configuration

Michael Adam tutorial sambaXP (14 / 18)

Page 70: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Clustered Samba

I upstream since version 3.3

I transaction rewrite in 3.5.2

I cluster branches v3-4-ctdb and v3-6-ctdb ingit://git.samba.org/obnox/samba-ctdb.git

I build: configure --with-cluster-support

I may: add idmap tdb2 to shared modules

I verify that gpfs.so is build for GPFS usage(hint: only need the open sourced headers for building)

I identical smb.conf on all nodes!

I hint: registry configuration

Michael Adam tutorial sambaXP (14 / 18)

Page 71: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Clustered Samba

I upstream since version 3.3

I transaction rewrite in 3.5.2

I cluster branches v3-4-ctdb and v3-6-ctdb ingit://git.samba.org/obnox/samba-ctdb.git

I build: configure --with-cluster-support

I may: add idmap tdb2 to shared modules

I verify that gpfs.so is build for GPFS usage(hint: only need the open sourced headers for building)

I identical smb.conf on all nodes!

I hint: registry configuration

Michael Adam tutorial sambaXP (14 / 18)

Page 72: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Clustered Samba

I upstream since version 3.3

I transaction rewrite in 3.5.2

I cluster branches v3-4-ctdb and v3-6-ctdb ingit://git.samba.org/obnox/samba-ctdb.git

I build: configure --with-cluster-support

I may: add idmap tdb2 to shared modules

I verify that gpfs.so is build for GPFS usage(hint: only need the open sourced headers for building)

I identical smb.conf on all nodes!

I hint: registry configuration

Michael Adam tutorial sambaXP (14 / 18)

Page 73: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Clustered Samba

I upstream since version 3.3

I transaction rewrite in 3.5.2

I cluster branches v3-4-ctdb and v3-6-ctdb ingit://git.samba.org/obnox/samba-ctdb.git

I build: configure --with-cluster-support

I may: add idmap tdb2 to shared modules

I verify that gpfs.so is build for GPFS usage(hint: only need the open sourced headers for building)

I identical smb.conf on all nodes!

I hint: registry configuration

Michael Adam tutorial sambaXP (14 / 18)

Page 74: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

smb.conf: basic example

[global]

clustering = yes

netbios name = smbcluster

workgroup = sambaxp

realm = sambaxp.private

security = ads

#passdb backend = tdbsam

#groupdb:backend = tdb

idmap backend = tdb

idmap uid = 1000000-2000000

idmap gid = 1000000-2000000

fileid:algorithm = fsname

[share]

path = /cluster storage/share

writeable = yes

vfs objects = fileid

Michael Adam tutorial sambaXP (15 / 18)

Page 75: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

smb.conf: gpfs options

clustering = yes

fileid:algorithm = fsname

#gpfs:sharemodes = yes

#gpfs:leases = yes

gpfs:winattr = yes

#gpfs:getrealfilename = yes

#gpfs:refuse dacl protected = no

force unknown acl user = yes

nfs4: mode = special

nfs4: chown = yes

nfs4: acedup = merge

vfs objects = fileid gpfs syncops

Michael Adam tutorial sambaXP (16 / 18)

Page 76: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Let’s work with our cluster! ...

I internal cluster network: 172.22.18.0/22I gpfsn0 : 172.22.18.60I ctbdn0 : 172.22.18.80I ctbdn1 : 172.22.18.81I ctbdn2 : 172.22.18.82

I external client network: 172.22.17.0/22

Michael Adam tutorial sambaXP (17 / 18)

Page 77: Running And Troubleshooting A Samba/CTDB Cluster A ...obnox/presentations/sambaXP...A Tutorial At sambaXP 2011 Michael Adam obnox@samba.org SerNet / Samba Team 2011-05-09. Welcome

Thank you very much!