Actions
Issue #1798
closeddatabases fail on boot if using iSCSI partitions for /var/lib/pulp and /var/lib/mongodb
Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.4.4
Platform Release:
OS:
RHEL 7
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix, Pulp 2
Sprint:
Quarter:
Description
From Chris Roberts on bugzilla:
Its seems like after the machine reboot, pulp services and mongodb service were started before iscsi mounted /var/lib/pulp and /var/lib/mongodb directory.
To overcome this issue we tried the below steps but :
================
edit following 3 files on your satellite 6 server.
/etc/systemd/system/multi-user.target.wants/pulp_celerybeat.service
/etc/systemd/system/multi-user.target.wants/pulp_resource_manager.service
/etc/systemd/system/multi-user.target.wants/pulp_workers.service
and add prerequisite to mount /var/lib/pulp first, by adding into [Unit] section as shown below:
*****************************
[Unit]
RequireMountsFor=/var/lib/pulp
RequireMountsFor=/var/lib/mongodb
*****************************
Adding the dependency RequiresMountsFor to systemd services' files postpones pulp and mongodb services start after the directories are already mounted.
==============
Also tried the below steps:
==============
In addition to 'RequireMountsFor=/var/lib/pulp' (use
Requires=var-lib-pulp.mount, which is pretty much the same thing), the
pulp services need to start after remote-fs.target as well.
- -- snip --
[Unit]
Description=Pulp's Celerybeat
After=network.target remote-fs.target
Requires=var-lib-pulp.mount
...
- -- snip --
================
However, the above steps did not helped.
Currently, system is using local partitions at the moment.
Here's the fstab:
#
# /etc/fstab
# Created by anaconda on Wed May 13 20:00:56 2015
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_sys-root / xfs defaults 1 1
UUID=048dad01-bb2a-4133-bc9a-36c6d877cf59 /boot xfs defaults 1 2
/dev/mapper/vg_sys-var /var xfs defaults 1 2
/dev/mapper/vg_sys-swap swap swap defaults 0 0
#------------------------------------------------------------------------------
/dev/mapper/vg_ldisk-pgsql /var/lib/pgsql xfs defaults 0 0
/dev/mapper/vg_ldisk-mongodb /var/lib/mongodb xfs defaults 0 0
/dev/mapper/vg_ldisk-pulp /var/lib/pulp xfs defaults 0 0
#------------------------------------------------------------------------------
# Not using iSCSI partition for Satellite DBs because systemd allows them to
# start before networking and iscsid, which means they're not mounted and fail.
#/dev/mapper/vg_lun-pgsql /mnt/pgsql xfs defaults 0 0
#/dev/mapper/vg_lun-mongodb /mnt/mongodb xfs defaults 0 0
#/dev/mapper/vg_lun-pulp /mnt/pulp xfs defaults 0 0
#------------------------------------------------------------------------------
Actions