Issues when Creating a Gluster Brick with Cache

Hey Everyone, When in the server manager and creating a brick from the storage device the brick will fail whenever i attach a cache device to it. I'm not really sure why? It just says unknown.

On Mon, Jun 24, 2019 at 11:39 AM Robert Crawford < robert.crawford4.14.10@gmail.com> wrote:
Hey Everyone,
When in the server manager and creating a brick from the storage device the brick will fail whenever i attach a cache device to it.
I'm not really sure why? It just says unknown.
The brick creation flow uses ansible roles to create the bricks and the logs are at /var/log/ovirt-engine/brick-setup/ Can you take a look at ansible logs? _______________________________________________
Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/2XEP3P7SMUN2CW...

"changed": false } 2019-06-24 17:39:36,862 p=2015 u=ovirt | TASK [gluster-brick-create : Set PV data alignment for RAID] ******************* 2019-06-24 17:39:36,891 p=2015 u=ovirt | skipping: [131-STR-01.stfd13.org] => { "changed": false, "skip_reason": "Conditional result was False" } 2019-06-24 17:39:36,901 p=2015 u=ovirt | TASK [gluster-brick-create : Set VG physical extent size for RAID] ************* 2019-06-24 17:39:36,928 p=2015 u=ovirt | skipping: [131-STR-01.stfd13.org] => { "changed": false, "skip_reason": "Conditional result was False" } 2019-06-24 17:39:36,938 p=2015 u=ovirt | TASK [gluster-brick-create : Create volume groups] ***************************** 2019-06-24 17:39:43,038 p=2015 u=ovirt | changed: [131-STR-01.stfd13.org] => (item=/dev/md/VMStorageCold) => { "ansible_loop_var": "item", "changed": true, "item": "/dev/md/VMStorageCold" } 2019-06-24 17:39:43,053 p=2015 u=ovirt | TASK [gluster-brick-create : Calculate chunksize for RAID6/RAID10] ************* 2019-06-24 17:39:43,090 p=2015 u=ovirt | skipping: [131-STR-01.stfd13.org] => { "changed": false, "skip_reason": "Conditional result was False" } 2019-06-24 17:39:43,100 p=2015 u=ovirt | TASK [gluster-brick-create : Set chunksize for JBOD] *************************** 2019-06-24 17:39:43,141 p=2015 u=ovirt | ok: [131-STR-01.stfd13.org] => { "ansible_facts": { "lv_chunksize": "256K" }, "changed": false } 2019-06-24 17:39:43,151 p=2015 u=ovirt | TASK [gluster-brick-create : Create a LV thinpool] ***************************** 2019-06-24 17:39:49,523 p=2015 u=ovirt | changed: [131-STR-01.stfd13.org] => { "changed": true } 2019-06-24 17:39:49,533 p=2015 u=ovirt | TASK [gluster-brick-create : Create thin logical volume] *********************** 2019-06-24 17:39:57,634 p=2015 u=ovirt | changed: [131-STR-01.stfd13.org] => { "changed": true } 2019-06-24 17:39:57,644 p=2015 u=ovirt | TASK [gluster-brick-create : include_tasks] ************************************ 2019-06-24 17:39:57,707 p=2015 u=ovirt | included: /usr/share/ovirt-engine/playbooks/roles/gluster-brick-create/tasks/lvmcache.yml for 131-STR-01.stfd13.org 2019-06-24 17:39:57,724 p=2015 u=ovirt | TASK [gluster-brick-create : Setup SSD for caching | Extend the Volume Group] *** 2019-06-24 17:40:03,433 p=2015 u=ovirt | [WARNING]: The value 4 (type int) in a string field was converted to u'4' (type string). If this does not look like what you expect, quote the entire value to ensure it does not change. 2019-06-24 17:40:03,435 p=2015 u=ovirt | failed: [131-STR-01.stfd13.org] (item=/dev/md/VMStorageHot) => { "ansible_loop_var": "item", "changed": false, "err": " Physical volume \"/dev/md127\" still in use\n", "item": "/dev/md/VMStorageHot", "rc": 5 } MSG: Unable to reduce RHGS_vg_VMStorage by /dev/md127. 2019-06-24 17:40:03,439 p=2015 u=ovirt | PLAY RECAP ********************************************************************* 2019-06-24 17:40:03,440 p=2015 u=ovirt | 131-STR-01.stfd13.org : ok=7 changed=4 unreachable=0 failed=1 skipped=3 rescued=0 ignored=0

Did you blacklist in /etc/multipath.conf all local disks ?In other words, when you run 'lsblk' do you see hte disk to have a child device (usually the wwid) ? Best Regards,Strahil Nikolov В понеделник, 24 юни 2019 г., 2:08:37 ч. Гринуич-4, Robert Crawford <robert.crawford4.14.10@gmail.com> написа: Hey Everyone, When in the server manager and creating a brick from the storage device the brick will fail whenever i attach a cache device to it. I'm not really sure why? It just says unknown. _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/2XEP3P7SMUN2CW...

I had the WWID's of the drives blacklisted, I just tried it without them blacklisted and same result.

So i created the brick without the cache an add the cache doing the commands below; but it appers it's not working because I see no improvement in the benchmarks. pvcreate /dev/md/VMStorageHot vgextend RHGS_vg_VMStorage /dev/md/VMStorageHot lvcreate -L 1500G -n lv_cache RHGS_vg_VMStorage /dev/md/VMStorageHot lvcreate -L 100M -n lv_cache_meta RHGS_vg_VMStorage /dev/md/VMStorageHot lvconvert --type cache-pool --cachemode writeback --poolmetadata RHGS_vg_VMStorage/lv_cache_meta RHGS_vg_VMStorage/lv_cache lvconvert --type cache --cachepool HGS_vg_VMStorage/lv_cache RHGS_vg_VMStorage/VMStorage_lv_pool
participants (3)
-
Robert Crawford
-
Sahina Bose
-
Strahil Nikolov