Quota LVM (Logical Volume Manager)

Similar documents
More on file systems, Booting Todd Kelley CST8177 Todd Kelley 1

More on file systems, Booting Todd Kelley CST8177 Todd Kelley 1

Disks, Filesystems Todd Kelley CST8177 Todd Kelley 1

Linux-Kurs Themen -Quotas -19 January 2005

Exam Name: Red Hat Certified Engineer on Redhat

Linux File System Quotas

Actual4Test. Actual4test - actual test exam dumps-pass for IT exams

Disks, Filesystems, Booting Todd Kelley CST8177 Todd Kelley 1

CIS UNIX System Administration

RH202. Redhat Certified Technician on Redhat Enterprise Linux 4 (Labs) Exam.

File system manager. Single tool to manage your storage. Red Hat. October 24, 2011

As this method focuses on working with LVM, we will first confirm that our partition type is actually Linux LVM by running the below command.

File systems and Filesystem quota

Linux System Administration, level 1. Lecture 4: Partitioning and Filesystems Part II: Tools & Methods

Chapter 5: User Management. Chapter 5 User Management

Adding a block devices and extending file systems in Linux environments

Exam Questions RH202

7. Try shrinking / -- what happens? Why? Cannot shrink the volume since we can not umount the / logical volume.

Testpassport.

example.com index.html # vim /etc/httpd/conf/httpd.conf NameVirtualHost :80 <VirtualHost :80> DocumentRoot /var/www/html/

An introduction to Logical Volume Management

Changing user login password on templates

Exam Actual. Higher Quality. Better Service! QUESTION & ANSWER

Getting Started with Pentaho and Cloudera QuickStart VM

RH133. Red Hat Linux System Administration

System Administration. Storage Systems

BT Cloud Compute. Adding a Volume to an existing VM running Linux. The power to build your own cloud solutions to serve your specific business needs

MFT / Linux Setup Documentation May 25, 2008

Red Hat.Actualtests.EX200.v by.Dixon.22q. Exam Code: EX200. Exam Name: Red Hat Certified System Administrator (RHCSA) Exam

Accurate study guides, High passing rate! IT TEST BOOK QUESTION & ANSWER. Ittestbook provides update free of charge in one year!

EX200.Lead2pass.Exam.24q. Exam Code: EX200. Exam Name: Red Hat Certified System Administrator RHCSA. Version 14.0

Seltestengine EX200 24q

Braindumps EX200 15q

Exam Questions RH133

EX200 EX200. Red Hat Certified System Administrator RHCSA

LPI LPI Level Junior Level Linux Certification Part 1 of 2. Download Full Version :

Vendor: RedHat. Exam Code: EX200. Exam Name: Red Hat Certified System Administrator - RHCSA. Version: Demo

This section describes the procedures needed to add a new disk to a VM. vmkfstools -c 4g /vmfs/volumes/datastore_name/vmname/xxxx.

EX200.redhat

How to add additional disks to XenServer host

Cloning and Repartitioning sessionmgr Disks

Back Up (And Restore) LVM Partitions With LVM Snapshots

This is sometimes necessary to free up disk space on a volume that cannot have extra disk space easily added.

Manage your disk space... for free :)

EX200.exam.35q. Number: EX200 Passing Score: 800 Time Limit: 120 min. EX200. Red Hat Certified System Administrator RHCSA

Server guides for the GIRAF project

Partitioning Disks with parted

RHCSA BOOT CAMP. Filesystem Administration

Linux Level 2. Student Manual.

SA3 E7 Advanced Linux System Administration III Internet Network Services and Security

How To Resize ext3 Partitions Without Losing Data

How to increase XenServer virtual machine root or swap partition

FORTINET DOCUMENT LIBRARY FORTINET VIDEO GUIDE FORTINET BLOG CUSTOMER SERVICE & SUPPORT FORTIGATE COOKBOOK FORTINET TRAINING SERVICES

Comparison between Tru64 UNIX and HP-UX Filesystems and Volume-Managers

Actual4Test. Actual4test - actual test exam dumps-pass for IT exams

