Skip to content
This repository has been archived by the owner on Oct 8, 2023. It is now read-only.

Mr #21

Closed
aagi-girish opened this issue Oct 8, 2021 · 10 comments
Closed

Mr #21

aagi-girish opened this issue Oct 8, 2021 · 10 comments
Assignees

Comments

@aagi-girish
Copy link

Hi,
We have run the below command and it runs without any error.
./poseidonos-cli device scan

But, the below command does not fetch any NVMe from the hardware.
./poseidonos-cli device list --unit

Checked the PoseidonOS is running by the command below;
ps -ef | grep poseidonos | grep -v grep

The below command shows two drives in the hardware:
fdisk -l | grep nvme

Please help!!!
Thanks in advance

@so931 so931 self-assigned this Oct 8, 2021
@so931
Copy link
Collaborator

so931 commented Oct 8, 2021

Hi,
I think you are missing run script/setup_env.sh to bind userspace driver.
can you check this?

@aagi-girish
Copy link
Author

Hi,
We ran the "script/setup_env.sh" and then scanned for the available disks. But the result of bin/poseidon-cli device list is as attached below.
image

@so931
Copy link
Collaborator

so931 commented Oct 11, 2021

Did you run poseidon os?
Before run poseidon-os cli, need to run the poseidonos first.

@aagi-girish
Copy link
Author

Thanks. But the NVMe was not listed yet. Any suggestions would be of great help.

image

image

@so931
Copy link
Collaborator

so931 commented Oct 12, 2021

Can you attach the log "/var/log/pos/pos.log"?

@aagi-girish
Copy link
Author

Attached. Thanks.
pos.log

@so931
Copy link
Collaborator

so931 commented Oct 12, 2021

Currently, only 512 sector size device is supported in poseidonos.
You can check your device's sector size use the following steps.

  1. make udev_uninstall
  2. lib/spdk/script/setup.sh reset
  3. apt install nvme
  4. nvme id-ns -H /dev/nvme0n1 | grep LBA Format.

Can you share the result of above command?

@aagi-girish
Copy link
Author

Thanks. The output you requested is provided below.
image

@so931
Copy link
Collaborator

so931 commented Oct 12, 2021

You can change sector size using below command.
$ sudo nvme format /dev/nvme0n1 -l 0
$ sudo nvme format /dev/nvme1n1 -l 0
And also, you need a minimum of 3 same NVMe devices to create an array.

@aagi-girish
Copy link
Author

Thanks. It worked. Hope to see compatibility for sector size 4k as well.
image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants