xen支持的块设备

简介:

xen支持的块设备

1. 物理块设备(Dom0中的物理块设备,如逻辑卷)
    phy:/dev/cdrom
    phy:/dev/xenvg/vm1
2. 磁盘镜像
    file:/root/tst.iso(使用loopback)
    nbd: ip_port (网络块设备)
    tap:cdrom:/dev/sr0(CD设备)
    tap:aio:/path/file  (blktap)
    tap:qcow:/mnt/disks/sles10sp1.iso.qcow(QEMU磁盘镜像)
    tap:vmdk:/mnt/disks/sles10sp1.iso.vmdk(Vmware磁盘镜像)
3. ISCSI设备:
    iscsi:iqn.2001-04.com.acme@0ac47ee2-216e-452a-a341-a12624cd0225
4. NPIV设备:
    npiv:210400e08b80c40f

file与tap的区别

file: uses dom0 kernel page cache, and thus might give better performance than phy: or tap:aio:,
but it's also more insecure because of the caching.

tap:aio: uses direct IO, so it bypasses dom0 kernel caches, and works like phy: in that sense.

blktap1 provides also other modes than :aio, like: qcow, but those were not very stable or fast,
    disk = ['tap:aio:<FILENAME>,sda1,w']
    disk = ['tap:qcow:<FILENAME>,sda1,w']
so blktap2 was developed. for blktap1 see: http://wiki.xensource.com/xenwiki/blktap .


blktap2 also has vhd image support including snapshots and cloning.
    disk = [ "tap:tapdisk:vhd:/path/images/disk.vhd,xvda,w" ]
    disk = [ "tap2:tapdisk:vhd:/path/images/disk.vhd,xvda,w" ]
See here: http://wiki.xensource.com/xenwiki/blktap2 .


本文转自feisky博客园博客,原文链接:http://www.cnblogs.com/feisky/archive/2012/01/31/2332809.html,如需转载请自行联系原作者


相关文章
|
2月前
|
存储 监控 Linux
|
2月前
|
存储 数据挖掘 Linux
在Linux中,LVM(逻辑卷管理)的主要优势是什么?如何扩展LVM卷?
在Linux中,LVM(逻辑卷管理)的主要优势是什么?如何扩展LVM卷?
|
10月前
|
存储 机器学习/深度学习 安全
Linux加强篇007-使用RAID与LVM磁盘阵列技术
山重水复疑无路,柳暗花明又一村
358 0
Linux加强篇007-使用RAID与LVM磁盘阵列技术
|
Linux Windows
7.1.8 其他Linux支持的文件系统与VFS
7.1.8 其他Linux支持的文件系统与VFS
68 0
|
存储 Linux 数据库
11.10 Linux LVM逻辑卷管理机制
我们在实际使用 Linux 服务器的时候,总会有一个让人头疼的问题,随着业务的增加,文件系统负载会越来越大,当到了空间不足的情况时,如果我们还在使用传统的分区方式管理硬盘,就不得不将现有的所有分区全部删除,并重新规划新的存储方案。
151 0
11.10 Linux LVM逻辑卷管理机制
|
网络协议 Linux 5G