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!
== Adding disk to a 4.x jail == NOTE: if you unmount before vnconfig, re-vnconfig then unmount then vnunconfig If someone wants more disk space, there’s a paste for it, send it to them. 1. Figure out the space avail from [[#js|js]]. Ideally, you want to dump to a different partition and create the new vn on the current partition. If no space to make make dump, then move old vn’s to backup or worse, dump to backup. 2. <tt>g <customerID></tt> to get the info 3. make vnfile, newfs and mount. USE CAUTION not to overwrite existing vn. <br> Ex: <tt>vnconfig –T -S 9g -s labels -c /dev/vn22 /mnt/data2/65.214.160.117-col00496<br> disklabel -r -w vn30 auto<br> newfs /dev/vn30c<br> mkdir /mnt/data2/65.214.160.117-col00496-DIR<br> mount /dev/vn30c /mnt/data2/69.55.237.26-col00241-DIR<br> cd /mnt/data2/65.214.160.117-col00496-DIR</tt> 4. <tt>jailkill <hostname></tt> 5. <tt>dump -0a -f - /dev/vn1 | restore -r -f -</tt> 6. <tt>rm restoresymtable</tt> 7. unmount and unvnconfig old system:<br> <tt>umount /dev/vnNNc <br> vnconfig –u /dev/vnNN</tt> 8. move vnfile. Ex: <tt>mv /mnt/data1/69.55.237.26-col00241 /mnt/data1/old-col00241-vnfile-20110312-noarchive</tt> 9. remove old dir: <tt>rmdir /mnt/data1/69.55.237.26-col00241-DIR</tt> 10. edit quad/safe to point to new location, run <tt>[[#buildsafe|buildsafe]]</tt> 11. start jail: <tt>[[#startjail|startjail]] <hostname></tt> 12. update disk (and dir if applicable) in mgmt screen 13. mv backups if necessary WARNING: if you restore to unmounted vn then you’re actually restoring to /mnt/data1 you can tar and do above to recover NOTE: you can’t move a customer to a system that has a base sys that is diff from the one they came from (BSD 4.8 to 4.5 = won’t work) NOTE: we don’t mount procfs's to anyone’s system by default. NOTE: mount_nulls: also goofy mount_nulls seen in df -k on jail2<br> also needs to be done in safe and quad<br> if he wants another, use safe/quad as example and add it to file. also exec command at prompt to add mount (no reboot, remount or rejail necessary)
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