Editing
Getting high with lenny
(section)
From Linix VServer
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!
== Create a Vserver == Note that we already have mounted the LVM partition on /VSERVERS/web in an earlier step, we're going to place both the /var and /etc directories on the mountpoint and symlink to it, this way the complete Vserver and its config are available on the other node when mounted. <code> mkdir -p /VSERVERS/web/etc </code> <code> mkdir -p /VSERVERS/web/barrier/var </code> When making the Vserver it will be in the default location /var/lib/vservers/web and its config in /etc/vservers/web <pre> vserver web build -m debootstrap --hostname web.example.com --interface bond0:123.123.123.125/24 -- -d etch -m http://123.123.123.81:3142/debian.apt-get.eu/debian </pre> <pre> enter the root password </pre> <pre> Create a normal user account now? <No> </pre> <pre> Choose software to install: <Ok> </pre> On node1 we move the Vserver directories to the LVM volume on the DRBD disks and make symlinks from the normal locations. On node1 <code> mv /etc/vservers/web/* /VSERVERS/web/etc/ </code> <code> rmdir /etc/vservers/web/ </code> <code> ln -s /VSERVERS/web/etc /etc/vservers/web </code> <code> mv /var/lib/vservers/web/* /VSERVERS/web/barrier/var </code> <code> rmdir /var/lib/vservers/web/ </code> <code> ln -s /VSERVERS/web/barrier/var /var/lib/vservers/web </code> We need to set the same symlinks on node2, but the we need the Vserver directories available there first. The mounting should be handled by heartbeat by now so we make our resources move to the other machine. On node1 <code> /etc/init.d/heartbeat stop </code> On node2 <code> ln -s /VSERVERS/web/etc /etc/vservers/web </code> <code> ln -s /VSERVERS/web/barrier/var /var/lib/vservers/web </code> On node1 <code> /etc/init.d/heartbeat start </code> <code> Vserver web start </code> and enjoy! [[Category:Documentation]]
Summary:
Please note that all contributions to Linix VServer 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
Linix VServer:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
About
Overview
Paper
News
Developers
Donations
Search
Getting Started
Downloads
FAQs
Documentation
Support
Participate
How to participate
Report a Bug
Communicate
Teams/Projects
Hall of Fame
Resources
Archives
Recent Wiki Changes
Pastebin
Related Projects
VServer Hosting
Happy VServer Users
Tools
What links here
Related changes
Special pages
Page information