Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
But you will resize it in a live server, I suggests do a testing before proceeding. Back up, back up, test and verify the back up if it is okay and do what you want. Just to be on the safe side.
The lvresize, lvextend, and lvreduce commands are used to resize logical volumes. See the man pages for each of these commands for syntax and options information.
You can also increase the size of a logical volume by using the YaST Partitioner. YaST uses parted(8) to grow the partition.
To extend an LV there must be enough unallocated space available on the VG.
LVs can be extended or shrunk while they are being used, but this may not be true for a file system on them. Extending or shrinking the LV does not automatically modify the size of file systems in the volume. You must use a different command to grow the file system afterwards. For information about resizing file systems, see Section 5.0, Resizing File Systems.
Ensure that you use the right sequence:
If you extend an LV, you must extend the LV before you attempt to grow the file system.
If you shrink an LV, you must shrink the file system before you attempt to shrink the LV.
To extend the size of a logical volume:
Open a terminal console, log in as the root user.
If the logical volume contains file systems that are hosted for a virtual machine (such as a Xen VM), shut down the VM.
Dismount the file systems on the logical volume.
At the terminal console prompt, enter the following command to grow the size of the logical volume:
lvextend -L +size /dev/vgname/lvname
For size, specify the amount of space you want to add to the logical volume, such as 10GB. Replace /dev/vgname/lvname with the Linux path to the logical volume, such as /dev/vg1/v1. For example:
lvextend -L +10GB /dev/vg1/v1
For example, to extend an LV with a (mounted and active) ReiserFS on it by 10GB:
lvextend −L +10G /dev/vgname/lvname
resize_reiserfs −s +10GB −f /dev/vg−name/lv−name
For example, to shrink an LV with a ReiserFS on it by 5GB:
Thanks again for your answer. Regarding the backup, no problem, I'm working on a test environment that I can crash. The problem with the link bellow is it's refer to Logical Volume which I don't use in my case