Resize Freepbx partitions

(Jonathan P) #1

Hello Everyone,

Thought I would share how we recently re-sized the /home partition on a couple of servers. Hopefully this will help someone else save some time!

yum install xfsdump
xfsdump -f /backup/backup.xfs /home
reboot server. We had to reboot to run umount command.
fwconsole stop
umount /home/
lvreduce -L 200G /dev/mapper/s7_freepbx-home
mkfs.xfs -f /dev/mapper/s7_freepbx-home
mount /dev/mapper/s7_freepbx-home /home
xfsrestore -f /backup/backup.xfs /home

lvextend –l +100%FREE /dev/mapper/s7_freepbx-root –r
#to extend LVM to use the space

xfs_growfs /dev/mapper/s7_freepbx-root -d
#for XFS on LVM to use the newly available blocks.

(system) closed #2

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.