<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kb.rvmgroup.it/index.php?action=history&amp;feed=atom&amp;title=Importare_volumi_LVM_preesistenti_in_Proxmox</id>
	<title>Importare volumi LVM preesistenti in Proxmox - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kb.rvmgroup.it/index.php?action=history&amp;feed=atom&amp;title=Importare_volumi_LVM_preesistenti_in_Proxmox"/>
	<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Importare_volumi_LVM_preesistenti_in_Proxmox&amp;action=history"/>
	<updated>2026-06-19T22:33:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://kb.rvmgroup.it/index.php?title=Importare_volumi_LVM_preesistenti_in_Proxmox&amp;diff=9238&amp;oldid=prev</id>
		<title>Gabriele.vivinetto at 13:37, 27 February 2015</title>
		<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Importare_volumi_LVM_preesistenti_in_Proxmox&amp;diff=9238&amp;oldid=prev"/>
		<updated>2015-02-27T13:37:43Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&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 class=&quot;diff-title&quot; lang=&quot;en&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 13:37, 27 February 2015&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-l28&quot;&gt;Line 28:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 28:&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;* Fare un rescan dei datastore:&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;* Fare un rescan dei datastore:&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;  sudo qm rescan&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;  sudo qm rescan&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&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; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* Aggiungere uno storage di tipo LVM, selezionando il Volume Group contenente il Logical Volume rinominato&lt;/ins&gt;&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;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;* Ora il disco dovrebbe comparire come &amp;quot;unused&amp;quot; nella configurazione della VM nell&amp;#039;interfaccia web di proxmox: collegarlo, e far partire la VM.&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;* Ora il disco dovrebbe comparire come &amp;quot;unused&amp;quot; nella configurazione della VM nell&amp;#039;interfaccia web di proxmox: collegarlo, e far partire la VM.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Gabriele.vivinetto</name></author>
	</entry>
	<entry>
		<id>https://kb.rvmgroup.it/index.php?title=Importare_volumi_LVM_preesistenti_in_Proxmox&amp;diff=9029&amp;oldid=prev</id>
		<title>Gabriele.vivinetto: Created page with &quot;Se sull&#039;host ci sono dischi con volumi LVM preesistenti, è possibile collegarli come DISCHI ad una virtual machine. NON si esporta il volume LVM, ma il volume viene utilizzat...&quot;</title>
		<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Importare_volumi_LVM_preesistenti_in_Proxmox&amp;diff=9029&amp;oldid=prev"/>
		<updated>2014-06-20T18:16:04Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Se sull&amp;#039;host ci sono dischi con volumi LVM preesistenti, è possibile collegarli come DISCHI ad una virtual machine. NON si esporta il volume LVM, ma il volume viene utilizzat...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Se sull&amp;#039;host ci sono dischi con volumi LVM preesistenti, è possibile collegarli come DISCHI ad una virtual machine. NON si esporta il volume LVM, ma il volume viene utilizzato come unità disco dalla VM. Quindi se il volume contiene un file sistem, la virtual machine vedrà un nuovo disco, e lo monterà PER intero, senza specificare la partizione.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Se invece si aggiungono volumi LVM creati da un datastore, si potranno partizionare.&lt;br /&gt;
&lt;br /&gt;
Ad esempio sull&amp;#039;host ipotizziamo ci sia un logical volume, che può essere magari montato e sharato via nfs:&lt;br /&gt;
 /dev/vg0/lv0&lt;br /&gt;
&lt;br /&gt;
Dal guest il volume potrebbe essere montato come share nfs.&lt;br /&gt;
&lt;br /&gt;
Se si vuole evitare di gestire NFS sull&amp;#039;host e sul guest, si può decidere di far accedere direttamente il guest al volume dell&amp;#039;host.&lt;br /&gt;
&lt;br /&gt;
Ipotizziamo che la VM abbia id 110.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Fare in modo che l&amp;#039;host non acceda più al volume (ad esempio togliere la sahre nfs e smontarlo). NON disabilitare il VG o esportarlo. Deve essere visibile dall&amp;#039;host per essere elencato nel datastaore.&lt;br /&gt;
&lt;br /&gt;
* Per prima cosa, aggiungere un TAG al logical volume, per renderlo visibile alla VM in oggetto:&lt;br /&gt;
&lt;br /&gt;
 sudo lvchange --addtag pve-vm-110 /dev/vg0/lv0&lt;br /&gt;
&lt;br /&gt;
* Verificare che ci sia il tag:&lt;br /&gt;
 sudo lvs @pve-vm-110&lt;br /&gt;
&lt;br /&gt;
* Ora rinominare il LV con il nome adatto:&lt;br /&gt;
 sudo lvrename /dev/vg0/lv0 /dev/vg0/vm-110-disk-2&lt;br /&gt;
&lt;br /&gt;
* Fare un rescan dei datastore:&lt;br /&gt;
 sudo qm rescan&lt;br /&gt;
&lt;br /&gt;
* Ora il disco dovrebbe comparire come &amp;quot;unused&amp;quot; nella configurazione della VM nell&amp;#039;interfaccia web di proxmox: collegarlo, e far partire la VM.&lt;br /&gt;
&lt;br /&gt;
* Nel guest, il nuovo volume arò disponibile, ad esempio come /dev/vdb&lt;br /&gt;
&lt;br /&gt;
* Montarlo SENZA specificare partizioni (perchè non ne ha) come:&lt;br /&gt;
 sudo mount /dev/vdb /mnt&lt;br /&gt;
&lt;br /&gt;
=Riferimenti=&lt;br /&gt;
*[http://blog.krnjevic.com/?p=467 pk stuff » Proxmox: Adding Existing Logical Volumes]&lt;/div&gt;</summary>
		<author><name>Gabriele.vivinetto</name></author>
	</entry>
</feed>