Why lsblk is not reliable for repair.

Let’s walk through a simple 4 NVMe scenario to show why this happens and how to correctly identify the failed disk.

You have a server with 4 NVMe drives

[ PCIe Slot Mapping ]

+---------------------------+

| Slot A: NVMe 0 |

| Slot B: NVMe 1 |

| Slot C: NVMe 2 |

| Slot D: NVMe 3 |

+---------------------------+

On first boot, everything looks healthy:

$ lsblk

nvme0n1 931G

nvme1n1 931G

nvme2n1 931G

nvme3n1 931G

Now let’s say the drive in Slot B fails. After a reboot, the kernel renumbers the remaining devices

$ lsblk

nvme0n1 931G

nvme1n1 931G <-- used to be nvme2n1

nvme2n1 931G <-- used to be nvme3n1

At a glance, it looks like nvme3n1 is the “bad drive” because it’s missing compared to the original layout but that’s not actually true. Device names are not fixed to physical slots.

That’s the whole trap.

Linux assigns NVMe device names in the order they’re discovered at boot. If a drive disappears

The list becomes shorter

Higher numbered devices shift down to fill the gap

This is different from SATA (/dev/sdX) where naming can also shift, but NVMe changes are more common due to how PCIe enumeration works.

So if you rely only on lsblk, you may remove the wrong disk.

Here’s a practical way to confirm the correct failed NVMe drive without guesswork.

dmesg | grep -i nvme

This usually shows errors like timeouts, disconnects, or controller resets. You’ll often see which PCIe address the failed device belonged to.

Example,

nvme nvme1: I/O 8 QID 3 timeout

nvme nvme1: Failed status: 0x2002

pci0000:3c:00.0: unable to enumerate NVMe device

Note the PCI address (3c:00.0 in this example).

sudo nvme list

Healthy output:

Node SN Model Namespace Usage

/dev/nvme0n1 AB12A3CD4E Samsung PM9A3 1.92TB 1 1.92TB

After failure, the missing serial number confirms which unit is gone.

Serial numbers are your friend they don’t lie or reorder.

This is the most reliable mapping method on Linux:

ls -l /dev/disk/by-path/

Example output (abbreviated):

pci-0000:3b:00.0-nvme0 -> ../../nvme0n1

pci-0000:3c:00.0-nvme1 -> ../../nvme1n1

pci-0000:3d:00.0-nvme2 -> ../../nvme2n1

pci-0000:3e:00.0-nvme3 -> ../../nvme3n1

If the drive for pci-0000:3c:00.0 is missing, you now know exactly which slot to pull.

No guesswork. No renumbering confusion.

TL;DR for Troubleshooting NVMe Failures

lsblk is helpful, but NVMe names shift after failures and reboots

#linux #computer #computerscience

Always check:

dmesg for PCIe/NVMe errors

nvme list for serial numbers

/dev/disk/by-path/ to map device → PCIe slot

If you rely on /dev/nvmeXn1 naming alone, you’re one mistake away from pulling the wrong drive.

San Francisco
2025/11/8 Edited to

... Read moreWhen troubleshooting NVMe drive failures, it's essential to understand that device naming in Linux is dynamic and can shift depending on hardware enumeration during boot. The lsblk command, while useful for listing block devices, depends on kernel-assigned device names such as /dev/nvme0n1, /dev/nvme1n1, etc. However, these names are assigned sequentially based on the detection order at boot time and are not permanently fixed to the physical PCIe slots or slots on the server. In scenarios with multiple NVMe drives, if one drive fails or is removed, subsequent devices can shift their names downward to fill the gap left by the missing device. For example, if the drive in Slot B (originally nvme1n1) fails, after reboot, nvme2n1 and nvme3n1 may be renamed to nvme1n1 and nvme2n1. This renumbering creates confusion when trying to identify which physical drive has actually failed, leading to the risk of replacing the wrong disk. To avoid this pitfall, administrators should supplement lsblk output with additional commands and checks: 1. **Check dmesg logs for NVMe errors:** Running `dmesg | grep -i nvme` shows kernel messages including I/O timeouts, device enumeration failures, and PCIe addresses associated with the failed device. These logs highlight which PCIe slot corresponds to the failed hardware. 2. **Use `nvme list` to view device serial numbers:** This command lists all detected NVMe devices alongside their serial numbers and metadata. After a failure, missing serial numbers can confirm which drive is absent, giving a more reliable identification than device names alone. 3. **Map devices with `/dev/disk/by-path/` links:** These symbolic links associate device nodes with their exact PCIe addresses, bridging the gap between logical device names and physical hardware locations. This is the most dependable method to confirm the exact slot of a failed NVMe drive. Together, these steps offer a comprehensive approach to safely and accurately troubleshoot NVMe drive issues in Linux environments. Relying solely on lsblk is risky due to the dynamic renaming caused by PCIe enumeration and drive failures. Instead, combining kernel messages, device serial numbers, and PCIe path mappings ensures administrators correctly identify and replace the faulty drive without guesswork or costly errors.

