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

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

Ava 🎀👛🩰

3202 likes

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

Tommy Martin MD

3907 likes

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

Chantel

1161 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 🎀

779 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

90 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
𝓚𝓪𝓽𝔂 💋

𝓚𝓪𝓽𝔂 💋

11 likes

He’s reliable
Whitnee✨🪩💌

Whitnee✨🪩💌

34 likes

4 Lazy tips I use to become reliable 🤜🤛
#adhdhacks #productivitytips #productivityhacks #productive #corporatejob
Corporate Hacks

Corporate Hacks

2 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

How to find reliable agent
#clothing #apparel #apparelbusiness #sourcingagent #sourcing
Monique

Monique

1 like

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

11 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

Are you looking for a reliable IPTV site that offe
fast, stable service and high streaming quality? Snoptv is the perfect choice for you, combining excellent performance and ease of use for a smooth and trouble-free viewing experience 🚀 Fast & smooth streaming ✅ Stable channels 🎥 High quality 📱 Easy to use 🔥 Reliable IPTV 🎁 Free Tri
James

James

2 likes

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

Lauris30620

18 likes

The Trust Deficit - Repair
The Trust Deficit - Repair explores the subtle, often invisible nature of true repair. Through consistency, patience, and action over words, it delves into the quiet strength of rebuilding trust. This cover symbolizes the delicate process of mending what was broken, with each stitch and tool a step
Zoey Dabrease

Zoey Dabrease

1 like

Front view of a gold 1997 Toyota Avalon XL on grass, with overlaid text detailing its features, mileage (191k), price ($1,800), and reliability for sale.
Exterior shot of the front-left side of a gold 1997 Toyota Avalon XL, parked on grass next to a sidewalk and road under a partly cloudy sky.
Exterior shot of the front-right side of a gold 1997 Toyota Avalon XL, parked on grass with residential buildings and trees in the background.
Cheap & reliable 🚗1997 Toyota Avalon XL191k milesSolid dailyRuns perfectSmooth
#ToyotaAvalon #CheapCars #BudgetCar #ReliableRide #CarDeals
Used cars for sale

Used cars for sale

2 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

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

55 likes

What’s a reliable first car to buy?
#gettoknowme #vehicle #infiniti #Q50
QuietQ50 🇬🇹🏁🏎️🥇

QuietQ50 🇬🇹🏁🏎️🥇

2 likes

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

bentuoPenny

0 likes

"Being reliable"
"Being reliable isn’t just about showing up—it’s about showing you care. Consistency builds trust, and trust is priceless. 💛 It’s okay to not have it all figured out. Save your energy, your time, and your peace for what truly matters." #viral #selflove #startnow #relatable
Paulla Mitchell

Paulla Mitchell

4 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

Looking for a reliable handbag manufacturer? 🏭
Welcome to Guangzhou Yuanhong Leather Co., Ltd. Your trusted partner for high-quality handbags. 👜 Why partner with us? ✂️ 100% In-House Production: We strictly control every step—from material cutting and stitching to QC and final packing. 🏷️ Private Label & Custom Designs: Bring your
yuanhongleather

yuanhongleather

0 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

Hondas for sale really reliable
#honda #hondaaccord #honda civic #car #fyp
Glenn autos sales

Glenn autos sales

0 likes

Good ol’ reliable
#Fighterz #DBZ #dragonballfighterz #gogetassj4 #vegeta
0verKiwi

0verKiwi

1 like

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

FUN & Reliable Cars under $10K!
#belovedblazer #springaesthetic #springaesthetic #shoppingaddict #mybucketlist #cars
Cars with Miles

Cars with Miles

83 likes

I am resilient, reliable, and relentless
I got my coffee and affirmations. Nothing can stop me now. Blessings chase me down! 🙌🏼 #Lemon8Diary #dayinmylife #aesthetic #mentalhealth #affirmations #christiangirl #study #gratitude #goals Texas #embracevulnerability
Better Brooke🩷

