IOError: [Errno 1] Операция не разрешена: '/ sys / kernel / config / target / core / iblock_1 / sbd / udev_path' - PullRequest
0 голосов
/ 13 ноября 2018

Возникает проблема при настройке устройств 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'

С уважением, Вера

...