Skip to content

Instantly share code, notes, and snippets.

View Marshall-Hallenbeck's full-sized avatar

Marshall Hallenbeck Marshall-Hallenbeck

View GitHub Profile
@Marshall-Hallenbeck
Marshall-Hallenbeck / gist:716521e1f8ac58134b2faed6264a7df4
Created December 17, 2024 21:05
Fix Dell Server / iDRAC Fans
iDRAC Setting Fan Speed on Poweredge R730xd with IPMI (should work with others but cmds will vary with device names
=========================================================================================================
Reference: https://gist.github.com/mdpuma/8972079b7da52afef15cc039039ff818 (now 404s)
Reference: https://old.reddit.com/r/homelab/comments/j3hh1r/poweredge_r730xd_fans_loud_wont_slow_down_help/g7fv0rn/
This gist: https://gist.github.com/Marshall-Hallenbeck/716521e1f8ac58134b2faed6264a7df4
1. Get your iDRAC on the LAN and config a username and password
2. In the iDRAC interface (access via web browser), enable IPMI in iDRAC Settings > Network > IPMI Settings
3. Download/install the Dell iDRAC tools for windows (in this case, filename was DellEMC-iDRACTools-Web-WINPE-9.4.0-3732_A00.exe)
4. Open a cmd prompt (iDRAC IP in this example is 192.168.16.2)
5. cd c:\program files\dell\sysmgt\iDRACTools\IPMI
@Marshall-Hallenbeck
Marshall-Hallenbeck / win_local_user.bat
Created September 7, 2025 16:02
Windows Local User
start ms-cxh:localonly
@Marshall-Hallenbeck
Marshall-Hallenbeck / extend_disk.sh
Last active March 23, 2026 15:02
dynamic online disk extension
#!/bin/bash
set -euo pipefail
MOUNT=${1:?Usage: $0 <mountpoint>}
LV=$(findmnt -no SOURCE "$MOUNT") || { echo "Error: '$MOUNT' is not a mountpoint" >&2; exit 1; }
echo "LV: $LV"
VG=$(sudo lvs --noheadings -o vg_name "$LV" | xargs)
echo "VG: $VG"
PV=$(sudo pvs --noheadings -o pv_name --select "vg_name=$VG" | xargs)