Related posts

Reliable cars for young Adults
#reliablerides #cars #newcar #toyotacamry #honda
Chantel

Chantel

1170 likes

Most reliable and funny quotes pt 2
#funnyquotes #memequotes #relatible
Ava 🎀👛🩰

Ava 🎀👛🩰

3404 likes

#stitch with @Eli Joseph🌞💿 paid off and reliable…
Tommy Martin MD

Tommy Martin MD

3921 likes

A gray Honda sedan is parked at night in front of a Honda dealership, with text overlays asking 'What's a reliable First Car To buy???' and 'Should I buy old or New'.
What’s a reliable first car to buy?
Going off my previous #letschat post. What’s a good car to consider? Should I buy new or used? What’s a good goal amount? $5000? $10,000? How much way your first car? How’d you buy it? If I’m lucky hopefully my dad will come across a car in shop that a customer is selling! ( My dad owns a
Endia 🎀

Endia 🎀

783 likes

Top 2 most reliable cars!✨
When it comes to reliable cars, Honda and Toyota are the names that stand out. These vehicles have earned their reputation for dependability, making them a smart choice for anyone seeking a worry-free driving experience. Whether you're commuting to work or embarking on a cross-country adven
Mr. EL creates

Mr. EL creates

92 likes

A woman stands at a gas pump displaying "20.00" and "6.252 Gallons," with text overlay "reliable cars for girls who don't know anything abt cars." The pump also shows fuel prices and ethanol content.
A collage of Hyundai Elantra cars, including black, white, and blue models, with interior and exterior shots. Text describes the Hyundai Elantra as stylish, easy to drive, affordable, and giving modern, luxury vibes.
A collage of Mazda3 cars, featuring interior views, a white model with a gold bow, a dark gray model, and a black model. Text describes the Mazda3 as cute, classy, super reliable, and turning heads effortlessly.
RELIABLE CARS 🥰🤌💋💋 .
Reliable cars for girls who know nothing about cars 🚗 🤩🤏🏾🤏🏾🩷💅🏾 . #baddiecars #girlslovecars #beautifulcars #reliablecars #cars
Keyy

Keyy

43 likes

A woman stands at a gas pump, which displays gas prices and gallons. An overlay reads 'reliable cars for girls who don't know anything abt cars', with Lemon8 branding.
A collage of four images featuring Honda Accord cars, including a woman with a black Accord, a silver Accord, an interior view, and a light blue Accord with keys, described as reliable, stylish, and easy-to-drive.
A collage of four images showcasing Lexus IS cars, including interior views, a silver Lexus with a red bow, a white Lexus, and a black Lexus, described as classy, sporty, and super reliable.
Reliable Cars 🚘 🌸✨
#reliablecars #reliablebrand #gassaver #cars #reposts @Bby Wynter
𝓚𝓪𝓽𝔂 💋

𝓚𝓪𝓽𝔂 💋

12 likes

The image shows a person's feet in white sneakers on a dark gym floor, with weights in the background, introducing "Weird manager moves that made me the most reliable leader."
An indoor scene with warm lighting, a wooden table, and a plant, illustrating the fourth tip: protecting a weekly "thinking block" for strategic decisions.
A white coffee cup on a saucer next to a laptop, illustrating the third tip: taking responsibility by saying "that was my call" when things went wrong.
How I became a reliable manager 🙌
#productivitytools #aitoolsforbusiness #aiassistant #adhdtips #productivity
Work Cheat Code

Work Cheat Code

3 likes

A person wearing a black t-shirt with a 'CarsNus' logo, overlaid with a red box stating 'The 5 Most Reliable Car Brands in the USA for 2026'. Blurred yellow cars are visible in the background.
A black Toyota sedan is parked in front of a dark wall, with a large 3D Toyota logo in the foreground. The word 'Toyota' is displayed prominently twice above the car.
A dark blue Subaru sedan is presented against a black and white background featuring the 'Subaru' logo. The car is shown from a front-three-quarter angle.
The 5 Most Reliable Car Brands in the USA for 2026
The 5 Most Reliable Car Brands in the USA for 2026 #vehicles
carsnus_com

