Skip to main content
Version: 3024.3

Test failover

Mount the share on Windows:

PS C:\Users\tux> net use z: \\SMBCLUSTER\SH1 /USER:[email protected] <password>

Create a test file with the following syntax:

fsutil file createnew "FilePath\FileName.FileType" FileSize

FileSize is designated in bytes:

  • 1 MB = 1048576 bytes
  • 100 MB = 104857600 bytes
  • 1 GB = 1073741824 bytes
  • 10 GB = 10737418240 bytes
  • 100 GB =107374182400 bytes
  • 1 TB = 1099511627776 bytes
  • 10 TB =10995116277760 bytes Copy the test file from local client volume to SMB share. While copy is ongoing, place cluster services on one node in standby:
[tux@dhcp-200 ~]$ sudo pcs node standby

Copy should continue without interruption. Confirm successful failover of resources: Before failover:

tux@dhcp-200:~$ sudo pcs status
Cluster name: tsmb_ha
Cluster Summary:
* Stack: corosync
* Current DC: dhcp-200.fusion.tuxera (version 2.0.5-9.el8_4.1-ba59be7122) - partition with quorum
* Last updated: Fri Aug 6 12:38:34 2021
* Last change: Fri Aug 6 12:37:37 2021 by root via cibadmin on dhcp-200.fusion.tuxera
* 2 nodes configured
* 2 resource instances configured
Node List:
* Online: [ dhcp-200.fusion.tuxera dhcp-247.fusion.tuxera ]
Full List of Resources:
* virtual_ip (ocf::heartbeat:IPaddr2): Started dhcp-200.fusion.tuxera
* tsmb_ha (ocf::heartbeat:anything): Started dhcp-200.fusion.tuxera
Daemon Status:
corosync: active/disabled
pacemaker: active/disabled
pcsd: active/enabled

Failover:

[tux@dhcp-200 ~]$ sudo pcs node standby
[tux@dhcp-200 ~]$ sudo pcs status
Cluster name: tsmb_ha
Cluster Summary:
* Stack: corosync
* Current DC: dhcp-200.fusion.tuxera (version 2.0.5-9.el8_4.1-ba59be7122) - partition with quorum
* Last updated: Fri Aug 6 12:41:36 2021
* Last change: Fri Aug 6 12:41:06 2021 by root via cibadmin on dhcp-200.fusion.tuxera
* 2 nodes configured
* 2 resource instances configured
Node List:
* Node dhcp-200.fusion.tuxera: standby
* Online: [ dhcp-247.fusion.tuxera ]
Full List of Resources:
* virtual_ip (ocf::heartbeat:IPaddr2): Started dhcp-247.fusion.tuxera
* tsmb_ha (ocf::heartbeat:anything): Started dhcp-247.fusion.tuxera
Daemon Status:
corosync: active/disabled
pacemaker: active/disabled
pcsd: active/disabled