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

[PATCH rhel6-branch master 2/2] Adjust mdraid size estimates (#587442)



The new mdadmin aligns the superblock on 1M boundries, and it leaves
a 1M offset for data so we need to reduce the size of each data disk
in the array by 2M

Chunk size is now 512k by default.

Resolves: rhbz#587442
---
 storage/devices.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index 3b277c9..7e7e405 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -2470,8 +2470,8 @@ class MDRaidArrayDevice(StorageDevice):
         self._totalDevices = numeric_type(totalDevices)
         self._memberDevices = numeric_type(memberDevices)
         self.sysfsPath = "/devices/virtual/block/%s" % name
-        self.chunkSize = 64.0 / 1024.0          # chunk size in MB
-        self.superBlockSize = 128.0 / 1024.0    # superblock size in MB
+        self.chunkSize = 512.0 / 1024.0         # chunk size in MB
+        self.superBlockSize = 2.0               # superblock size in MB
 
         self.createMetadataVer = "1.1"
         # bitmaps are not meaningful on raid0 according to mdadm-3.0.3
-- 
1.6.6.1


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