Better Brooke🩷

19 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

A white Nissan Sentra is parked in a lot under a sunny sky, with its front passenger door open. Text overlays ask, 'I want to know who has the most reliable vehicle' and 'WHAT IS YOUR CAR & WHAT'S YOUR MILEAGE', along with 'AskLemon8' and the user's handle.
I want to know who has the most reliable vehicle
Mines a 2025 Nissan Sentra. I bought it with 11 miles so it only has 5,000 miles right now…. My last car was a Chevy impala with 100,000 miles on it. Still ran great before I sold it. Tell me yours!! #vehicles #askquestions #AskLemon8 #fy
A

A

12 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

Ole reliable
#s10 #trucktok #chevy #fyp #projecttruck
6.2_vortec

6.2_vortec

0 likes

Reliable information is the foundation
Reliable information is the foundation of safe weight management. 💬 Chat for guidance & product support 📲 WhatsApp: +44 7464 575743 #bodytransformation #lemon8community #Lemon8 #mounjarojourney #wellnesslifestyle
Glp1markettalk

Glp1markettalk

1 like

5 Ways to Repair a USB Drive Without Formatting
Can't open your USB drive and Windows wants to format it? Discover 5 reliable solutions to repair your drive and recover your files safely. #repair #usb #format #solution
SmoothTechie

SmoothTechie

2 likes

A gray electric vehicle is charging outdoors in the rain, with an EV charger mounted on a concrete wall. The image highlights the charger's ability to function in wet conditions, with text overlay stating 'RAIN? NO PROBLEM!'.
A close-up view shows an EV charging cable securely plugged into the charging port of a white electric car. The connection appears dry and functional, demonstrating the charger's water resistance at the plug.
A close-up of the RippleOn EV charger unit, featuring a light-colored, faceted design, mounted on a brick wall. The 'RIPPLEON' logo is visible on the unit, showcasing the product's aesthetic and branding.
🌧️ Is RippleOn Reliable for Outdoor Charging? ⚡️
Testing in rainy Seattle! My charger is installed outdoors, and I was most worried about water resistance. RippleOn's IP65 rating is solid! Multiple heavy rain tests show it running perfectly; neither the plug nor the unit has any water intrusion. If you live in a rainy city, choosing a d
eliassws3ue

eliassws3ue

3 likes

Reliable Camping Flashlight
SG-G600 Super Bright Amazing Big Flashlight Model number: SG-G600 Link in bio #brightestflashlight #foryou #gadgets #tech #lamp #outdoors #fishlight #campinglight #lantern #fyp #ledlights #torch #gadgets
Sunglad Outdoor

Sunglad Outdoor

0 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

🚗 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

FineMachiningForReliableComponents
Precisionmachiningofscrewsandhydrauliccomponentswithsmoothsurfacesandtighttolerancesforindustrialapplications. #factorylife #precisionmachining #hydrauliccomponents #industrial
forworld-machinery

forworld-machinery

0 likes

What are the most reliable car brands or models?
I know Toyotas are some of the most reliable cars out there. But I don’t know anything about any other brands. Does reliability vary a lot by model or does it mostly boil down to brands? My boyfriend is looking for a car and the thing he care about most is how reliable it will be and how long it
Car Zone

Car Zone

51 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 car deal 🚗2016 Honda Civic EXClean title150k milesRuns and drives smoo
💰$7000 Reliable car deal 🚗 2016 Honda Civic EX Clean title 150k miles Runs and drives smooth Great on gas ⛽ Backup camera Bluetooth Sunroof Cold A/C Perfect daily driver. #hondacivic #usedcars #gassaver #cardeals #carsoftiktok
Used cars for sale

Used cars for sale

4 likes

Are you also looking for reliable suppliers?
#peptide #skincare #greymarket #klow #ghkcu
Ada

Ada

5 likes

See more