[CentOS] CentOS 8 - Fail to mount ${HOME}

2020-06-29 Thread Yair Garfinkel
Hi,

We have a large amount of CentOS 7 here and when a user logs in to any of
them, his home directory is mounted of the network.

When we tried to do this with CentOS 8, the user logs in but his home
directory was created locally on the machine.


   - I have already disables this "nice" feature by running:


  [root@lab_cnt08 ~]# *authconfig
--disablemkhomedir  --update*



   - Both CentOS 7 and CentOS 8 machines reside in the same domain.


Any thoughts or ideas would be appreciated.


Thanks,

*Yair Garfinkel*
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] what's the advantage of NetworkManager for server?

2020-06-29 Thread d tbsky
Hi:
   I always use network-scripts to start network at EL7.
NetworkManager is not as good as network scripts under that OS.

but now EL8 said that network-scripts  is depreciated. I wonder if
I should still use network-scripts to start network?  I am afraid
there will be new bugs for the network-scripts, like systemd service
unit dependency. although it is solid at EL7.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] what's the advantage of NetworkManager for server?

2020-06-29 Thread Nicolas Kovacs
Le 29/06/2020 à 10:34, d tbsky a écrit :
> Hi:
>I always use network-scripts to start network at EL7.
> NetworkManager is not as good as network scripts under that OS.
> 
> but now EL8 said that network-scripts  is depreciated. I wonder if
> I should still use network-scripts to start network?  I am afraid
> there will be new bugs for the network-scripts, like systemd service
> unit dependency. although it is solid at EL7.

I've written a blog article (in French) about that question :

https://blog.microlinux.fr/networkmanager-rhel-centos/

Cheers,

Niki

-- 
Microlinux - Solutions informatiques durables
7, place de l'église - 30730 Montpezat
Site : https://www.microlinux.fr
Blog : https://blog.microlinux.fr
Mail : i...@microlinux.fr
Tél. : 04 66 63 10 32
Mob. : 06 51 80 12 12
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] Unable to find the used space

2020-06-29 Thread Sachchidanand Upadhyay via CentOS
Hi,

 While checking with df -h, it's showing the used space is 94% on root (/). If 
checked with du -sh, it's not showing the used space.

  # df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 7.8G 0 7.8G 0% /dev
tmpfs 7.8G 0 7.8G 0% /dev/shm
tmpfs 7.8G 857M 7.0G 11% /run
tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
/dev/mapper/centos-root 50G 47G 3.4G 94% /
/dev/mapper/centos-home 241G 47G 195G 20% /var/log
/dev/sda1 1014M 189M 826M 19% /boot
tmpfs 1.6G 0 1.6G 0% /run/user/0
tmpfs 1.6G 0 1.6G 0% /run/user/1002


# du -sh /*
0 /bin
156M /boot
0 /dev
33M /etc
388K /home
0 /lib
0 /lib64
0 /media
0 /mnt
0 /opt
du: cannot access ‘/proc/21489/task/21489/fd/4’: No such file or directory
du: cannot access ‘/proc/21489/task/21489/fdinfo/4’: No such file or directory
du: cannot access ‘/proc/21489/fd/4’: No such file or directory
du: cannot access ‘/proc/21489/fdinfo/4’: No such file or directory
0 /proc
6.1M /root
857M /run
0 /sbin
0 /srv
0 /sys
0 /tmp
2.8G /usr
62G /var


# du -sh /var/*
0 /var/adm
89M /var/cache
0 /var/crash
8.0K /var/db
0 /var/empty
0 /var/games
0 /var/gopher
0 /var/kerberos
16G /var/lib
0 /var/local
0 /var/lock
47G /var/log
0 /var/mail
0 /var/nis
0 /var/opt
0 /var/preserve
0 /var/run
98M /var/spool
0 /var/tmp
499M /var/www
0 /var/yp

How can i find this hidden space?
-- 
BR,
Sachchidanand
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Unable to find the used space

2020-06-29 Thread Anand Buddhdev

Hi Sachchidanand,

On Unix-like operating systems, if a process has a file open, and you 
delete the file, it will not be removed from disk immediately. That will 
only happen when the process closes the file descriptor, or exits. 
People new to Unix-like operating systems often don't know this.


So you may have one or more such files on your / partition. Install a 
utility called "lsof", run "lsof -n" as root, and grep the output for 
the word "deleted", and examine those files, and see which processes are 
holding them open. Then either restart those processes, or reboot the 
server.


Regards,
Anand Buddhdev

On 29/06/2020 11:51, Sachchidanand Upadhyay via CentOS wrote:

Hi,

  While checking with df -h, it's showing the used space is 94% on root (/). If 
checked with du -sh, it's not showing the used space.

   # df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 7.8G 0 7.8G 0% /dev
tmpfs 7.8G 0 7.8G 0% /dev/shm
tmpfs 7.8G 857M 7.0G 11% /run
tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
/dev/mapper/centos-root 50G 47G 3.4G 94% /
/dev/mapper/centos-home 241G 47G 195G 20% /var/log
/dev/sda1 1014M 189M 826M 19% /boot
tmpfs 1.6G 0 1.6G 0% /run/user/0
tmpfs 1.6G 0 1.6G 0% /run/user/1002


