Ganeti Notes
Remove DRBD from Guest
gnt-instance modify --disk-template plain <instancename>
Create Password using Bash
# Generate password script/function
genpw() {
local l=${1:-16}
local s=${2:-0}
local n=${3:-1}
[ "$s" == "0" ] && PAT="a-zA-Z0-9" || PAT="a-zA-Z0-9-!@#$%^&*()+{}|:<>?$"
cat /dev/urandom | tr -dc "${PAT}" | fold -w ${l} | head -n ${n}
}
Last modified 14 years ago
Last modified on 05/01/12 09:12:29
