Extending a logical volume increases the logical volume in size. Currently, three logical volumes — lvol0, lvol1 and oravol — with sizes MB, MB and MB respectively, exist. The following example extends lvol0 to MB. Use the lvextend command to perform this activity.
Red Hat certification program overview
You can specify the size in either MBs or LEs. All of the following will generate an identical result:. Alternatively, you can use the lvresize command to extend a logical volume. For example, to double the size of lvol1 to MB, do any of the following:. You can also use the lvdisplay command with —v option on the lvol0 and lvol1 logical volumes to view details. You can use the LVM Configurator to extend a logical volume.
Follow the steps below to extend lvol Click Edit Properties. Specify a new size and click OK. Reducing a logical volume decreases the logical volume in size. Currently, lvol0 is MB. The following example reduces it to MB. Use the lvreduce command to perform this activity. All of the following will do exactly the same:.
RHCSA Series: Reviewing Essential Commands & System Documentation – Part 1
Do you really want to reduce lvol0? There is a risk involved when reducing the size of a logical volume, critical data may be lost. Always perform a backup of data in the logical volume before reducing it.
You can use the LVM Configurator to reduce a logical volume. Follow the steps below to reduce lvol Renaming a logical volume changes the name of the logical volume. The following example renames lvol0 to newlvol0. Use the lvrename command to perform this activity:. You can use the LVM Configurator to rename a logical volume. Follow the steps below to rename lvol Specify a new name and click OK. Removing a logical volume is a destructive task. Ensure that you perform a backup of any data in the target logical volume prior to deleting it. You will need to unmount the file system or disable swap in the logical volume.
You can use the LVM Configurator to remove a logical volume. Follow the steps below to remove lvol Click Remove Logical Volume and then Yes to remove it. If a physical volume with some PEs being used needs to be removed from a volume group, the data that resides in those PEs will need to be moved out to an available physical volume s in the same volume group. The destination physical volume s should have at least the same number of unused PEs available. The pvmove command is used for this purpose. Specify the name of a destination physical volume if you wish the PEs to be moved there.
- Red Hat Certification Guide: Overview and Career Paths?
- Red Hat Certified System Administrator & Engineer: Training Guide and a Quick Deskside Reference.
- Borders of a Lip: Romanticism, Language, History, Politics;
- Best Red Hat Books for Preparation to Certification.
- Red Hat Certification Guide: Overview and Career Paths.
This operation can safely be performed on an online, busy logical volume. Highlight extents in the graphics and click Migrate Selected Extent s from Volume. Click Yes to confirm the move. Reducing a volume group removes one or more physical volumes from it.
Best Red Hat Books for Preparation to Certification
The physical volume must not be in use. You can use the LVM Configurator to reduce a volume group. Removing a volume group removes all logical volumes within that volume group and then remove the volume group.
Currently, you have lvol1 and oravol logical volumes in VolGroup Use the vgremove command with —f --force option to remove the logical volumes and then the volume group itself:. Good Luck with the book The book has 31 chapters and facilitates readers to grasp concepts, understand implementation procedures, learn command syntax, configuration files and daemons involved, and comprehend troubleshooting. Linux Essentials Chapters 1 to 7 covers the basics of Linux. Information provided includes general Linux concepts, basic commands, file manipulation and file security techniques, text file editors, shell features, basic shell and awk programming and other essential topics.
These chapters are good for gaining an overall understanding of Linux and cover common skills useful for both exams. Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
- Treatment of Autoimmune Disorders.
- Subscribe to our newsletter.
- Navigation menu!
- Anywhere But Here.
Are you new to LinuxQuestions. 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. Any and all assistance would be greatly appreciated. Thanks, Avila6. Thread Tools.