Files
analyzeOSDs/ceph_osd_analyzer.py
Jared Vititoe 03374fa784 Add USB drive SMART support with multiple bridge chipset attempts
**Issue**: osd.2 is a USB-connected 1TB drive that couldn't read SMART

Error was: "Read Device Identity failed: scsi error unsupported field"
This is typical for USB-attached drives that need bridge-specific flags.

**Solution**: Added USB transport detection and multiple fallback methods:
- SAT (SCSI-ATA Translation) - most common USB bridges
- usbjmicron - JMicron USB bridge chipsets
- usbcypress - Cypress USB bridge chipsets
- Generic USB fallback
- SCSI passthrough

Also added USB/SAT attempt to unknown transport types as fallback.

**Debug Enhancement**:
- Now shows detected transport type in debug output
- Helps diagnose why SMART fails

**Note**: USB drives in Ceph clusters are unconventional but functional.
This OSD appears to be temporary/supplemental storage capacity.

If SMART still fails after this update, the USB bridge may be incompatible
with smartmontools, which is acceptable for temporary storage.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-06 15:16:35 -05:00

26 KiB