Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
Bread for the World

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Glossary
MoreInfo
Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
FAQ
Copyright Info
Terms of Use
Privacy Info
Disclaimer
WorkBoard
Thanks
Donations
Advertising
Masthead / Impressum
Your Account

Communication
Feedback
Forums
Private Messages
Surveys

Features
HOWTOs
News Archive
Submit News
Topics
User Articles
Web Links

Google
Google


The Web
linux-tutorial.info

Who's Online
There are currently, 195 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here

  

lvreduce



SYNOPSIS

       lvreduce [-A|--autobackup {y|n}] [-d|--debug] [-f|--force]
       [-h|--help]     {-l|--extents     [-]LogicalExtentsNumber|
       -L|--size  [-]LogicalVolumeSize[kKmMgGtT]}  [-v|--verbose]
       LogicalVolumePath


DESCRIPTION

       lvreduce allows you to reduce the size of a  logical  vol­
       ume.   Be  careful  when reducing a logical volume's size,
       because data in the reduced part is lost!!!
       You should therefore ensure that the  (eg)  filesystem  on
       the volume is resized running lvreduce so that the extents
       that are to be removed are not in use.  If the  filesystem
       is  ext2  then  you can use the e2fsadm(8) command to both
       resize the filesystem and  the  logical  volume  together.
       Shrinking  snapshot  logical  volumes (see lvcreate(8) for
       information to create snapshots) is supported as well.

   OPTIONS
       -A, --autobackup y/n
              Controls automatic backup of VG metadata after  the
              change ( see vgcfgbackup(8) ). Default is yes.

       -d, --debug
              Enables  additional  debugging  output (if compiled
              with DEBUG).

       -f, --force
              Force size reduction without any question.

       -h, --help
              Print a usage message on standard output  and  exit
              successfully.

       -l, --extents [-]LogicalExtentsNumber
              Reduce  or  set the logical volume size in units of
              logical extents.  With the - sign the value will be
              subtracted  from  the  logical volume's actual size
              and without it the will be  taken  as  an  absolute
              size.

       -L, --size [-]LogicalVolumeSize[kKmMgGtT]
              Reduce  or  set the logical volume size in units of
              megabyte by default.  A size suffix of k for  kilo­
              byte,  m for megabyte, g for gigabyte or t for ter­
              abyte is optional.  With the - sign the value  will
              be subtracted from the logical volume's actual size
              and without it the will be  taken  as  an  absolute
              size.

       -v, --verbose
              Gives  verbose runtime information about lvreduce's

       4  logical volume doesn't exist
       5  error reading VGDA
       6  error getting index of logical volume
       7  new size of logical volume not smaller than old one
       8  error setting VGDA up for reduce
       9  error reducing logical volume in kernel
       10 error writing VGDA to physical volume(s)
       11 error getting index for read/write statistic transfer
       12 error getting status of logical volume from kernel
       13 error setting up copy on write exception table

       95 driver/module not in kernel
       96 invalid I/O protocol version
       97 error locking logical volume manager
       98 invalid lvmtab (run vgscan(8))
       99 invalid command line


ENVIRONMENT VARIABLES

       LVM_AUTOBACKUP
              If  this variable is set to "no" then the automatic
              backup of VG metadata is turned off.

       LVM_VG_MAX_BACKUPS
              This variable determins the backup history depth of
              kept VGDA copy files in /etc/lvmconf. It can be set
              to a positive number between 0 and 999.  The higher
              this  number  is  the  more  steps  are you able to
              backup with vgcfgrestore(8) from  the  changes  you
              make to your volume groups.

       LVM_VG_NAME
              The  default Volume Group Name to use. Setting this
              variable enables you to enter just the Logical Vol­
              ume Name rather than its complete path.


See also

       lvm(8), lvcreate(8), lvextend(8), lvchange(8), e2fsadm(8)


AUTHOR

       Heinz Mauelshagen <Linux-LVM@Sistina.com>

Heinz Mauelshagen           LVM TOOLS                 LVREDUCE(8)
  




Login
Nickname

Password

Security Code
Security Code
Type Security Code


Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!


Amazon Wish List

Did You Know?
You can choose larger fonts by selecting a different themes.


Friends



Tell a Friend About Us

Bookmark and Share



Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.10 Seconds