Posts

Showing posts from November, 2016

How to installing and configuring DRBD

Image
The scenario  install and configure DRBD Node1: FQDN: node1.huuphan.local HDD1: 10GB (/dev/sda1) HDD2: 1GB (/dev/sdb1) Node2: FQDN: node2.huuphan.local HDD1: 10GB (/dev/sda1) HDD2: 1GB (/dev/sdb1) Note:  device /dev/sdb a unpartitioned for 2 node. Selinux: disabled mode sed -i 's/SELINUX=enforcing/SELINUX=disable/' /etc/sysconfig/selinux To installing NTP for two node yum install ntp ntpdate -y To iptables firewall to allow 7788 port iptables -I eth1 -m state --state NEW -m tcp -p tcp --dport 7788 -j ACCEPT service iptables save To configure /etc/hosts file vim /etc/hosts The output as bellow 172.16.235.145 node1.huuphan.local node1 172.16.235.146 node2.huuphan.local node2 To create /dev/sdb1 device  for two node fdisk -l fdisk /dev/sdb The output as bellow Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel with disk identifier 0xa3977c63. Changes will remain in memory only, un

The usefull linux commands

Welcome to our guide on mastering essential command-line operations and system management tasks! In this blog post, we'll explore practical tips and tricks to streamline your workflow and boost productivity. Whether you're a beginner or an experienced user, these techniques will help you navigate the command line with ease. Join us as we dive into managing log files, executing commands efficiently, and optimizing your system administration skills for success. How to find and delete logs file MORE THAN 30 DAYS OLD # find /path/to/log/ -type f -name \*.log\* -mtime +30 -exec rm {} \; > /dev/null 2>&1 How to find and delete logs file   LESS THAN 30 DAYS OLD # find /path/to/log/ -type f -name \*.log\* -mtime -30 -exec rm {} \; > /dev/null 2>&1 How to one-liner that allows to create a directory and move into it at the same time. # mkdir test-dir && cd $_ How to display size of folder. #du -csbh /path/to/folder How to display output as a table # cat /etc/p

zimbra command line

Image
How do I use zimbra command lines (CLI) , my post focus command lines for zimbra ldap, zimbra mta, zimbra mailbox, zimbra proxy. For zimbra ldap To get all artibute information of uid in base DN: # ldapsearch -LLL -D "uid=zimbra,cn=admins,cn=zimbra" -x -H ldap://ldap.huuphan.local -w password -b dc=huuphan,dc=local "(&(uid=huupv))" For zimbra MTA Starting zmconfigd...failed Host mta.huuphan.local         Starting zmconfigd...Failed. Starting zmconfigd...failed. To solve problem # vim /etc/hosts comment out, to fixed Starting zmconfigd...Failed. 127.0.0.1   localhost.localdomain localhost To display trouble logs # egrep '(reject|warning|error|fatal|panic):' /var/log/zimbra.log To check if no smtp connection # netstat -nplt | awk '{print $4 " " $6}' | egrep "[0-9]+.[0-9]+.[0-9]+.[0-9]+:25" | egrep "ESTABLISHED" | wc -l To see the postfix queue (as zimbra user)

How to install zimbra mailbox

Image
in this post, to use zimbra 8.6."How to install zimbra mailbox". To prepare the package for install zimbra mailbox via to  how to install and configure zimbra multi server .  To step by step as the below: Download and install the zimbra open source #wget -c https://files.zimbra.com/downloads/8.6.0_GA/zcs-8.6.0_GA_1153.RHEL6_64.20141215151155.tgz -O zimbra-8.6.0_GA.tgz #tar zxvf zimbra-8.6.0_GA.tgz #cd zimbra-8.6.0_GA # ./install.sh The output Operations logged to /tmp/install.log.1203 Checking for existing installation...     zimbra-ldap...NOT FOUND     zimbra-logger...NOT FOUND     zimbra-mta...NOT FOUND     zimbra-dnscache...NOT FOUND     zimbra-snmp...NOT FOUND     zimbra-store...NOT FOUND     zimbra-apache...NOT FOUND     zimbra-spell...NOT FOUND     zimbra-convertd...NOT FOUND     zimbra-memcached...NOT FOUND     zimbra-proxy...NOT FOUND     zimbra-archiving...NOT FOUND     zimbra-core...NOT FOUND PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USIN

How to install zimbra mta

Image
in this post, to use zimbra 8.6. "How to install zimbra mta". To prepare the package for install zimbra mta via to how to install and configure zimbra multi server . To step by step as the below: Download and install the zimbra open source #wget -qO- https://files.zimbra.com/downloads/8.6.0_GA/zcs-8.6.0_GA_1153.RHEL6_64.20141215151155.tgz -O zimbra-8.6.0_GA.tgz | tar xvz #cd zimbra-8.6.0_GA # ./install.sh The output: Operations logged to /tmp/install.log.1311 Checking for existing installation...     zimbra-ldap...NOT FOUND     zimbra-logger...NOT FOUND     zimbra-mta...NOT FOUND     zimbra-dnscache...NOT FOUND     zimbra-snmp...NOT FOUND     zimbra-store...NOT FOUND     zimbra-apache...NOT FOUND     zimbra-spell...NOT FOUND     zimbra-convertd...NOT FOUND     zimbra-memcached...NOT FOUND     zimbra-proxy...NOT FOUND     zimbra-archiving...NOT FOUND     zimbra-core...NOT FOUND PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE. ZIMBRA, I

How to install zimbra ldap

Image
in this post, to use zimbra 8.6. "How to install zimbra ldap". To prepare the package for install zimbra ldap via to  How to install and configure zimbra multi server . To step by step as the below: Download and install the zimbra open source #wget -c https://files.zimbra.com/downloads/8.6.0_GA/zcs-8.6.0_GA_1153.RHEL6_64.20141215151155.tgz -O zimbra-8.6.0_GA.tgz #tar zxvf zimbra-8.6.0_GA.tgz #cd zimbra-8.6.0_GA # ./install.sh The output Operations logged to /tmp/install.log.1228 Checking for existing installation...     zimbra-ldap...NOT FOUND     zimbra-logger...NOT FOUND     zimbra-mta...NOT FOUND     zimbra-dnscache...NOT FOUND     zimbra-snmp...NOT FOUND     zimbra-store...NOT FOUND     zimbra-apache...NOT FOUND     zimbra-spell...NOT FOUND     zimbra-convertd...NOT FOUND     zimbra-memcached...NOT FOUND     zimbra-proxy...NOT FOUND     zimbra-archiving...NOT FOUND     zimbra-core...NOT FOUND PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING T