Friday 13 May 2016

Easy steps to resize partition on Linux using btrfs filesystem

The BRTFS file system has a advanced features from ext4 file system, Resizing of file file system with brtfs is very easy. In this case we are resizing /home directory to extend / partition

step 1 : Reduce the 200 G from /home partition

#btrfs filesystem resize -200G /home

step 2 :- check the /home partition is reduced

#btrfs filesystem show df /home

#btrfs filesystem df /home

#btrfs filesystem show

# btrfs filesystem resize -200G /home

Step 3: –

#lvdisplay

#lvreduce -L -200G /dev/mapper/vg_XXXXXX-lv_home

Extend The root partition: –

#lvextend -L +200G /dev/mapper/vg_XXXXXXX-lv_root

#btrfs filesystem resize +200G /

#df

#lvdisplay

#btrfs filesystem show

#btrfs filesystem df /

#btrfs filesystem df /home

There is no need to stop any process.

No comments:

Post a Comment