Home » Technical » System Administrator » Linux » Page 2

Category: Linux

Linux File Locks mechanism

In Unix-like systems File Locks Source Wikipedia Unix-like operating systems (including Linux and Apple’s OS X) do not normally automatically lock open files or running programs. Several kinds of file-locking mechanisms are available in different flavors of Unix, and many operating systems support more than one kind for compatibility. The two most common mechanisms are …

Read more

Puppet Overview

  What is Puppet ? Puppet is an IT automation software that helps system administrators manage infrastructure throughout its lifecycle, from provisioning and configuration to orchestration and reporting. Using Puppet, you can easily automate repetitive tasks, quickly deploy critical applications, and proactively manage change, scaling from 10s of servers to 1000s, on-premise or in the …

Read more

Net-Tools vs iproute2

What is Net-Tools and iproute2 Net-Tools has been around for a long now and most sysadmin are very familiar with the file based environment description architecture.  The net-tools is based on the architecture of the /proc directory which contain special file describing the environment.   This architecture is now old and tend to become deprecated as faster and …

Read more

How to add new storage to linux server live without rebooting.

How to add new storage to linux server live without rebooting. Short version: Resize the virtual disk in vmware or add a new hard drive Detect the new change: partprobe echo “- – -” > /sys/class/scsi_host/host0/scan fdisk –l pvcreate /dev/sda3 vgextend rootvg /dev/sda3 lvextend lvextend –L +10G /dev/rootvg/var lvextend –l +100%FREE /dev/rootvg/var Resize filesystem lvresize …

Read more

Cassandra Monitor Repair Task

Cassandra Monitor repair task – Repair node   Control REPAIR – CASSANDRA 1. On the server running the repair nodetool, run the following command to know which server is being processed     ps -edf | grep nodetool 3. Run this command on the server that is currently processing watch -n 1 "nodetool tpstats" 4. If AntiEntropyStage …

Read more

Gluster / GlusterFS Quick Note

  Gluster / GlusterFS – Quick Overview Trusted Storage Pool (Cluster) Adding_Servers_to_Trusted_Storage_Pool gluster peer probe SERVER gluster peer status  ** Note: After peer probe, in the remote machine, the originating peer’s information is stored with IP address instead of hostname. To fix this, probe once in the reverse direction, using the hostname of the original server. This will …

Read more