Infiniswap
Infiniswap copied to clipboard
failed to create device: [Errno 1] Operation not permitted Invalid create_device operation
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.
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.
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
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.