From f8046546cc750f40ab57ff798bcc64462c18c060 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Mon, 8 Jun 2026 15:42:16 -0400 Subject: [PATCH] Fix large1 bay mappings based on physical audit Complete remap of large1 after physical inspection. All 14 bay-to-PCI assignments were wrong; corrected using serial number cross-referencing against live /dev/disk/by-path and a previous script run with known serials. Key findings: - HBA Slim-SAS #0 (blue cables): ports map in reverse to phys 3,2,1,0 - HBA Slim-SAS #1 (silver cables): port 1=phy7, 2=phy6 (stuck B5), 3=phy5, 4=phy4 - Orange SATA bottom-left (B1) is ASMedia 25:00.0-ata-2, not AMD - Orange SATA top-middle (C2) is AMD 16:00.1-ata-8, not ASMedia - Slot 5 of all stacks must remain empty (near-impossible to remove drives) - B5 (bay 14, WD-CA19PTMK) and C5 (bay 15, unknown) are permanently stuck Co-Authored-By: Claude Sonnet 4.6 --- driveAtlas.sh | 56 +++++++++++++++++++++++++++++++++++---------------- 1 file changed, 39 insertions(+), 17 deletions(-) diff --git a/driveAtlas.sh b/driveAtlas.sh index f1c63ad..d46b7c9 100644 --- a/driveAtlas.sh +++ b/driveAtlas.sh @@ -542,7 +542,7 @@ generate_large1_layout() { printf "│ │\n" printf "│ M.2 NVMe: M1: %-10s M2: %-10s │\n" "${DRIVE_MAP[m2-1]:-EMPTY}" "${DRIVE_MAP[m2-2]:-EMPTY}" printf "│ │\n" - printf "│ Front Bays (3 stacks x 5 rows): [Bay mapping TBD] │\n" + printf "│ Front Bays (3 stacks x 5 rows): [slot 5 of each stack MUST stay empty] │\n" printf "│ Stack A Stack B Stack C │\n" printf "│ ┌──────────┐ ┌──────────┐ ┌──────────┐ │\n" printf "│ │1:%-8s│ │2:%-8s│ │3:%-8s│ │\n" "${DRIVE_MAP[1]:-EMPTY}" "${DRIVE_MAP[2]:-EMPTY}" "${DRIVE_MAP[3]:-EMPTY}" @@ -625,24 +625,46 @@ declare -A SERVER_MAPPINGS=( " # large1 - # Custom tower with multiple controllers: - # - HBA: LSI SAS2008 at 10:00.0 (7 drives) - # - AMD SATA at 16:00.1 (3 drives) - # - ASMedia SATA at 25:00.0 (2 drives) - # - 2x NVMe slots + # 3 stacks (A/B/C left-to-right) x 5 slots (1-5 top-to-bottom) = 15 bays + # Bay numbering: A1=1, B1=2, C1=3, A2=4, B2=5, C2=6, A3=7, B3=8, C3=9, ... + # + # *** SLOT 5 IN ALL STACKS MUST REMAIN EMPTY *** + # *** Drives are near-impossible to remove once inserted in slot 5 *** + # *** B5 (bay 14) already has a permanently stuck drive (WD-CA19PTMK) *** + # *** C5 (bay 15) has a permanently stuck but unplugged drive (unknown type) *** + # + # HBA: LSI SAS2008 at 10:00.0 -- 2x Slim-SAS to 4-port SATA breakout cables + # Slim-SAS #0 (BLUE cables, connector closest to bracket/mounting edge): + # Port 1 (phy3) -> C Slot 1 (bay 3) Port 2 (phy2) -> unconnected + # Port 3 (phy1) -> A Slot 1 (bay 1) Port 4 (phy0) -> A Slot 2 (bay 4) + # Slim-SAS #1 (SILVER cables, connector furthest from bracket): + # Port 1 (phy7) -> B Slot 2 (bay 5) -- cable present, no drive yet + # Port 2 (phy6) -> B Slot 5 (bay 14) -- STUCK, cannot remove + # Port 3 (phy5) -> B Slot 4 (bay 11) + # Port 4 (phy4) -> A Slot 3 (bay 7) + # + # Motherboard SATA (ORANGE cables) -- 6 ports in 3-column x 2-row cluster: + # ASMedia 25:00.0 (2 ports): + # ata-1 -> C Slot 3 (bay 9) [top-left orange port] + # ata-2 -> B Slot 1 (bay 2) [bottom-left orange port] -- cable present, no drive + # AMD 16:00.1 (3 of 8 ports connected to bays): + # ata-3 -> C Slot 4 (bay 12) [bottom-right orange port] + # ata-7 -> B Slot 3 (bay 8) [bottom-middle orange port] -- cable present, drive removed (was WD-CA2144YK) + # ata-8 -> C Slot 2 (bay 6) [top-middle orange port] -- cable present, drive removed (was WD-CA28XYHK) + # AMD FCH 31:00.0 / 31:00.1: no cables attached, ports unused ["large1"]=" - pci-0000:10:00.0-sas-phy0-lun-0 1 - pci-0000:10:00.0-sas-phy1-lun-0 2 + pci-0000:10:00.0-sas-phy1-lun-0 1 + pci-0000:25:00.0-ata-2 2 pci-0000:10:00.0-sas-phy3-lun-0 3 - pci-0000:10:00.0-sas-phy4-lun-0 4 - pci-0000:10:00.0-sas-phy5-lun-0 5 - pci-0000:10:00.0-sas-phy6-lun-0 6 - pci-0000:10:00.0-sas-phy7-lun-0 7 - pci-0000:16:00.1-ata-3 8 - pci-0000:16:00.1-ata-7 9 - pci-0000:16:00.1-ata-8 10 - pci-0000:25:00.0-ata-1 11 - pci-0000:25:00.0-ata-2 12 + pci-0000:10:00.0-sas-phy0-lun-0 4 + pci-0000:10:00.0-sas-phy7-lun-0 5 + pci-0000:16:00.1-ata-8 6 + pci-0000:10:00.0-sas-phy4-lun-0 7 + pci-0000:16:00.1-ata-7 8 + pci-0000:25:00.0-ata-1 9 + pci-0000:10:00.0-sas-phy5-lun-0 11 + pci-0000:16:00.1-ata-3 12 + pci-0000:10:00.0-sas-phy6-lun-0 14 pci-0000:2a:00.0-nvme-1 m2-1 pci-0000:26:00.0-nvme-1 m2-2 "