ecryptfs 不支持cache=none

来源:互联网 发布:空中英语教室 知乎 编辑:程序博客网 时间:2024/05/19 20:49

虚拟机启动报错:

error: Failed to create domain from /home/cloud/test/withoutspice.xml
error: internal error Process exited while reading console log output: char device redirected to /dev/pts/7
kvm: -drive file=/home/cloud/test/test,if=none,id=drive-virtio-disk0,format=qcow2,cache=none: could not open disk image /home/cloud/test/test: Invalid argument



mount查看磁盘信息

/home/cloud/.Private on /home/cloud type ecryptfs (ecryptfs_check_dev_ruid,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs,ecryptfs_sig=1d06efd86abf91de,ecryptfs_fnek_sig=40c4fb42edac6c06)

查找后发现

cache=none 选项的文件系统必须支持O_DIRECT(Direct IO),而ecryptfs不支持O_DIRECT


参考资料

http://www.expopro.info/home.php?u=T%2ByO6jovXl9Jbuq0jY8cfkA57%2FufQVf55k%2FOxvtt4ZY8UB7I%2BN09&b=29

http://blogardener.com/?p=284

http://www.expopro.info/home.php?u=BvmOoDZ0TF8CbO61zYgdaUgtpPGTVFb4%2B16Anbh98ZB3RhrA99w%2BLpOfjzMN&b=29


原创粉丝点击