[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH] LVM VG size is not same as the device where PV is. (#480793)
- From: Joel Granados Moreno <jgranado redhat com>
- To: anaconda-devel-list redhat com
- Subject: [PATCH] LVM VG size is not same as the device where PV is. (#480793)
- Date: Mon, 23 Feb 2009 15:14:40 +0100
We need to account for PV metadata in the LV grow functions. This patch
avoids the missing one PE error message.
---
autopart.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/autopart.py b/autopart.py
index 2c6f5e8..2938d9b 100644
--- a/autopart.py
+++ b/autopart.py
@@ -534,7 +534,7 @@ def growLogicalVolumes(diskset, requests):
log("considering %s, start size = %s",req.logicalVolumeName, req.getStartSize())
# get remaining free space
- vgfree = lvm.getVGFreeSpace(vgreq, requests, diskset)
+ vgfree = lvm.getVGFreeSpace(vgreq, requests, diskset) - (2*vgreq.pesize)
# print "vgfree = ", vgfree
if DEBUG_LVM_GROW:
--
1.6.0.6
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]