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  

Adding and Removing SAN Disks from Linux Device Manager Multipath Systems

Add a new disk

This assumes you have created an array on the SAN and allocated space to a logical volume on it; you have mapped a LUN pointing that logical volume to that host, and that the host is correctly zoned to see the SAN in the fibre channel fabric.

Before anything, run multipath […]

Managing Physical and Logical Volumes

Contents

Introduction Create Logical Volumes Delete Logical Volumes

Introduction

The following article presents an overview of the commands used to manage physical and logical volumes for use with Logical Volume Manager (LVM) in Linux.

Before considering the various commands for LVM, lets first look at just what is meant by some of the terminology […]

GFS (Global File System) quickstart

What is GFS? GFS allow all nodes to have direct CONCURRENT write access to the same shared BLOCK storage. For local file system e.g ext3, A shared BLOCK storage can be mounted in multiple nodes, but CONCURRENT write access is not allowed For NFS, the CONCURRENT write access is allowed, but it is not direct […]

Find process causing high iowait Disk Space issues

Disk Space issues

mpstat -P ALL

cat /proc/interrupts

iostat -kd 1iostat -c -tiostat -c -t 2 10 iostat -c 3 iostat -d 5iostat -x 1

sar -b

vmstat -S M 2 5

Find process causing high iowait

netstat -autpn | grep :80netstat -autpn | grep :3306netstat -nanetstat -an|grep :80|sort|morenetstat -an|grep ESTABLISHEDnetstat -ntu | awk ‘{print […]

CentOS 6 DRBD : how to set up DRBD

 

Here is an explanation of how to set up DRBD on CentOS6. # cat /etc/redhat-release CentOS release 6.2 (Final)

# uname -ri 2.6.32-220.7.1.el6.i686 i386

 

# rpm -qa | grep drbd kmod-drbd84-8.4.1-1.el6.elrepo.i686 drbd84-utils-8.4.1-1.el6.elrepo.i686 Hostname ( uname –n ) of DBRD nodes are: centos6-drbd1.localdomain centos6-drbd2.localdomain

 

These nodes are running as VMs on a […]

RAID 10 with mdadm

If I had to pick one fault of Linux, it would be that for almost everything, the Linux user is inundated with hundreds of possible solutions. This is both a blessing and a curse – for the veterans, it means that we can pick the tool that most matches how we prefer to operate; […]

LVM in linux

LVM in linux

Logical Volume Management[LVM]

LVM is a logical volume manager for the Linux kernel; it manages disk drives and similar mass-storage devices, in particular large ones. The term “volume” refers to a disk drive or partition. Every system contains Physical Volums[PV]. Such as hard disks, partitions or external storages. Volume management treats PVs […]

Mount Points and /etc/fstab

Mount Points and /etc/fstab

/etc/fstab is referenced each time the system boots. It consists fields like device name, mount point, file system type, fsck order like 0 = ignore, 1=fist, 2-9 = second, and third, etc. After the filesystem is created in /etc/fstab, it’s important to use the mount-a to mount the filesystem just created […]

Recover Bad Superblock in Linux Filesystem

Recover Bad Superblock in Linux Filesystem

If you get a ¨Damaged Superblock¨ error message at filesystem (fsck) check in Linux Server, Usually fsck will not be able to repair the file system due to bad super block. In these situations, we can recover the damaged super block from the backup.

Solution: There are backups […]

Open Files – Linux

Open Files – Linux

 

ope it will be useful to you as well.. You might have this scenario; Logfiles deleted while the process is still running. That’s annoying: On your Linux-Server the /var filesystem is nearly full. You remove a very large logfile that you don’t need with the rm command: myserver1# df -Ph […]