Configuring DRBD to Build HA NFS Cluster under Centos7
Operating environment
Centos 7
DRBDADM_API_VERSION=2DRBD_KERNEL_VERSION=9.0.14DRBDADM_VERSION_CODE=0x090301
DRBDADM_VERSION=9.3.1
Corosync Cluster Engine, version '2.4.3'
Pacemaker 1.1.18-11.el7_5.3
crm 3.0.0
Network Topology
Installation configuration steps
Install DRBD/Corosync/Pacemaker/Crmsh
Reference for installation and ...
Posted by acroporas on Wed, 02 Jan 2019 23:54:08 -0800
Preliminary Research on Android O: Android Vehicle HAL
Android Automotive
Android Automotive is a new feature of Android Oreo. From AOSP's code, Android O already contains the whole framework from Application to Framework to HAL. In this chapter, we briefly go through the following Android Vehicle framework and focus on Vehicle HAL. The overall structure is roughly the following:
The above struct ...
Posted by hellouthere on Tue, 01 Jan 2019 14:33:08 -0800
Interpretation of uint8_t/uint16_t/uint32_t/uint64_t data type centralized network
What data type is uint8_t/uint16_t/uint32_t/uint64_t? It is often encountered in embedded programming.
First
#define uint unsigned int;
The difference between int and uint is that one is signed and the other is unsigned.
uint is often used in microcontroller to define an unsigned integer variable.
Types ending with *_ ...
Posted by ctcp on Tue, 01 Jan 2019 02:06:08 -0800
5-58 special symbol cut sort wc uniq tee tr split
8.10 shell special symbol cut command
Special symbols
"*" stands for zero or more characters
"?" Represents a character
"#" Annotation Symbol
Symbol of \"De-meaning
"|" Pipeline Character
cut usage
[root@lixiang01 ~]# cat /etc/passwd |head -2
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin ...
Posted by alconebay on Thu, 20 Dec 2018 12:06:05 -0800
Oracle Wait Events: Wait for scn ack
wait for scn ack is a waiting event that may be common in RAC environments, meaning waiting for a SCN response across instances.
Top 5 Timed Events Avg %Totalr
~~~~~~~~~~~~~~~~~~ wait Call
Event Waits Time (s) (ms) Time Wait Class ...
Posted by 00tank on Sun, 16 Dec 2018 10:03:03 -0800
Codeforces Round #394 (Div. 2) F. Dasha and Photos (Binary Prefixes and + Segment Tree, Good Question)
Title Link
F. Dasha and Photos
time limit per test
4 seconds
memory limit per test
512 megabytes
input
standard input
output
standard output
Dasha decided to have a rest after solving the problem D and began to look photos from previous competitions.
Let's call photos as the matrix with the size n × m, whi ...
Posted by TheAngst on Sun, 16 Dec 2018 05:33:04 -0800
Python variable scope LEGB (above) - Local, Global, Builtin
The rule for Python variable scope is LEGB
Explanation of the meaning of LEGB:L - Local(function); namespaces within functionsE - Enclosing function locals; namespaces for externally nested functions (such as closure)G - Global(module); the namespace of the module (file) where the function definition is locatedB - Builtin(Python); namespace for ...
Posted by Bijan on Thu, 13 Dec 2018 14:06:14 -0800
ASP.NET Web API and Owin OAuth: Calling User-Related Web APIs
Reference page:
http://www.yuanjiaocheng.net/webapi/web-api-route.html
http://www.yuanjiaocheng.net/webapi/parameter-binding.html
http://www.yuanjiaocheng.net/webapi/action-method-returntype.html
http://www.yuanjiaocheng.net/webapi/web-api-reqresq-format.html
http://www.yuanjiaocheng.net/webapi/media-formatter.html
In the previous article Bowen ...
Posted by twilitegxa on Wed, 12 Dec 2018 13:48:06 -0800