Get Paid to Participate - up to $1 per post!     Twitter     Facebook     Google+
Hosting Discussion
 

Hosting Discussion > Web Hosting Forums > VPS, Dedicated & Colocation Hosting > Virtualization Define Partitions First
forgot password?



Reply


Old
  Post #1 (permalink)   10-20-2014, 11:50 PM
Account Disabled
 
Join Date: Aug 2010
Posts: 377

Status: vegas is offline
I have an openvz kernel on my machine 2.6.32-042stab093.5
I already have my centos template installed but
dont want to create any vps just like that first I have to define
the partitions I want to use from my disc for vps
please help me to do so
 
 
 


Old
  Post #2 (permalink)   10-23-2014, 11:48 AM
Account Disabled
 
Join Date: Aug 2010
Posts: 377

Status: vegas is offline
or can say
I dont know how to choose the partitions Ill use to build nodes
 
 
 


Old
  Post #3 (permalink)   10-24-2014, 07:18 AM
HD Master
 
Join Date: Dec 2005
Posts: 353
Send a message via AIM to lowesthost

Status: lowesthost is offline
Typical install uses the /vz partition

http://openvz.org/User_Guide/Install...ary_Operations
__________________
Lowest Host/Empire Technology LLC
Offering Quality Shared, Reseller, VPS servers, and Dedicated Servers
24x7 Tech Support http://empire-hosting.net
cPanel Licenses http://empire-hosting.net/buy-cpanel.html - Dedicated VPS /
 
 
 


Old
  Post #4 (permalink)   10-26-2014, 01:19 AM
HD Addict
 
Join Date: Sep 2014
Location: India
Posts: 239
Send a message via Skype™ to 24x7server

Status: 24x7server is offline
Hi,

/VZ is where all the private containers store their files and this is the default configuration. If you want to change this path, you can edit the /etc/vz/vz.conf file and set your parameters. Make sure to backup the configuration file before you change anything.

Its always advisable to have /vz on drive that is larger in size.
 
 
 


Old
  Post #5 (permalink)   10-27-2014, 10:46 PM
HD Amateur
 
Join Date: Jul 2013
Posts: 56

Status: Gaiacom_LC is offline
For basic setup, all you need is 1 partition with space on "/" (plus swap partition)

VZ files will be in /vz as mentioned above.

If wanted or convenient (eg for RAID) you can make /vz a separate partition.
__________________
| SolVPS (www.solvps.com) 100% SSD Linux & Windows VPS Hosting
| Managed VPS - Web Hosting - Domains & SSL Certificates | Follow us on Twitter @solvps_hosting
 
 
 


Old
  Post #6 (permalink)   10-28-2014, 12:13 AM
Account Disabled
 
Join Date: Aug 2010
Posts: 377

Status: vegas is offline
I want to install the vps here
/dev/sda3
/dev/sda5
but I dont know where to set this in here

## Global parameters
VIRTUOZZO=yes
LOCKDIR=/vz/lock
DUMPDIR=/vz/dump
VE0CPUUNITS=1000
VE_STOP_MODE=suspend

## Logging parameters
LOGGING=yes
LOGFILE=/var/log/vzctl.log
LOG_LEVEL=0
VERBOSE=0

## Disk quota parameters
DISK_QUOTA=yes
VZFASTBOOT=no

# Disable module loading. If set, vz initscript does not load any modules.
#MODULES_DISABLED=yes

# The name of the device whose IP address will be used as source IP for CT.
# By default automatically assigned.
#VE_ROUTE_SRC_DEV="eth0"

# Uncomment to limit CT IP ARP announces only to network interfaces
# having IPs within the same IP network as a container IP.
# Leave commented out to use all interfaces.
NEIGHBOUR_DEVS=all

## Uncomment to skip ARP queries checking for CT IP being used
## by some other machine on the network
#SKIP_ARPDETECT=yes

## Comment out to fail CT start if ARP query detects CT IP being used
ERROR_ON_ARPFAIL="no"

## Template parameters
TEMPLATE=/vz/template

## Defaults for containers
VE_ROOT=/vz/root/$VEID
VE_PRIVATE=/vz/private/$VEID
CONFIGFILE="vswap-256m"
DEF_OSTEMPLATE="centos-6-x86"
NAMESERVER=inherit # Copy from host system's /etc/resolv.conf
## Filesystem layout for new CTs: either simfs or ploop
VE_LAYOUT=ploop

