Cheat sheet

From PrgmrWiki
Revision as of 19:31, 6 July 2010 by Will (talk | contribs) (So You Wanna Administrate prgmr.com)

So You Wanna Administrate prgmr.com

Here's some handy commands for reference.

Need to know if a dom0 has sufficient RAM for a new user? Use xm info.

There is usually enough disk space, but if you need to find out anyway, you can use lvdisplay or vgdisplay

swapip.pl will let you grab a new IP for a user. Make sure they're not configured with an IP already - this doesn't change anything except what Freeside thinks their IP is.

Lifeboat uses pmshell. The other conserver uses /usr/bin/console.

Need to upgrade a user? Modify their RAM in their /etc/xen/username configuration file, and add a new partition with their new space using lvcreate -C y -L $DISK_in_ -n ${LVNAME} ${DG}

e.g. lvcreate -C y -L 100M -n guests username_2nd
Don't forget to add their new disk to the config file.

You can see a list of our servers here

Need to update rDNS?

The tool is nsupdate, and you can find the key in /usr/local/etc. There's a tool to do this dish:~/will/rdnsupdate