Difference between revisions of "HowTo Resize The "root" File System Using LVM"

From NST Wiki
Jump to navigationJump to search
(Overview)
(Overview)
Line 1: Line 1:
 
__TOC__
 
__TOC__
 
= Overview =
 
= Overview =
This page demonstrates how to ''resize'' the '''root''' file system by increasing it's size by '''2GB''' using the'''[https://en.wikipedia.org/wiki/Logical_Volume_Manager_(Linux) Logical Volume Manager (LVM)]'''. The follow environment exists:
+
This page demonstrates how to ''resize'' the '''root''' file system by increasing it's size by '''2GB''' using the '''[https://en.wikipedia.org/wiki/Logical_Volume_Manager_(Linux) Logical Volume Manager (LVM)]'''. The follow environment exists:
  
 
* The root file system is under LVM control shown using the '''[https://fedoraproject.org/wiki/Features/SystemStorageManager System Storage Manager (ssm)]''':
 
* The root file system is under LVM control shown using the '''[https://fedoraproject.org/wiki/Features/SystemStorageManager System Storage Manager (ssm)]''':
Line 12: Line 12:
 
  /dev/sda1                    500.00 MB        /boot
 
  /dev/sda1                    500.00 MB        /boot
 
  /dev/sda2  0.00 KB  19.51 GB  19.51 GB  nst22
 
  /dev/sda2  0.00 KB  19.51 GB  19.51 GB  nst22
/dev/sdb  2.00 GB  0.00 KB    2.00 GB  nst22
 
 
  -----------------------------------------------------------
 
  -----------------------------------------------------------
 
  -------------------------------------------------
 
  -------------------------------------------------

Revision as of 07:51, 26 May 2016

Overview

This page demonstrates how to resize the root file system by increasing it's size by 2GB using the Logical Volume Manager (LVM). The follow environment exists:

[root@nst22 ~]# ssm list;
-----------------------------------------------------------
Device        Free      Used      Total  Pool   Mount point
-----------------------------------------------------------
/dev/sda                       20.00 GB         PARTITIONED
/dev/sda1                     500.00 MB         /boot
/dev/sda2  0.00 KB  19.51 GB   19.51 GB  nst22
-----------------------------------------------------------
-------------------------------------------------
Pool   Type  Devices     Free      Used     Total
-------------------------------------------------
nst22  lvm   2        2.00 GB  19.51 GB  21.50 GB
-------------------------------------------------
------------------------------------------------------------------------------------
Volume           Pool   Volume size  FS      FS size       Free  Type    Mount point
------------------------------------------------------------------------------------
/dev/nst22/root  nst22     17.51 GB  xfs    17.50 GB    5.88 GB  linear  /
/dev/nst22/swap  nst22      2.00 GB                              linear
/dev/sda1                 500.00 MB  ext4  500.00 MB  288.89 MB  part    /boot
------------------------------------------------------------------------------------
  • The root file sytem is of type xfs
[root@nst22 ~]# mount | grep root;
/dev/mapper/nst22-root on / type xfs (rw,relatime,attr2,inode64,noquota)

Demonstration