# User namespace configuration
LOCAL_UID=100000
LOCAL_GID=100000

## Load vzwdog module
VZWDOG="no"

## WARNING: IPTABLES parameter is deprecated,
## use per-container (not global!) NETFILTER instead

## iptables kernel modules to be loaded by init.d/vz script
IPTABLES_MODULES="ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ip6_tables ip6table_filter ip6table_mangle ip6t_REJECT"

## Enable IPv6
IPV6="yes"
SKIP_SYSCTL_SETUP=yes
 
 
 


Old
  Post #7 (permalink)   10-28-2014, 10:52 AM
HD Newbie
 
Join Date: Oct 2014
Posts: 8

Status: stabletron is offline
mount your disks to some folders and than change variables VE_ROOT and VE_PRIVATE
 
 
 


Old
  Post #8 (permalink)   10-30-2014, 11:04 PM
Account Disabled
 
Join Date: Aug 2010
Posts: 377

Status: vegas is offline
## Defaults for containers
VE_ROOT=/vz/dev/sda3/$VEID
VE_PRIVATE=/vz/dev/sda5/$VEID

Like this?
They are already on folders
 
 
 


Old
  Post #9 (permalink)   11-11-2014, 02:35 AM
Account Disabled
 
Join Date: Aug 2010
Posts: 377

Status: vegas is offline
Hello folks I setted this
## Defaults for containers
VE_ROOT=/vz/home/sda3/$VEID
VE_PRIVATE=/vz/tmp/sda5/$VEID
CONFIGFILE="vswap-256m"
DEF_OSTEMPLATE="centos-6-x86"
NAMESERVER=inherit # Copy from host system's /etc/resolv.conf
## Filesystem layout for new CTs: either simfs or ploop
VE_LAYOUT=ploop

Then I created my first vps and after I didnt see nothing inside this folders
home/sda3
tmp/sda5
What I found was inside root ,the vz folder with the folder named root and there I found my vps in both folders home and tmp but on tmp it had this archives
DiskDescriptor.xml
DiskDescriptor.xml.lck
root.hdd
My question is why this archives didnt appear inside root/home/sda3 and
root/ tmp/sda5 ?
Does this mean that the vps was only created inside vz folder or is it related this vz folder to the mentioned locations?

Well in my opinion if the vps was created in root/tmp/sda5 the mentioned archives would also be there,if they are not there is because the vps was not created on that location,if you can bring some chat to the situation it will be sublimely appreciated
 
 
 


Old
  Post #10 (permalink)   11-12-2014, 07:47 AM
HD Addict
 
Join Date: Sep 2014
Location: India
Posts: 239
Send a message via Skype™ to 24x7server

Status: 24x7server is offline
Hi,

Please note the OpenVZ recent security updates.

https://openvz.org/News/updates
Kernel RHEL6 042stab094.7 (moved to stable)
Security fix preventing access to the host filesystem from inside a container. Fixes in CPT, net, iptables autoloading, etc. Stability fixes.


Now back to the vz issue. It would be worth trying to rename the current /vz partition to /vz_old and mount the disk partition /dev/sda3 on /vz. Now, you can rsync the contents from /vz_old to /vz. This way, you dont have to change anything in the confirmation, yet you will have all the VPS container on other disk.
__________________
www.24x7servermanagement.com
Server Management, Server Security, Server Monitoring.
Network Monitoring Team !! Skype: techs24x7
 
 
 


Old
  Post #11 (permalink)   11-12-2014, 03:37 PM
Account Disabled
 
Join Date: Aug 2010
Posts: 377

Status: vegas is offline
It would be lovely and very nice if you could please provide an example of what you say.

Do you mean change

## Defaults for containers
VE_ROOT=/vz/home/sda3/$VEID
VE_PRIVATE=/vz/tmp/sda5/$VEID

For this

## Defaults for containers
VE_ROOT=/vz/dev/sda3/$VEID
VE_PRIVATE=/vz/dev/sda5/$VEID


?

Then how I do sync?
 
 
 


Old
  Post #12 (permalink)   11-12-2014, 03:39 PM
Account Disabled
 
Join Date: Aug 2010
Posts: 377

Status: vegas is offline
Thank you 24x7server for taking the time to read
 
 
 
Reply

Thread Tools

New Post New Post   Old Post Old Post
Posting Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Sponsored By: