Select Page

Author: SysAdminXpert

Step By Step method for installing Nagios in Amazon Linux

In this blog, we will explain you Step By Step method for installing Nagios in Amazon Linux. Nagios is very lightweight monitoring tool. We are using this tool for past 1-2 years but somehow one day it get crash and to setup/restore Nagios it took more than 4hours(on premises). so rather than running it on a machine that itself was constantly crashing I decided to move it onto Amazon Web Services EC2 platform using the Free Tier Entitlement you get when you first sign up. Therefore total cost to me to move it from home to the cloud was...

Read More

Basic Linux Storage Scenario #4

Learn Linux storage with Basic Linux Storage Scenario #4. Resize the file system /opt from its current size of 300MB to 200MB. Do not lose any Data while performing the resizing If /opt as allocated storage as standard partition then it is not able to allocate /resize the storage If /opt as allocated as lvm then it can be resized. Commands: df –h lvreduce resize2fs umount fsck Related files: /etc/fstab Check any data on /opt umount fsck /dev/vg/lv-opt //to fix any corrupted block (vg may be different) $ resize2fs /dev/vg/lv-opt 200M e2fsck –F /dev/vg/lv-opt      //To clean corrupted block, If...

Read More

Basic Linux Storage Scenario #3

Learn Linux storage with Basic Linux Storage Scenario #3 A New Project has been started in your organization. The developer of this project needs additional disk space for the source code programs related to this project to be stored in their respective home directories. Increase the size of /home to 650MB. If for some reason you are unable to resize it to 650MB, any size between 630MB and 660MB will suffice. Note: While performing the above operation there should not be any data loss of existing data in the /home directory. Commands: df –h //STD Partition lvextend resize2fs $df...

Read More

Basic Linux Storage Scenario #2

Learn Linux storage with Basic Linux Storage Scenario #2 Is LVM implemented for any of the partitions, If yes, find out the following information Physical Volume –[PV] Name of all physical volumes Sizes of all physical volumes Cmd: $ pvdisplay or $pvs Volume Groups (VG) Name of all volume groups Sizes of all volume groups Size of the physical extent of each volume group How many physicals extends are present in each volume group How many of free space is left in each volume group How many extents are free in each volume group Cmd: $ vgdisplay or $vgs...

Read More

Basic Linux Storage and Scenario #1

In this blog, we explained Basic Linux Storage and Scenario #1. Basic hint for remembering: Primary + extended = max 4 partition can be created In Linux we can have only 4 primary partitions on the disk, after that you cannot able to create a primary partition, if you required then you can add extended partition, not possible after 4-primary partition even you have disk free space. Extended partition will be the container for the remaining partition, It can be created as many you want (up to 10) extended the partition. MBR – Maintaining the record of all existing...

Read More

Subscribe to Blog via Email

Subscribe to this blog and receive notifications of new posts by email.

Join 101 other subscribers