November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Creating a partition size larger than 2TB on Linux

I had to mount and use a 3TB SATA HD on Linux, and as I thought, I wasn’t going to be able to format and create a new partition using fdisk command.

fdisk tool won’t create partitions larger than 2 TB. This is fine for desktop users, but on a production server you may need […]

ZFS installation and configuration in CentOS 6 & 7

ZFS installation and configuration in CentOS 6 & 7 ZFS is a combined file system and logical volume manager designed by Sun Microsystems. The features of ZFS include protection against data corruption, support for high storage capacities, efficient data compression, integration of the concepts of file system and volume management, snapshots and copy-on-write clones, continuous […]

IPV6 DHCP Server on CentOS 7

Without any talk we can go straight to configure IPV6 DHCP server .

IPV6 NS : 2015:9:19:ffff::1

IPV6 DHCP SERVER : 2015:9:19:ffff::2

 

# yum install dhcp -y

# cp /usr/share/doc/dhcp-4.2.5/dhcpd6.conf.example /etc/dhcp/dhcpd6.conf

# cat /etc/dhcp/dhcpd6.conf

default-lease-time 2592000; preferred-lifetime 604800; option dhcp-renewal-time 3600; option dhcp-rebinding-time 7200; allow leasequery; option dhcp6.info-refresh-time 21600; dhcpv6-lease-file-name “/var/lib/dhcpd/dhcpd6.leases”;

 

subnet6 2015:9:19:ffff::/64 […]

BTRFS in CentOS 7

In these days we can find lot of file systems and they are also used in many Operating systems and block devices . Comparing with this file systems BTRFS is a newbie . Btrfs is a new copy on write (CoW) filesystem for Linux aimed at implementing advanced features while focusing on fault tolerance, repair […]

GlusterFS and NFS with High Availability on CentOS 7

GlusterFS and NFS with High Availability on CentOS 7

GlusterFS and NFS with High Availability on CentOS 7 Technical requirements 3 x CentOS 7 Machines 4 IP’s Additional hard drive for each machine with same size. (eg : /dev/sdb ) Disable SELinux

Installation Install CentOS 7 Minimal on 3 machines and give static IP’s . […]

sshd debug

1. To run sshd in debug mode as a one time instance without affecting other users: # /usr/sbin/sshd -ddd -D -p (port) 2>&1 | awk ‘{ print strftime(“%T: “), $0; fflush(); }’ | tee sshd.log 2. On the client end run add -p (port) to the ssh command line # ssh -p (port)

OR

[…]

active directory ssh authentication

Here is my configs and setups: /etc/nsswitch.conf

passwd: compat winbind shadow: compat winbind group: compat winbind #hosts: db files nisplus nis dns hosts: files dns bootparams: nisplus [NOTFOUND=return] files ethers: files netmasks: files networks: files protocols: files rpc: files services: files netgroup: files publickey: nisplus automount: files aliases: files nisplus

/etc/pam.d/system-auth (generated via the “setup” […]

How to use inotify-tools to trigger scripts on filesystem events

my last example of Bash if statements we created a backup script which would run “rsync” as per the time set in a cron.

But wouldn’t it be nice if we could run our “rsync” script only if there was a change to the files in our directory instead of running a cron every hour […]

Linux performance tools

On Centos/RH yum install sysstat

vmstat -w 2 mpstat -P ALL 2 iostat -dxm 10

nmon: wget http://pkgs.repoforge.org/nmon/nmon-14g-1.el6.rf.x86_64.rpm rpm -ivh nmon-14g-1.el6.rf.x86_64.rpm

nicstat

wget http://nchc.dl.sourceforge.net/project/nicstat/nicstat-1.92.tar.gz untar yum install glibc.i686 ln -s .nicstat.RedHat_5_i386 .nicstat.RedHat_6_i386

Configuring File Replication in RHEL / CentOS / SL 6/7 with lsyncd and csync2

CentOS / SL 6/7 with lsyncd and csync2

Configuring File Replication in RHEL / CentOS / SL 6/7 with lsyncd and csync2

If you want some directory of yours actively backed after every change, they are a lot of sync options to choose from. Software like csync, rsync, csync2, lsyncd and many others will all […]