Skip to content

Instantly share code, notes, and snippets.

@codedot
codedot / add
Created Dec 23, 2012 — forked from anonymous/add
Scripts for cloning fair-scheduled zones in Solaris 11. To be installed under /opt/custom. Assume `chmod +x /opt/custom/{add,reset}; zonecfg -z origin "create; set zonepath=/zones/origin"; zoneadm -z origin install; zonecfg -z global set cpu-shares=1; dispadm -d FSS; reboot` done before using. Run /opt/custom/reset once, then /opt/custom/add for…
View add
#!/usr/xpg4/bin/sh
set -Cex
export PATH=/usr/xpg6/bin:/usr/xpg4/bin:/usr/bin:/usr/sbin
MIN=10
MAX=99
POOL=busy
ROOT=/opt/custom