1. First, backup the data using xfsdump (-f stands for where to save the dump file and the /home stands for which mount to backup):
xfsdump -f /tmp/home.dump /home2. Unmount the partition:
cd /
umount /home3. Delete the partition:
lvremove /dev/vg00/home4. Recreate it with a smaller size:
lvcreate --name home -L 2GB vg005. Mount the /home partition:
mount /dev/vg00/home /home6. Restore the data using xfsrestore:
xfsrestore -f /tmp/home.dump /home
No comments:
Post a Comment