[PATCH 5/5] Increase padding for md metadata in lvm factory. (#966795)

David Lehman dlehman at redhat.com
Wed Jun 12 17:37:45 UTC 2013


I hoped one extent per disk was enough. It seemed to be, but I didn't
try it with raid5. I'm increasing that padding to 500% because I don't
have time for these games.
---
 blivet/devicefactory.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/blivet/devicefactory.py b/blivet/devicefactory.py
index 116a155..d642ae9 100644
--- a/blivet/devicefactory.py
+++ b/blivet/devicefactory.py
@@ -1145,8 +1145,9 @@ class LVMFactory(DeviceFactory):
                 log.debug("size cut to %d to omit old device space" % size)
 
         if self.container_raid_level:
-            # add one extent per disk to account for md metadata
-            size += LVM_PE_SIZE * len(self.disks)
+            # add two extents per disk to account for md metadata
+            # (it was originally one per disk but that wasn't enough for raid5)
+            size += LVM_PE_SIZE * len(self.disks) * 5
 
         return size
 
-- 
1.8.1.4



More information about the anaconda-patches mailing list