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!
== Configure LVM2 == <note important> LVM will normally scan all available devices under /dev, but since /dev/cciss/c0d0p6 and /dev/drbd0 are basically the same this will lead to errors where LVM reads and writes the same data to both devices. So to limit it to scan /dev/drbd devices only we do the following on both nodes. </note> <code> cp /etc/lvm/lvm.conf /etc/lvm/lvm.conf.original </code> <code> nano /etc/lvm/lvm.conf </code> <pre> #filter = [ "a/.*/" ] filter = [ "a|/dev/drbd|", "r|.*|" ] </pre> to re-scan with the new settings on both nodes <code> vgscan </code> === Create the Physical Volume === The following only needs to be done on the node that is the primary!! On node1 <code> pvcreate /dev/drbd0 </code> === Create the Volume Group === The following only needs to be done on the node that is the primary!! One node1 <code> vgcreate drbdvg0 /dev/drbd0 </code> === Create the Logical Volume === Yes, again only on the node that is primary!!! For this example about 50GB, this leaves plenty of space to expand the volumes or to add extra volumes later on. On node1 <code> lvcreate -L50000 -n web drbdvg0 </code> Then we put a file system on the logical volumes <code> mkfs.ext3 /dev/drbdvg0/web </code> create the directory where we want to mount the Vservers <code> mkdir -p /VSERVERS/web </code> and mount the volume group to the mount point <code> mount -t ext3 /dev/drbdvg0/web /VSERVERS/web/ </code>
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