Skip to content

Instantly share code, notes, and snippets.

View nicolasjulian's full-sized avatar
🏠
Working from home

Nicolas Julian nicolasjulian

🏠
Working from home
View GitHub Profile
#!/bin/bash
osds=`ls -d /var/lib/ceph/osd/ceph-* |grep -o [0-9]*$`
noop=0
for osd in $osds; do
date
echo "Starting trimming for ${osd}"
if [ $noop -eq 1 ] ; then
echo "systemctl disable --now ceph-osd@${osd}"
@Brainiarc7
Brainiarc7 / fstab-generate-arch.md
Last active April 18, 2025 13:54
Generate fstab in Arch Linux

First, install arch-install-scripts:

sudo pacman -S --needed arch-install-scripts

Secondly, mount your partitions in all the internal hard drives.

Thirdly, generate and validate your config by piping it out to stdout: