There's an instance when an error is returned when one is running the recipes below. First is when the input for the recipes are not set to "off". The second is where there is a process(s) that still keeps that volume to be busy.
If you encounter this behavior, you may check the process that's keeping the volume to be busy and kill it then run the script again. You can use lsof or user command to find the process.
[root@Test-Server ~]# lsof /var/log/messages
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
rsyslogd 726 root 1w REG 202,0 102375 569503 /var/log/messages
[root@ip-10-135-39-164 ~]# kill -9 726
More info Here
© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.