Questions tagged [nvme]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

Hotswapped NVMe drives show in lspci but not in lsblk

I'm messing around with NVMe hotswap on my Oracle X8-2L. I have a number of NVMe drives that are connected to the server before boot and then a number of NVMe drives that will be connected after the ...
0 votes
0 answers
10 views

GRUB2 serial console issues on NVMe-based pc

I want to interact with GRUB through a usb-to-serial converter. I was able to achieve this on my laptop by using this list of commands in grub's cli: insmod nativedisk #to not loose drive information ...
  • 101
0 votes
0 answers
15 views

TB3 NVMe SSD enclosure shows up if connected on boot, but not when hot-plugging

I recently purchased an ACASIS NVMe SSD thunderbolt enclosure (Intel JHL7540 chipset). Running on a Intel 12th gen framework laptop, the device shows up in fdisk -l and similar when the device is ...
0 votes
1 answer
44 views

Installing ArchLinux in VmWare Fusion on M1 Mac

I'm following along in this article to install arch in vmware on my m1 mac I'm able to do fdisk just fine, and get the following partition table: I then create the filesystem for partition 2 per the ...
0 votes
0 answers
147 views

Conflict between linux kernel and nvme drives. Faulty power saving mode enabled? ("nvme_core.default_ps_max_latency_us=0 pcie_aspm=off" didn't help)

I have two barely identical servers. Both with: BIOSTAR GTA690 motherboard Intel CPU Same amount of RAM & disk layout PVE distribution (debian based hypervisor). Kernel 5.19.17-1-pve. I have ...
  • 218
1 vote
1 answer
78 views

Swap logical device names of two NVME SSD drives

Is it possible to swap logical device names of two NVME SSD drives installed in a laptop (Lenovo Legion 5 Pro 2022) without phisically swapping their port positions? I would like the current /dev/...
  • 13
0 votes
0 answers
117 views

Isolating I/O issue with NVME or hardware?

Hardware: Samsung 980 PRO M.2 NVMe SSD (MZ-V8P2T0BW) (2TB) Beelink GTR6, with the SSD in the NVMe slot Since the hardware arrived, I've installed Ubuntu Server on it as well as a bunch of services (...
  • 101
0 votes
0 answers
34 views

Stuck at shutdown after an ssd upgrade

I have replaced my sata ssd with an nvme one and after I installed the current stable debian 11, it turns out that my laptop doesn't shutdown. What happens is I can see the systemd output saying that ...
0 votes
0 answers
151 views

Ubuntu 22.04 read performance of external USB 3.1 NVMe SSD case only 5gbit/s, but should be 10gbit/s

I got: Dell XPS 7390 with one shared Thunderbolt 3.0 / USB-C port capable of 10gbit/s NVMe Samsung SSD 970 EVO 2TB capable of much higher read speed than 10gbit/s NVMe to USB-C ICY BOX IB-1807MT-C31 ...
  • 1
0 votes
1 answer
214 views

What is the impact of different Linux I/O APIs on performance benchmarking of NVMe SSDs? (libaio vs SPDK vs io_uring)

I am benchmarking NVMe SSDs on my Linux server, with the aim to achieve the IOPS, BW and Latency values as mentioned in the product specifications. I'm using FIO as workload generator, and used libaio ...
0 votes
0 answers
94 views

How to get NVME disk back after deleting all namespace?

I want to change the size of namespace, use the command: nvme delete-ns XXXXXX -n 1 For some reason, I reboot the computer without create any namespace, after that I can't find the nvme drive. root@...
1 vote
0 answers
93 views

NVMe SSD: Should fs block size be the physical reported sector or the logical one?

So, I have an NVMe drive which reports the following: NAME ALIGNMENT MIN-IO OPT-IO PHY-SEC LOG-SEC ROTA SCHED RQ-SIZE RA WSAME nvme0n1 0 131072 131072 32768 4096 0 ...
0 votes
1 answer
189 views

Where to place loader.conf on an EFI system partition with the GRUB bootloader?

I'm attempting to alias /dev/nvmeX as /dev/nvdX on bootup through the following guide: https://www.freebsd.org/cgi/man.cgi?query=nvd I would like to know where the loader.conf file with the following ...
1 vote
1 answer
127 views

How would a Linux driver call UEFI firmware presented functionality?

For work I'm learning more about computer architecture and I just finished learning about ACPI. From talking to some other engineers my understanding for something like NVMe is that the OEM is going ...
0 votes
0 answers
69 views

Installing Ubuntu on the NVMe flash drive of the April 2016 MacBook 12" (A1534)

First I must say I'm kind of a newbie with Ubuntu install on macbook, i've tried and succeeded installing it on an old macbook air, but i can't seem to succeed on this Macbook 12'' I've read Accessing ...
  • 1
2 votes
0 answers
89 views

Behavior of the nvme tool with respect to protection information?

Environment: Debian Bullseye, up to date at the time of writing, nvme-cli 1.12 I am totally new to NVMe and currently try to configure an NVMe SSD correctly. As far as I can tell, I don't need ...
  • 2,473
5 votes
1 answer
471 views

Linux filesystems for code-compilation, which perform best?

For the purpose of compiling code on fast hard drives (NVME for example), is there a clear winner for code compilation or are the popular file systems roughly comparable? (EXT4, XFS, BTRFS, ZFS)? I'd ...
  • 1,003
1 vote
0 answers
275 views

what cmdid : 0x10" and "status_field : 0x2002" mean from nvme cli

I want to know about my nvme health: firstlove@chenli ~> sudo smartctl -A /dev/nvme0n1p3 smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.0.1-arch2-1] (local build) Copyright (C) 2002-22, Bruce Allen, ...
  • 327
