Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

The bsr installation package is packages are available for Windows and Linux. For Linux, separated into rpm packages for CentOS (RHEL) 6.4 or higher rpm package and and later and deb packages for Ubuntu 16.04 LTS or higher deb package are distributedand later. To obtain the installation packagepackages, please contact Mantech Technical Lab.(dev3@mantechbsr@mantech.co.kr)

Note

Notice

...

Cautions

BSR conflicts with DRBD for system resource usage when installed and operated together. If

...

DRBD was previously installed on your system,

...

it should be removed.

Windows

...

Install

You can easily install it by running the installer for Windows and following the steps in guided by the installation wizard. After Once the installation is complete, you will 'll need to reboot your system.

Information

...

Install information

After a successful installation, the directory is configured will be organized as shown below.

  • binContains

The location of the binary programs that make up

...

BSR.

  • etcPath

The path to the configuration

...

files.

  • jrePath

The path to the Java runtime environment for the installation package.

  • bsrservicePath

The path to the bsr service binary.

The bsr service performs initialization

...

tasks for performing replication.

...

Careful control of the service is

...

required because replication

...

can be interrupted

...

if the service is interrupted.

Info

Windows ' bsr uses local TCP loopback ports 5678 and 5679 internally to perform TCP loopback communicationfor netlinks and services. To change this default portthese ports, you need to must change the value of the key value in the following registry path and restart the system.

path

Path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\bsr\

key

Keys:

 netlink

netlink_tcp_port,

 daemon

daemon_tcp_port

Update

If you reinstall a new version of a package while with BSR is installed, the update installation is performed done automatically.

Info

Re-installing the existing version by You can also reinstall the program after deleting it from the program and function of the control panel can be cumbersome since rebooting is required after deletion. It is not recommended to update after deleting from the control panel.

Delete

...

Control Panel, but be sure to restart the system after deletion. If you proceed directly to reinstalling the program without restarting, you should be careful because the system crashes due to abnormal installation.

Uninstall

You can delete the BSR package from Programs and Features in Control Panel. The machine needs to be rebooted You must reboot the machine after deletion.

...

Replacing a NIC

If the LAN card is replaced after bsr installation, you replace a lan card after installing BSR, you must reapply the contents of Disable TCP Delayed ACK must be reapplied by using the bsrcon /nodelayedack <resource> command.

Linux

Linux distributes kernel modules and utility packages separately, so each must be installed individually and bsr services must be configured separately.

...

Secure boot support

...

Install - RHEL

Utility

Info

[root@bsr-01 x86_64]# rpm -ivh bsr-utils-1.6-A3.el7.x86_64.rpm

Kernel Module

Info

[root@bsr-01 bsr]# rpm -ivh kmod-bsr-1.6_3.10.0_957-A3.el7.x86_64.rpm

Secure Boot

If Secure Boot is disabled on your system, you don't need to set up Secure Boot.

The public key is installed in the /etc/pki/mantech/

...

path during the kernel module installation process. In order to enroll that public key in the UEFI console, we first import it as follows.

Info

#mokutil --import /etc/pki/mantech/bsr_signing_key_pub.der

input password:

input password again:

The password can be freely selected and will be applied after reboot.

Installation

Kernel Module

CentOS

Info

[root@bsr-01 bsr]# rpm -ivh kmod-bsr-1.6_3.10.0_957-A3.el7.x86_64.rpm

Ubuntu

Reboot after specifying the password. At reboot time, enroll the corresponding public key in the UEFI console.

Install - Ubuntu

Required Packages

The Ubuntu package uses Dynamic Kernel Module Support (DKMS), and which requires the installation of the following package installation is required for thispackages.

Info

root@ubuntu:/home/mantech# apt-get install git build-essential debhelper dkms docbook-xsl help2man python-all python-dbus python-gobject dh-systemd flex autoconf automake

...

Utility

Info

root@ubuntu:/home/mantech# dpkg -i bsr-utils_1.6-A3_amd64.deb

Kernel Module

Info

root@ubuntu:/home/mantech# dpkg -i bsr-dkms_1.6-A3_all.deb

If the installation fails due to a dependency problemissue, you can use the command below to solve resolve the dependency problem issue and retrytry again.

Info

root@ubuntu:/home/mantech# apt-get -f -y install

Utility

CentOS

Info

[root@bsr-01 x86_64]# rpm -ivh bsr-utils-1.6-A3.el7.x86_64.rpm

Ubuntu

Info

root@ubuntu:/home/mantech# dpkg -i bsr-utils_1.6-A3_amd64.deb

Load

Load the bsr module.

Info

[root@bsr-01 bsr]# modprobe bsr

Service configuration

If you want bsr to start automatically at system startup, you should configure the bsr service and the svc-auto-up option. The default for svc-auto-up is yes.

  • CentOS 6

    • chkconfig bsr on

    • service bsr start

  • CentOS 7

    • systemctl enable bsr

    • systemctl start bsr