Systemnotes.org RHCE Study Guide for RHEL5. v /12/02

Tru64 UNIX and HP-UX File Systems and Volume Managers

Ubuntu - How to Create Software RAID 1 in Ubuntu Linux - Tutorial

Red Hat Enterprise Linux 5 Logical Volume Manager Administration. LVM Administrator's Guide Edition 1

Commands LVM information can be created, displayed, and manipulated with the following commands:

jfield Documentation Release 1 Jason Field

Univention Corporate Server. Extended installation documentation

Controller Installation

LVM HOWTO. AJ Lewis. Copyright 2002 Sistina Software, Inc

LVM Administrator's Guide. Configuration and Administration 5.2

UUID and R1Soft. What is a UUID and what is it used for?

Univention Corporate Server. Extended installation documentation

Vendor: RedHat. Exam Code: RH133. Exam Name: Red Hat Linux System Administration. Version: Demo

Using Fluentd as an alternative to Splunk

Virtualization Provisioning & Centralized Management with iscsi. RACF Brookhaven National Laboratory James Pryor CHEP 2010

LVM HOWTO. AJ Lewis. <lewis(at)sistina.com> Copyright 2002 Sistina Software, Inc

TestOut Linux Pro - English 4.0.x OBJECTIVE MAPPING: CompTIA Linux+ LX0-103

NETW 110 Lab 5 Creating and Assigning Users and Groups Page 1

Windows Method Using Linux Live CD and Gparted

ECS Software 2.x - Multi-Node installation

Design of a Cluster Logical Volume Manager Abhinay Ramesh Kampasi Pune Institute of Computer Technology, University of Pune.

Arch Linux with an SSD Cache using LVM on BCache. Jeremy Runyan

CST8207: GNU/Linux Operating Systems I Lab Nine Disks, Partitions, and File Systems Part 2. Disks, Partitions, and File Systems - Part 2 of 2

Manual File System Check Linux Command Line

Kernel Korner. What Is AoE? ATA Over Ethernet: Putting Hard Drives on the LAN. Ed L. Cashin. Abstract

This is Worksheet and Assignment 12. Disks, Partitions, and File Systems

Linux storage system basics

LPIC-1 System Administrator

EX200 - EX200 Red Hat Certified System Administrator (RHCSA) Exam

iscsi storage is used as shared storage in Redhat cluster, VMware vsphere, Redhat Enterprise Virtualization Manager, Ovirt, etc.

(32 KB) 216 * 215 = 231 = 2GB

LPI EXAM LPI Level 2 Exam 201, Advanced Level Linux Certification, Part 1 of 2. Buy Full Product.

Red Hat Enterprise Linux 4 Cluster Logical Volume Manager. LVM Administrator's Guide

Exam Questions EX200

BTREE FILE SYSTEM (BTRFS)

Advanced Linux System Administra3on

File System Implementation. Sunu Wibirama

OPS235. Linux File Systems Partitioning Mounting File Systems

EX200 Exam Questions Demo Red Hat. Exam Questions EX200

RED HAT ENTERISE LINUX 5, 6, AND 7 Common administrative commands

IBM. Linux. Configuring IBM PowerKVM on Power systems

Disks, Filesystems 1

Chapter 6. Linux File System

Oracle Tablespaces, etc.: Managing the Disk Resource

Clustered Applications with Red Hat Enterprise Linux 6

Transcription:

Quota, LVM 1

Quota LVM (Logical Volume Manager) 2

https://access.redhat.com/knowledge/docs/en- US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/c h-disk-quotas.html Quotas give us the ability to keep track of users' disk usage: both blocks (disk space) and inodes (number of files) quota rpm must be installed For both blocks and inodes, quotas allow hard limits and soft limits: Soft limit: user is allowed to exceed a soft limit, but they will be warned, and after a grace period, they cannot increase usage Hard limit: user is never allowed to exceed the hard limit We enable quotas for a file system Quotas can be applied to users and/or groups System administrator can report on all users' disk usage status Each user can see their own disk usage status (quota information) 3

