User Tools

Site Tools


lvm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
lvm [2011/06/01 20:59]
k2patel created
lvm [2017/03/23 15:56]
k2patel [Add drive to LVM]
Line 1: Line 1:
-====== LVM ====== 
  
-LVM you can increase / decrease size without any issue. 
-But it is important you do it in proper steps. 
- 
- 
-==== Reducing Size : ==== 
- 
-<code bash> 
-umount /home 
-e2fsck -y /​dev/​mapper/​VolGroup00-LogVol00 
-resize2fs -f /​dev/​mapper/​VolGroup00-LogVol00 1536M 
-lvreduce -L1536M /​dev/​mapper/​VolGroup00-LogVol00 ​ 
-mount /home 
-</​code>​ 
- 
- 
-==== Increasing Size : ==== 
-<code bash> 
-umount /opt/ 
-e2fsck -y /​dev/​mapper/​VolGroup00-LogVol02 
-lvextend -L+512M /​dev/​mapper/​VolGroup00-LogVol02 
-resize2fs /​dev/​mapper/​VolGroup00-LogVol02 
-mount /opt 
-</​code>​ 
lvm.txt ยท Last modified: 2020/08/10 02:35 (external edit)