logo completenetworkingnotes.com

RHCE LVM Manage Extend Reduce Add Remove

Search Completenetworkingnotes.com Now


Home Workgroup N+ CCNA IPv6 RHCE Interview Tips n Tricks Hardware Troubleshooting
Basic Wireless Security

Lvm Advance Management Extend Reduce Add Remove

In our pervious article we learnt how to create lvm partition and mount them permanently in /etc/fstab . If you missed it we suggest reviewing
RHCE Linux lvm partitions
before going with advance lvm management. In this tutorial guide we will learn about advance lvm management. In our pervious article we have created two lvm partitions. Now we will manage them. First we will extend the size of lv00 our first lvm partition.

Check all these partition are functioning properly

Check the current size of lv00

lvdisplay linux command for displaying lvm

As you can see the current size of lv00 is 100MB. To extend it with 50MB space run these commands

lvm extend

Now we will reduce the size of 20MB from lvm partition.
If you have free space in lvm partition no data lose will happen. Lose in data will happen only when partition is full.
lvm reduce

at this moment you should be able to extend and reduce the size of lvm partition now we will remove these partitions
lvremove linux lvm command

don't forget to remove these partitions form /etc/fstab also

/etc/fstab

now use fdisk command to delete these partition form hard disk

#fdisk /dev/sda

fdisk

run partprobe command to tell kernel about change and verify it

lvm

Do these practical of lvm as much as you can as RHCE is performance based exam and none of us will want to retake it. We have summarized all important commands in a single table cram it.

Command Description
partprobe To notify kernel about the change in device
pvcreate To create physical volume
pvdisplay To display the size and other information about physical volume
pvremove To remove the physical volume
pvresize To modify the size of physical volume
pvscan To scan the physical volume
vgextend to extend the size of volume group
vgreduce to reduce the size of volume group
vgscan to scan the volume group for change
vgdisplay to display the status and information about volume group
lvdisplay will display the status of lvm
lvreduce to reduce the size of lvm
lvextend to extend the size of lvm
lvcreate to create the lvm
lvremove to remove the lvm partition
lvscan to scan lvm for change
fdisk -l To show the current partition status of hard disk
fdisk /dev/sda To invoke fdisk utility on /dev/sda
n to create new partition
t to define file types
d to delete partitions
w to save change
RHCE Study guide home
Paper Code Cast Durations
List of Exam topics
Structure Of Filesystem
Login in to Linux Terminals
vi editor switches basic
vi advance descriptions
System admin Commands
cat cp mv rm mkdir pwd
help wc spell aspell tty who head tail man info help cat bzip gzip pwd cd mkdir du df find history which whereis ps top pstree uname shadow,passwd, group files
chkconfig ntsysv Tools
User Managements useradd userdel groupadd groupdel su sudo user profile files from /etc/skel
Manage file permission chown chgrp chmod command description
chmod command example
sticky bit
access control list setfacl getfacl chattr
remove root password login problem and solution
RedHat Package Manager
how to secure terminal
fstab file and error
Removing grub password
Disk managements simple partitions LVM logical volume manger Example disk quota managements Raid partition Swap partition
lan card driver, Network configuration files commands ip ifconfig ping netstat arp mii-tool
Linux as a router , create virtual LAN card
Deny icmp ping request
increase virtual terminal, Set default id, Disable alt ctrl delete key
Network configurations
job scheduling with at commands cron commands Configure telnet server
configure ssh server
configure ftp server
Configure syslog server
configure nis server
configure nfs server
configure dhcp server
configure web server
configure samba server
configure vnc server
configure printer server
configure dns server
configure dns slave server
configure squid server
configure sendmail server
configure yum server
network installation via ftp and nfs server
via apache server
Home Bookmark and Share RHCE