Skip to content

Instantly share code, notes, and snippets.

@johanot
Created February 22, 2019 08:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johanot/8c0ccedf2de9a0159d536947efa9ba30 to your computer and use it in GitHub Desktop.
Save johanot/8c0ccedf2de9a0159d536947efa9ba30 to your computer and use it in GitHub Desktop.
#!/nix/store/b9p787yqaqi313l9rr0491igjwyzqfmw-bash-4.4-p23/bin/bash
mkdir -p /var/lib/ceph/osd
/nix/store/7rnfgk9bkm1r45qn2fqcss4v47l86vd1-ceph-13.2.2/bin/ceph-volume lvm activate --all --no-systemd --log-path /dev/stdout
for i in $(/nix/store/7rnfgk9bkm1r45qn2fqcss4v47l86vd1-ceph-13.2.2/bin/ceph-volume lvm list --format json | \
/nix/store/xkzmszz7vp1wdgbpyfvb1wns2qlx9mhz-gnugrep-3.1/bin/grep -Ev "^-->" | \
/nix/store/fsbbzrfbbamhqsgcmj2g6y78csij9xjd-jq-1.5-bin/bin/jq -r 'keys | .[]') ; do
/nix/store/y02g0zvkrna2znjkiwx9k6w3ppfwzzym-systemd-239.20190110/bin/systemctl start ceph-osd@$i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment