Have KVM storage support default to cache=none for now
Fix lvm to use raw rather than qcow2, since qcow2 makes no sense for LVM git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15019 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -269,6 +269,9 @@ sub get_filepath_by_url { #at the end of the day, the libvirt storage api gives | ||||
|     my $create = $args{create}; | ||||
|     my $force = $args{force}; | ||||
|     my $format = $args{format}; | ||||
|     if ($url =~ /^lvm:/) { | ||||
| 	$format = 'raw'; | ||||
|     } | ||||
|     unless ($format) { | ||||
|         $format = 'qcow2'; | ||||
|     } | ||||
| @@ -1610,7 +1613,7 @@ sub chvm { | ||||
|             } elsif ($suffix =~ /vd/) { | ||||
|                 $bus='virtio'; | ||||
|             } | ||||
|             my $xml = "<disk type='file' device='disk'><driver name='qemu' type='$format'/><source file='$_'/><target dev='$suffix' bus='$bus'/></disk>"; | ||||
|             my $xml = "<disk type='file' device='disk'><driver name='qemu' type='$format' cache='none'/><source file='$_'/><target dev='$suffix' bus='$bus'/></disk>"; | ||||
|             if ($currstate eq 'on') { #attempt live attach | ||||
|               eval { | ||||
|               $dom->attach_device($xml); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user