New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Openvz set up possibility
support123
Member
Currently the server has 4*1TB hard disc.Now i want to host one vps in a ssd drive instead of the SATA drives.is this setup possible with solusvm openvz.For remaining vps,I want them to host in the SATA drives.I need only one vps in ssd.
Anyone have experience with this type of setup?
Comments
You can do this by mounting the SSD as/under /vz/private/vpsid
So as an example you would create the VPS.
Move the vps folder from /vz/private/vpsid to say /vz/private/vpsid_backup
Mount the drive as /vz/private/vpsid
Copy the files in /vz/private/vpsid_backup to /vz/private/vpsid
Try booting the VPS.
If you edit the vz.conf file as far as I am aware you will change the mount point for ALL vps not for just one.
I need to host only one vps is ssd.will this affect the other vpses?
I thought that as well
@Jack - That will not work and if your server reboots one or more VPS wouldn't boot with it. Why bother to do the complex route when you can just mount the drive?
@BlueVM Your one look good to me
It just changes it for newly created ones.
The existing ones have their paths set in their own conf files (e.g. vzid.conf)
You could ask your team of highly experienced admins?
They told me of the same thing as @BlueVM
@Jack - Proof? Documentation from openvz? Something that suggests I'm 100% wrong? I'm fairly confident my method is correct and no one else here besides you has yet to chime in. Your method might also work, but from a future administrative perspective it'd be far easier to do my method.
Just because it 'works' doesn't mean it's remotely the correct way.
Randomly mounting directories into the /vz/private folder is asking for trouble with quota files and the likes.
While solus doesn't support this as far as I know, all you'd have to do is like Jack mentioned, update the path in the *.conf file, move the contents and solus won't give two hoots since solus does (almost?) everything via VZCTL anyways.
Francisco
Go with Jacks method.
Will try both methods later on Thanks for all suggestions
You could pre-determine what the veid will be, and then symlink the vz root to the ssd mountpoint before creating the vps. Just a thought, not sure if it would work, others might have input.