<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://gigatux.com/wiki/index.php?action=history&amp;feed=atom&amp;title=PositiveVPS_client_move_to_quicker_hard_disk</id>
	<title>PositiveVPS client move to quicker hard disk - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://gigatux.com/wiki/index.php?action=history&amp;feed=atom&amp;title=PositiveVPS_client_move_to_quicker_hard_disk"/>
	<link rel="alternate" type="text/html" href="https://gigatux.com/wiki/index.php?title=PositiveVPS_client_move_to_quicker_hard_disk&amp;action=history"/>
	<updated>2026-11-06T14:25:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://gigatux.com/wiki/index.php?title=PositiveVPS_client_move_to_quicker_hard_disk&amp;diff=167&amp;oldid=prev</id>
		<title>Cocodude: /* How to do it */</title>
		<link rel="alternate" type="text/html" href="https://gigatux.com/wiki/index.php?title=PositiveVPS_client_move_to_quicker_hard_disk&amp;diff=167&amp;oldid=prev"/>
		<updated>2011-02-23T10:23:17Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;How to do it&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:23, 23 February 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l12&quot;&gt;Line 12:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Move all data across by typing &amp;#039;&amp;#039;mv -v /vz/private/&amp;lt;VEID&amp;gt;/* /disk1/vz/private/&amp;lt;VEID&amp;gt;&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Move all data across by typing &amp;#039;&amp;#039;mv -v /vz/private/&amp;lt;VEID&amp;gt;/* /disk1/vz/private/&amp;lt;VEID&amp;gt;&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Move to the OpenVZ configuration directory by typing &amp;#039;&amp;#039;cd /etc/vz/conf/&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Move to the OpenVZ configuration directory by typing &amp;#039;&amp;#039;cd /etc/vz/conf/&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Copy two scritps to custom mount and umount the new drive for this VPS by typing &#039;&#039;cp ...&#039;&#039;. Note that we do not unmount the private directory because OpenVZ quotas stop working otherwise.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Copy two scritps to custom mount and umount the new drive for this VPS by typing &#039;&#039;cp &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;template&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mount &amp;lt;VEID&amp;gt;&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mount&#039;&#039; and &#039;&#039;cp template&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;umount &amp;lt;VEID&amp;gt;.umount&lt;/ins&gt;&#039;&#039;. Note that we do not unmount the private directory because OpenVZ quotas stop working otherwise.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Test that the VPS works by typing &amp;#039;&amp;#039;vzctl start &amp;lt;VEID&amp;gt;&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Test that the VPS works by typing &amp;#039;&amp;#039;vzctl start &amp;lt;VEID&amp;gt;&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Cocodude</name></author>
	</entry>
	<entry>
		<id>https://gigatux.com/wiki/index.php?title=PositiveVPS_client_move_to_quicker_hard_disk&amp;diff=165&amp;oldid=prev</id>
		<title>Cocodude: Created page with &#039;==Preface==  There are two hard disks on the PositiveVPS node, sda and sdb. Users are set up on sda by default and this is the more busy of the disks. If customers complain about...&#039;</title>
		<link rel="alternate" type="text/html" href="https://gigatux.com/wiki/index.php?title=PositiveVPS_client_move_to_quicker_hard_disk&amp;diff=165&amp;oldid=prev"/>
		<updated>2011-02-23T10:03:44Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;==Preface==  There are two hard disks on the PositiveVPS node, sda and sdb. Users are set up on sda by default and this is the more busy of the disks. If customers complain about...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Preface==&lt;br /&gt;
&lt;br /&gt;
There are two hard disks on the PositiveVPS node, sda and sdb. Users are set up on sda by default and this is the more busy of the disks. If customers complain about slow disk speeds, we move them across to sdb. This does have done drawbacks though, in that the customer cannot reinstall their OS without there being more downtime.&lt;br /&gt;
&lt;br /&gt;
==How to do it==&lt;br /&gt;
&lt;br /&gt;
* Find out the VPS number (VEID) of this client. This should be available in HostBill, but check that you&amp;#039;ve got the right one by typing &amp;#039;&amp;#039;vzlist -a&amp;#039;&amp;#039; and match on the hostname.&lt;br /&gt;
* Shut down the VPS by typing &amp;#039;&amp;#039;vzctl stop &amp;lt;VEID&amp;gt;&amp;#039;&amp;#039;.&lt;br /&gt;
* Ensure that any left-behind mounts are unmounted by typing &amp;#039;&amp;#039;umount /vz/private/&amp;lt;VEID&amp;gt;&amp;#039;&amp;#039; as many times as required until you get an error message saying that it is not mounted. This can be dozens of times.&lt;br /&gt;
* Ensure that &amp;#039;&amp;#039;/disk1/vz/private/&amp;lt;VEID&amp;gt;&amp;#039;&amp;#039; exists. Use &amp;#039;&amp;#039;mkdir&amp;#039;&amp;#039; if it doesn&amp;#039;t.&lt;br /&gt;
* Ensure that there is no data in the new partition by typing &amp;#039;&amp;#039;rm -vr /disk1/vz/private/&amp;lt;VEID&amp;gt;&amp;#039;&amp;#039;.&lt;br /&gt;
* Move all data across by typing &amp;#039;&amp;#039;mv -v /vz/private/&amp;lt;VEID&amp;gt;/* /disk1/vz/private/&amp;lt;VEID&amp;gt;&amp;#039;&amp;#039;.&lt;br /&gt;
* Move to the OpenVZ configuration directory by typing &amp;#039;&amp;#039;cd /etc/vz/conf/&amp;#039;&amp;#039;&lt;br /&gt;
* Copy two scritps to custom mount and umount the new drive for this VPS by typing &amp;#039;&amp;#039;cp ...&amp;#039;&amp;#039;. Note that we do not unmount the private directory because OpenVZ quotas stop working otherwise.&lt;br /&gt;
* Test that the VPS works by typing &amp;#039;&amp;#039;vzctl start &amp;lt;VEID&amp;gt;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
==Client contact==&lt;br /&gt;
&lt;br /&gt;
Do feel free to offer this service to clients if they complain that their VPS is slow. Check that they are not already on the new hard disk first by seeing if the .conf files for their VEID exist in &amp;#039;&amp;#039;/etc/vz/conf&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Please also ensure that you warn the client that reinstall capability will no longer be possible without significant downtime and us getting involved. Tell the client that they must be sure they will not need to reinstal again (although we will still move them across, as long as they don&amp;#039;t continuously reinstall).&lt;/div&gt;</summary>
		<author><name>Cocodude</name></author>
	</entry>
</feed>