Saturday, November 15, 2008

Package Management in Linux

RPM – (Redhat Package Manager )


The Software to installed using RPM is distributed through rpm package files
Rpm packages are named as Name–version–release.Architecture.rpm

The version refers to the open source version of the project
The release refers to Redhat internal patches to the open source code

Tuesday, November 4, 2008

HOW TO INSTALL AND TEST SAMBA

1. Obtaining and Installing Samba
Binary packages of Samba are included in almost any Linux or UNIX distribution.
There are also some packages available at the Samba home page.
Refer to the manual of your operating system for details on installing packages
for your specific operating system.

1. Configuring Samba (smb.conf)
Samba's configuration is stored in the smb.conf file, which usually resides
in /etc/samba/smb.conf or /usr/local/samba/lib/smb.conf. You can
either edit this file yourself or do it using one of the many graphical tools
that are available, such as the Web-based interface SWAT, that is included
with Samba.


 

Everything is Linux: Implementing Quotas for User

Everything is Linux: Implementing Quotas for User

Friday, October 10, 2008

Some Terms in quota

 

Hard Block Limit - The absolute maximum amount of disk space that a user or group can use. Once this limit is reached, no further disk space can be used.

Soft Block Limit -  the maximum amount of disk space that can be used. However, unlike the hard limit, the soft limit can be exceeded for a certain amount of time. That period is called Grace Period.

Grace Period – It can be expressed in seconds, minutes, hours,
      days, weeks, or months.

     If any of the values are set to 0, that limit is not set.

Implementing Quotas for User

#  edquota username
 
   
     Perform this step for each user who needs a quota.

    For example , output will be as follows,
Disk quotas for user testuser (uid 501): Filesystem blocks soft hard inodes
      soft hard /dev/VolGroup00/LogVol02  440436  0  0  37418  0  0

 

The text editor defined by the EDITOR environment variable is used by edquota.

Configuring Disk Quotas

1. Enable quotas per file system by modifying the /etc/fstab file.
2. Remount the file systems.
3. Create the quota database files and generate the disk usage table.
4. Assign quota policies.

   Each of these steps is discussed in detail in the following sections.

Monday, October 6, 2008

Disk Quotas

Main Points about Disk Quotas
Disk space can be restricted by implementing disk quotas.
It alert a system administrator before a user consumes too much disk space or a partition becomes full.
Disk quotas can be configured for individual users as well as user groups.
In addition, quotas can be set not just to control the number of disk blocks consumed but to control the number of inodes.
Because inodes are used to contain file-related information, this allows control over the number of files that can be created.

Ansible Playbook to collect uptime of servers

Hi,  This is to explain how we can write a small playbook to collect uptime of all servers in our environment. We can use our own server l...