aanya247
asked on
lvreduce in RHEL
Recently I have extended /tmp filesystem from 2GB to 10GB, While the system is up and running can I still run "lvreduce" to reduce it from 10GB to 2GB, When I run the command while the filessystem is mounted it is saying "THIS MAY DESTROY YOUR DATA". Is it mandatory that I need to unmounts the filesystem.
This is a production server and I will not be able to get an outage until next week, So is there a way to reduce the size without any outages.,...
This is a production server and I will not be able to get an outage until next week, So is there a way to reduce the size without any outages.,...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yes, it's not possible first need to unmount then it will be done.
ASKER
So what is the best way to reduce, If I have an outage, DOes booting into rescue mode or single user mode help me can someone guide me with the steps.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I recommend using the resizefs option with lvreduce (or lvextend)
Good luck and make sure you have back up!
lvreduce -vr <lvm path>
Good luck and make sure you have back up!