Bug 1444862
| Summary: | [RFE] Make chunksize configurable in [backend-setup] section | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Sachidananda Urs <surs> |
| Component: | gdeploy | Assignee: | Sachidananda Urs <surs> |
| Status: | CLOSED ERRATA | QA Contact: | Manisha Saini <msaini> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rhgs-3.3 | CC: | amukherj, asrivast, bmohanra, msaini, rcyriac, rhinduja, rhs-bugs, smohan, srmukher, storage-qa-internal, surs |
| Target Milestone: | --- | Keywords: | FutureFeature |
| Target Release: | RHGS 3.3.0 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | gdeploy-2.0.2-4 | Doc Type: | Enhancement |
| Doc Text: |
With this release, user can configure the chunksize from the backend-setup. It is simpler compared to ‘pv’, ‘vg’ or ‘lv’. Previously, ‘lv’ module was the only way to use chunksize as a parameter.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-09-21 04:49:50 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1417138 | ||
|
Description
Sachidananda Urs
2017-04-24 12:47:11 UTC
How to verify the bug: Use the below configurations to test the bug: Scenario 1: chunksize variable overriding gdeploy calculations [hosts] 10.70.37.167 [disktype] raid6 [diskcount] 12 [stripesize] 256 [backend-setup] devices=/dev/vdb vgs=vg1 pools=pool1 chunksize=1024 lvs=lv1 mountpoints=/mnt/brick The above config should set the chunk size to 1M despite stripesize and diskcount being set. Scenario 2: Chunksize not set [hosts] 10.70.37.167 [disktype] raid6 [diskcount] 12 [stripesize] 256 [backend-setup] devices=/dev/vdb vgs=vg1 pools=pool1 lvs=lv1 mountpoints=/mnt/brick In the above scenario chunksize is set to 3M. Scenario 3: Jbod, RAID5, and RAID10 As per documentation by perf team: https://access.redhat.com/documentation/en-us/red_hat_gluster_storage/3.2/html-single/administration_guide/#Brick_Configuration we recommend 256K as chunk size, which will be used by default. If user wants to override then the chunksize variable has to be used. [hosts] 10.70.37.167 [disktype] raid10 [stripesize] 256 [backend-setup] devices=/dev/vdb vgs=vg1 pools=pool1 lvs=lv1 mountpoints=/mnt/brick With the above configuration the chunksize is set to 256K. Scenario 4: RAID10, chunksize variable set [hosts] 10.70.37.167 [disktype] raid10 [stripesize] 256 [backend-setup] devices=/dev/vdb vgs=vg1 pools=pool1 chunksize=1024 lvs=lv1 mountpoints=/mnt/brick In the above case chunksize is set to 1M. Verified this bug with the scenarios mentioned in comment #3 -------------------------------- CASE 1: chunksize variable overriding gdeploy calculations # cat chunksize2.conf [hosts] 10.70.47.126 [disktype] raid6 [diskcount] 12 [stripesize] 256 [backend-setup] devices=/dev/sdb,sdc,sdd vgs=vg1,vg2,vg3 pools=pool1,pool2,pool3 chunksize=1024 lvs=lv1,lv2,lv3 mountpoints=/mnt/brick1,/mnt/brick2,/mnt/brick3 # lvs -o name,chunksize LV Chunk root 0 swap 0 lv1 0 pool1 1.00m lv2 0 pool2 1.00m lv3 0 pool3 1.00m ------------------------------------- CASE 2: Chunksize not set # cat chunksize3.conf [hosts] 10.70.47.126 [disktype] raid6 [diskcount] 12 [stripesize] 256 [backend-setup] devices=/dev/sdb,sdc,sdd vgs=vg1,vg2,vg3 pools=pool1,pool2,pool3 lvs=lv1,lv2,lv3 mountpoints=/mnt/brick1,/mnt/brick2,/mnt/brick3 # lvs -o name,chunksize LV Chunk root 0 swap 0 lv1 0 pool1 3.00m lv2 0 pool2 3.00m lv3 0 pool3 3.00m --------------------------- CASE 3: RAID 10 and chunksize variable not set # cat chunksize4.conf [hosts] 10.70.47.126 [disktype] raid10 [diskcount] 12 [stripesize] 256 [backend-setup] devices=/dev/sdb,sdc,sdd vgs=vg1,vg2,vg3 pools=pool1,pool2,pool3 lvs=lv1,lv2,lv3 mountpoints=/mnt/brick1,/mnt/brick2,/mnt/brick3 # lvs -o name,chunksize LV Chunk root 0 swap 0 lv1 0 pool1 256.00k lv2 0 pool2 256.00k lv3 0 pool3 256.00k -------------------------------------- CASE 4: RAID10, chunksize variable set # cat chunksize5.conf [hosts] 10.70.47.126 [disktype] raid10 [diskcount] 12 [stripesize] 256 [backend-setup] devices=/dev/sdb,sdc,sdd vgs=vg1,vg2,vg3 pools=pool1,pool2,pool3 chunksize=1024 lvs=lv1,lv2,lv3 mountpoints=/mnt/brick1,/mnt/brick2,/mnt/brick3 # lvs -o name,chunksize LV Chunk root 0 swap 0 lv1 0 pool1 1.00m lv2 0 pool2 1.00m lv3 0 pool3 1.00m ---------------------------------- CASE 5: RAID5, chunksize variable not set # cat chunksize6.conf [hosts] 10.70.47.126 [disktype] raid5 [diskcount] 12 [stripesize] 256 [backend-setup] devices=/dev/sdb,sdc,sdd vgs=vg1,vg2,vg3 pools=pool1,pool2,pool3 lvs=lv1,lv2,lv3 mountpoints=/mnt/brick1,/mnt/brick2,/mnt/brick3 # lvs -o name,chunksize LV Chunk root 0 swap 0 lv1 0 pool1 256.00k lv2 0 pool2 256.00k lv3 0 pool3 256.00k ---------------------------------------------- CASE 6: RAID5, chunksize variable set # cat chunksize7.conf [hosts] 10.70.47.126 [disktype] raid5 [diskcount] 12 [stripesize] 256 [backend-setup] devices=/dev/sdb,sdc,sdd vgs=vg1,vg2,vg3 pools=pool1,pool2,pool3 chunksize=1024 lvs=lv1,lv2,lv3 mountpoints=/mnt/brick1,/mnt/brick2,/mnt/brick3 # lvs -o name,chunksize LV Chunk root 0 swap 0 lv1 0 pool1 1.00m lv2 0 pool2 1.00m lv3 0 pool3 1.00m ---------------------------------------- CASE 7: JBOD, chunksize variable not set # cat chunksize8.conf [hosts] 10.70.47.126 [disktype] Jbod [diskcount] 12 [stripesize] 256 [backend-setup] devices=/dev/sdb,sdc,sdd vgs=vg1,vg2,vg3 pools=pool1,pool2,pool3 lvs=lv1,lv2,lv3 mountpoints=/mnt/brick1,/mnt/brick2,/mnt/brick3 # lvs -o name,chunksize LV Chunk root 0 swap 0 lv1 0 pool1 256.00k lv2 0 pool2 256.00k lv3 0 pool3 256.00k -------------------------------------------- CASE 8: JBOD, chunksize variable set # cat chunksize9.conf [hosts] 10.70.47.126 [disktype] Jbod [diskcount] 12 [stripesize] 256 [backend-setup] devices=/dev/sdb,sdc,sdd vgs=vg1,vg2,vg3 pools=pool1,pool2,pool3 chunksize=1024 lvs=lv1,lv2,lv3 mountpoints=/mnt/brick1,/mnt/brick2,/mnt/brick3 # lvs -o name,chunksize LV Chunk root 0 swap 0 lv1 0 pool1 1.00m lv2 0 pool2 1.00m lv3 0 pool3 1.00m Based on comment #5,moving this to verified state. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:2777 |