Editing
VPS Management
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Notes on a new FBSD 10.x VPS (jail6) == <pre> #! /bin/sh # # new <colo#> <disk> memory=1024 x="$1" disk="$2" if [ "y" == "y$disk" ] ; then disk=60 fi disk2=`expr $disk - 4` vm image provision 04dcdf96-d843-11e6-b131-001e67fcc64f col0$x # vm configure col0$x sed -e "s/memory=256M/memory=${memory}M/" /vms/col01114/col01114.conf >/vms/col0$x/col0$x.conf zfs set quota=${disk}G zroot/vms/col0$x zfs set volsize=${disk}G zroot/vms/col0$x/disk0 # vm start col0$x exit vm console col0$x # # to increase the customer disk # zfs set quota=${disk}G zroot/vms/col0$x zfs set volsize=${disk}G zroot/vms/col0$x/disk0 ## on the customer VPS gpart recover vtbd0 gpart show vtbd0 swapoff /dev/vtbd0p3 gpart delete -i 3 vtbd0 gpart show vtbd0 sysctl kern.geom.debugflags=16 gpart resize -i 2 -a 4k -s $disk2\G vtbd0 growfs /dev/vtbd0p2 gpart show vtbd0 gpart add -t freebsd-swap -a 4k vtbd0 gpart show vtbd0 swapon /dev/vtbd0p3 df -h reboot vi /etc/rc.conf hostname IP Addr passwd root passwd user clear history cp /dev/null /var/log/utx.log cp /dev/null ~root/.history history -c </pre>
Summary:
Please note that all contributions to JCWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
JCWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information