]> git.proxmox.com Git - pve-manager.git/commitdiff
Change remove partition order.
authorWolfgang Link <w.link@proxmox.com>
Mon, 19 Dec 2016 11:41:27 +0000 (12:41 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 22 Dec 2016 11:26:10 +0000 (12:26 +0100)
If we remove first the journal the data partition will automatically mounted
and can't destroy the partition.
This is trigger by the udev ceph rule.

PVE/API2/Ceph.pm

index f1455920c330d67fd76619b6238d5f7c07c31920..a63199bc18cc522dd4ab85dedf6ecbe21a747569 100644 (file)
@@ -366,8 +366,9 @@ __PACKAGE__->register_method ({
            if (my $err = $@) {
                warn $err;
            } elsif ($param->{cleanup}) {
-               &$remove_partition($journal_part);
+               #be aware of the ceph udev rules which can remount.
                &$remove_partition($data_part);
+               &$remove_partition($journal_part);
            }
        };