# du -sh /*
0 /bin
156M /boot
0 /dev
33M /etc
388K /home
0 /lib
0 /lib64
0 /media
0 /mnt
0 /opt
du: cannot access ‘/proc/21489/task/21489/fd/4’: No such file or directory
du: cannot access ‘/proc/21489/task/21489/fdinfo/4’: No such file or directory
du: cannot access ‘/proc/21489/fd/4’: No such file or directory
du: cannot access ‘/proc/21489/fdinfo/4’: No such file or directory
0 /proc
6.1M /root
857M /run
0 /sbin
0 /srv
0 /sys
0 /tmp
2.8G /usr
62G /var


# du -sh /var/*
0 /var/adm
89M /var/cache
0 /var/crash
8.0K /var/db
0 /var/empty
0 /var/games
0 /var/gopher
0 /var/kerberos
16G /var/lib
0 /var/local
0 /var/lock
47G /var/log
0 /var/mail
0 /var/nis
0 /var/opt
0 /var/preserve
0 /var/run
98M /var/spool
0 /var/tmp
499M /var/www
0 /var/yp

How can i find this hidden space?


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] RPMFusion and NVIDIA driver problem

2020-06-29 Thread Phil Perry

On 29/06/2020 07:36, Alessandro Baggi wrote:

Hi list,

I'm on C8.1 and I'm trying to install NVIDIA driver from 
rpmfusion-nonfree repository but it returns:


  package kmod-nvidia-3:440.82-2.el8.x86_64 requires 
kmod-nvidia-4.18.0-147.el8.x86_64 >= 3:440.82-2.el8, but none of the 
providers can be installed

   - conflicting requests
   - nothing provides kernel < 4.18.0-148.el8 needed by 


The package is looking for an el8.1 kernel to meet it's dependencies and 
can not find one. C8.2 has now been released, and as a result all 8.1 
packages got moved to vault. If you enable the vault repo, yum will be 
able to find the kernel package it is looking for to meet the 
dependencies. However, if you do that you will have to boot to an old 
C8.1 series kernel for your nvidia drivers to work.



kmod-nvidia-4.18.0-147.el8.x86_64-3:440.82-2.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' 
to use not only best candidate packages)


and uname -r returns:

4.18.0-193.6.3.el8_2.x86_64



Yes, you are running the latest 8.2 series kernel.

Seems that RPMFusion needs an update. Waiting for this there is a way to 
install this package without fall in problems?


Thank you in advance.



Yes, seems that repo is stale. They need to release packages built 
against el8.2, which at least for RHEL have been out for 2 months now. A 
newer stable nvidia driver (440.100) was also released recently. The 
(not ideal) workaround is as stated above - enable CentOS vault repo and 
boot into an older el8.1 series kernel for now until they update packages.


I would normally recommend you try the nvidia drivers from elrepo, but I 
have a vested interest as I maintain them


Phil

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Unable to find the used space

2020-06-29 Thread Pete Biggs


> 
> # du -sh /*

Use 'du -xh --max-depth=1 /' it will clean up your output and show you
only things on the root partition.

And as someone else said, deleted but open files are not removed until
the file handle is closed. This is used by some applications to "hide"
totally temporary files. Do 'lsof | grep delete' to see such files.
(This technique is also used by malware to hide their files.)

P.


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] No samba-vfs-glusterfs package

2020-06-29 Thread Strahil Nikolov via CentOS
Hello Community,
does anyone know if we got samba-vfs-glusterfs package available and if yes, in 
which repo ?

On CentOS7 it was part of the base repo , but I can't find it.

Thanks in advance.

Best Regards,
Strahil Nikolov
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Unable to find the used space

2020-06-29 Thread Peter Kjellström
On Mon, 29 Jun 2020 15:21:12 +0530
Sachchidanand Upadhyay via CentOS  wrote:

> Hi,
> 
>  While checking with df -h, it's showing the used space is 94% on
> root (/). If checked with du -sh, it's not showing the used space.
> 
>   # df -h
> Filesystem Size Used Avail Use% Mounted on
> devtmpfs 7.8G 0 7.8G 0% /dev
> tmpfs 7.8G 0 7.8G 0% /dev/shm
> tmpfs 7.8G 857M 7.0G 11% /run
> tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
> /dev/mapper/centos-root 50G 47G 3.4G 94% /
> /dev/mapper/centos-home 241G 47G 195G 20% /var/log
> /dev/sda1 1014M 189M 826M 19% /boot
> tmpfs 1.6G 0 1.6G 0% /run/user/0
> tmpfs 1.6G 0 1.6G 0% /run/user/1002

As an addition to what others have already said. You'll also miss
things "hidden under mounts". That is, if you had 5G in /var/log on the
root file system and then mounted a different device on /var/log, then
that 5G would still be there but invisible.

Also, /dev/mapper/centos-home, HOME?!, on /var/log?

/Peter
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] what's the advantage of NetworkManager for server?

2020-06-29 Thread Gordon Messmer

On 6/29/20 1:34 AM, d tbsky wrote:

what's the advantage of NetworkManager for server?



The shortest clear answer I can give you is:

In the event of a power loss, many servers will boot faster than the 
managed Ethernet switch they are attached to.  Systems managed by 
network-scripts may not set up their network because there is no carrier 
at the time that networks-scripts start up.


Network-manager, on the other hand, will set up networking whenever the 
interface becomes ready.



___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] Adding root CA certificates for use by NSS applications?

2020-06-29 Thread James Pearson
I'm trying to get a third party application to use the root CA 
certificate of an SSL proxy - but can't work out how to install the cert 
for use by all users on CentOS 7


I have the proxy vendor's supplied CA cert in PEM format

I can install the cert in a user's home directory using 'certutil' - and 
the application works OK - but I would like to do 'something' to install 
this cert somewhere central that will be picked up by all users


After a bit of Googling, I've found that by default, EL7 uses 
'p11-kit-trust.so' (from the p11-kit-trust package) as a drop-in 
replacement for the nss supplied 'libnssckbi.so' (via 'alternatives') - 
which, I believe, should be able to pick up CA certs installed under 
/etc/pki/ca-trust/source/anchors/


Strace'ing the app, I can see it reading the files under 
/etc/pki/ca-trust/source/... including the required CA cert - but the 
app fails to connect - but I have no idea what might be wrong ...


Am I missing something obvious here?

Is there an easier way to achieve what I want?

Thanks

James Pearson
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] CentOS 7 system running out of available memory, then unusable, network interfaces probably involved

2020-06-29 Thread wwp
Hello,

my CentOS 7 system goes unstable after few days of use, memory
consumption growing and never getting freed, until the system slows
down to hell (swapping), kills apps, and eventually freezes or reboots
itself.

This only happens when I have two network interfaces turned on, one
wired and one wireless, each to different routers.

The hardware: a Dell Precision 7530, SSD, 16GB RAM. HW memory and disk
both tested OK by software.
According to lspci:
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (7) I219-LM 
(rev 10)
6e:00.0 Network controller: Intel Corporation Wireless-AC 9260 (rev 29)

The software: I keep this CentOS 7 system up-to-date with the CR repo,
excepted the microcode_ctl package, stuck to few versions back
(updating it kills the system and potentially causes fs damages).
Kernels reproducing the issue (IOW, all):
  kernel-3.10.0-1062.18.1.el7.x86_64
  kernel-3.10.0-1127.el7.x86_64
  kernel-3.10.0-1127.8.2.el7.x86_64
  kernel-3.10.0-1127.13.1.el7.x86_64

Nothing jumps to my eyes looking at /var/log/messages but this, many
occurrences:
  kernel: nf_conntrack: falling back to vmalloc.
I searched the Internet for it, and the few results I found were
not bringing any solution and were quite pessimistic WRT to memory
freeing, am I wrong?

Regards,

-- 
wwp
https://useplaintext.email/


pgp0bdmEYW3QM.pgp
Description: OpenPGP digital signature
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS 7 system running out of available memory, then unusable, network interfaces probably involved

2020-06-29 Thread John Pierce
On Mon, Jun 29, 2020 at 12:47 PM wwp  wrote:

>
> Nothing jumps to my eyes looking at /var/log/messages but this, many
> occurrences:
>   kernel: nf_conntrack: falling back to vmalloc.
>

nf_conntrack is only involved if you are doing some form of NAT routing on
this system and/or fairly complex iptables kind of rules  you mentioned
two different network interfaces, one wired, one wireless, how are you
using these, what sort of routing between the two networks ?



-- 
-john r pierce
  recycling used bits in santa cruz
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Unable to find the used space

2020-06-29 Thread Michael Hennebry

On Mon, 29 Jun 2020, Pete Biggs wrote:





# du -sh /*


Use 'du -xh --max-depth=1 /' it will clean up your output and show you
only things on the root partition.


Note the reason for -x .
-x is equivalent to --one-file-system .
It says that when searching from a directory,
include only descendants in the same filesystem.

Though rather unlikely, it is possible that none of /*
are in the same filesystem as / ,
hence the need for / rather than /* .

--
Michael   henne...@web.cs.ndsu.nodak.edu
"Sorry but your password must contain an uppercase letter, a number,
a haiku, a gang sign, a heiroglyph, and the blood of a virgin."
 --  someeecards
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Unable to find the used space

2020-06-29 Thread John Pierce
On Mon, Jun 29, 2020 at 1:23 PM Michael Hennebry <
henne...@web.cs.ndsu.nodak.edu> wrote:

>
> Though rather unlikely, it is possible that none of /*
> are in the same filesystem as / ,
> hence the need for / rather than /* .


as /dev, /proc, and /sys are mounted on nearly every linux system, and
those are places you don't want du poking around, you do need to avoid that.




-- 
-john r pierce
  recycling used bits in santa cruz
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos