Skip to content
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

Open
Fightzzw opened this issue Aug 5, 2020 · 4 comments

Comments

@Fightzzw
Copy link

Fightzzw commented Aug 5, 2020

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.

@Fightzzw
Copy link
Author

Fightzzw commented Aug 5, 2020

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.

@Fightzzw
Copy link
Author

Fightzzw commented Aug 5, 2020

we look the dmesg, it indicates following messages:
root@guest:~# dmesg | grep infiniswap
[ 4289.940582] IS_session_make_group, name=infiniswaphost0
[ 4388.690510] IS_device_make_group, name=infiniswap0
[ 4388.690541] In IS_create_device(), dev_name:infiniswap0
[ 4388.691594] IS_register_block_device, dev_name infiniswap0
[ 4388.692057] failed to register IS device infiniswap0 ret=-1
[ 4388.692061] failed to create device infiniswap0

@sctb512
Copy link

sctb512 commented Oct 22, 2020

hello, I meet the same problem, are you fixed it?

@sctb512
Copy link

sctb512 commented Oct 23, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants