<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
		<id>http://wiki.e-bulles.be/b/index.php?action=history&amp;feed=atom&amp;title=Linux-VServer_et_Quotas</id>
		<title>Linux-VServer et Quotas - Historique des versions</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.e-bulles.be/b/index.php?action=history&amp;feed=atom&amp;title=Linux-VServer_et_Quotas"/>
		<link rel="alternate" type="text/html" href="http://wiki.e-bulles.be/b/index.php?title=Linux-VServer_et_Quotas&amp;action=history"/>
		<updated>2026-05-05T06:29:47Z</updated>
		<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://wiki.e-bulles.be/b/index.php?title=Linux-VServer_et_Quotas&amp;diff=1497&amp;oldid=prev</id>
		<title>Philippe : /* Configuration du serveur virtuel */</title>
		<link rel="alternate" type="text/html" href="http://wiki.e-bulles.be/b/index.php?title=Linux-VServer_et_Quotas&amp;diff=1497&amp;oldid=prev"/>
				<updated>2006-09-08T08:08:52Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Configuration du serveur virtuel&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&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 style=&quot;vertical-align: top;&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Version du 8 septembre 2006 à 08:08&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-l53&quot; &gt;Ligne 53:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 53:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; &amp;lt;host&amp;gt;: # mkdir /dev/vroot&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; &amp;lt;host&amp;gt;: # mkdir /dev/vroot&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; &amp;lt;host&amp;gt;: # for i in 0 1 2 3 4 5 6 7 ; do mknod /dev/vroot/$i b 4 $i; done&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; &amp;lt;host&amp;gt;: # for i in 0 1 2 3 4 5 6 7 ; do mknod /dev/vroot/$i b 4 $i; done&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;'''Attention''': après un passage à ''udev'', j'ai remarqué que les devices automatiquement créés sont ''/dev/vroot'''n'''''! Adaptez donc le script en conséquence.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;On va mettre l'association dans les ''scriptlets'' du versver. On crée le ficher ''/etc/vservers/&amp;lt;vserver&amp;gt;/scripts/prepre-start.d/vroot.sh'':&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;On va mettre l'association dans les ''scriptlets'' du versver. On crée le ficher ''/etc/vservers/&amp;lt;vserver&amp;gt;/scripts/prepre-start.d/vroot.sh'':&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Philippe</name></author>	</entry>

	<entry>
		<id>http://wiki.e-bulles.be/b/index.php?title=Linux-VServer_et_Quotas&amp;diff=1358&amp;oldid=prev</id>
		<title>Philippe : /* Activation des quotas */</title>
		<link rel="alternate" type="text/html" href="http://wiki.e-bulles.be/b/index.php?title=Linux-VServer_et_Quotas&amp;diff=1358&amp;oldid=prev"/>
				<updated>2006-02-03T11:37:31Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Activation des quotas&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&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 style=&quot;vertical-align: top;&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Version du 3 février 2006 à 11:37&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-l87&quot; &gt;Ligne 87:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 87:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Et voilà!&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Et voilà!&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Script de démarrage ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Les quotas sont démarrés normalemnt dans le ''run-level S'', dont les scripts ne sont pas pris en compte ici.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Il faut donc modifier le setup par défaut:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &amp;lt;vserver&amp;gt;: # update-rc.d -f quota remove&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &amp;lt;vserver&amp;gt;: # update-rc.d quota start 05 3 . stop 85 0 6 .&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Liens = &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Liens = &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Philippe</name></author>	</entry>

	<entry>
		<id>http://wiki.e-bulles.be/b/index.php?title=Linux-VServer_et_Quotas&amp;diff=1332&amp;oldid=prev</id>
		<title>Philippe : /* Liens */</title>
		<link rel="alternate" type="text/html" href="http://wiki.e-bulles.be/b/index.php?title=Linux-VServer_et_Quotas&amp;diff=1332&amp;oldid=prev"/>
				<updated>2006-01-24T21:21:06Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Liens&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&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 style=&quot;vertical-align: top;&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Version du 24 janvier 2006 à 21:21&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-l89&quot; &gt;Ligne 89:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 89:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Liens = &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Liens = &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [http://linux-vserver.org/Standard+non-shared+quota Standard non-shared quota]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [http://irc.13thfloor.at/LOG/2005-12/LOG_2005-12-02.txt IRC log]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [http://www.13thfloor.at/old/VServer/HowTo_LVMQS.shtml&amp;#160; VS Secure Quota HowTo]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [http://www.13thfloor.at/old/VServer/HowTo_LVMQS.shtml&amp;#160; VS Secure Quota HowTo]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [http://linux-vserver.org/Standard+non-shared+quota Standard non-shared quota]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Philippe</name></author>	</entry>

	<entry>
		<id>http://wiki.e-bulles.be/b/index.php?title=Linux-VServer_et_Quotas&amp;diff=1328&amp;oldid=prev</id>
		<title>Philippe le 24 janvier 2006 à 19:02</title>
		<link rel="alternate" type="text/html" href="http://wiki.e-bulles.be/b/index.php?title=Linux-VServer_et_Quotas&amp;diff=1328&amp;oldid=prev"/>
				<updated>2006-01-24T19:02:15Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Problématique =&lt;br /&gt;
La question des quotas revient fréquemment, et j'ai eu du mal à trouver la marche à suivre pour ma configuration (Noyeau 2.6.14, [http://linux-vserver.org/ Linux-VServer] 2.01)&lt;br /&gt;
&lt;br /&gt;
Ces notes traitent des quotas '''à l'intérieur''' d'un serveur virtuel.&lt;br /&gt;
&lt;br /&gt;
Comme le [http://linux-vserver.org/ Linux-VServer] n'accède pas directement au disque, il n'est pas possible d'utiliser directement les quotas au sein d'un serveur virtuel.&lt;br /&gt;
&lt;br /&gt;
Pour pouvoir utiliser les quotas, il faudra passer par le pilote ''Virtual Root'' de [http://linux-vserver.org/ Linux-VServer], associé à un device disque.&lt;br /&gt;
&lt;br /&gt;
Pour ne pas allouer toute une partition au serveur virtuel, on utilisera tout naturellement le Logical Volume Manager.&lt;br /&gt;
&lt;br /&gt;
= Pré-requis =&lt;br /&gt;
Le noyeau doit supporter:&lt;br /&gt;
* Le support du LVM (on suppose ici qu'il est déjà configuré)&lt;br /&gt;
* Le support des quotas (inclu dans le noyeau ou en module -- ''quota_v2'')&lt;br /&gt;
* Le proxy-device ''Virtual Root'' de [http://linux-vserver.org/ Linux-VServer] (inclu dans le noyeau ou en module -- ''vroot'')&lt;br /&gt;
&lt;br /&gt;
Si on a opté pour les modules, s'assurer qu'ils sont bien chargés.&lt;br /&gt;
&lt;br /&gt;
= Mise en place =&lt;br /&gt;
== Création d'un Serveur Virtuel ==&lt;br /&gt;
Nous allons partir d'un serveur existant. Le serveur est créé comme décrit dans le [[Linux-VServer HowTo]]:&lt;br /&gt;
 &amp;lt;host&amp;gt;: # PKG_EXCLUDE=&amp;quot;dhcp-client,fdutils,iptables,libpcap0.7,makedev,pciutils,ppp,pppconfig,pppoe,pppoeconf&amp;quot; &lt;br /&gt;
 &amp;lt;host&amp;gt;: # vserver &amp;lt;vserver&amp;gt; build --hostname &amp;lt;vserver-fqdn&amp;gt; --interface &amp;lt;vserver-interface&amp;gt; \&lt;br /&gt;
   --context &amp;lt;vserver-context&amp;gt; -m debootstrap -- -d sarge -- --exclude=${PKG_EXCLUDE}&lt;br /&gt;
 &amp;lt;host&amp;gt;: # vserver start&lt;br /&gt;
 ....&lt;br /&gt;
 &amp;lt;host&amp;gt;: # vserver stop&lt;br /&gt;
&lt;br /&gt;
== Création du volume logique ==&lt;br /&gt;
Tout ceci sur la machine hôte!&lt;br /&gt;
&lt;br /&gt;
On utilise le ''LVM'' pour crééer une partition logique et on initialise le file system:&lt;br /&gt;
 &amp;lt;host&amp;gt;: # lvcreate -L 18G -n &amp;lt;vserver&amp;gt; vg0&lt;br /&gt;
 &amp;lt;host&amp;gt;: # mke2fs -j /dev/vg0/&amp;lt;vserver&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Il faut ajouter une ligne dans le ''/etc/fstab'':&lt;br /&gt;
 # &amp;lt;file system&amp;gt;    &amp;lt;mount point&amp;gt;             &amp;lt;type&amp;gt; &amp;lt;options&amp;gt;                  &amp;lt;dump&amp;gt;  &amp;lt;pass&amp;gt;&lt;br /&gt;
 /dev/vg0/&amp;lt;vserver&amp;gt; /home/vservers/&amp;lt;vserver&amp;gt;  ext3   defaults,usrquota,grpquota 0       2&lt;br /&gt;
&lt;br /&gt;
Il est impératif de monter le filesystem avec ''usrquota,grpquota'', même si on ne les utilise pas sur le système hôte.&lt;br /&gt;
&lt;br /&gt;
Il reste à copier le serveur virtuel sur la filesystem créé (assurez vous que le serveur est bien arreté)&lt;br /&gt;
 &amp;lt;host&amp;gt;: # mv /home/vservers/&amp;lt;vserver&amp;gt; /home/vservers/&amp;lt;vserver&amp;gt;.orig&lt;br /&gt;
 &amp;lt;host&amp;gt;: # mkdir /home/vservers/&amp;lt;vserver&amp;gt;&lt;br /&gt;
 &amp;lt;host&amp;gt;: # mount /home/vservers/&amp;lt;vserver&amp;gt;&lt;br /&gt;
 &amp;lt;host&amp;gt;: # cp -a /home/vservers/&amp;lt;vserver&amp;gt;.orig/. /home/vservers/&amp;lt;vserver&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configuration du serveur virtuel ==&lt;br /&gt;
Il faut associer la partition a un device ''Virtual Root'' à l'aide de la commande ''vrsetup''.&lt;br /&gt;
&lt;br /&gt;
Si les devices n'existent pas, on peux aisément les créer à la main:&lt;br /&gt;
 &amp;lt;host&amp;gt;: # mkdir /dev/vroot&lt;br /&gt;
 &amp;lt;host&amp;gt;: # for i in 0 1 2 3 4 5 6 7 ; do mknod /dev/vroot/$i b 4 $i; done&lt;br /&gt;
&lt;br /&gt;
On va mettre l'association dans les ''scriptlets'' du versver. On crée le ficher ''/etc/vservers/&amp;lt;vserver&amp;gt;/scripts/prepre-start.d/vroot.sh'':&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 case $1 in&lt;br /&gt;
 prepre-start)&lt;br /&gt;
    rm -f /home/vservers/&amp;lt;vserver&amp;gt;/dev/hdv1&lt;br /&gt;
    vrsetup /dev/vroot/0 /dev/vg0/&amp;lt;vserver&amp;gt;&lt;br /&gt;
    cp -fa /dev/vroot/0 /home/vservers/&amp;lt;vserver&amp;gt;/dev/hdv1&lt;br /&gt;
    ;;&lt;br /&gt;
 postpost-stop)&lt;br /&gt;
    vrsetup -d /dev/vroot/0&lt;br /&gt;
    ;;&lt;br /&gt;
 *)&lt;br /&gt;
    ;;&lt;br /&gt;
 esac&lt;br /&gt;
&lt;br /&gt;
On établit un lien symbolique pour l'arrêt:&lt;br /&gt;
 &amp;lt;host&amp;gt;: # ln -s ../prepre-start.d/vroot.sh /etc/vservers/&amp;lt;vserver&amp;gt;/scripts/postpost-stop.d&lt;br /&gt;
&lt;br /&gt;
On édite ''/etc/vservers/&amp;lt;vserver&amp;gt;/apps/init/mtab'' pour signaler que les quotas sont d&amp;lt;vserver&amp;gt;onibles:&lt;br /&gt;
 /dev/hdv1 / ufs rw,usrquota,grpquota 0 0&lt;br /&gt;
&lt;br /&gt;
Et enfin, on ajoute la ''capability '''quota_ctl''''' au ''capabilities'' du contexte:&lt;br /&gt;
 &amp;lt;host&amp;gt;:  # echo quota_ctl /etc/vservers/&amp;lt;vserver&amp;gt;/ccapabilities&lt;br /&gt;
&lt;br /&gt;
== Activation des quotas ==&lt;br /&gt;
On peux maintenant démarrer le serveur virtuel et installer les paquets nécessaires:&lt;br /&gt;
 &amp;lt;host&amp;gt;: # vserver &amp;lt;vserver&amp;gt; start&lt;br /&gt;
 &amp;lt;host&amp;gt;: # vserver &amp;lt;vserver&amp;gt; enter&lt;br /&gt;
 &amp;lt;vserver&amp;gt;: # apt-get install quota quotatool&lt;br /&gt;
 &amp;lt;vserver&amp;gt;: # quotacheck -maugv&lt;br /&gt;
 &amp;lt;vserver&amp;gt;: # quotaon -auvg&lt;br /&gt;
&lt;br /&gt;
Et voilà!&lt;br /&gt;
&lt;br /&gt;
= Liens = &lt;br /&gt;
* [http://www.13thfloor.at/old/VServer/HowTo_LVMQS.shtml  VS Secure Quota HowTo]&lt;br /&gt;
* [http://linux-vserver.org/Standard+non-shared+quota Standard non-shared quota]&lt;/div&gt;</summary>
		<author><name>Philippe</name></author>	</entry>

	</feed>