Example: enabling quotas on /home (separate /home filesystem) In /etc/fstab, add the usrquota,grpquota mount options for the file system mounted on the /home mount point Initialize the quota database files for /home with the command quotacheck cug /home c: don't read quota files, create new quota database files u: do user quotas g: do group quotas Turn quotas on quotaon vaug # turn quotas on v: display a message for each filesystem affected a: turn quotas on for all automatically mounted file systems according to /etc/fstab u: user quotas g: group quotas repquota a # report on quotas Turn quotas off quotaoff vaug # turn quotas off quotaoff -vaug; quotacheck vaug; quotaon vaug #single user mode 4

To set a quota for a user, as root edquota username where you'll see (example) DO NOT edit blocks or inodes, just soft and hard limits! Disk quotas for user tgk (uid 107): Filesystem blocks soft hard inodes soft hard /dev/sda8 108 1000 2000 1 0 0 or this command can be used in scripts setquota -u username soft hard isoft ihard fs where username is the name of the user soft is the block soft limit hard is the block hard limit isoft is the inode soft limit ihard is the inode hard limit fs is the file system mount point (e.g. /home) 5

To set the grace period for all users edquota t # edit grace period where you'll see something like this (note units) Grace period before enforcing soft limits for users: Time units may be: days, hours, minutes, or seconds Filesystem Block grace period Inode grace period /dev/mapper/volgroup00-logvol00 8days 8days To set the grace period for an individual user edquota -T tgk where you'll see something like this (note units) Times to enforce softlimit for user tgk (uid 498): Time units may be: days, hours, minutes, or seconds Filesystem block grace inode grace /dev/mapper/volgroup00-logvol00 unset unset 6

individual users can check their individual quota status with quota command: shows block usage and limits inode usage and limits remainder on grace period if over soft limit System administrator can print report of all users quota status (see also warnquota): repquota -a shows for each user what they've used, soft limits, hard limits, and remainder of grace periods if that user has entered one of their grace periods 7

Logical Volume Manager LVM tutorial: http://www.howtoforge.com/linux_lvm disk partitions are physical volumes one or more physical volumes forms a volume group a volume group can be divided into logical volumes We create file systems on the logical volumes 8

With LVM, we deal with space in logical and physical volumes in terms of "extents" Logical Volumes: LE or Logical Extents Physical Volumes: PE or Physical Extents Extents are the little pieces of space that can be managed: divided up into volumes, added to volumes 9

10

Let's explore LVM by adding a disk and putting it under LVM control We'll create a file system on that logical volume Then we'll add yet another disk and grow that file system so it uses the added space physical volume commands /sbin/pv* volume group commands /sbin/vg* logical volume commands /sbin/lv* Examples lvdisplay # show logical volumes pvdisplay # show physical volumes 11

create a partition /dev/sdb1 pvcreate /dev/sdb1 create the physical volume vgcreate VolGroup00 /dev/sdb1 add /dev/sdb1 physical volume to a new volume group called VolGroup00 lvcreate -l 100%FREE -n LogVol00 VolGroup00 use 100% of the free space of VolGroup00 to create a new logical volume named LogVol00 creates /dev/volgroup00/logvol00 on which we can make a filesystem mkfs t ext4 /dev/volgroup00/logvol00 12

add yet another disk (say /dev/sdc) partition /dev/sdc to create /dev/sdc1 Create the new physical volume pvcreate /dev/sdc1 Add this new physical volume to a volume group (in this case VolGroup00): vgextend VolGroup00 /dev/sdc1 See how many free extents (Free PE) are available in this volume group (VolGroup00) vgdisplay VolGroup00 13

14

Suppose the previous "vgdisplay" command showed that VolGroup00 had 511 free extents ("Free PE") and we use them all: lvextend l+511 /dev/volgroup00/logvol00 Now LogVol00 is bigger, but the filesystem we created before is still the same size. Grow the filesystem (ext4) to fill the added space: resize2fs /dev/volgroup00/logvol00 Now the filesystem is bigger, occupying the new disk space too 15

16