]> git.proxmox.com Git - pve-container.git/commitdiff
add support for LVM
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 11 Sep 2015 10:43:05 +0000 (12:43 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 11 Sep 2015 10:43:05 +0000 (12:43 +0200)
src/PVE/LXC.pm

index 2b5b285c2b0c247515661f306303d59d20f32b71..01d031dd9d4c4789ea26327ac5d4be7a39c3ced8 100644 (file)
@@ -1994,7 +1994,7 @@ sub mountpoint_mount {
            if ($scfg->{path}) {
                push @extra_opts, '-o', 'loop';
                $use_loopdev = 1;
-           } elsif ($scfg->{type} eq 'drbd' || $scfg->{type} eq 'rbd') {
+           } elsif ($scfg->{type} eq 'drbd' || $scfg->{type} eq 'lvm' || $scfg->{type} eq 'rbd') {
                # do nothing
            } else {
                die "unsupported storage type '$scfg->{type}'\n";
@@ -2121,7 +2121,7 @@ sub create_disks {
 
                    $volid = PVE::Storage::vdisk_alloc($storecfg, $storage, $vmid, 'subvol',
                                                       undef, $size_kb);
-               } elsif ($scfg->{type} eq 'drbd') {
+               } elsif ($scfg->{type} eq 'drbd' || $scfg->{type} eq 'lvm') {
 
                    $volid = PVE::Storage::vdisk_alloc($storecfg, $storage, $vmid, 'raw', undef, $size_kb);
                    format_disk($storecfg, $volid);