Posts

How to create LVM in centos 6

Image
in this post, I'm demo "How to create LVM in centos 6". To run commands as root account!. The scripts for create LVM ( Logical Volume Management ): OS: Centos HDD1: /dev/sdb HDD2: /dev/sdc Step 1: Adding a new partition use fdisk command fdisk /dev/sdb1 fdisk /dev/sdc1 The output as bellow Command (m for help): m Command action    a   toggle a bootable flag    b   edit bsd disklabel    c   toggle the dos compatibility flag    d   delete a partition    l   list known partition types    m   print this menu    n   add a new partition    o   create a new empty DOS partition table    p   print the partition table    q   quit without saving changes    s   create a new empty Sun disklabel    t   change a partition's system id    u   change display/entry units   ...

How to installing and configuring DRBD

Introduction Learn how to install and configure DRBD (Distributed Replicated Block Device) on two Linux nodes for high availability. This step-by-step guide ensures your data is secure and replicated across servers. In today's digital age, ensuring the availability and redundancy of data is crucial for maintaining a robust IT infrastructure. One powerful tool that system administrators rely on for this purpose is DRBD (Distributed Replicated Block Device). DRBD allows you to mirror the content of block devices, such as hard drives, between servers over a network. This ensures that if one server fails, the other can take over without any data loss. This guide will walk you through the process of installing and configuring DRBD on two Linux nodes. By the end of this tutorial, you will have a fully functional DRBD setup that can be used to enhance the reliability and availability of your data. Installation Environment Node 1: FQDN: node1.huuphan.local HDD1: 10GB (/dev/sda1) HDD2: 1GB...

The usefull linux commands

Introduction Master essential Linux command-line operations with this comprehensive guide. Learn practical tips for managing log files, executing commands efficiently, and optimizing your system administration skills.   Welcome to our guide on mastering essential command-line operations and system management tasks! Whether you're a beginner or an experienced user, these techniques will help you navigate the command line with ease. In this blog post, we'll explore practical tips and tricks to streamline your workflow and boost productivity. 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 Log Files Older Than 30 Days One of the key tasks in system administration is managing log files. Over time, these files can accumulate and consume significant disk space. Here's how you can find and delete log files that are older than 30 days:  # find /path/to/log/ -type f -name...

Mastering zimbra command line

Introduction Zimbra is an open-source email and collaboration solution trusted by many businesses for its flexibility and high customizability. Using the command line in Zimbra can help system administrators perform management tasks quickly and efficiently.  In this article, we will guide you on how to use command lines in Zimbra to easily manage your email system. 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.l...

How to install zimbra mailbox on Linux

Image
Installing and configuring Zimbra Mailbox on a Linux system is a comprehensive process that requires careful preparation and execution. Below, I’ll guide you step by step on   how to install and configure zimbra multi server   as part of a multi-server setup. Prerequisites Before starting the installation, make sure you have the following: Operating System : A supported version of Linux (e.g., CentOS, Ubuntu). Hardware Requirements : Sufficient CPU, RAM, and disk space for the mailbox server. DNS Configuration : Proper DNS settings for the Zimbra server, including an MX record. Zimbra Installation Package : Download the Zimbra Collaboration Suite (ZCS) 8.6 package from the official Zimbra website. 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/instal...