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

About nvme disk #989

Open
wjz304 opened this issue May 14, 2024 · 0 comments
Open

About nvme disk #989

wjz304 opened this issue May 14, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@wjz304
Copy link
Contributor

wjz304 commented May 14, 2024

通过 ls -ld /sys/block/nvme* 可以查看 nvme 的 PCI 路径,一般会有以下2种结果,

# pci0000 和 nvme 之间只有一层,这种适用于所有 DT 的型号.
root@test:~# ls -ld /sys/block/nvme*
lrwxrwxrwx 1 root root 0 May 14 07:14 /sys/block/nvme0n1 -> ../devices/pci0000:00/0000:00:03.0/nvme/nvme0/nvme0n1
lrwxrwxrwx 1 root root 0 May 14 07:14 /sys/block/nvme1n1 -> ../devices/pci0000:00/0000:00:04.0/nvme/nvme1/nvme1n1

# pci0000 和 nvme 之间有多个层,这种适用于 DS918+ RS1619xs+ DS419+ DS1019+ DS719+ DS1621xs+ 型号.
root@test:~# ls -ld /sys/block/nvme*
lrwxrwxrwx 1 root root 0 May 14 20:37 /sys/block/nvme0n1 -> ../devices/pci0000:00/0000:00:16.0/0000:0b:00.0/nvme/nvme0/nvme0n1
lrwxrwxrwx 1 root root 0 May 14 20:37 /sys/block/nvme1n1 -> ../devices/pci0000:00/0000:00:17.0/0000:13:00.0/nvme/nvme1/nvme1n1

# 如果 不是 pci0000,则所有型号均不可见,
root@test:~# ls -ld /sys/block/nvme*
lrwxrwxrwx 1 root root 0 May 14 07:14 /sys/block/nvme0n1 -> ../devices/pci0001:00/0000:00:03.0/nvme/nvme0/nvme0n1
lrwxrwxrwx 1 root root 0 May 14 07:14 /sys/block/nvme1n1 -> ../devices/pci0001:00/0000:00:04.0/nvme/nvme1/nvme1n1
@wjz304 wjz304 added the documentation Improvements or additions to documentation label May 14, 2024
@RROrg RROrg deleted a comment from github-actions bot May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant