<?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=Custom_Partitioning</id>
	<title>Custom Partitioning - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://gigatux.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Custom_Partitioning"/>
	<link rel="alternate" type="text/html" href="https://gigatux.com/wiki/index.php?title=Custom_Partitioning&amp;action=history"/>
	<updated>2026-11-06T14:17:04Z</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=Custom_Partitioning&amp;diff=296&amp;oldid=prev</id>
		<title>Astropoint at 08:59, 20 August 2012</title>
		<link rel="alternate" type="text/html" href="https://gigatux.com/wiki/index.php?title=Custom_Partitioning&amp;diff=296&amp;oldid=prev"/>
		<updated>2012-08-20T08:59:25Z</updated>

		<summary type="html">&lt;p&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 08:59, 20 August 2012&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-l11&quot;&gt;Line 11:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&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;## Reducing the logical volume (essentially the actual size of the disk) to the same size by typing &amp;#039;&amp;#039;lvresize -L &amp;#039;&amp;#039;&amp;#039;YY&amp;#039;&amp;#039;&amp;#039; /dev/lvm1/xen&amp;#039;&amp;#039;&amp;#039;XX&amp;#039;&amp;#039;&amp;#039; where &amp;#039;&amp;#039;&amp;#039;XX&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;YY&amp;#039;&amp;#039;&amp;#039; are as above.&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;## Reducing the logical volume (essentially the actual size of the disk) to the same size by typing &amp;#039;&amp;#039;lvresize -L &amp;#039;&amp;#039;&amp;#039;YY&amp;#039;&amp;#039;&amp;#039; /dev/lvm1/xen&amp;#039;&amp;#039;&amp;#039;XX&amp;#039;&amp;#039;&amp;#039; where &amp;#039;&amp;#039;&amp;#039;XX&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;YY&amp;#039;&amp;#039;&amp;#039; are as above.&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;# Creating and initialising new logical volumes for the user as per his requirements. Obviously, make sure that the requirements are sensible and fall within the user&amp;#039;s allocated amounts as per the package he has ordered. To create new partitions, do the following:&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;# Creating and initialising new logical volumes for the user as per his requirements. Obviously, make sure that the requirements are sensible and fall within the user&amp;#039;s allocated amounts as per the package he has ordered. To create new partitions, do the following:&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;## Create the logical volume by typing &#039;&#039;lvcreate -L &#039;&#039;&#039;YY&#039;&#039;&#039; /dev/lvm1/xen&#039;&#039;&#039;XXZZ&#039;&#039;&#039; where &#039;&#039;&#039;ZZ&#039;&#039;&#039; is a suitable identifier (e.g. &#039;&#039;&#039;var&#039;&#039;&#039; for what would live as the &#039;&#039;/var&#039;&#039; partition, so this could be xen10var) and &#039;&#039;&#039;YY&#039;&#039;&#039; is the size, e.g. 20G.&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;## Create the logical volume by typing &#039;&#039;lvcreate -L &#039;&#039;&#039;YY&#039;&#039;&#039; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-n &lt;/ins&gt;/dev/lvm1/xen&#039;&#039;&#039;XXZZ&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039; lvm1&lt;/ins&gt;&#039;&#039; where &#039;&#039;&#039;ZZ&#039;&#039;&#039; is a suitable identifier (e.g. &#039;&#039;&#039;var&#039;&#039;&#039; for what would live as the &#039;&#039;/var&#039;&#039; partition, so this could be xen10var) and &#039;&#039;&#039;YY&#039;&#039;&#039; is the size, e.g. 20G.&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;## Create the filesystem on there by typing &amp;#039;&amp;#039;mkfs.ext3 /dev/lvm1/xen&amp;#039;&amp;#039;&amp;#039;XXZZ&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; where &amp;#039;&amp;#039;&amp;#039;XX&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;ZZ&amp;#039;&amp;#039;&amp;#039; are as before. If the user wants another filesystem, change the &amp;#039;&amp;#039;mkfs.ext3&amp;#039;&amp;#039; command to something more suitable.&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;## Create the filesystem on there by typing &amp;#039;&amp;#039;mkfs.ext3 /dev/lvm1/xen&amp;#039;&amp;#039;&amp;#039;XXZZ&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; where &amp;#039;&amp;#039;&amp;#039;XX&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;ZZ&amp;#039;&amp;#039;&amp;#039; are as before. If the user wants another filesystem, change the &amp;#039;&amp;#039;mkfs.ext3&amp;#039;&amp;#039; command to something more suitable.&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;# Change the user&amp;#039;s Xen configuration at &amp;#039;&amp;#039;/etc/xen/xen&amp;#039;&amp;#039;&amp;#039;XX&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; to add new disks (in the disk directive). With the previous example, something like adding &amp;#039;&amp;#039;,&amp;#039;phy:/dev/mapper/lvm-xen&amp;#039;&amp;#039;&amp;#039;XX&amp;#039;&amp;#039;&amp;#039;var,xvdc,w&amp;#039; &amp;#039;&amp;#039; would do&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;# Change the user&amp;#039;s Xen configuration at &amp;#039;&amp;#039;/etc/xen/xen&amp;#039;&amp;#039;&amp;#039;XX&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; to add new disks (in the disk directive). With the previous example, something like adding &amp;#039;&amp;#039;,&amp;#039;phy:/dev/mapper/lvm-xen&amp;#039;&amp;#039;&amp;#039;XX&amp;#039;&amp;#039;&amp;#039;var,xvdc,w&amp;#039; &amp;#039;&amp;#039; would do&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Astropoint</name></author>
	</entry>
	<entry>
		<id>https://gigatux.com/wiki/index.php?title=Custom_Partitioning&amp;diff=295&amp;oldid=prev</id>
		<title>Cocodude: Created page with &quot;Often, a user will require custom partitioning for his VPS. This means that he will say something like &#039;&#039;&quot;I want 20GB reserved for /var and the rest for /&quot;&#039;&#039;. We can sort this ou...&quot;</title>
		<link rel="alternate" type="text/html" href="https://gigatux.com/wiki/index.php?title=Custom_Partitioning&amp;diff=295&amp;oldid=prev"/>
		<updated>2012-08-20T01:00:06Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Often, a user will require custom partitioning for his VPS. This means that he will say something like &amp;#039;&amp;#039;&amp;quot;I want 20GB reserved for /var and the rest for /&amp;quot;&amp;#039;&amp;#039;. We can sort this ou...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Often, a user will require custom partitioning for his VPS. This means that he will say something like &amp;#039;&amp;#039;&amp;quot;I want 20GB reserved for /var and the rest for /&amp;quot;&amp;#039;&amp;#039;. We can sort this out for any user.&lt;br /&gt;
&lt;br /&gt;
When a DTC reinstall occurs, the partitioning will be reset to its default state with all space for the root partition, and some for swap. We thus need the user to get his VPS set up in its most basic sense first, i.e. for him to install the OS and confirm that it is set up as expected.&lt;br /&gt;
&lt;br /&gt;
Once that is done, we need to do the following:&lt;br /&gt;
&lt;br /&gt;
# Log into the physical node that the VPS is set up upon.&lt;br /&gt;
# Ensure the VPS is shut down.&lt;br /&gt;
# Reduce the size of the root filesystem. This can be done by:&lt;br /&gt;
## Reducing the filesystem by typing &amp;#039;&amp;#039;resize2fs /dev/lvm1/xen&amp;#039;&amp;#039;&amp;#039;XX&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;YY&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; where &amp;#039;&amp;#039;&amp;#039;XX&amp;#039;&amp;#039;&amp;#039; is the VPS ID and &amp;#039;&amp;#039;&amp;#039;YY&amp;#039;&amp;#039;&amp;#039; is the size that the filesystem needs to be shrunk to (e.g. 20G). If you are prompted to run a fsck, please do so.&lt;br /&gt;
## Reducing the logical volume (essentially the actual size of the disk) to the same size by typing &amp;#039;&amp;#039;lvresize -L &amp;#039;&amp;#039;&amp;#039;YY&amp;#039;&amp;#039;&amp;#039; /dev/lvm1/xen&amp;#039;&amp;#039;&amp;#039;XX&amp;#039;&amp;#039;&amp;#039; where &amp;#039;&amp;#039;&amp;#039;XX&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;YY&amp;#039;&amp;#039;&amp;#039; are as above.&lt;br /&gt;
# Creating and initialising new logical volumes for the user as per his requirements. Obviously, make sure that the requirements are sensible and fall within the user&amp;#039;s allocated amounts as per the package he has ordered. To create new partitions, do the following:&lt;br /&gt;
## Create the logical volume by typing &amp;#039;&amp;#039;lvcreate -L &amp;#039;&amp;#039;&amp;#039;YY&amp;#039;&amp;#039;&amp;#039; /dev/lvm1/xen&amp;#039;&amp;#039;&amp;#039;XXZZ&amp;#039;&amp;#039;&amp;#039; where &amp;#039;&amp;#039;&amp;#039;ZZ&amp;#039;&amp;#039;&amp;#039; is a suitable identifier (e.g. &amp;#039;&amp;#039;&amp;#039;var&amp;#039;&amp;#039;&amp;#039; for what would live as the &amp;#039;&amp;#039;/var&amp;#039;&amp;#039; partition, so this could be xen10var) and &amp;#039;&amp;#039;&amp;#039;YY&amp;#039;&amp;#039;&amp;#039; is the size, e.g. 20G.&lt;br /&gt;
## Create the filesystem on there by typing &amp;#039;&amp;#039;mkfs.ext3 /dev/lvm1/xen&amp;#039;&amp;#039;&amp;#039;XXZZ&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; where &amp;#039;&amp;#039;&amp;#039;XX&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;ZZ&amp;#039;&amp;#039;&amp;#039; are as before. If the user wants another filesystem, change the &amp;#039;&amp;#039;mkfs.ext3&amp;#039;&amp;#039; command to something more suitable.&lt;br /&gt;
# Change the user&amp;#039;s Xen configuration at &amp;#039;&amp;#039;/etc/xen/xen&amp;#039;&amp;#039;&amp;#039;XX&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; to add new disks (in the disk directive). With the previous example, something like adding &amp;#039;&amp;#039;,&amp;#039;phy:/dev/mapper/lvm-xen&amp;#039;&amp;#039;&amp;#039;XX&amp;#039;&amp;#039;&amp;#039;var,xvdc,w&amp;#039; &amp;#039;&amp;#039; would do&lt;br /&gt;
# Starting the user&amp;#039;s VPS by typing &amp;#039;&amp;#039;xm create -c xen&amp;#039;&amp;#039;&amp;#039;XX&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; and making sure it starts up.&lt;br /&gt;
&lt;br /&gt;
Let the user know that he has new &amp;#039;&amp;#039;/dev/xvd&amp;#039;&amp;#039;&amp;#039;Z&amp;#039;&amp;#039;&amp;#039; partitions, and that he is required to set these up in &amp;#039;&amp;#039;/etc/fstab&amp;#039;&amp;#039; to point to the relevant places. Also let them know that any reinstalls will require us to reconfigure his partitions.&lt;/div&gt;</summary>
		<author><name>Cocodude</name></author>
	</entry>
</feed>