Profile cover photo
Profile photo
Harisfazillah Jamel (Hafnie)
About
Posts

Post has attachment
Add a comment...

Post has attachment
SongketMail Sdn Bhd (1243508-A)

Suite 1-1 Blok 4800, CBD Perdana
Jalan Perdana Off Persiaran Flora
Cyberjaya, Selangor 63000
Malaysia
No tel : +60383222306

Email syarikat : info@songketmail.org
Add a comment...

Post has attachment
SongketMail Sdn Bhd (1243508-A), An ICT Service Delivery and Operation (ISDO) Company

SongketMail Sdn Bhd (1243508-A) is an Information Technology systems Integrator and Open Source Software consulting. SongketMail is focusing on ICT Service Delivery and Operation (ISDO), ICT Security related to ISDO, Data Center Agility and Cloud Computing base on Open Source Software and solution. We enable our customers based in the Government, Education and Private sectors to deliver agility, secure and success in their cloud computing, DevOps automation, and Open Source Software related projects.

http://blog.harisfazillah.info/2018/02/songketmail-sdn-bhd-1243508-a-ict.html
Add a comment...

Post has attachment
Bagi yang berminat dengan Google Shortner URL ini adalah contoh untuk link blog post ini

https://goo.gl/3JSTSL

Atau buat untuk anda sendiri di https://goo.gl/
Add a comment...

Post has attachment
Persediaan Docker Production Ubuntu 16.04 Untuk Storage Driver Overlay2

Link nota : http://blog.harisfazillah.info/2018/01/persediaan-docker-production-ubuntu.html

Tujuan :-
Untuk menggunakan partition berasingan untuk /var/lib/docker dan Overlay2 sebagai Storage Driver.

Pastikan :-

Hanya lakukan pada pemasangan docker CE yang baru sahaja.
Pastikan dahulu partition hardisk baru telah dibuat.

1) sudo fdisk /dev/vdb

create vdb1

n p w

(vdb adalah volume dalam OpenStack)
(akan berbeza bagi setiap sistem)

2) Buat fail sistem xfs

sudo mkfs.xfs /dev/vdb1


3) labelkan

sudo xfs_admin -L dockerstore /dev/vdb1


4) Hentikan docker

sudo systemctl stop docker


5) Buat backup directory /var/lib/docker

sudo cp -au /var/lib/docker /var/lib/docker.bk


6) delete isinya

