Remove Mongo and assign the disk space to another partition

Follow
# 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
Have more questions? Submit a request

Comments