CTX202821
2016-04-29
1970-01-01
When Dom 0 root partition is getting filled up, we have free up some space on root partition either by taking old log deleted or removing old patches.

Symptoms or Error

User-added image

The following errors or alerts might appear in??XenCenter:

  • File System on Control Domain Full.

  • Disk usage for the Control Domain on server 'XenServer' has reached 99.0%. XenServer's performance will be critically affected if this disk becomes full .

  • Log files or other non-essential (user created) files should be removed.

Impact on the environment

  • Performance of the VMs across the pool or host becomes sluggish.

  • Host becomes completely unresponsive.

  • XenServer console will show error:??"The XenAPI connection has timed out , the console will have reduced functionality".

  • All the Consoles, for hosts or VM,????become??unresponsive.

  • Error while trying to update hotfixes: "No space left on the device".

  • Any command or any process on the host ??takes too long to execute.

To find out the proper usage, execute the following command.

#df -h
Filesystem?????????????????????? Size?? Used Avail Use% Mounted on
/dev/sda2???????????????????????? 4.0G?? 3.6G?? 147M?? 97% /
none?????????????????????????????????? 2.0G???? 40K?? 2.0G???? 1% /dev/shm
/opt/xensource/packages/iso/XenCenter.iso
???????????????????????????????????????????? 52M???? 52M???????? 0 100% /var/xen/xc-install
/dev/mapper/XSLocalEXT--6e4fc08e--5459--ccbb--4959--2bccc93076ea-6e4fc08e--5459--ccbb--4959--2bccc93076ea
?????????????????????????????????????????? 542G?? 167G?? 347G?? 33% /var/run/sr-mount/6e4fc08e-5459-ccbb-4959-2bccc93076ea

Note: The highlighted percentage can vary from any value from 90 - 100.


Solution

Complete the following steps:

  1. Remove additional Logs.

  2. Remove??rogue entries of patch.

  3. Remove??the patch-backups.

  4. Review additional files.

Remove??additional Logs

  • #cd /var/log
  • #ls
  • remove the logs using #rm -rf ??

Refer to the following screen shot for the complete command. This command ensures that all the current logs files will be intact and will not be deleted.

User-added image

Remove??rogue entries of patch

  • #cd /var/patch

  • Remove all the entries except the??"/applied" folder??

Use the following command to remove all the rogue patches and without deleting the applied folder

?? ?? ??#ls | grep [0-9] |xargs rm -rf

User-added image

Remove the patch-backups

  • cd /opt/xensource/patch-backup
  • ls
  • rm -rf *
User-added image


Remove stunnel entries

???? ??. ?? ??# cd /tmp/


User-added image
??

Note: If??these steps do not reflect the space being cleared,??run #service syslog restart and the usage inside the root file system will be cleared.

Review Additional files

  • Check /tmp directory for any rogue files. You can delete everything inside it as XenServer wont store any default files in it.

  • Check "~" and "/" to see if there are any additional ISO files or any extra packages??are present inside the directory.??If yes, delete them.

Even after executing all those above steps if the space is still not reclaimed, contact Citrix Technical support.


Problem Cause

  • Root??Partition??is filled up.

  • Rogue Entries of patches and log files.


Disclaimer

The above mentioned sample code is provided to you as is with no representations, warranties or conditions of any kind. You may use, modify and distribute it at your own risk. CITRIX DISCLAIMS ALL WARRANTIES WHATSOEVER, EXPRESS, IMPLIED, WRITTEN, ORAL OR STATUTORY, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NONINFRINGEMENT. Without limiting the generality of the foregoing, you acknowledge and agree that (a) the sample code may exhibit errors, design flaws or other problems, possibly resulting in loss of data or damage to property; (b) it may not be possible to make the sample code fully functional; and (c) Citrix may, without notice or liability to you, cease to make available the current version and/or any future versions of the sample code. In no event should the code be used to support ultra-hazardous activities, including but not limited to life support or blasting activities. NEITHER CITRIX NOR ITS AFFILIATES OR AGENTS WILL BE LIABLE, UNDER BREACH OF CONTRACT OR ANY OTHER THEORY OF LIABILITY, FOR ANY DAMAGES WHATSOEVER ARISING FROM USE OF THE SAMPLE CODE, INCLUDING WITHOUT LIMITATION DIRECT, SPECIAL, INCIDENTAL, PUNITIVE, CONSEQUENTIAL OR OTHER DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Although the copyright in the code belongs to Citrix, any distribution of the sample code should include only your own standard copyright attribution, and not that of Citrix. You agree to indemnify and defend Citrix against any and all claims arising from your use, modification or distribution of the sample code.

 

Join the conversation

Citrix Discussions

Open a case

Citrix Support

特别说明


本文来源为Citrix.com所有,翻译后版权归翻译者所有.如需转载请注明出处.

文档版本


.

广告招租


最新留言


.

广告招租


.