Command: mkfs -t ntfs -F -L ephemeral0 /var/lib/nova/instances/_base/ Stderr: 'mkfs.ntfs问题的解决

创建虚拟机遇到错误

    16-11-03 10:53:39.854 2656 TRACE nova.compute.manager [instance: c55287fc-d561-4c59-9378-8a1d7b8662ec]     return processutils.execute(*cmd, **kwargs)
2016-11-03 10:53:39.854 2656 TRACE nova.compute.manager [instance: c55287fc-d561-4c59-9378-8a1d7b8662ec]   File "/usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py", line 266, in execute
2016-11-03 10:53:39.854 2656 TRACE nova.compute.manager [instance: c55287fc-d561-4c59-9378-8a1d7b8662ec]     cmd=sanitized_cmd)
2016-11-03 10:53:39.854 2656 TRACE nova.compute.manager [instance: c55287fc-d561-4c59-9378-8a1d7b8662ec] ProcessExecutionError: Unexpected error while running command.
2016-11-03 10:53:39.854 2656 TRACE nova.compute.manager [instance: c55287fc-d561-4c59-9378-8a1d7b8662ec] Command: mkfs -t ntfs -F -L ephemeral0 /var/lib/nova/instances/_base/ephemeral_3_0706d66
2016-11-03 10:53:39.854 2656 TRACE nova.compute.manager [instance: c55287fc-d561-4c59-9378-8a1d7b8662ec] Exit code: 1
2016-11-03 10:53:39.854 2656 TRACE nova.compute.manager [instance: c55287fc-d561-4c59-9378-8a1d7b8662ec] Stdout: u''
2016-11-03 10:53:39.854 2656 TRACE nova.compute.manager [instance: c55287fc-d561-4c59-9378-8a1d7b8662ec] Stderr: 'mkfs.ntfs: \xe6\xb2\xa1\xe6\x9c\x89\xe9\x82\xa3\xe4\xb8\xaa\xe6\x96\x87\xe4\xbb\xb6\xe6\x88\x96\xe7\x9b\xae\xe5\xbd\x95\n'
2016-11-03 10:53:39.854 2656 TRACE nova.compute.manager [instance: c55287fc-d561-4c59-9378-8a1d7b8662ec]
2016-11-03 10:53:39.856 2656 INFO nova.compute.manager [req-8753563e-2e77-4393-b915-07b00441dfa9 89df706334e742aba6127aba7cdb95c8 225bfd101cc643048accb43d73e47fb0 - - -] [instance: c55287fc-d561-4c59-9378-8a1d7b8662ec] Terminating instance
2016-11-03 10:53:39.858 2656 INFO nova.virt.libvirt.driver [-] [instance: c55287fc-d561-4c59-9378-8a1d7b8662ec] During wait destr
oy, instance disappeared.
2016-11-03 10:53:39.858 2

错误主要是这条命令失败mkfs -t ntfs -F -L ephemeral0 /var/lib/nova/instances/_base/ephemeral_3_0706d66

查证发现有这个盘,但是失败,mkfs.ntfs命令无法使用

安装ntfsprogs-2016.2.22-1.el7.x86_64 包得到解决
从EPEL库中有这个包

你可能感兴趣的:(openstack)