[pve-devel] [PATCH pve-manager 2/2] Change remove partition order.
Wolfgang Link
w.link at proxmox.com
Mon Dec 19 12:41:27 CET 2016
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 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/PVE/API2/Ceph.pm b/PVE/API2/Ceph.pm
index c218fd2..f6b9370 100644
--- a/PVE/API2/Ceph.pm
+++ b/PVE/API2/Ceph.pm
@@ -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);
}
};
--
2.1.4
More information about the pve-devel
mailing list