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,如需转载请自行联系原作者


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值