WEB开发网
开发学院服务器云计算 提高云中的文件共享和文件锁定 阅读

提高云中的文件共享和文件锁定

 2010-09-02 00:00:00 来源:WEB开发网   
核心提示: 要添加根文件系统镜像到 Walrus:打包镜像: $euca-bundle-image-i<vmimagefile>上传镜像: $euca-upload-bundle-b<imagebucket>-m/tmp/<vmimagefile>.manifest.xm

要添加根文件系统镜像到 Walrus:

打包镜像:

$ euca-bundle-image -i <vm image file>

上传镜像:

$ euca-upload-bundle -b <image bucket> -m /tmp/<vm image file>.manifest.xml

注册镜像:

$ euca-register <image bucket>/<vm image file>.manifest.xml

添加 kernel 到 Walrus 并用 Eucalyptus 注册:

打包 kernel:

$ euca-bundle-image -i <kernel file> --kernel true

上传包:

$ euca-upload-bundle -b <kernel bucket> -m /tmp/<kernel file>.manifest.xml

注册 kernel:

$ euca-register <kernel-bucket>/<kernel file>.manifest.xml

修改机制的背后

现在 Eucalyptus 还不支持文件共享机制,但我们将向您演示如何实现 Eucalyptus 中的文件共享。我们重点关注保持数据一致性。

对每个用户都创建了独立的 Virtual Machine 实例。目前情况下,Eucalyptus 也不支持不同 VM 实例间的文件共享。如果两个或多个用户同时以写模式访问文件或修改文件,文件将更新为最后保存的内容。

首先,我们看看如何创建一个新卷,并添加到实例中。

使用卷

创建一个新卷之前,先看看当前功能区的信息:

$ euca-describe-availability-zones

创建一个新卷:

$ euca-create-volume --size <size of volume> -x <name of availability zone>

--size 表示希望创建的卷的大小,-x 表示希望卷所在的功能区的名称。

上一页  1 2 3 4 5 6 7 8 9  下一页

Tags:提高 云中 文件

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接