Code Block
resource r0 {
        ...
        on hostname {
          options {
                svc-auto-up yes;
          }
        }
        ...
}

Information

...

Secure Boot

The dkms package automatically generates MOKs and code signing for third-party drivers at the end of the installation.

If SecureBoot is disabled on your system, skip this step.

The screen below is displayed during module installation to register the generated public key.

...

After selecting OK, enter the password that will be used for MOK registration.

...

After rebooting the system, enter the UEFI console and register the public key with the system.

...

Info

Enroll MOK → Countinue → Yes → Password → Reboot

Module Load

After rebooting, load the BSR module and verify that it succeeded.

Info

# modprobe bsr

# lsmod |grep bsr

bsr                 52113408  0

libcrc32c              16384  4 nf_conntrack,nf_nat,bsr,xfs

Info

[root@bsr-01 bsr]# modinfo bsr
filename: /lib/modules/23.610.320-754.24.3.el6957.el7.x86_64/extra/bsr/bsr.ko
license: GPL
alias: block-major-147-*
license: GPL
version: 1.6.0-PREALPHA3A3
description: bsr - Block Sync and Replication v1.6.0-PREALPHA3A3
author: Man Technology Inc. dev3@mantech bsr@mantech.co.kr
retpoline: Y
rhelversion: 7.6
srcversion: 8A7DAFDEC0E6383AFB76501F4B39BD44212C22841949F8
depends: libcrc32c
vermagic: 23.610.320-754.24.3.el6957.el7.x86_64 SMP mod_unload modversions
signer: Man Technology Inc.: BSR Secure Boot Key
sig_key: D6:97:B5:89:F6:BC:A4:D5:28:02:25:57:4E:55:51:9F:F0:8F:EC:74
sig_hashalgo: sha256
parm: minor_count:Approximate number of bsr devices (1-255) (uint)
parm: disable_sendpage:bool
parm: allow_oos:DONT USE! (bool)
parm: use_fast_sync:bool
parm: debug_fast_sync:bool
parm: enable_faults:int
parm: fault_rate:int
parm: fault_count:int
parm: fault_devs:int
parm: two_phase_commit_fail:int
parm: usermode_helper:string

[root@bsr-01 x86_64]# bsradm -V
BSRADM_BUILDTAG=GIT-hash:\ e3fff1406638405bef558c540c2622b24fc4e5f435649dbca524e37a7a8fcddb199db17efb8b7aba\ build\ by\ root@centos803root@bsrc76,\ 2020-0308-0925\ 0213:0246:0117
BSRADM_API_VERSION=2
BSR_KERNEL_VERSION_CODE=0x000000
BSR_KERNEL_VERSION=0.0.0
BSRADM_VERSION_CODE=0x0106000x000000
BSRADM_VERSION=1.6-A3

Note

If the BSR module fails to load, refer to the manual code signing process in the Secure Boot Signing in Ubuntu article to walk through the signing process.

Service Config.

If you want BSR to always start up automatically when the system starts, you must enable the BSR service and configure the svc-auto-up option. The default value of svc-auto-up is yes.

  • RHEL 6

...

Update

Remove Old Version

  • Service stop

  • Delete kernel module

  • Delete utility

Kernel Module

...

    • chkconfig bsr on

    • service bsr start

  • RHEL 7 or Ubuntu

    • systemctl enable bsr

    • systemctl start bsr

Code Block
resource r0 {
        ...
        on hostname {
          options {
                svc-auto-up yes;
          }
        }
        ...
}

Uninstall

Uninstalling goes through the following process

  • Stopping a Resource

  • Stop a service

  • Delete a kernel module

  • Delete a utility

RHEL

Info

rpm -e kmod-bsr

rpm -e bsr-utils

Ubuntu

Info

dpkg -r bsr-dkms

dpkg -r bsr-utils

Update

Updating is the act of deleting the version already installed and reinstalling the new version.

First, the product is uninstalled, followed by the following update process.

Utility Update

RHEL

Info

[root@bsr-01 bsr]# rpm -Uvh kmodbsr-bsrutils-1.6_3.10.0_957-A4.el7.x86_64.rpm

Ubuntu

Info

root@ubuntu:/home/mantech# dpkg -i bsr-dkmsutils_1.6-A4_allamd64.deb

...

Kernel Module Update

...

RHEL

Info

[root@bsr-01 bsr]# rpm -Uvh kmod-bsr-utils-1.6_3.10.0_957-A4.el7.x86_64.rpm

Ubuntu

Info

root@ubuntu:/home/mantech# dpkg -i bsr-utilsdkms_1.6-A4_amd64all.deb

Delete

CentOS

Info

rpm -e kmod-bsr

rpm -e bsr-utils

Ubuntu

...

dpkg -r bsr-dkms

...

Secure Boot

If the existing BSR module public key is already registered, no additional setup is required.

If the private-public key for code signing has been updated, you will need to perform the Secure Boot setup process described above again.