IOError:[Errno 1]不允许操作:'/ sys / kernel / config / target / core / iblock_1 / sbd / udev_path'

时间:2018-11-13 18:16:45

标签: python linux python-2.7 iscsi

配置iSCSI设备时遇到的问题,出现此错误:

IOError: [Errno 1] Operation not permitted: '/sys/kernel/config/target/core/iblock_1/sbd/udev_path'

看起来像某种内核强化错误。我找不到很多建议来解决它。我当然是作为一个根。

xxxxxx:/tmp # targetcli

targetcli shell version 2.1.fb43
Copyright 2011-2013 by Datera, Inc and others.
For help on commands, type 'help'.

/backstores/fileio> cd ..

/backstores> cd block

/backstores/block> ls

o- block ...................................................................................................... [Storage Objects: 0]

/backstores/block> create sbd /dev/cluster/sbd

Traceback (most recent call last):


     File "/usr/bin/targetcli", line 121, in <module>
        main()
      File "/usr/bin/targetcli", line 111, in main
        shell.run_interactive()
      File "/usr/lib/python2.7/site-packages/configshell_fb/shell.py", line 894, in run_interactive
        self._cli_loop()
      File "/usr/lib/python2.7/site-packages/configshell_fb/shell.py", line 723, in _cli_loop
        self.run_cmdline(cmdline)
      File "/usr/lib/python2.7/site-packages/configshell_fb/shell.py", line 837, in run_cmdline
        self._execute_command(path, command, pparams, kparams)
      File "/usr/lib/python2.7/site-packages/configshell_fb/shell.py", line 812, in _execute_command
        result = target.execute_command(command, pparams, kparams)
      File "/usr/lib/python2.7/site-packages/configshell_fb/node.py", line 1406, in execute_command
        return method(*pparams, **kparams)
      File "/usr/lib/python2.7/site-packages/targetcli/ui_backstore.py", line 409, in ui_command_create
        so = BlockStorageObject(name, dev, readonly=readonly, wwn=wwn)
      File "/usr/lib/python2.7/site-packages/rtslib_fb/tcm.py", line 670, in __init__
        self._configure(dev, wwn, readonly)
      File "/usr/lib/python2.7/site-packages/rtslib_fb/tcm.py", line 684, in _configure
        self._set_udev_path(dev)
      File "/usr/lib/python2.7/site-packages/rtslib_fb/tcm.py", line 138, in _set_udev_path
        fwrite(path, "%s" % udev_path)
      File "/usr/lib/python2.7/site-packages/rtslib_fb/utils.py", line 72, in fwrite
        with open(path, 'w') as file_fd:
    IOError: [Errno 1] Operation not permitted: '/sys/kernel/config/target/core/iblock_1/sbd/udev_path'

关于, 薇拉

0 个答案:

没有答案