1 vote
1 answer
334 views

Clonezilla generates disk clone with wrong/unupdated UUIDs

[original question in https://stackoverflow.com/questions/73959107/clonezilla-generates-disk-clone-with-wrong-unupdated-uuids] I recently used clonezilla (disk-to-disk) - both stable and alternative ...
0 votes
0 answers
203 views

MDADM Nvme raid Slower than traditional HDD, need enlightenment

I have setup server about 20 days ago with new nvme, before setup raid mdadm the two Nvme samsung 980 pro 1TB i test bench have IO speed average 1.5G/s each nvme, but after creating raid 1, IO nvme ...
  • 11
0 votes
0 answers
155 views

what is the right way of mounting an ext4 formatted ssd or nvm?

I have mounted 2 external disks like this shown below (in fstab) UUID=e3831bf2-d85d-459f-8091-4af1d3c6ee41 /mnt/ssd ext4 defaults 0 1 UUID=38cebf19-8cea-40ce-9014-d6f2f9d884ac ...
0 votes
0 answers
282 views

NVME SSD fails to appear after reboot, but OK after power cycle (resume failure)

I have recently upgraded my xubuntu system from version 21.10 to 22.04. The upgrade went smoothly (no obvious errors) but my system now fails to reboot/restart. I have to power cycle it and then it ...
4 votes
0 answers
1k views

NVMe errors diagnostics

I would like to understand why I get the below mails about S.M.A.R.T. of my new NVMe drive. DMESG $ dmesg --ctime | grep -i nvm [Mon Aug 8 10:48:31 2022] nvme nvme0: pci function 0000:3d:00.0 [Mon ...
1 vote
0 answers
99 views

O_DIRECT access to mmap-ed dmam_alloc_coherent() problems

I'm looking for ideas to get over this hurdle. I have a linux kernel module that takes in high rate data from the PL side of a Xilinx Zynq MPSOC device. The kernel module is based off dma-proxy ...
1 vote
0 answers
189 views

why nvme device name is nvme1c1n1, not nvme0n1?

I got this message: systemd-udevd[3364]: nvme1c1n1: Failed to get device name: No such file or directory when doing lsblk, there is no nvme1c1n1, only nvme1 I didn't change/create a partition on this ...
  • 641
0 votes
0 answers
81 views

Getting NVMe namespace size as 0 always?

I have sending nvme namespace identify command to get size of device but getting 0 always. #define IDENTIFY_LEN 0x1000 #define NAMESPACE_ID 1 int main(int argc, char* argv[]){ if(argc < 2){ ...
0 votes
1 answer
139 views

Sfdisk NVME issue, No such device or address

I have custom LFS installer which contains sfdisk, I am trying to add support for NVME disks on it. When I make partitions with sfdisk on a normal SATA disk, things go as expected but when I do the ...
  • 101
0 votes
0 answers
264 views

Lower NVME performance on Debian

I have a NVME Reletech P400 SSD 512GB installed in my machine and I found out that under Linux (Debian) it performs significantly worse than under Windows. I used Cross Platform Disk Test. Here it's ...
  • 37
0 votes
0 answers
113 views

Why smartd can't find my nvme device

greentea smartd[1147]: Configuration file /etc/smartd.conf was parsed, found DEVICESCAN, scanning devices greentea smartd[1147]: Problem creating device name scan list greentea smartd[1147]: In the ...
  • 641
2 votes
1 answer
1k views

I don't see results of a self test of an SSD in smartctl

I want to test my SSD. It seems that I can start a self test with smartctl, but when I try to display test's results, I don't see anything. My SDD's model is PNY CS3030 250GB SSD: $ lsblk -d -o name,...
1 vote
1 answer
951 views

Is there a simple way to see which PCI device my NVME is?

I have a U.2 SSD, which shows up as nvme1n1 in lsblk: root@eris:~# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT nvme0n1 259:0 0 3.6T 0 disk ├─nvme0n1p1 259:1 0 476M 0 part /...
  • 535
0 votes
1 answer
82 views

Why Disk stats show many read operations when I measure NVME squance write with fio and mmap as ioengine

Here is my fio configure and report: # cat fio-write.fio [global] name=fio-seq-writes filename=test rw=write bs=1M direct=0 numjobs=1 [file1] size=1G ioengine=mmap iodepth=1 # fio --version fio-3.30 ...
  • 327
0 votes
0 answers
75 views

I’ve overwritten some Windows files with a Linux installation. Is recovery an option?

It’s about a movies' worth of footage and some other related project files, so fairly large. It was on a 1TB NVMe drive that I have installed ElementaryOS on. Was Windows 11 Home. Both 64 bit. Is ...
  • 113
1 vote
0 answers
302 views

udev rules only running on first plug-in but not re-plug?

I'm not sure why udev rules only trigger on first plug-in of a USB3 NVME enclosure but not any follow-up plugins. If i run udevadm trigger then the rules run again as expected. The goal of the rules ...
  • 121
1 vote
0 answers
174 views

NVMe hotswap / hotplug with linux and amd working?

Has someone got nvme hostwap/hotplug working on linux with amd? We use RS500A-E10-RS12U (ASUS) and hotplug / hotswap is not working. If I remove devices it wont disappear in lsblk and If I add devices ...
  • 1,261
3 votes
1 answer
1k views

linux scsi: Unit Not Ready, Sense Key, Hardware Error

I have attached a USB device which is an enclosure for an NVMe M.2 storage unit. Both devices, the enclosure and the media, had been known to be in working order during their last use. When I connect ...
0 votes
2 answers
102 views

How do I reference nvmeXnYpZ partitions?

I am trying to install NixOS on my MacBook following the manual (https://nixos.org/manual/nixos/stable/index.html#sec-installation-partitioning-formatting) and I am stuck at the partitioning/...
0 votes
0 answers
189 views

Running computations from SWAP without complete performance drop - Discussion on NVMe speeds and if they ever come in reach for RAM replacements

I have been setting up my Linux machine (currently pop-os) in several ways recently to upgrade my system to demands of specific data analysis done in R. In brief: The Data set I am working on is ...
2 votes
0 answers
1k views

What caused nvme QID timeout?

Sometimes I see the nvme error logs: nvme nvme1: I/O 332 QID 1 timeout, aborting nvme nvme1: Abort status: 0x0 nvme nvme1: I/O 332 QID 1 timeout, reset controller nvme nvme1: I/O 0 QID 0 timeout, ...
  • 641
0 votes
1 answer
185 views

Switching a M.2 NVMe card from ahci (SATA) driver to nvme driver on Linux

On a very old laptop (HP 9470m), I have a M.2 NVMe card (WD Blue™ SN550 NVMe™ SS) passing through a NVMe -> SATA converter card to connect to the laptop, as the laptop has no NVMe support. With a ...
1 vote
1 answer
697 views

fstrim: /: FITRIM ioctl failed: Structure needs cleaning

On my Debian sid with custom 5.17.0-rc1 kernel installed on my new (< 1 month) SSD nvme WD SN850 my root partition is formatted as f2fs(v 1.14) I get fstrim: /: FITRIM ioctl failed: Structure needs ...
3 votes
1 answer
3k views

Using GRUB to bootstrap Windows10 from a PCIe NVMe SSD

I have a computer about ten years old, and I would like to install a PCIe M.2 NVMe SSD in it. Unfortunately, the BIOS cannot boot from the SSD, because it doesn't know how to boot from a PCIe SSD. ...
3 votes
1 answer
613 views

How to understand the output of the nvme command?

To optimize performance of an SSD, the Arch wiki says to run nvme id-ns /dev/nvme0n1 and evaluate the output, specifically of the last lines starting with lbaf. If there's more than one lbaf entry, ...
5 votes
1 answer
4k views

How to check / change NVME HMB on Linux?

New DRAM-less NVME SSDs use a portion of the system memory as HMB (Host memory buffer). How can I check / change NVME HMB on Linux? (to verify it is working correctly or alter its behavior)
0 votes
1 answer
166 views

Recovering Data from 2 NVMe SSDs that Were Setup Using LVM

I have two 1TB NVMe SSDs that was setup using LVM in a manner where the two drives were combined to make up (roughly) one single 2TB logical volume. The laptop that booted from these drives has been ...
  • 4,693
1 vote
1 answer
688 views

Clonezilla: cannot have overlapping partitions

I am trying to image my Ubuntu disk using Clonezilla and it fails because I get an error saying: error cannot have overlapping partitions Below is how my disk is set up and the lsblkoutput: NAME ...
  • 519
3 votes
0 answers
736 views

Linux-image generates samsung nvme errors

After upgrade from kernel 5.10 to 5.14 and now to 5.15.3. There are errors increased in smart after every boot in Samsung 970 Evo nvme disk (and most likely others Samsung's nvmes) like this one: ...
  • 322
0 votes
1 answer
65 views

A bit of Bash help with my elif logic on my script

So what I have here is part of my script that is used to read the pcie lanes on the boards to help understand what NVMe's are up and running without having to manually check each drive. This works for ...
0 votes
0 answers
81 views

grub2 and duplicated drives issue

My machine is an UEFI enabled ubuntu 20.04, with three partitions: /dev/nvme0n1p1 boot (grub2+initrd+kernel) /dev/nvme0n1p2 OS /dev/nvme0n1p3 home I'm in a situation, that from time to time I need to ...
  • 71
1 vote
2 answers
509 views

How can I find out what Gen of NVME my machine supports (what PCI express version)?

Looking at Amazon there is PCIe Gen 3 NVME and PCIe Gen 4 NVME for sale. I don't see this even mentioned on the Wikipedia page for NVM Express. Is there a method to query what the system I am on ...