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

1153 likes

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

Tommy Martin MD

3907 likes

Reliable Cars 🚘 🌸✨
#reliablecars #reliablebrand #gassaver #cars #reposts @Bby Wynter
𝓚𝓪𝓽𝔂 💋

𝓚𝓪𝓽𝔂 💋

10 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

8 likes

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

Ava 🎀👛🩰

2974 likes

RELIABLE CARS 🥰🤌💋💋 .
Reliable cars for girls who know nothing about cars 🚗 🤩🤏🏾🤏🏾🩷💅🏾 . #baddiecars #girlslovecars #beautifulcars #reliablecars #cars
Keyy

Keyy

40 likes

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

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

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

Corporate Hacks

2 likes

🚗 Reliable & Budget-Friendly Ride Available!
🚗 Reliable & Budget-Friendly Ride Available! At Romeo Auto, we’ve got a dependable car ready for its next owner! If you’re looking for something affordable, reliable, and easy to maintain, this is a perfect choice. 🔥 2004 Toyota Corolla ✔️ 155,000 miles – well known for long-lasting reli
Romeo’s Auto Used Cars And V

Romeo’s Auto Used Cars And V

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

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

0verKiwi

1 like

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

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

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

forworld-machinery

0 likes

🚗 FOR SALE: 2016 Honda Accord – Reliable, Clean &
🚗 FOR SALE: 2016 Honda Accord – Reliable, Clean & Ready to Drive! Looking for a dependable and stylish sedan that won’t break the bank? Check out this 2016 Honda Accord with a Clean Title – one of the most trusted and fuel-efficient cars on the road! ✔️ Mileage: 124,012 miles ✔️ Title: C
Romeo’s Auto Used Cars And V

Romeo’s Auto Used Cars And V

0 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

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

Monique

1 like

🌧️ 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

$5,000 🔥2018 Ford FusionLow miles — 68kClean titleRuns perfectNo issuesReliable
#FordFusion #LowMileageCar #CarDeals #UsedCars #ReliableCar
Used cars for sale

Used cars for sale

2 likes

Affordable | Effective | Reliable
✨️There's a reason this prepoo is being hyped so hard✨️ I've seen this product promoted so much over the past couple months. Rightfully so though because it's AMAZING, but the real ones know she's been here for yeeeeaaars helping us with our healthy hair care goals!! The slip
Rae'Ven Nycole

Rae'Ven Nycole

1 like

Good ol reliable
#77decals #hondagrom #gromlife
xtra_aly

xtra_aly

3 likes

🚗 2019 Honda Civic LX Sedan 4D – Reliable, Clean &
🚗 2019 Honda Civic LX Sedan 4D – Reliable, Clean & Ready for the Road! Looking for a dependable, fuel-efficient, and stylish sedan? This 2019 Honda Civic LX is the perfect daily driver that combines comfort, reliability, and great performance. ✔ Mileage: 105,600 miles ✔ Transmission: Aut
Romeo’s Auto Used Cars And V

Romeo’s Auto Used Cars And V

2 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

51 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

He’s reliable
Whitnee✨🪩💌

Whitnee✨🪩💌

34 likes

✨ Easy Reliable Plants for Any Home 🪴
Plants add an earthy vibe to any home. Some are harder to care for than others. I’ve had my fair share of plant woes, but these are my successes! Dracaena: this plant has gone through a lot! It’s been in low light spaces, under watered, and some leaves got sick. But this little guy keeps on goin
Katrina Nicole

Katrina Nicole

17 likes

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🏠

18 likes

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

3 likes

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

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

BlockHash Podcast

1 like

What are some reliable side hustles?
I’m looking for some creative side hustles that make some decent cash. Does anyone have suggestions? #sidehustles #MoneyTips #whatsyourhustle #tips 💵
Sophie

Sophie

2 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

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

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

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

How secure and reliable is EEganizer?
#embrodiery #embroideryforbeginners #embroiderydesign #machinembroidery
EEganizer

EEganizer

0 likes

Reliable supplier? Where?
Are you still looking for your supplier with this way? #factory #chinafactory #import #sourcing #manufacturer
Landy.finds

Landy.finds

0 likes

Reliable, compassionate in-home support for senior
Reliable, compassionate in-home support for seniors whose families want peace of mind. 📞 402-804-3932
Assiana Nkoume

Assiana Nkoume

0 likes

🚗 2018 Honda Accord EX – Reliable, Stylish
#AskLemon8 🚗 2018 Honda Accord EX – Reliable, Stylish, & Fully Loaded! 🚗 Looking for the perfect daily driver? This 2018 Honda Accord EX Sedan delivers performance, safety, and comfort all in one package. Powered by a fuel-efficient 1.5L I4 engine, it’s smooth, dependable, and ready to hit
Fairly used cars

Fairly used cars

6 likes

See more