The image command allows you to delete an image (image -d) or modify an image (image -u) even if the image is in use. However, synchronizing this change with the Control Center will fail if the image is in use.
Workaround 1: Use the Control Center to delete or modify an image.
Workaround 2: Verify that the image is not in use before you use the image command. To verify whether an image is in use, follow these steps:
Type the following command to get a list of active farms: farm -l
For each farm that is in a state other than CREATED, type the following command to determine what images it uses: lr -lv fmid | grep Image
where fmid is the farm identifier provided in step 1.
For each farm that is in the CREATED state, type the following command to obtain its FML and save it to a temporary file: farm -lv fmid > /tmp/fmlfmid
Look through the temporary file and search for all occurrences of the string <diskimage. An image ID will be on the next line as shown below:
<disk id="10" location="internal" name="Disk B" size="30000000000" type="local"> <diskimage type="system"> 6 </diskimage> <client-info id="11" object-id="10">
The list of unique image IDs from steps 2 and 3 are the images that are currently in use.