Re: lvreduce and lvextend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If u want reduce logical volume u should unmount partition.
if u want extend logical volume unmounting in not necessary.

i would like to suggest some steps for reduce & extend.

1. for reduce logical volume for ext3 file system.
A.*umount /home
B.**e2fsck -f /dev/mapper/myhost-home
C.**resize2fs -p /dev/mapper/myhost-home 3G
D.**lvreduce --size 4G /dev/mapper/myhost-home*
E.*resize2fs /dev/mapper/myhost-home
F.**mount /home*

2 Lvextend

*lvextend -L+1G /dev/myvg/homevo
*

*resize2fs /dev/myvg/homevol
*








On Fri, Mar 26, 2010 at 8:33 PM, Mike Burger <mburger@xxxxxxxxxxxxxxxxx>wrote:

>
> > Rob wrote:
> >> Ah.  The other email, IE the one I replied to, didn't have Task 2, just
> >> task 1.
> >>
> >> I'm not sure if shrinking online is supported or not...
> >>
> > I, for one, would *not* write code to allow that. The chances of toasting
> > your f/s, and or files on it, are far too close to 1:1.
> >
> >         mark
> >> Rob Marti
>
> It can be done, if the tools are smart enough to do it.
>
> On the AIX systems I manage, under JFS2, IBM's LVM tool can and will
> shrink the filesystems while online.  I believe that it's written to do so
> as long as the amount of space you wish to remove is actually free.
>
> On the other hand, I always check those filesystems to make sure that the
> requisite amount of space is free prior to shrinking the filesystem.
> Better to be safe than sorry.
>
> --
> Mike Burger
> http://www.bubbanfriends.org
>
> Visit the Dog Pound II BBS
> telnet://dogpound2.citadel.org or http://dogpound2.citadel.org
>
> To be notified of updates to the web site, visit:
>
> https://www.bubbanfriends.org/mailman/listinfo/site-update
>
> or send a blank email message to:
>
> site-update-subscribe@xxxxxxxxxxxxxxxxx
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux