Install Openfiler

Scenario: Installing Openfiler at sda 40GB size.

System: Openfiler ESA 2.99.1

– Download Openfiler iso from here.
– Booting from Openfiler iso/DVD.
– Select Graphical Mode press Enter.
– Click Next.
– Select Keyboard -> Click Next then select Yes to initialize drive,erasing ALL DATA.
– Continue click Next if using default Openfiler partition table. I setup LVM for /var and swap for easy increase the space in the future.
Continue reading

Create Partition on New Disk using Parted on CentOS

Scenario: Create partition and Volume Group 60GB size from 100GB disk on new disk using Parted on CentOS
System: CentOS/RHEL 6 or 7

Show new disk:
# fdisk -l | grep sd

[root@server ~]# fdisk -l | grep sd
Disk /dev/sda: 64.4 GB, 64424509440 bytes, 125829120 sectors
/dev/sda1   *        2048     2099199     1048576   83  Linux
/dev/sda2         2099200    81797119    39848960   8e  Linux LVM
Disk /dev/sdb: 107.4 GB, 107374182400 bytes, 209715200 sectors
[root@server ~]#

Continue reading

Mount Windows Folder Sharing on RHEL 6/CentOS 6

-Mount Windows Folder Sharing (CIFS) on RHEL 6/CentOS 6.
-Set only Linux user >> user1 that have RWX access.
-Hide sharing credentials from other Linux users.
-Mount permanent at boot.

System: CentOS 6

1) Edit /etc/fstab
# vi /etc/fstab
Continue reading

Setup Virtual Domain Postfix

– Forward certain email recipient to another email address.
– Forward local Unix account email address to another email recipient because in the Postfix server don’t have mailbox.

Postfix on CentOS 7/RHEL 7 (also work on CentOS 6/RHEL 6)

– Edit
# vi /etc/postfix/
Edit the below parameter.

virtual_alias_domains =,
virtual_alias_maps = hash:/etc/postfix/virtual

Continue reading

Setup Ethernet Bonding on RHEL 6

Scenario: Configure 4 ethernet into 2 ethernet bond0 and bond1 on RHEL 6/CentOS 6.
System: RHEL 6.9

1) Create new file bond0 (Eth0+Eth1) with IP Address =
# vi /etc/sysconfig/network-scripts/ifcfg-bond0


Continue reading

Command to re-read new VM disk CentOS 6/RHEL 6

System: CentOS 6.9

Added new VM disk in CentOS 6 not showing the new VM disk when run fdisk -l.

Login as root, run this command to re-read the new VM disk without reboot the server.

ls /sys/class/scsi_host/ | while read host ; do echo "- - -" > /sys/class/scsi_host/$host/scan ; done

Continue reading

Setup Banner on Console and Remote login CentOS/RHEL 6

Example add below banner.

*                                                                  *
* This system is for the use of authorized users only.  Usage of   *
* this system may be monitored and recorded by system personnel.   *
*                                                                  *
* Unauthorized access to this machine is prohibited                *
* Press Ctrl+D if you are not an authorized user                   *
*                                                                  *
* Anyone using this system expressly consents to such monitoring   *
* and is advised that if such monitoring reveals possible          *
* evidence of criminal activity, system personnel may provide the  *
* evidence from such monitoring to law enforcement officials.      *
*                                                                  *

Continue reading