Bug 41446 - Отсутствует драйвер ядра nvme для un-def
Summary: Отсутствует драйвер ядра nvme для un-def
Status: NEW
Alias: None
Product: Branch p9
Classification: Distributions
Component: kernel-image-un-def (show other bugs)
Version: не указана
Hardware: x86_64 Linux
: P5 normal
Assignee: Anton V. Boyarshinov
QA Contact: qa-p9@altlinux.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-26 18:12 MSK by Evgeny Shesteperov
Modified: 2021-11-26 19:45 MSK (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evgeny Shesteperov 2021-11-26 18:12:31 MSK
Во время тестирования nvmetcli было замечено, что в un-def отсутствует поддержка  nvmet, однако в std-def присутствует.

Для un-def:

# uname -r
5.10.81-un-def-alt1

# systemctl start nvmet
Job for nvmet.service failed because the control process exited with error code.
See "systemctl status nvmet.service" and "journalctl -xe" for details.

# systemctl status nvmet
● nvmet.service - Restore NVMe kernel target configuration
     Loaded: loaded (/lib/systemd/system/nvmet.service; disabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Thu 2021-11-25 17:32:45 MSK; 28s ago
    Process: 4023 ExecStart=/usr/sbin/nvmetcli restore (code=exited, status=1/FAILURE)
   Main PID: 4023 (code=exited, status=1/FAILURE)

ноя 25 17:32:45 dhcxhsxitkmac nvmetcli[4023]:   File "/usr/sbin/nvmetcli", line 736, in main
ноя 25 17:32:45 dhcxhsxitkmac nvmetcli[4023]:     funcs[sys.argv[1]](savefile)
ноя 25 17:32:45 dhcxhsxitkmac nvmetcli[4023]:   File "/usr/sbin/nvmetcli", line 681, in restore
ноя 25 17:32:45 dhcxhsxitkmac nvmetcli[4023]:     errors = nvme.Root().restore_from_file(from_file)
ноя 25 17:32:45 dhcxhsxitkmac nvmetcli[4023]:   File "/usr/lib/python3/site-packages/nvmet/nvme.py", line 242, in __init__
ноя 25 17:32:45 dhcxhsxitkmac nvmetcli[4023]:     self.configfs_dir)
ноя 25 17:32:45 dhcxhsxitkmac nvmetcli[4023]: nvmet.nvme.CFSError: /sys/kernel/config/nvmet does not exist.  Giving up.
ноя 25 17:32:45 dhcxhsxitkmac systemd[1]: nvmet.service: Main process exited, code=exited, status=1/FAILURE
ноя 25 17:32:45 dhcxhsxitkmac systemd[1]: nvmet.service: Failed with result 'exit-code'.
ноя 25 17:32:45 dhcxhsxitkmac systemd[1]: Failed to start Restore NVMe kernel target configuration.

# nvmetcli 
/sys/kernel/config/nvmet does not exist.  Giving up.

# lsmod | grep nvme

# cat /proc/mounts | grep config
configfs /sys/kernel/config configfs rw,nosuid,nodev,noexec,relatime 0 0

# ls /lib/modules/5.10.81-un-def-alt1/kernel/drivers/ | grep nvme


Для std-def:

# uname -r
5.4.154-std-def-alt1

# ls /lib/modules/5.4.154-std-def-alt1/kernel/drivers/ | grep nvme
nvme

# modprobe nvmet

# lsmod | grep nvme
nvme_loop              16384  0
nvme_fabrics           24576  1 nvme_loop
nvmet                 102400  1 nvme_loop