Bug 1690606
| Summary: | Update the VDO systemd service file to support thinp bricks | |||
|---|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | SATHEESARAN <sasundar> | |
| Component: | gluster-ansible | Assignee: | Sachidananda Urs <surs> | |
| Status: | CLOSED ERRATA | QA Contact: | SATHEESARAN <sasundar> | |
| Severity: | high | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | rhgs-3.4 | CC: | amukherj, guillaume.pavese, pasik, rhs-bugs, sabose, sasundar, surs | |
| Target Milestone: | --- | Keywords: | ZStream | |
| Target Release: | RHGS 3.4.z Async Update | |||
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | gluster-ansible-infra-1.0.4-3 | Doc Type: | Enhancement | |
| Doc Text: |
Thinly provisioned bricks are now supported on top of Virtual Disk Optimization (VDO) devices.
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 1690608 1734386 (view as bug list) | Environment: | ||
| Last Closed: | 2019-10-03 07:58:12 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: | 1734386 | |||
|
Description
SATHEESARAN
2019-03-19 19:31:43 UTC
Updated VDO systemd unit file as per https://access.redhat.com/solutions/3562021 [Unit] Description=VDO volume services After=systemd-remount-fs.service [Service] Type=oneshot RemainAfterExit=yes ExecStartPre=/sbin/modprobe -a uds ExecStartPre=/sbin/modprobe -a kvdo ExecStartPre=/bin/sh -c "echo 4096 > /sys/kvdo/max_discard_sectors" ExecStart=/usr/bin/vdo start --all --confFile /etc/vdoconf.yml ExecStop=/usr/bin/vdo stop --all --confFile /etc/vdoconf.yml [Install] WantedBy=multi-user.target Once this issue is fixed, cockpit-ovirt should allow creation of thinp bricks on top of VDO devices When testing with gluster-ansible-infra-1.0.4-2, couple of params in VDO systemd unit file is missing. Because of this UDS & kvdo kernel modules are not loaded, and VDO fails to start Missing lines in vdo.service <snip> ExecStartPre=/sbin/modprobe -a uds ExecStartPre=/sbin/modprobe -a kvdo </snip> Full content of VDO systemd unit file: ---------------------------------------- [Unit] Description=VDO volume services After=systemd-remount-fs.service [Service] Type=oneshot RemainAfterExit=yes ExecStartPre=/sbin/modprobe -a uds ExecStartPre=/sbin/modprobe -a kvdo ExecStartPre=/bin/sh -c "echo 4096 > /sys/kvdo/max_discard_sectors" ExecStart=/usr/bin/vdo start --all --confFile /etc/vdoconf.yml ExecStop=/usr/bin/vdo stop --all --confFile /etc/vdoconf.yml [Install] WantedBy=multi-user.target https://github.com/gluster/gluster-ansible-infra/pull/66 resolves the issue. Tested with RHVH 4.3.5 + RHEL 7.7 + RHGS 3.4.4 ( interim build - glusterfs-6.0-6 ) with ansible 2.8.1-1 with: gluster-ansible-features-1.0.5-2.el7rhgs.noarch gluster-ansible-roles-1.0.5-2.el7rhgs.noarch gluster-ansible-infra-1.0.4-3.el7rhgs.noarch The required values are now added to vdo.service systemd file <snip> [root@ ~]# cat /etc/systemd/system/multi-user.target.wants/vdo.service [Unit] Description=VDO volume services After=systemd-remount-fs.service [Service] Type=oneshot RemainAfterExit=yes #BEGIN ANSIBLE MANAGED BLOCK - DO NOT EDIT THIS LINE ExecStartPre=/sbin/modprobe -a uds ExecStartPre=/sbin/modprobe -a kvdo ExecStartPre=/bin/sh -c "echo 4096 > /sys/kvdo/max_discard_sectors" #END ANSIBLE MANAGED BLOCK - DO NOT EDIT THIS LINE ExecStart=/usr/bin/vdo start --all --confFile /etc/vdoconf.yml ExecStop=/usr/bin/vdo stop --all --confFile /etc/vdoconf.yml [Install] WantedBy=multi-user.target </snip> 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-2019:2557 |