#!/bin/bash
# Quick script to check Proxmox storage and block devices
# Run on R630-01

echo "=========================================="
echo "Proxmox Storage and Block Device Check"
echo "=========================================="
echo ""

echo "=== Proxmox Storage Status ==="
pvesm status
echo ""

echo "=== Block Devices ==="
lsblk -o NAME,SIZE,TYPE,MOUNTPOINT,FSTYPE,MODEL
echo ""

echo "=== 250GB Drives (sdc-sdh) ==="
for drive in sdc sdd sde sdf sdg sdh; do
    if [ -b "/dev/$drive" ]; then
        echo ""
        echo "/dev/$drive:"
        lsblk /dev/$drive
        fdisk -l /dev/$drive 2>/dev/null | head -10
    fi
done
echo ""

echo "=== Summary ==="
echo "Total drives visible: $(lsblk -d -n | grep -c '^sd')"
echo "250GB drives (sdc-sdh): $(lsblk -d -n | grep -E '^sd[c-h]' | wc -l)"

