Difference between revisions of "HowTo Resize The "root" File System Using LVM"
From NST Wiki
Jump to navigationJump to search (→Overview) |
(→Overview) |
||
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 | ||
----------------------------------------------------------- | ----------------------------------------------------------- | ||
------------------------------------------------- | ------------------------------------------------- | ||
Line 19: | Line 20: | ||
------------------------------------------------- | ------------------------------------------------- | ||
------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ||
− | Volume | + | Volume Pool Volume size FS FS size Free Type Mount point |
------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ||
− | /dev/nst22/root | + | /dev/nst22/root nst22 17.51 GB xfs 17.50 GB 5.88 GB linear / |
− | /dev/nst22/swap nst22 | + | /dev/nst22/swap nst22 2.00 GB linear |
− | /dev/sda1 | + | /dev/sda1 500.00 MB ext4 500.00 MB 288.89 MB part /boot |
------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ||
Revision as of 07:48, 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:
- The root file system is under LVM control:
[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 /dev/sdb 2.00 GB 0.00 KB 2.00 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)