Remove Mongo and assign the disk space to another partition

# make sure mongo is no longer installed
yum remove mongodb*

# remove the mongo mount, manually remove line from fstab
vi /etc/fstab

# umount the partition
umount /var/lib/mongo

# remove logical volume
lvremove /dev/mapper/tb-mongovol

# expand the size of another logical volume
lvextend -l +100%FREE /dev/mapper/tb-dbvol

#grow partition
xfs_growfs /dev/mapper/tb-dbvol

# done, check your results
df -h
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request



Please sign in to leave a comment.