-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
failed to create device: [Errno 1] Operation not permitted Invalid create_device operation #22
Comments
As the README.md guides, we arrive at the step "How to Run",when we input the command "sudo ./infiniswap_bd_setup.sh", there are some errors happened. it indicates that "failed to create device: [Errno 1] Operation not permitted |
we look the dmesg, it indicates following messages: |
hello, I meet the same problem, are you fixed it? |
I have find the solution, just correct "backup_disk" to an exist disk in "install.sh". The error is caused by nbdxadm, a python script. |
As the README.md guides, we arrive at the step "How to Run",when we input the command "sudo ./infiniswap_bd_setup.sh", there are some errors happened. it indicates that "failed to create device: [Errno 1] Operation not permitted
Invalid create_device operation
".
Then we open the nbdxadm file and read the code, we find the error occurs at this place"
try:
print nbdxdevice
with open(os.path.join(device_path, 'device'), 'w') as device_file:
device_file.write(nbdxdevice)
print 123
except IOError, e:
print 'failed to create device: %s' % e
os.rmdir(device_path)
return 1
"
It seems that it could open and bulid the directory and the file device,but it can't write or modificate the file "device".
How can we solute this problem, wish you could help us.
The text was updated successfully, but these errors were encountered: