Root file system skipped when mlocate (updatedb) is run via systemd
timer
by Dave Ulrick
I have several binaries matching /usr/bin/myth*. When mlocate-updatedb
runs via a timer, the / file system is skipped so no files under
/usr/bin are listed when I run "locate bin/myth".
$ locate bin/myth
/home/mythtv/bin/mythconverg-create
/home/mythtv/bin/mythconverg-drop
/home/mythtv/bin/mythconverg-restore
/home/ulrick/bin/mythtv-status
/home/ulrick/bin/mythtv-upcoming-recordings
/home/usr/local/bin/mythbackend-testsched
/home/usr/local/bin/mythlink.pl
/home/usr/local/bin/mythtv-status
/home/usr/local/bin/mythtvfs
/home/usr/local/sbin/myth-purge-old-db-backups
/home/usr/local/sbin/mythconverg_backup.pl
/home/usr/local/sbin/mythconverg_restore.pl
If I run /usr/libexec/mlocate-run-updatedb manually from a superuser
'bash' shell, the / file system is included so the expected files are
listed by 'locate':
$ locate bin/myth
/home/mythtv/bin/mythconverg-create
/home/mythtv/bin/mythconverg-drop
/home/mythtv/bin/mythconverg-restore
/home/ulrick/bin/mythtv-status
/home/ulrick/bin/mythtv-upcoming-recordings
/home/usr/local/bin/mythbackend-testsched
/home/usr/local/bin/mythlink.pl
/home/usr/local/bin/mythtv-status
/home/usr/local/bin/mythtvfs
/home/usr/local/sbin/myth-purge-old-db-backups
/home/usr/local/sbin/mythconverg_backup.pl
/home/usr/local/sbin/mythconverg_restore.pl
/usr/bin/mytharchivehelper
/usr/bin/mythavtest
/usr/bin/mythbackend
/usr/bin/mythccextractor
/usr/bin/mythcommflag
/usr/bin/mythexternrecorder
/usr/bin/mythffmpeg
/usr/bin/mythffprobe
/usr/bin/mythfilerecorder
/usr/bin/mythfilldatabase
/usr/bin/mythfrontend
/usr/bin/mythjobqueue
/usr/bin/mythlcdserver
/usr/bin/mythmediaserver
/usr/bin/mythmetadatalookup
/usr/bin/mythpreviewgen
/usr/bin/mythpython
/usr/bin/mythreplex
/usr/bin/mythscreenwizard
/usr/bin/mythshutdown
/usr/bin/mythtranscode
/usr/bin/mythtv-setup
/usr/bin/mythtvsetup
/usr/bin/mythutil
/usr/bin/mythwelcome
/usr/bin/mythwikiscripts
/usr/bin/mythzmserver
/usr/local/bin/mythbackend-testsched
/usr/local/bin/mythlink.pl
/usr/local/bin/mythtv-status
/usr/local/bin/mythtvfs
/usr/local/sbin/myth-purge-old-db-backups
/usr/local/sbin/mythconverg_backup.pl
/usr/local/sbin/mythconverg_restore.pl
Relevant output and files:
# systemctl status mlocate-updatedb.timer
● mlocate-updatedb.timer - Updates mlocate database every day
Loaded: loaded (/usr/lib/systemd/system/mlocate-updatedb.timer;
enabled; vendor preset: enabled)
Active: active (waiting) since Fri 2021-07-30 17:42:59 CDT; 2 days ago
Trigger: Tue 2021-08-03 00:00:00 CDT; 13h left
Triggers: ● mlocate-updatedb.service
Jul 30 17:42:59 calvin.home.du systemd[1]: Started Updates mlocate
database…day.
Hint: Some lines were ellipsized, use -l to show in full.
# systemctl -l status mlocate-updatedb.service
● mlocate-updatedb.service - Update a database for mlocate
Loaded: loaded (/usr/lib/systemd/system/mlocate-updatedb.service;
static)
Active: inactive (dead) since Mon 2021-08-02 00:00:01 CDT; 10h ago
TriggeredBy: ● mlocate-updatedb.timer
Main PID: 63611 (code=exited, status=0/SUCCESS)
CPU: 66ms
Aug 02 00:00:01 calvin.home.du systemd[1]: Started Update a database for
mlocate.
Aug 02 00:00:01 calvin.home.du systemd[1]: mlocate-updatedb.service:
Succeeded.
# cat /lib/systemd/system/mlocate-updatedb.timer
[Unit]
Description=Updates mlocate database every day
[Timer]
OnCalendar=daily
AccuracySec=24h
Persistent=true
[Install]
WantedBy=timers.target
# cat /lib/systemd/system/mlocate-updatedb.service
[Unit]
Description=Update a database for mlocate
[Service]
ExecStart=/usr/libexec/mlocate-run-updatedb
Nice=19
IOSchedulingClass=2
IOSchedulingPriority=7
PrivateTmp=true
PrivateDevices=true
PrivateNetwork=true
ProtectSystem=true
# cat /usr/libexec/mlocate-run-updatedb
#!/usr/bin/sh
nodevs=$(< /proc/filesystems awk '$1 == "nodev" && $2 != "rootfs" && $2
!= "zfs" { print $2 }')
/usr/bin/updatedb -f "$nodevs"
Any thoughts? Have I discovered a bug with mlocate-updatedb.timer or
mlocate-updatedb.service?
Thanks,
Dave
2 years, 7 months
User Manager Tool
by Patrick Dupre
Hello,
I cannot find the User Manager Tool
https://docs.fedoraproject.org/en-US/Fedora/15/html/Deployment_Guide/s1-u...
Has it been removed from the distribution?
Thanks.
===========================================================================
Patrick DUPRÉ | | email: pdupre(a)gmx.com
Laboratoire interdisciplinaire Carnot de Bourgogne
9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
Tel: +33 (0)380395988 | | Room# D114A
===========================================================================
2 years, 7 months
Extreme startup delay on F34
by John Mellor
What's wrong here? This is a fully up-to-date and stock F34 machine
with a good i5 processor, lots of RAM and a fast SSD, with a very long
and inexplicable time delay during boot. It appears to be idle for 2
minutes during every startup, with no known cause. This machine used to
boot in 8 seconds, but now takes over 2 minutes every time.
dmesg extract follows:
[ 3.318093] fbcon: i915drmfb (fb0) is primary device
[ 3.318096] fbcon: Deferring console take-over
[ 3.318098] i915 0000:00:02.0: [drm] fb0: i915drmfb frame buffer device
[ 3.940641] scsi 0:0:0:0: Direct-Access Generic- SD/MMC
1.00 PQ: 0 ANSI: 6
[ 3.940805] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 3.952358] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 13.019128] Key type trusted registered
[ 13.059422] kauditd_printk_skb: 18 callbacks suppressed
[ 13.059424] audit: type=1130 audit(1626531673.935:29): pid=1 uid=0
auid=4294967295 ses=4294967295 subj=kernel
msg='unit=systemd-cryptsetup@luks\x2d104456ce\x2dc587\x2d4e6e\x2dabfe\x2d534d19d546de
comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=?
terminal=? res=success'
[ 61.998513] fbcon: Taking over console
[ 62.011013] Console: switching to colour frame buffer device 240x67
[ 103.739535] PM: Image not found (code -22)
[ 103.740274] audit: type=1130 audit(1626531764.615:30): pid=1 uid=0
auid=4294967295 ses=4294967295 subj=kernel
msg='unit=systemd-hibernate-resume@dev-mapper-fedora_localhost\x2d\x2dlive\x2dswap
comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=?
terminal=? res=success'
[ 103.740286] audit: type=1131 audit(1626531764.615:31): pid=1 uid=0
auid=4294967295 ses=4294967295 subj=kernel
msg='unit=systemd-hibernate-resume@dev-mapper-fedora_localhost\x2d\x2dlive\x2dswap
comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=?
terminal=? res=success'
2 years, 7 months
Mirror display gone
by Robert Moskowitz
Xfce 4.14 on Fedora 32.
I was running standalone with no external monitor for a few days (power
outage, and could barely get enough electrons for my notebook!).
I now try to get mirror display with my external monitor and the option
is greyed out.
I have mirrored display before log in, but once logged in, I do not have
the option.
I have set my laptop resolution down to 1024x768 to be the same as the
monitor, but all I get is side by side or one display or the other.
I have seen this in the past, and a reboot fixed it. But not this time.
Suggestions on how to get mirror display working?
thanks!
2 years, 7 months
Partitioning not done correctly by Anaconda on Fedora 33
by Sreyan Chakravarty
Hi,
I am doing a clean install of Fedora 33 and I can't understand why all my
space is not being used properly.
I have a 1 TB SATA HDD.
I have selected Custom Partitioning with Thin LVM Provisioning.
These are my configurations:
1 MiB for /boot/efi (EFI System Partition)
1024 MiB for /boot
829 GiB for /
My question is with the last root partition.
I have not specified any size for the root partition in the anaconda
installer, hence it will use all the remaining space, so it should be at
least 920 GiB for the root partition right ?
Why am I getting only 829 GiB ?
Where is the ~100 GiB going ?
I can't even change it from the desired capacity field.
Why is this happening?
--
Regards,
Sreyan Chakravarty
2 years, 7 months
struggling with rescue system
by François Patte
Bonjour,
For an unknown reason my system won't boot (kernel panic) and I try to
rescue it.
I made an usb netinstall of fedora34 and booted on it but the rescue
system tool pretends that I have no linux partition....
Running fdisk -l from the recue shell I can see all my partitions
which are all raid linux autodetected...
Is there a special way to mount these kind of partition with the rescue tool?
Thank you.
--
François Patte
UFR de mathématiques et informatique
Laboratoire MAP5 --- UMR CNRS 8145
Université Paris Descartes
45, rue des Saints Pères
F-75270 Paris Cedex 06
Tél. +33 (0)1 4286 2145
http://www.math-info.univ-paris5.fr/~patte
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
2 years, 7 months
struggling with rescue system
by François Patte
Bonjour,
For an unknown reason my system won't boot (kernel panic) and I try to
rescue it.
I made an usb netinstall of fedora34 and booted on it but the rescue
system tool pretends that I have no linux partition....
Running fdisk -l from the recue shell I can see all my partitions
which are all raid linux autodetected...
Is there a special way to mount these kind of partition with the rescue tool?
Thank you.
--
François Patte
UFR de mathématiques et informatique
Laboratoire MAP5 --- UMR CNRS 8145
Université Paris Descartes
45, rue des Saints Pères
F-75270 Paris Cedex 06
Tél. +33 (0)1 4286 2145
http://www.math-info.univ-paris5.fr/~patte
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
2 years, 7 months
how to replace a disk in a raid-1 array by a larger one?
by François Patte
Bonjour,
I have a raid-1 array of 2 disks (1 Tb) and I want to replace these disks by 2 2Tb disks.
Here is the result of lsblk for these disks:
sde 8:64 0 931,5G 0 disk
├─sde1 8:65 0 40G 0 part
│ └─md4 9:4 0 40G 0 raid1
│ ├─systeme-swap 253:1 0 4G 0 lvm [SWAP]
│ ├─systeme-var 253:2 0 15G 0 lvm /var
│ └─systeme-chiffre 253:3 0 15G 0 lvm
└─sde2 8:66 0 891,5G 0 part
└─md5 9:5 0 891,4G 0 raid1
└─data-home 253:5 0 891G 0 lvm /home
sdf 8:80 0 931,5G 0 disk
├─sdf1 8:81 0 40G 0 part
│ └─md4 9:4 0 40G 0 raid1
│ ├─systeme-swap 253:1 0 4G 0 lvm [SWAP]
│ ├─systeme-var 253:2 0 15G 0 lvm /var
│ └─systeme-chiffre 253:3 0 15G 0 lvm
└─sdf2 8:82 0 891,5G 0 part
└─md5 9:5 0 891,4G 0 raid1
└─data-home 253:5 0 891G 0 lvm /home
My idea is to stop the array, remove one disk and have this array in degraded mode with the other disk. Then plug a new disk (2Tb) on which I build a new array in degraded mode with all partitions and lvm needed. Then I transfer all the data from the remaining 1Tb disk to the new array, replace the 1Tb disk by a new 2Tb disk and then synchronize the new array.
Is it the good way to proceed? Or is there another better way?
Thank you for all advices.
--
François Patte
UFR de mathématiques et informatique
Laboratoire MAP5 --- UMR CNRS 8145
Université Paris Descartes
45, rue des Saints Pères
F-75270 Paris Cedex 06
Tél. +33 (0)1 4286 2145
http://www.math-info.univ-paris5.fr/~patte
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
2 years, 7 months
selinux problem
by François Patte
Bonjour,
Sometimes selinux blocks access to a file without any clear reasons:
yesterday it was ok, today it is blocked... Why? I don't know, I changed
nothing, did not make any upgrade...
Today dictd cannot start:
SELinux forbids dictd an open access to /var/log/dictd.log.
Suggestion:
# ausearch -c "dictd" --raw | audit2allow -M my-dictd
# semodule -X 300 -i my-dictd.pp
And no changes.... dictd does not start and new alerts are sent with the
same message...
What shall I do? setenforce=0, disable selinux....
Another alert concerns rpcbind: selinux blocks access to port 63184 and
the suggestion:
semanage port -a -t PORT_TYPE -p udp 63184
où PORT_TYPE est l'une des valeurs suivantes : agentx_port_t,
apertus_ldp_port_t, comsat_port_t, dhcpc_port_t, dhcpd_port_t,
dns_port_t, efs_port_t, flash_port_t, ftp_port_t, gdomap_port_t,
hi_reserved_port_t, inetd_child_port_t, ipmi_port_t, ipp_port_t,
kerberos_admin_port_t, kerberos_port_t, kprop_port_t, ktalkd_port_t,
ldap_port_t, pki_ca_port_t, pop_port_t, portmap_port_t, printer_port_t,
rlogin_port_t, rlogind_port_t, rndc_port_t, router_port_t, rsh_port_t,
rsync_port_t, rtsp_port_t, rwho_port_t, smtp_port_t, spamd_port_t,
swat_port_t, syslogd_port_t, uucpd_port_t.
Oh! That's totally clear!!!! I'ill try all these ports untill I find the
good one?
Thank you for helping.
--
François Patte
UFR de mathématiques et informatique
Laboratoire CNRS MAP5, UMR 8145
Université Paris Descartes
45, rue des Saints Pères
F-75270 Paris Cedex 06
Tél. +33 (0)6 7892 5822
2 years, 7 months