carsnus_com

14 likes

How I became a reliable boss 🙌
#productivitytools #aitoolsforbusiness #aiassistant #adhdtips #productivity
Work Cheat Code

Work Cheat Code

5 likes

A teal BMW X6 M with striking gold wheels is parked outdoors under a blue sky with clouds. The car's front-right side is prominently featured, with the driver's door slightly open. The image is titled "How to Flip Cars for Maximum Profit," visually representing the article's topic.
How to Flip Cars for Maximum Profit
#flipmycar #car #wheelrefinishing #wheelrepair #businesstips #carsales #turo #blogger SethFiorre.com/maximum-profit-car-flipping-how-to/ The Dos and Don’ts of Flipping Cars for Maximum Profit Flipping cars can be an exciting and profitable venture when done strategically. W
Seth_Fiorre

Seth_Fiorre

4 likes

It’s hard not to love a reliable bag factory 🥰🫶
Have you ever come across a bag factory so good you just can’t ignore it 💕 I did—and it’s honestly amazing.The workers are well-organized, and you can see bags coming to life step by step.No matter what style you want,they can bring it to reality. For anyone building a bag brand,this is such a hu
Factory bags

Factory bags

10 likes

Best SSD Repair Tools for Windows | Fix SSD Errors
Looking for a reliable SSD repair tool to fix corrupted sectors, firmware issues, or bad blocks? This video covers the best free and paid tools to repair, optimize, and monitor your SSD’s health. #SSDRepairTool #FixSSD #SSDError #SSDHealth #WindowsTools #DiskRepair #DataRecovery #TechTutori
tech hu

tech hu

1 like

Reliable truck tires manufacturer 🌟
🚛🚚high performance commercial tires—Proven Market Feedback! Contact us today for pricing and details. Let’s get your trucks rolling! 🌍 #TruckTires #HeavyDuty #commercialtires #trucking #truckdriver
AKA_trucktires_kayla

AKA_trucktires_kayla

0 likes

🚗 Need an Auto Repair Shop You Can Trust?
Not all auto repair shops are created equal! Here’s what to look for—and why Precision Auto Body Collision in Hawthorne, CA should be your top choice. Finding the right auto repair shop can feel overwhelming, but it doesn’t have to be. Here are 3 key tips to help you choose the best: 1️⃣ Cert
precision.autobodycollision

precision.autobodycollision

2 likes

Can’t find a reliable freight forwarder? Sometimes that’s on you!
Can’t find a reliable freight forwarder? Sometimes that’s on you! #amazonfbashipping #amazonfba #chinashippingagent #shippingfromchina #freightforwarder #ddpshipping #chinafreightforwarder
Jason_Worryless

Jason_Worryless

0 likes

A silver 2020 Honda CR-V EX is parked outdoors, with text overlay stating "RELIABLE AND PERFECT FOR WINTERTIME" and "ZAG ZAG WWW.ZAGmotors.com". Festive confetti-like elements are scattered on the ground.
The interior dashboard of the Honda CR-V shows the steering wheel with a Honda logo, digital instrument cluster, and an infotainment screen displaying "Please connect a device to begin using this feature."
A side view of the silver 2020 Honda CR-V EX parked in an outdoor lot, showcasing its exterior design and wheels against a clear blue sky and bare trees.
Reliable and perfect for wintertime
ZAG Motors Everett looking for a reliable vehicle for this winter? this 2020 Honda CR-V EX is perfect for you. #honda
ZAG Motors

ZAG Motors

10 likes

Is 99$’s wholesale bazaar really reliable!
Are you guys looking for the perfect bag for fall and winter?My favorites for this season are crimson,burgundy,brow and black. The brand I prefer is LV because her main colos are more in line the season and are mesmerizing! #bags #lv #fashion
hgohao-shop

hgohao-shop

104 likes

HERE’S WHY 👇🏻👇🏻👇🏻👇🏻
✖️ “No days off” Why it’s misleading: This glamorizes overtraining and ignores how vital rest and recovery are for muscle growth, hormone balance, and nervous system health. What’s true instead: → Progress requires rest. Your muscles repair, your body resets, and your stress levels recalibr
killitwithkenz

killitwithkenz

4 likes

OEM/ODM Mattress Toppers | Your reliable factory i
OEM/ODM Mattress Toppers | Your reliable factory in China #b2bwholesale #oembedding #beddingfactory #mattresstopper #homebedding
Zofia

Zofia

0 likes

Part 3 - Can't find a reliable freight forwarder? Sometimes that's on you!
Part 3- Can't find a reliable freight forwarder? Sometimes that's on you! #amazonfbashipping #amazonfba #chinashippingagent #shippingfromchina #freightforwarder #ddpshipping #chinafreightforwarder
Jason_Worryless

Jason_Worryless

0 likes

✨ Give Your Space the Clean It Deserves! ✨ Looking for a reliable, profession
Lauris30620

Lauris30620

18 likes

Reliable basics in my capsule wardrobe
A capsule wardrobe isn’t about owning less — it’s about owning smarter. These are the pieces I reach for weekly because they always deliver polish and ease. A crisp Ralph Lauren Oxford sets the tone, layered with a soft Quince trench and my go-to suede work bag for that effortless, “pulled-toget
Bindi Dhaduk

Bindi Dhaduk

22 likes

Most reliable…
#dadjokes #funnyjoke #momjokes #justajoke
Deersusan13

Deersusan13

32 likes

Reliable Nurse Tutor for BSN, MSN and DNP
Hello nursing students 👋🏻❕ #fyp #capellauniversity #nursingstudent #nursingschool #nursestudent
Skyler Fricks, RN

Skyler Fricks, RN

1 like

Ole reliable!
The lemon muted my original audio, per usual 😀 These are the Viva lash clusters by AiryCute🖤 https://www.tiktok.com/t/ZP8h7JoXK/
Jebstank

Jebstank

60 likes

1T Tubular Sterilizer – Reliable & Efficient
1T Tubular Sterilizer – Reliable & Efficient, Protect Your Product #Retort #UHT #CIP #Refrigerationtank #Mixingtank #Reactionkettle
bentuoPenny

bentuoPenny

0 likes

Gutter drainage repair
Making solid progress on today’s gutter install. Old system removed, fascia checked, and new gutters going up nice and level to ensure proper drainage. Clean lines, secure hangers, and attention to detail—because gutters aren’t just about looks, they protect your home from water damage. Stay tune
Benny

Benny

1 like

Reliable Tenant Seeking Home/Apartment
Hello, I’m Christiana … a private property owner with a selection of affordable, well-kept houses and apartments for rent. ✅ I accept both Section 8 and non-Section 8 vouchers. ✅ Requirements: Ability to pay your portion of rent and no arrest record related to drug activity. ✅ Utilities included
AFFORDABLE HOMES & PROPERTY🏠

AFFORDABLE HOMES & PROPERTY🏠

17 likes

A car lot under a cloudy sky, featuring an "EAGLE" sign and several parked cars. The text overlay "First car for girl?" is prominently displayed, relating to the article's question about a reliable first car.
What‘s a good reliable first car?
I just got my license and wanted to buy a safe reliable car because of my fear of getting into crash (it's been a fear since childhood longggg story) and any suggestions or driving tips will be highly appreciate. #AskLemon8
Claire💌

Claire💌

62 likes

My easy and reliable sourdough recipe!! 🍞
Here is my go-to sourdough recipe! It’s easy to do and so delicious 😋 Step 1: Make the Dough - in a large mixing bowl (i like my pyrex from target) mix together ingredients until shaggy dough forms 💧430g warm water 🌾560g flour (i use all-purpose) 🫙200g soughdough starter 🧂16g salt - Le
aedolly

aedolly

35 likes

Most Reliable LLM Network for AI Applications!
Most Reliable LLM Network for AI Applications! . . #ai #artificialintelligence #mira #network
BlockHash Podcast

BlockHash Podcast

1 like

How to make your auto reliable
#BlackBetty Your Mom's Place
Hunter Condon

Hunter Condon

3 likes

Looking for reliable bike parts supplier?We provide full range of bicycle access
Welcome everyone, feel free to inquire about wholesale. #bike
pikeyesong

pikeyesong

1 like

Reliable Remote Support: Access Your Devices ease
Looking for a safe and reliable way to manage devices remotely? With AnyViewer remote support, you can access computers or mobile devices with ease. #remote #support #computer #access #solution
RedFFTech

RedFFTech

1 like

See more