Beruflich Dokumente
Kultur Dokumente
Troubleshooting
Daniel Lazar
Lead Escalation Engineer
May 11, 2010
Agenda
XenServer Storage Overview
Management and Monitoring
Troubleshooting and Diagnosing Common Storage Issues
Q &A
XenServer Host
PBD
VDI
VBD
Virtual Machine
XenServer Host
PBD
VDI
VBD
Virtual Machine
XenServer Host
PBD
VDI
VBD
File-based VHD
StorageLink Architecture
XenServer
XenServer 5.5
5.5
iSCSI
iSCSI // FC
FC
Storage Repository
Storage Repository
LUN
VHD
VHD header
header
VHD
VHD header
header
LVM
Logical
Volume
LVM
Logical
Volume
LUN
LUN
LUN
LUN
# fdisk l
Start
End
Blocks
Id
System
981
4002464
83
Linux
/dev/cciss/c0d0p2
982
1962
4002480
83
Linux
/dev/cciss/c0d0p3
1963
35132
135333600 83
Linux
/dev/cciss/c0d0p1
Boot
# fdisk l
# Continued output
# sg_map x
/dev/sg0
0 0 0 0
13
/dev/sg1
0 0 0 1
/dev/sda
/dev/sg2
0 0 0 2
/dev/sdb
/dev/sg3
1 0 0 0
13
/dev/sg4
1 0 0 1
/dev/sdc
/dev/sg5
1 0 0 2
/dev/sdd
Host
Number
Bus
SCSI
ID
LUN
SCSI
Type
Citrix Confidential - Do Not Distribute
# ll /dev/disk/by-id
Unique ID assigned by
udev. It corresponds to
individual block devices.
Citrix Confidential - Do Not Distribute
To identify a specific SR
based on the SCSI ID,
compare /dev/disk/by-id
with the SR in
XenCenter
LVM-related commands
# pvs
PV
VG
/dev/sda
VG_XenStorage-40bbf542-b9d9-ffa1-6efe-aa9c56aadd95 lvm2 a-
Linux sg
device
# vgs
Fmt
Attr
PSize
PFree
99.99G
59.88G
SR UUID
VG
VSize
VFree
VG_XenStorage-40bbf542-b9d9-ffa1-6efe-aa9c56aadd95
99.99G
59.88G
wz--n-
LVM (continued)
# lvs
LV
VG
Attr
LSize
VHD-c67a887f-3a1a-41f4-8d40-1b21f6307c4a VG_XenStor...
-wi---
24.00G
VHD-c9b919a7-b93b-49ea-abe5-00acb8240cf5 VG_XenStor...
-wi-ao
8.00G
VHD-f3d26dde-254f-4d80-a3bb-d993e904bd63 VG_XenStor...
-wi---
24.00G
LV-e056f479-b0f3-49f3-bc5d-6c226657ae6c
-wi-ao
10.00G
VG_XenStor...
LV-ebdcad46-66d9-4020-baa1-0d5b6ac439c7
Represents Logical Volume containersVG_XenStor...
The a and o
attributes indicate
the LV is active
and open implying
it is attached to a
running VM
Understanding how the physical storage is represented as virtual objects in XenServer using the XenAPI
: NetApp - iSCSI
uuid ( RO)
: 40bbf542-b9d9-ffa1-6efe-aa9c56aadd95
VDIs (SRO)
: f3d26dde-254f-4d80-a3bb-d993e904bd63; c67a887f-3a1a-41f4...
PBDs (SRO)
: 27d05ffc-07d3-4f02-d265-3594a2179f8f
Understanding how the physical storage is represented as virtual objects in XenServer using the XenAPI (continued)
: 27d05ffc-07d3-4f02-d265-3594a2179f8f
sr-uuid ( RO): 40bbf542-b9d9-ffa1-6efe-aa9c56aadd95
Understanding how the physical storage is represented as virtual objects in XenServer using the XenAPI (continued)
: f3d26dde-254f-4d80-a3bb-d993e904bd63
Understanding how the physical storage is represented as virtual objects in XenServer using the XenAPI (continued)
: 69afb055-3b52-57e3-63fa-d26b82a9b01d
vm-uuid ( RO): 2c3a0e82-3f96-eab8-4982-db33fdb3bd88
mode ( RW): RW
Since Enterprise SANs consolidate data from multiple servers and operating systems, many types of traffic and
data are sent through the interface, whether it is fabric or the network.
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)
node WWN (WWNN) - can be shared by some or all ports of a device
port WWN (WWPN) - necessarily unique to each port
Pool2
Xen2
Xen2
Xen3
Xen3
FC Switch
Storage
FC Switch example
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
Target IQN Typically associated with the storage provider interface
Initiator IQN Configured on the client side, i.e. the device requesting access to the storage.
IQN format is standardized:
iqn.yyyy-mm.{reversed domain name} (e.g. iqn.2001-04.com.acme:storage.tape.sys1.xyz)
iSCSI Isolation
Pool1
Xen1
Xen1
Pool2
Xen2
Xen2
Xen3
Xen3
Network Switch
Storage
iSCSI Example
# iostat k
avg-cpu:
%user
0.12
Device:
0.05
0.09
%steal
%idle
0.02
99.72
tps
kB_read/s
kB_wrtn/s
kB_read
kB_wrtn
cciss/c0d0
4.05
0.52
32.11
164361
10156264
sda
0.11
1.38
1.79
437259
566151
286 MB in
3.00 seconds =
95.19 MB/sec
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.
vhd-util
See http://support.citrix.com/article/CTX118842
Storage Multipathing
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
SAN Debugging
Use xe sr-probe
type=lvmohba to trigger a bus
refresh
Citrix Confidential - Do Not Distribute
Additional Scenarios
Unable to create SRs
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.
Questions? Comments?