[root@localhost ~]# yum install mysql mysql-server mysql-devel -y [root@localhost ~]# hostname -I 192.168.183.135 [root@localhost ~]# /etc/init.d/mysqld status mysqld is stopped [root@localhost ~]# service mysqld status mysqld is stopped [root@localhost ~]# service mysqld start Initializing MySQL database: Installing MySQL system tables... OK Filling help tables... OK To start mysqld at boot time you have to copy … Continue reading MySQL master slave replication in CentOS 6
Author: mshaik
Introduction to CoreOS, Fleet, Etcd, and Flannel
CoreOS Usually, when you have a Linux distro, it would come with the standard ISO, package manager (yum, yast, apt) to distribute all of the individual pieces of compiled software, and other programs like netcat, httpd, etc. that just ends up being extra overhead. CoreOS differs in that they distribute an entire disk image that's … Continue reading Introduction to CoreOS, Fleet, Etcd, and Flannel
INTRODUCTION TO SYSTEMD
Systemd is a system and service manager for Linux operating systems. It is designed to be backwards compatible with SysV init scripts, and provides a number of features such as parallel startup of system services at boot time, on-demand activation of daemons, support for system state snapshots, or dependency-based service control logic. Systemd introduces the … Continue reading INTRODUCTION TO SYSTEMD
Toolbox in coreos
core@core-01 ~ $ toolbox Downloading sha256:2bf01635e2a [=============================] 72.9 MB / 72.9 MB successfully removed aci for image: "sha512-d039dd0704e978e5c66e1915a64bca35ff6bf3f86036649659cf5df33ba5127f" rm: 1 image(s) successfully removed Spawning container core-fedora-24 on /var/lib/toolbox/core-fedora-24. Press ^] three times within 1s to kill container. [root@core-01 ~]# yum install elinks -y Yum command has been deprecated, redirecting to '/usr/bin/dnf install elinks -y'. See … Continue reading Toolbox in coreos
Interacting with etcd
core@core-01 ~ $ etcdctl ls /coreos.com core@core-01 ~ $ etcdctl ls / --recursive /coreos.com /coreos.com/network /coreos.com/network/config /coreos.com/network/subnets /coreos.com/network/subnets/10.1.18.0-24 /coreos.com/network/subnets/10.1.19.0-24 /coreos.com/network/subnets/10.1.34.0-24 /coreos.com/updateengine /coreos.com/updateengine/rebootlock /coreos.com/updateengine/rebootlock/semaphore core@core-01 ~ $ etcdctl get /coreos.com/updateengine/rebootlock/semaphore {"semaphore":1,"max":1,"holders":[]} core@core-01 ~ $ etcdctl get /coreos.com/network/config { "Network": "10.1.0.0/16" } core@core-01 ~ $ etcdctl get /coreos.com/network/subnets/10.1.18.0-24 {"PublicIP":"172.17.8.103"} core@core-01 ~ $ etcdctl -o extended get /coreos.com/network/subnets/10.1.18.0-24 … Continue reading Interacting with etcd
starting with fleet
mohammedrafi@NOC-RAFI:~/gitdata/coreos-vagrant$ vagrant ssh core-01 Last login: Sun Apr 2 11:45:16 UTC 2017 from 10.0.2.2 on ssh Container Linux by CoreOS stable (1298.6.0) To list machines in cluster core@core-01 ~ $ fleetctl list-machines MACHINE IP METADATA 0589cb6e... 172.17.8.102 - 5e1982e0... 172.17.8.103 - cb31de94... 172.17.8.101 - To list unit files submitted to cluster core@core-01 ~ $ fleetctl … Continue reading starting with fleet
systemd
core@core-01 ~ $ ls -l /etc/systemd/system total 24 -rw-r--r--. 1 root root 149 Mar 31 09:49 docker-tcp.socket drwxr-xr-x. 2 root root 4096 Mar 31 09:49 flanneld.service.d drwxr-xr-x. 2 root root 4096 Mar 31 09:49 sockets.target.wants core@core-01 ~ $ cat /etc/systemd/system/docker-tcp.socket [Unit] Description=Docker Socket for the API [Socket] ListenStream=2375 Service=docker.service BindIPv6Only=both [Install] WantedBy=sockets.target ----------------------------------- core@core-01 ~ … Continue reading systemd
3 node core-os cluster
mohammedrafi@NOC-RAFI:~$ sudo apt-get install git mohammedrafi@NOC-RAFI:~$ git --version git version 1.9.1 mohammedrafi@NOC-RAFI:~$ vagrant --version Vagrant 1.4.3 mohammedrafi@NOC-RAFI:~$ VBoxManage --version 4.3.36_Ubuntur105129 mohammedrafi@NOC-RAFI:~$ mkdir gitdata && cd gitdata mohammedrafi@NOC-RAFI:~/gitdata$ git clone https://github.com/coreos/coreos-vagrant.git Cloning into 'coreos-vagrant'... remote: Counting objects: 448, done. remote: Total 448 (delta 0), reused 0 (delta 0), pack-reused 448 Receiving objects: 100% (448/448), 110.64 KiB … Continue reading 3 node core-os cluster
coreos Container-Runtime,etcdctl,fleet
Working with coreos Download iso from below path https://stable.release.core-os.net/amd64-usr/current/coreos_production_iso_image.iso mohammedrafi@NOC-RAFI:~$ ssh core@192.168.183.133 Password: Last login: Thu Mar 30 12:47:59 UTC 2017 on tty1 Container Linux by CoreOS stable (1298.6.0) Update Strategy: No Reboots core@localhost ~ $ core@localhost ~ $ uname -a Linux localhost 4.9.9-coreos-r1 #1 SMP Tue Mar 14 21:09:42 UTC 2017 x86_64 Intel(R) Core(TM) … Continue reading coreos Container-Runtime,etcdctl,fleet
Dubug in ansible
------------------------------- [mohammedrafi@ansible ~]$ touch shaik ------------------------------- [mohammedrafi@ansible ~]$ vim reg.yml --- - hosts: localhost tasks: - command: stat shaik register: one - debug: var=one ------------------------------- [mohammedrafi@ansible ~]$ ansible-playbook reg.yml PLAY [localhost] *************************************************************** TASK [setup] ******************************************************************* ok: [localhost] TASK [command] ***************************************************************** changed: [localhost] TASK [debug] ******************************************************************* ok: [localhost] => { "one": { "changed": true, "cmd": [ … Continue reading Dubug in ansible


