This section shows how to handle filesystem "/var" utilization in an HMC. Since the /var filesystem holds all the log files, performing periodic house keeping on /var would keep it in a consistent state.
Login into HMC-CLI.
1) # monhmc -r {disk|proc|swap|mem} -n #
-r : Resource
-n : Interval to repeat the status of the resources.
2) # chhmcfs -o f { -d days | -h hours| -s size} -f filesystem
-o : Operation to be performed, "f" refers to free the filesytem.
# chhmcfs -o f -d 3
The above command cleans up the log files from all the filesystem except the last 3 days -d 3.
# chhmc -o f /var
The above command cleans up all the log files in tehe /var filesystem.
3) # monhmc -r disk
Verify the filesystem size after performing the operation.
Login into HMC-CLI.
1) # monhmc -r {disk|proc|swap|mem} -n #
-r : Resource
-n : Interval to repeat the status of the resources.
2) # chhmcfs -o f { -d days | -h hours| -s size} -f filesystem
-o : Operation to be performed, "f" refers to free the filesytem.
# chhmcfs -o f -d 3
The above command cleans up the log files from all the filesystem except the last 3 days -d 3.
# chhmc -o f /var
The above command cleans up all the log files in tehe /var filesystem.
3) # monhmc -r disk
Verify the filesystem size after performing the operation.
No comments:
Post a Comment