1 / 19

SCSI support on Xen

SCSI support on Xen. MATSUMOTO Hitoshi matsumotohitosh@jp.fujitsu.com Fujitsu Ltd. Why SCSI?. Current Xen status personal use available business use reliability and availability are required

kerry
Download Presentation

SCSI support on Xen

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. SCSI support on Xen MATSUMOTO Hitoshi matsumotohitosh@jp.fujitsu.com Fujitsu Ltd.

  2. Why SCSI? • Current Xen status personal use available business use reliability and availability are required • reliability backup with SCSI function availability SCSI control

  3. business use (Large system) • The major backup media is Tape device. BACKUP is indispensable to large system. The backup software uses SCSI command to control tape drive and media changer. • The data base software for large system issues SCSI command directly (SCSI pass through) to disk. LAN server server DB server Backup server SCSI command SCSI command SCSI driver SCSI driver FC FC FC FC FC FC FC FC FC FC Disk Tape

  4. Current status of SCSI support on Xen • SCSI frontend/backend drivers were proposed by Fujita-san at the Xen Summit 2006. Xen SCSI driver tgt model Key word ; - SCSI protocol processing in user space - tgt: framework for storage target drivers

  5. SCSI driver tgt model Host (Dom 0) Guest user space SCSI disk emulation tgt daemon kernel space sd/st/sr/sg tgt core HBA driver scsi SCSI back driver SCSI front driver Hypervisor SCSI device • Able to create, debug and maintain in user space → Free from kernel • Enable access: raw partitions, regular files, LVM, files over network, etc. • Supported disk device.

  6. SCSI driver tgt model Host (Dom 0) Guest user space SCSI disk emulation tgt daemon tgt core sd/st/sr/sg kernel space scsi HBA driver SCSI back driver SCSI front driver Hypervisor SCSI device • kernel space(tgt core)→user space(tgt daemon)→kernel space(HBA driver) makes overhead for performance. • Other devices (tape, media changer, etc) are not supported.

  7. IOPS VBD vs SCSI driver (tgt model) version: based on Xen 3.0.4 CPU: host vcpu=1, guest vcpu=1 Memory: host=737MB, guest=256MB Tool: iozone Disk access: random, O_DIRECT Block size: 8KB We need performance!

  8. SCSI passthrough driver model • This architecture is similar to the current Xen driver(VBD) model. • Backend driver works in kernel.( SCSI is processed in kernel space) Guest Host (Dom 0) sd/st/sr/sg kernel space scsi SCSI passthrough HBA driver SCSI back driver SCSI front driver Hypervisor SCSI device • This SCSI passtrough driver supports • disk, tape drive and media changer • FC-SCSI

  9. SCSI driver passthrough model structure Host (Dom0) File I/O guest VFS VFS file_operations Device Device ext3 ext3 page BufferCashe BufferCashe SCSI backend driver bio scsi_cmnd Block device Block device request request SCSI driver SCSI driver scsi_cmnd SCSI frontend driver HBA driver scsi_cmnd HYPERVISOR disk

  10. more reliability and performance • Redundancy and Load balance multi path support application application sd/st/sg scsi_mod sd/st/sg scsi_mod HBA native driver HBA native driver HBA card HBA card HBA card disk disk

  11. multi path driver application sd/st/sg scsi_mod multi path driver HBA card HBA card disk • fail over: alternate path retry • load balance: multi access path application sd/st/sg scsi_mod multi path driver HBA card HBA card disk fail over load balance

  12. SCSI driver passthrough model structure 2 Host (Dom0) File I/O guest VFS VFS file_operations Device Device ext3 ext3 page BufferCashe BufferCashe SCSI backend driver bio scsi_cmnd Block device Block device request request SCSI driver SCSI driver scsi_cmnd multi path driver SCSI frontend driver HBA driver scsi_cmnd HYPERVISOR disk

  13. SCSI driver support • Enable to issue SCSI command directly from each guest. • Each FC HBA card is assigned to one guest. host guest 1 guest 2 Host OS I/O operation I/O operation SCSI backend driver SCSI backend driver guest OS guest OS SCSI frontend driver SCSI frontend driver FC(SCSI) native driver FC(SCSI) native driver Hypervisor FC HBA card FC HBA card SAN

  14. NPIV (N-Port Identifier Virtualization) • Virtual HBAs hosted by a physical HBA, unique SAN identify for each virtual HBAs. HBA driver HBA driver HBA card HBA card HBA card HBA card SAN SAN NPIV not supported NPIV supported

  15. SCSI driver(NPIV) support • Enable to issue SCSI command directly from each guest. host guest 1 guest 2 Host OS I/O operation I/O operation SCSI backend driver SCSI backend driver guest OS guest OS SCSI frontend driver SCSI frontend driver FC(SCSI) native driver with NPIV Hypervisor FC HBA card with NPIV SAN

  16. I/O server domain support Host domain I/O server domain Guest 1 Guest 2 host OS Driver OS I/O operation I/O operation guest OS guest OS VBD backend driver VBD frontend driver VBD frontend driver disk native driver Hypervisor HBA card HBA card

  17. VT-d support Host domain Guest 1 Guest 2 Host OS I/O operation I/O opetation guest OS guest OS FC(SCSI) native driver FC(SCSI) native driver Hypervisor FC HBA card FC HBA card

  18. road map • FC-SCSI • NPIV submit code submit code

More Related