rm -rf /var/lib/docker/*

(hati-hati dengan * star - jangan ada ruang)
(disengajakan tiada sudo. Sila tambah)

7) Masukkan dalam /etc/fstab

LABEL=dockerstore /var/lib/docker xfs defaults 0 0


8) sudo mount /var/lib/docker


9) Periksa dengan sudo df -h

Contoh hasil :-

/dev/vdb1 1.0T 33M 1.0T 1% /var/lib/docker


10) Periksa overlay2 adalah default storage driver dengan arahan

docker info

Hasil output yang dicari adalah

Storage Driver: overlay2

11) Edit fail

/etc/docker/daemon.json

Isinya

{
"storage-driver": "overlay2"
}

12) Mulakan docker

sudo systemctl start docker

13) Periksa isi /var/lib/docker pastikan ada isinya

root@ranchernode1:~# ls /var/lib/docker
builder containerd containers image network overlay2 plugins runtimes swarm tmp trust volumes

14) docker info

Output yang dicari

Storage Driver: overlay2
Backing Filesystem: xfs


15) Untuk memudahkan pembesaran saiz partition, boleh gunakan LVM. Pastikan gunakan GPT untuk harddisk lebih 2TB


Rujukan :-


https://docs.docker.com/engine/userguide/storagedriver/overlayfs-driver/#configure-docker-with-the-overlay-or-overlay2-storage-driver

https://liquidstate.net/using-disk-labels/

https://www.cyberciti.biz/tips/fdisk-unable-to-create-partition-greater-2tb.html

https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04


Nota oleh : Harisfazillah Jamel

linuxmalaysia@songketmail.org

5 Jan 2018
Add a comment...

Post has attachment
Install logstash 5

Download and install the public signing key (ignore this if you have imported the same key during other package installation):
# rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
Add below lines to sources.list to /etc/yum.repos.d/logstash.repo:
[logstash-5.x]
name=Elastic repository for 5.x packages
baseurl=https://artifacts.elastic.co/packages/5.x/yum gpgcheck=1 gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch enabled=1 autorefresh=1 type=rpm-md
Install logstash:
# yum -y install logstash
Set logstash to start automatically using systemd:
# systemctl daemon-reload && systemctl enable logstash.service
Stop and start logstash:
# systemctl stop logstash.service && sudo systemctl start logstash.service


Prepared by :
Hisham Aderis (hisham.aderis@gmail.com)
Harisfazillah Jamel (linuxmalaysia@songketmail.org)

Link : http://blog.harisfazillah.info

Date : 2 Dec 2016
Last updated: 31 August 2017
Add a comment...

Post has attachment
Install elasticsearch 5
Add key:
# rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
Add elasticsearch.repo. Using text editor, add below lines to /etc/yum.repos.d/elasticsearch.repo:
[elasticsearch-5.x]
name=Elasticsearch repository for 5.x packages
baseurl=https://artifacts.elastic.co/packages/5.x/yum gpgcheck=1 gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch enabled=1 autorefresh=1 type=rpm-md
Install elasticsearch:
# yum install elasticsearch -y
Set elasticsearch to start automatically using systemd:
# systemctl daemon-reload && systemctl enable elasticsearch.service
Set hostname to be resolved locally using /etc/hosts. Use DNS if you have one:
# cat /etc/hosts
192.168.10.10 node1
Bind hostname to elasticsearch, by uncommenting below line in /etc/elasticsearch/elasticsearch.yml. The node name can be anything to your liking, but must be similar to the one set in step 5:
network.host: node1
Set bootstrap memory lock to be true in /etc/elasticsearch/elasticsearch.yml
bootstrap.memory_lock: true
Set maximum number of memory bytes that may be locked into RAM in /usr/lib/systemd/system/elasticsearch.service, by uncommenting below line
LimitMEMLOCK=infinity
Reload systemctl
# systemctl daemon-reload
Set java heap size for elasticsearch to use in /etc/sysconfig/elasticsearch(rule of thumb, use ½ of your physical memory. In this example 2GB for system with 4GB):
ES_JAVA_OPTS="-Xms2g -Xmx2g"
MAX_OPEN_FILES=65536
MAX_LOCKED_MEMORY=unlimited
The config file will look like below:
# grep -v ^# /etc/sysconfig/elasticsearch | grep -v ^$
ES_JAVA_OPTS="-Xms2g -Xmx2g"
MAX_OPEN_FILES=65536
MAX_LOCKED_MEMORY=unlimited
Set file limits for elasticsearch in /etc/security/limits.conf (this change needs reboot for the change to take effect):
elasticsearch - nofile 65535
elasticsearch - memlock unlimited
The config file will look like below:
# grep -v ^# /etc/security/limits.conf | grep -v ^$ | tail -5
elasticsearch - nofile 65535
elasticsearch - memlock unlimited
Reboot the machine
# reboot
Stop & start elasticsearch:
# systemctl stop elasticsearch.service && systemctl start elasticsearch.service
Test whether elasticsearch is running, output should be something like below:
# curl -XGET node1:9200/?pretty
{
"name" : "Cp8oag6",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "AT69_T_DTp-1qgIJlatQqA",
"version" : {
"number" : "5.0.0",
"build_hash" : "f27399d",
"build_date" : "2016-03-30T09:51:41.449Z",
"build_snapshot" : false,
"lucene_version" : "6.2.0"
},
"tagline" : "You Know, for Search"
}

Prepared by :
Hisham Aderis (hisham.aderis@gmail.com)
Harisfazillah Jamel (linuxmalaysia@songketmail.org)

Link : http://blog.harisfazillah.info

Date : 2 Dec 2016
Last updated: 31 August 2017
Add a comment...

Post has attachment
Install Java version 8
You can either use java 8 from oracle, or java 8 openjdk version
Install Java version 8 (from oracle)
Check the latest available java package here: www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
Download the rpm file:
# wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u112-b15/jdk-8u112-linux-x64.rpm"
Install java:
# yum -y localinstall jdk-8u112-linux-x64.rpm
Check java version to verify java is installed properly:
# java -version
java version "1.8.0_112"
Java(TM) SE Runtime Environment (build 1.8.0_112-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed mode)
Install Java version 8 (openjdk)
Install java version 8:
# yum install java
Check java version to verify java is installed properly:
# java -version
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-b15)
OpenJDK 64-Bit Server VM (build 25.111-b15, mixed mode)

Prepared by :
Hisham Aderis (hisham.aderis@gmail.com)
Harisfazillah Jamel (linuxmalaysia@songketmail.org)

Link : http://blog.harisfazillah.info

Date : 2 Dec 2016
Last updated: 31 August 2017
Add a comment...

Post has attachment
Add a comment...

Post has attachment
Keynote 3 : Jay Swaminathan - Speaker From Microsoft

A session at Malaysia Open Source Conference 2017 (MOSCMY 2017)

Wednesday 17th May, 2017 12:00pm to 12:30pm (SMT)
Keynote 3 : Speaker From Microsoft

Jay Swaminathan

Black Belt Technology Specialist - Azure

Jay has over 19 years of experience in the IT field. He started his career as an engineer with Hewlett Packard in Cupertino, CA doing performance optimization of large SMP systems (Superdome class) as well as clusters. Later as a Senior Application Engineer with Intel, Jay was involved in evangelizing Intel platforms and working with end customers with specific focus on large HPC installations, large datacenter virtualizations and cloud adoptions, studying the performance and behaviors of applications working in a virtualized environment.

Jay currently is with Microsoft. He is a Black Belt Technology Specialist on the Azure Platform. His work involves driving adoption of the cloud platform with specific focus on advanced workloads like hybrid cloud, blockchain, etc. In this role he has worked with enterprises as well as ISVs and startups in enabling them to adopt cloud technologies for their requirements. He has been an early proponent of the benefits that cloud computing can bring to organizations and has been working on cloud computing related technologies since 2008. He is a member of several forums working on cloud computing adoption.

Jay has a Bachelor’s Degree in Electronics Engineering from Madras University, a Master’s Degree in Computer Engineering from Michigan State University and a Certificate in Innovation Entrepreneurship from Stanford University Graduate School of Business.

http://www.mosc.my

MOSCMY 2017 schedule :-.

https://goo.gl/22Opja
Add a comment...
Wait while more posts are being loaded