Difference between revisions of "HowTo Resize The "root" File System Using LVM"
From NST Wiki
Jump to navigationJump to searchLine 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 '''[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: |
+ | |||
+ | |||
+ | [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 '''[https://en.wikipedia.org/wiki/XFS xfs]''' | # The root file sytem is of type '''[https://en.wikipedia.org/wiki/XFS xfs]''' | ||
− | [root@nst22 ~]# mount|grep root | + | [root@nst22 ~]# mount | grep root; |
/dev/mapper/nst22-root on / type xfs (rw,relatime,attr2,inode64,noquota) | /dev/mapper/nst22-root on / type xfs (rw,relatime,attr2,inode64,noquota) | ||
− | # | + | # The root file system is under LVM control: |
+ | |||
− | = | + | = Demonstration = |
Revision as of 07:43, 26 May 2016
Contents
Overview
This page demonstrates how to resize the root file system by increasing it's size by 2GB using theLogical 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)
- The root file system is under LVM control: