[PATCH 2/2] Make sure all pv's of an lv's vg are setup before resizing an lv

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is needed in case the pv's are dmraid partitions, which won't exist
unless first explicitly setup.
---
 storage/devices.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index 6a8d4a9..c4a8db6 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -2024,6 +2024,9 @@ class LVMLogicalVolumeDevice(DMDevice):
         if not self.exists:
             raise DeviceError("device has not been created")
 
+        # Setup VG parents (in case they are dmraid partitions for example)
+        self.vg.setupParents()
+
         if self.format.exists:
             self.format.teardown()
 
-- 
1.6.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux