7 - CCAT - Troubleshooting Training XenServer v1.0
7 - CCAT - Troubleshooting Training XenServer v1.0
7 - CCAT - Troubleshooting Training XenServer v1.0
XenServer
April 2012
Virtual Machine
VDI VBD
PBD
XenServer Host
Virtual Disk Data Formats
File-based VHD
LUN
LUN
VHD
VHD header
header VHD
VHD header
header
LVM
LVM LVM
LVM LUN LUN
LUN LUN
Logical
Logical Logical
Logical
Volume
Volume Volume
Volume
LVM
LVM Volume
Volume Group
Group
VM Virtual Disk
Troubleshooting and Diagnosing
Common Storage Issues
Troubleshooting XenServer Storage
Native Troubleshooting Tools XenServer Logs
Often errors logged in any of these files can be searched for in the Citrix
Knowledge Center for a solution. See http://support.citrix.com.
Ensure that multipathing is enabled if you have multiple paths zoned to the
XenServer
Use sg_map x and check the host and bus IDs
Use xe sr-probe
type=lvmohba to trigger a bus
refresh Citrix Confidential - Do Not Distribute
Troubleshooting XenServer Storage
Additional Scenarios
Unable to create SRs
Verify that XenServer can see the storage/LUN
Use fdisk and /dev/disk/xxx
Verify that HBA can see the LUN
Use the HBA CLI tools
Verify that iSCSI can login:
# iscsiadm m node L all # Will force iscsid service to log into the storage array.
Clean up of orphaned VDIs, XC not displaying the right amount of free storage
If a logical volume has no corresponding VDI it can be deleted. Be extremely careful with this
because if you delete a parent disk, then you lost all differentiated disks.
XenServer Performance
Troubleshooting
XenServer Performance Overview
Guest
Guest OS
OS Guest
Guest OS
OS
netback
netback netfront
netfront netfront
netfront
Native
Native
Driver
Driver
Dom0
Dom0 DomU
DomU DomU
DomU
Xen
Xen Hypervisor
Hypervisor
External Factors
Network
Storage
VM Workload and Sizing
Domain 0 Memory Management
for Dom0
What happens when we start more VMs than Dom0 has memory to
manage?
Slow VM performance, poor user experience.
Slow response from XenAPItakes longer to process tasks like
starting, shutting down and migrating virtual machines.
It can cause XenServer host instability resulting in unpredictable
behavior and potentially crashing the XenServer host machine!!
Troubleshooting XenServer Performance
Using XenCenter
Good for at a glance monitoring
Unwieldy for refined or customized performance testing
Difficult to use for historical trending
Data cannot be easily exported
Some types of information not gathered.
Troubleshooting XenServer Performance
Looking inside the above testing to see which instructions were being
executed the most during the test was wfica32.exe.
The Windows Performance Tools: Case Study
Units = cylinders of 16065 * 512 = 8225280 bytes This disk is part of a Storage
Repository using an LVM file
system and therefore does
not require a local partition
Disk /dev/sda doesn't contain a valid partition table
table.
# sg_map x # Displays the mapping between Linux sg and regular SCSI devices
/dev/sg0 0 0 0 0 13
/dev/sg1 0 0 0 1 0 /dev/sda
/dev/sg2 0 0 0 2 0 /dev/sdb
/dev/sg3 1 0 0 0 13
/dev/sg4 1 0 0 1 0 /dev/sdc
/dev/sg5 1 0 0 2 0 /dev/sdd
To identify a specific SR
based on the SCSI ID,
compare /dev/disk/by-id
with the SR in
XenCenter
With Fibre Channel, to ensure security and dedicated resources, an administrator creates zones and zone sets
to restrict access to specified areas. A zone divides the fabric into groups of devices.
Zone sets are groups of zones. Each zone set represents different configurations that optimize the fabric for
certain functions.
WWN - Each HBA has a unique World Wide Name (similar to an Ethernet MAC)
Xen1
Xen1 Xen2
Xen2 Xen3
Xen3
FC Switch example
Management and Monitoring
iSCSI Isolation
With iSCSI type storage a similar concept of isolation as fibre-channel zoning can be achieved by using IP
subnets and, if required, VLANs.
IQN Each storage interface (NIC or iSCSI HBA) has configured a unique iSCSI Qualified Name
Xen1
Xen1 Xen2
Xen2 Xen3
Xen3
iSCSI Example
Management and Monitoring
Monitoring XenServer Storage - Alerts