Help answer threads with 0 replies.
Go Back > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.


  Search this Thread
Old 10-22-2005, 05:10 AM   #1
Registered: Feb 2004
Distribution: Solaris 10/11 , RHEL 6 ,AIX 7.1
Posts: 194

Rep: Reputation: 32
how to reduce logical volume

hello every body....

I created lvm on RHEL 4 AS.

in RHEL4 I can increase lvm by commands

#lvextend +L 50M /dev/test0/data
#ext2online /dev/test0/data

this will increase my lvm 50 mega bytes as well as icrease the actual file system.

Now my question is that how can I decrese lv size.

the command
#lvreduce -L 30M /dev/test0/data

reduces the size of lmv but actual file system shows the same size by
#df -h


waiting for
Old 10-28-2005, 06:01 PM   #2
Registered: Feb 2004
Posts: 140

Rep: Reputation: 15
From the man page this is not possible with a mounted file system.

The ext2online tool resizes ext2 file systems while they are mounted and in use by the system. It is OK to resize the filesystem even while
programs have open files and are writing into the filesystem. It is _only_ possible to _enlarge_ a mounted filesystem. It is possible to use
ext2resize(8) to _shrink_ and enlarge an _unmounted_ filesystem.
Old 10-29-2005, 09:26 AM   #3
LQ Newbie
Registered: Sep 2005
Posts: 2

Rep: Reputation: 0
Do not try reducing the partition when it is mounted. You will end up losing all the data in that partition. You can increase the partition size online but reducing online is not recommended.

First, unmount the partition and repeat the same steps. That will work. Also, while reducing, you need to resize the partition as well.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Logical Volume Management 2 XaViaR Linux - General 5 08-20-2005 08:48 AM
logical volume manager plythgam Linux - Software 1 11-08-2004 11:47 AM
[Slackware 10] Cannot reduce sound volume. asklepios Slackware 5 10-10-2004 02:39 PM
Logical Volume Manager sidmark-2850 Linux - General 3 01-02-2004 02:25 PM
Logical Volume Management jatimon Linux - General 0 04-17-2002 03:57 PM > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 09:07 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration