This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
virtualization:xenserver:xenserver_troubleshoot [2014/11/23 10:04] gcooper |
virtualization:xenserver:xenserver_troubleshoot [2019/04/30 06:34] (current) gcooper |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Citrix XenServer Troubleshooting | + | ====== Citrix XenServer Troubleshooting ====== |
+ | |||
+ | **Tools for XenServer Troubleshooting**: | ||
+ | |||
+ | **How to Collect Diagnostic Information for XenServer**: | ||
+ | |||
+ | **Helpful XenServer Commands**: http:// | ||
===== Kernel Panic (Hang on Boot) ===== | ===== Kernel Panic (Hang on Boot) ===== | ||
Line 9: | Line 15: | ||
==== RAID Metadata on Disk ==== | ==== RAID Metadata on Disk ==== | ||
- | If you are installing to disks that previously had been used in RAID configurations, | + | See also **[[computing: |
- | In the case of Intel (integrated) RAID: | + | :!: If you are installing to disks that previously had been used in RAID configurations, |
- | - Configure | + | :!: You probably won't see the kernel panic (hang on boot) until **after installing SP1** (XenServer 6.2). |
- | - Enter the RAID configuration | + | |
- | - Delete the RAID volumes | + | |
- | - If the RAID configuration | + | |
- | - Recreate a RAID volume | + | |
- | - Reboot and go back into the RAID configuration (Control-I) again | + | |
- | - Delete the RAID volume just created | + | |
- | - Reboot again | + | |
- | - Install XenServer normally | + | |
- | :!: You probably won't see the kernel panic (hang on boot) until after installing SP1 (XenServer 6.2). | + | ==== Check Disk Space ==== |
+ | |||
+ | < | ||
+ | df -h | grep "/ | ||
+ | </ | ||
+ | |||
+ | Looking for files bigger than a given size (specify path and size): | ||
+ | |||
+ | < | ||
+ | find / -mount -type f -size +20M -exec ls -lh {} \; | awk '{ print $9 ": " $5 }' | ||
+ | </ | ||
+ | |||
+ | :!: You can pretty much ignore anything in ''/ | ||
+ | |||
+ | :!: Take special care when using wildcards with the '' | ||
+ | |||
+ | The first step might be to delete all files such as downloaded patches from ''/ | ||
+ | |||
+ | < | ||
+ | ls -al /root | ||
+ | rm -rf /root/* | ||
+ | </ | ||
===== File System on Control Domain Full ===== | ===== File System on Control Domain Full ===== | ||
+ | |||
+ | https:// | ||
http:// | http:// | ||
- | Check disk space: | + | ===== Detach a VHD from the Control Domain ===== |
+ | |||
+ | <note important> | ||
+ | |||
+ | List out the VBD (connector object between VM and VDI) based on the VDI UUID: | ||
< | < | ||
- | df -h | grep "/$" | + | xe vdi-list | grep -B1 -A5 -i "part-of-vm-name" |
+ | |||
+ | xe vdi-list name-label="< | ||
+ | |||
+ | xe vbd-list vdi-uuid=< | ||
</ | </ | ||
+ | <note important> | ||
+ | </ | ||
- | Looking for files bigger than a given size (specify path and size): | + | Once done, you want to first try to make VBD inactive |
< | < | ||
- | find / -mount -type f -size +20M -exec ls -lh {} \; | awk '{ print $9 ": " $5 }' | + | xe vbd-unplug uuid=< |
</ | </ | ||
- | :!: You can pretty much ignore anythin in ''/ | + | Once done, you can then break the connection: |
+ | |||
+ | < | ||
+ | xe vbd-destroy uuid=< | ||
+ | </file> | ||
+ | |||
+ | Check in XenCenter to verify and delete | ||
+ | |||
+ | ===== Log Partition Full ===== | ||
Delete rotated log files: | Delete rotated log files: | ||
Line 47: | Line 87: | ||
< | < | ||
find /var/log/ -type f -name *.gz -exec rm -f {} \; | find /var/log/ -type f -name *.gz -exec rm -f {} \; | ||
+ | </ | ||
+ | |||
+ | Delete '' | ||
+ | |||
+ | < | ||
+ | rm -f / | ||
</ | </ | ||
Line 76: | Line 122: | ||
< | < | ||
- | umount /mnt/backup | + | umount / |
- | rm -rf / | + | |
mount -a | mount -a | ||
</ | </ | ||
+ | |||
+ | ===== XAPI Database Parsing Tools ===== | ||
+ | |||
+ | Windows Version: http:// | ||
+ | |||
+ | Linux Version: http:// | ||
+ | |||
+ | ===== XenTools ===== | ||
+ | |||
+ | FIXME Incomplete and needs verification | ||
+ | |||
+ | This is a procedure to fix XenTools networking issues: | ||
+ | |||
+ | - Remove network interface via XenCenter | ||
+ | - Uninstall all Citrix XenTools packages from Add/Remove Programs | ||
+ | - Remove Citrix from filesystem and registry | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | - Run in an admin command shell | ||
+ | * Stop all running XenTools services | ||
+ | * '' | ||
+ | * '' | ||
+ | - Reboot | ||
+ | - Check things out and remove any ' | ||
+ | - Reboot again | ||
+ | - Add network adapter in XenCenter | ||
+ | - Reconfigure the networking until it works properly again | ||
+ | - Reboot | ||
+ | - Reinstall XenTools patiently | ||
+ |