LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 10-22-2005, 04:10 AM   #1
LinuxLover
Member
 
Registered: Feb 2004
Distribution: Solaris 10/11 , RHEL 6 ,AIX 7.1
Posts: 185

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

command.


waiting for
 
Old 10-28-2005, 05:01 PM   #2
mhiggins
Member
 
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, 08:26 AM   #3
bloretech
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.
 
  


Reply


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 07:48 AM
logical volume manager plythgam Linux - Software 1 11-08-2004 10:47 AM
[Slackware 10] Cannot reduce sound volume. asklepios Slackware 5 10-10-2004 01:39 PM
Logical Volume Manager sidmark-2850 Linux - General 3 01-02-2004 01:25 PM
Logical Volume Management jatimon Linux - General 0 04-17-2002 02:57 PM


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

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