How to extend xfs file system in Linux?

Use the xfs_growfs command to extend the size of an XFS file system. The XFS file system must be mounted and there must be available space to extend on the underlying logical volume.

The commands  that we  will use at this post;

  • vgdisplay
  • pvdisplay
  • pvs
  • vgs
  • lvs
  • lvdisplay
  • vgextend
  • lvextend
  • pvcreate
  • xfs_growfs

Step 1: Check existing  configuration

/dev/mapper/vgappdata-lvappdata  1,6G 2,3M 1,6G 1% /appdata

vgname:vgappdata

lvname:lvappdata

Step 2: Add  new disk to Volume  Group

-Check free  pv  size

-We  added  new  200  pv  to logical volume

Step 3: Extend  File System

Step 4: Check File System

 

 

 

Follow me

Abdurrahim

I'm a System Engineer with extensive experience and administration skills and works for Interbank Card Center Of Turkey.I provide hardware and software support for the following Unix/Linux and Windows platforms.(Oracle Solaris,HP-UX, Linux, IBM-AIX, Windows Servers)
Follow me
facebooktwittergoogle_pluslinkedinby feather

0