description of the phenomenonEs version 1.4.5+centos 6.5
Es1,es2,es3 three es form a cluster, the cluster state is normal, when the ES1 server restarts, es1 can not add to the cluster, their own election as Master, which produced the so-called "brain fissure" es cluster, the es1 ES service restart,
Use fdisk to add hard disk partitions and fdisk to add Hard Disk Partitions
1. use fdisk to create 6 partitions [1 P + 1E (5L)] // dev/sdb1/dev/sdb5/dev/sdb6/dev/sdb7/dev/sdb8/deb/sdb9
1 [root@server ~]# fdisk -l 2 3 Disk /dev/sda: 8589 MB, 8589934592 bytes 4 255 heads, 63 sectors/track, 1044 cylinders 5 Units = cylinders of 16065 * 512 = 8225280 bytes 6 Sector size (logical/physical): 512 bytes /
Record the log of creating LVM at one time and create LVM log records
First, let's take a picture of laruence LVM. I feel this is the clearest picture.
# The following is a direct record using the Xshell logging system. Some Comments [BEGIN] 9:22:24 # Check the hard disk first. [root @ iZ23h637rtdZ ~] # Fdisk-lDisk/dev/vda: 64.4 GB, 64424509440 bytes255 heads, 63 sectors/track, 7832 cylindersUnits = cylinders of 16065*512 = 8225280 bytesSector size
retriable
1.2 format shared media
Start the VM and perform formatting.
[Root @ Rac1 ~] # Cd/dev
[Root @ Rac1 Dev] # ls SD *
SDA sda1 sda2 sda3 SDB SDC SDD SDE
-- SDB, SDC, SDD, and SDE here are the virtual media we have added.
[Root @ Rac1 Dev] # fdisk-l
Disk/dev/SDA: 16.1 GB, 16106127360 bytes
255 heads, 63 sectors/track, 1958 Cylinders
Units = cylinders of 16065*512 = 8225280 bytes
Sector size (logical/physical):
accessed
Write-cache off # Whether to enable or disable caching
Restart the service to make the modified configuration take effect.
[Root @ racscsi home] #/etc/init. d/tgtd restart
Determine whether the iscsi server is successful. If the following information is displayed, the iscsi server is successfully configured.
[Root @ racscsi home] # tgt-admin -- show
Target 1: iqn.2008-09.com. example: asm
System information:
Driver: iscsi
State: ready
I _T nexus information:
I _T nexus: 1
Initiator: i
In vmware linux, after a new disk is added, refresh the disk, scan the SCSI bus again, and add the SCSI device without restarting the VM.
[Root @ centos4 scsi_host] # ls
Host0 host1 host2
[Root @ centos4 scsi_host] # fdisk-l
Disk/dev/sda: 21.5 GB, 21474836480 bytes, 41943040 sectors
Units = sectors of 1*512 = 512 bytes
Sector size (logical/physical): 512 bytes/
Hot Standby shell script file mysql1 # cat mysqlbackup. sh #! /Usr/local/bin/fish # The backup policy is daily full backup # set the backup path variable set backupdir/usr/db/backup # generate the backup Directory mkdir-p $ backupdir # Delete the backup time backup for more than one month find $ backupdir/-mtime + 30-type d-delete # Start backup innobackupex -- user = root -- password = 'yue5bkgof $ '-- parallel = 12 $ backupdir/ mysql1 # cd/usr/db/backup/mysql1 # mysql1 # lltotal 442drwxr-xr-x
| user space CS | EIP
To be consistent with the interrupt and abnormal stack, % eax is pushed first after ENTRY (system_call) and SAVE_ALL is performed. The content on the kernel stack is
| User stack SS | user stack ESP | EFLAGS | user space CS | EIP | EAX | ES | DS | EAX | EBP | EDI | ESI | EDX | ECX | EBX
The last end is similar to the interrupt (RESTORE_ALL ).
// ----- Interrupt, exception, system call: End
Interruptions, exceptions, and system calls are omitted: the timing of the detect
1, shared host directory to the container
Docker run-d--name=test-v/opt/test:/usr/databases docker-testTest is the name of the container, it needs to be unique;-V indicates that a data volume is created and mounted in a container, and the example indicates that the/opt/test directory of the host is mounted to the container's/usr/databases directory; docker-test is the name of the mirror.
2, sometimes need to share the container of the volume, you need to use other ways to access
1) Adopt –volume
display/entry units v verify the partition table w write table to disk and exit x extra functionality (experts only)Command (m for help): nCommand action e extended p primary partition (1-4)pPartition number (1-4): 1First cylinder (1-2610, default 1): Using default value 1Last cylinder, +cylinders or +size{K,M,G} (1-2610, default 2610): +10GCommand (m for help): pDisk /dev/sdb: 21.5 GB, 21474836480 bytes255 heads, 63 sectors/track, 2610 cylindersUnits = cylinders of 16065 *
How to fix docker containers that cannot be started
Background:
On the test server, an elasticsearch service cluster is built using docker. Because the plug-in for Chinese Word Segmentation needs to be installed for es, the installation cannot be started due to a problem. Because it is used for testing and development and does not mount data volumes for containers, after the containers are closed, there will be no related directories on the host machine. The directory structure of the Plugins di
1, what is Ace (slightly)
2, what is Proactor (slightly)
3. Example:/ace_wrappers/examples/reactor/proactor/test_proactor
3.1. Operating Environment
172.16.34.11:winxp
172.16.33.34:linux (version slightly)
172.16.33.23:solaris (version slightly)
3.2, 34.11 as the server side, 33.34 as the client:
Server Side starts First:
D:/share/ace_server_code/ace_wrappers5.4/examples/reactor/proactor>test_proactor-d C:/test.txt
Client initiates send file:
[Jcwang@portal proactor]$./test_proactor-h 172.16.
Label:According to Betteridge's law (any headline question can be answered in one word: no), unless your JSON data is rarely modified and has many queries. The latest version of PostgreSQL adds more support for JSON, and we've asked if PostgreSQL can replace MongoDB as a JSON database, the answer is obvious, but hopefully, aha, the question is asked by the reader. "Isn't PostgreSQL already having some JSON support?" ”Yes, the version before PostgreSQL 9.4 also has JSON data type, you can do this
Linux disk relationship knowledge
I have learned more or less about linux disk management, including hard disks, logical disks, and lvm, however, I encountered a lot of problems and confusions when I checked the linux database yesterday. I also reviewed the related knowledge.
First, let's take a look at the disk situation: df-k
File System 1 K-block used available % mount point
/Dev/mapper/vg_sspdb1-lv_root
51606140 2754580 46230120 6%/
Tmpfs 32984140 0 32984140 0%/dev/shm
/Dev/sda1 495844 38042
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.