Difference between revisions of "Cheat sheet"

From PrgmrWiki
(So You Wanna Administrate prgmr.com)
(So You Wanna Administrate prgmr.com)
Line 12: Line 12:
 
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}'''  
 
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'''
 
; e.g. '''lvcreate -C y -L 100M -n guests username_2nd'''
; '''Don't forget to add their new disk to the config file.
+
; Don't forget to add their new disk to the config file.

Revision as of 17:57, 6 July 2010

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.