Re: [gentoo-user] davfs2 suddenly not working properly
On Tue, Apr 16, 2019 at 9:16 AM John Covici wrote: > Hi. After my last world update, davfs2 is not working properly. > > I use it to mount my owncloud instance and it mounts fine, but the > umount always segfaults and > leaves the mount alone. Now, I can force to unmount by doing > umount.davfs followed by the URL in question, but then the cache is > never synced, so I just have to wait a while to make sure. > You could run 'sync && umount.davfs' instead of waiting. > > The log says its seg faulting and claims that a core dump has > occurred, but I can't find such a thing. Google and bgo reveal > nothing. I am using the unstable gentoo and the glibc library was > updated to2.29-r1 -- there is an r2, but I have not updated to it. > > Can you paste the messages here? If it were me i'd just do these and try again after each step to see if any of them help - update glibc and reboot - try rebuilding util-linux and davfs2 - run 'strace umount ' Even though i don't understand a lot of the output, its possible to see libraries failing to load, or files unreadable etc
Re: [gentoo-user] 4 versions of binutils: requesting confirmation for eselect set
On Tue, Apr 16, 2019 at 12:41 AM allan gottlieb wrote: > On one of my machines I see > > gottlieb@E6430 ~ $ eselect binutils list > [1] x86_64-pc-linux-gnu-2.28.1 * > [2] x86_64-pc-linux-gnu-2.29.1 > [3] x86_64-pc-linux-gnu-2.30 > [4] x86_64-pc-linux-gnu-2.31.1 > > But I also see > > gottlieb@E6430 ~ $ eix -I -e binutils > [?] sys-devel/binutils > ... > (2.28.1) [M]2.28.1 > (2.29.1) [M]2.29.1-r1 > (2.30) 2.30-r4 > (2.31) 2.31.1-r4 ~2.31.1-r5 > ... > > So I am using a masked version of binutils, which seems bad. > > I presume I should do >eselect binutils set 4 > I always use the latest, and in the cast of ~amd64 that's 2.32 which i have been using since March 16.
[gentoo-user] davfs2 suddenly not working properly
Hi. After my last world update, davfs2 is not working properly. I use it to mount my owncloud instance and it mounts fine, but the umount always segfaults and leaves the mount alone. Now, I can force to unmount by doing umount.davfs followed by the URL in question, but then the cache is never synced, so I just have to wait a while to make sure. The log says its seg faulting and claims that a core dump has occurred, but I can't find such a thing. Google and bgo reveal nothing. I am using the unstable gentoo and the glibc library was updated to2.29-r1 -- there is an r2, but I have not updated to it. Thanks in advance for any suggestions. -- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici wb2una cov...@ccs.covici.com
[gentoo-user] Re: Incorrect list of groups membership
> After a reboot, the problem disappears for a while, but comes again, > and I didn't find what could trigger it. > I can't figure what KDE could have to do with user groups returned by > the kernel ! > > Does anyone have a hint on the origin of this problem ? Yes, this is triggered by restarting the xdm service, possibly limited to sddm users. I have noticed the same issue here. Groups are correct after a reboot, but if I do: $ /etc/init.d/xdm restart and log into KDE, then I'm a member of all sorts of system groups. I'm using sddm, maybe it happens with other login managers as well. I suspect that this is due to inheriting the supplementary groups of which "root" is a member at the time the login manager is started. At boot time, it is a member of no additional groups, whereas in a root shell, it is: # groups root bin daemon sys adm disk wheel floppy dialout tape video I suspect this is a bug in sddm, or maybe in pam. It should drop all supplementary groups before switching to the user logging in. As a workaround, I now always reboot instead of restarting xdm. -- Remy
Re: [gentoo-user] mariadb confused about expire_logs_days
Hi John, "John Blinka" , 15.04.2019, 17:20: > (/etc/mysql/mariadb.d/logs) contains > [mysql] > expire_logs_days= 1 > Clearly, this is being ignored, since I now have 3 weeks of It is not ignored, it is used by mysql as indicated in the section label. But since mysql does not know this option it complains as you saw. The real bug is probably that [mysql] should be [mysqld] instead. $ mysqld --verbose --help | grep expire --expire-logs-days=# expire_logs_days days; possible purges happen at startup expire-logs-days 0 Good luck, s.
Re: [gentoo-user] USB external hard drives
On Monday, 15 April 2019 17:03:43 BST Laurence Perkins wrote: > On Sun, 2019-04-07 at 12:09 -0400, james wrote: > > Hello, > > > > I have a windows pro 10, bargain HP laptop, with a 1 T mechanical > > internal drive. New. I'd like to make the system dual boot off of > > an external (USB3) SSD, that is exclusive for Gentoo. I have about > > 500M of person and /usr/local files on other gentoo systems that I'd > > like to DD over to the new drive. > > > > 1. I'm not sure what file system to use. I' like to use btrfs, but > > I'd need some sort of guide to set that up. > > > > OR > > > > 2. If I used ext-4 what should the formatting and partition table > > look > > like? Ideally, I'd like to put the 'gentoo on a partition to the > > native > > hard drive. and be able to put /usr/local and /projects only on the > > the new SSD external only, so I can move those mount point partitions > > to various gentoo systems. > > > > > > Perhaps I'll get (2) external SSDs and put gentoo on one, just for > > the > > HP laptop and the second one set up just for /usr/local and > > /projects. > > > > > > I'm just thinking out loud and ideas or discussions are welcome. I'm > > not > > the sharpest tack, when in comes to windows pro 10. or complex > > file > > system setups. > > > > All my systems are AMD64, the new laptop is Rizen 5 2500-U > > > > > > James > > There are not really any differences to how you'd format an external > disk compared to an internal one on modern systems. If you want > different sections of the system on different drives you just set that > up in fstab so the system attaches everything to the proper places on > boot. Having your linux on a separate disk that you can disconnect > when using Windows has the advantage of avoiding Windows' propensity to > scribble all over things it really shouldn't be touching, like your > boot setup. > > Btrfs/ZFS have some advantages compared to more traditional > filesystems, but they are slower. It is handy to be able to just plug > in another drive and add it to the storage pool if you temporarily need > more space for some project though, and depending on what kind of data > you spend most of your time shuffling the built in compression option > can improve performance quite a bit. Ext4 on the other hand has a > longer track record and supports built-in encrpytion. So compare the > features and see which fits your use case better. Btrfs is pretty > stable at this point, I use it almost exclusively and haven't had it > eat any data in years, plus the data checksums have saved me from > corruption a few times when drives went marginal but didn't fail > outright, but you have to have it keeping multiple copies for that to > work (Raid or dup.) > > LMP Some additional comments to consider for your new Gentoo installation. 1TB left to MS Windows is probably a major waste of space, unless you use the OS on a regular basis and store a lot of data on its main partition. Therefore you may want to create a backup of the complete MSWindows drive and then shrink it down to create space for Gentoo: a) Disable the Windows 10 page file to get rid of pagefile.sys.[1] b) Disable hibernation by running 'powercfg -h off' in cmd.exe to get rid of hyberfil.sys. c) Temporarily disable automatic Windows Updates and restart. d) Defrag its main partition.[2] d) Shrink its main partition to say 100GB or more[3], depending how much of it you want to use in the future - it always increases in size with updates over the years and additional applications. Note, the built in partition manager won't shrink the partition by more than 50% of its original size, you may have to use a 3rd party MSWindows tool, or a LiveCD/USB like gparted to get a better result. e) Restart to make sure all works as intended, then shutdown completely.[4] f) Boot with Live gentoo or sysrescuecd to partition the rest of the drive and install your Gentoo OS. e) Installing GRUB will take care of dual booting both OS' and is definitely simpler than chainloading Gentoo from MSWindows after you edit the latter's boot options with Bcdedit. f) Re-enable Windows Updates and page file. There's nothing wrong with running Gentoo off a USB drive if this is what you want to do, but the performance of a SATA III ought to be better than a USB 3 in most cases. Perhaps an e-SATA would be a better option for a separate external drive, as long as your various hardware have eSATA ports. [1] https://www.howto-connect.com/tweak-paging-file-for-better-windows-10-performance/ [2] https://support.microsoft.com/en-us/help/4026701/windows-defragment-your-windows-10-pc [3] https://win10faq.com/shrink-partition-windows-10/ [4] https://www.howtogeek.com/349114/shutting-down-doesnt-fully-shut-down-windows-10-but-restarting-it-does/ -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] USB external hard drives
On Sun, 2019-04-07 at 12:09 -0400, james wrote: > Hello, > > I have a windows pro 10, bargain HP laptop, with a 1 T mechanical > internal drive. New. I'd like to make the system dual boot off of > an external (USB3) SSD, that is exclusive for Gentoo. I have about > 500M of person and /usr/local files on other gentoo systems that I'd > like to DD over to the new drive. > > 1. I'm not sure what file system to use. I' like to use btrfs, but > I'd need some sort of guide to set that up. > > OR > > 2. If I used ext-4 what should the formatting and partition table > look > like? Ideally, I'd like to put the 'gentoo on a partition to the > native > hard drive. and be able to put /usr/local and /projects only on the > the new SSD external only, so I can move those mount point partitions > to various gentoo systems. > > > Perhaps I'll get (2) external SSDs and put gentoo on one, just for > the > HP laptop and the second one set up just for /usr/local and > /projects. > > > I'm just thinking out loud and ideas or discussions are welcome. I'm > not > the sharpest tack, when in comes to windows pro 10. or complex > file > system setups. > > All my systems are AMD64, the new laptop is Rizen 5 2500-U > > > James > There are not really any differences to how you'd format an external disk compared to an internal one on modern systems. If you want different sections of the system on different drives you just set that up in fstab so the system attaches everything to the proper places on boot. Having your linux on a separate disk that you can disconnect when using Windows has the advantage of avoiding Windows' propensity to scribble all over things it really shouldn't be touching, like your boot setup. Btrfs/ZFS have some advantages compared to more traditional filesystems, but they are slower. It is handy to be able to just plug in another drive and add it to the storage pool if you temporarily need more space for some project though, and depending on what kind of data you spend most of your time shuffling the built in compression option can improve performance quite a bit. Ext4 on the other hand has a longer track record and supports built-in encrpytion. So compare the features and see which fits your use case better. Btrfs is pretty stable at this point, I use it almost exclusively and haven't had it eat any data in years, plus the data checksums have saved me from corruption a few times when drives went marginal but didn't fail outright, but you have to have it keeping multiple copies for that to work (Raid or dup.) LMP signature.asc Description: This is a digitally signed message part
[gentoo-user] mariadb confused about expire_logs_days
. Hello everyone, I upgraded to mariadb-10.2.22-r1 from mariadb-10.1.38-r1 about 3 weeks ago. Just today I've discovered that the log files (/var/lib/mysql/mariadb-bin.XX) have been accumulating since that time. I have no use for all of these log files, so years ago I set expire_logs_files = 1 in my.cnf to keep just the most recent one. This has worked well until the upgrade. This upgrade also introduced a new way of expressing the /etc/mysql/my.cnf file. It now follows Gentoo practice of pointing to a directory (/etc/mysql/mariadb.d) which contains multiple files that are concatenated to produce the my.cnf file that is handed to mariadb. One of these files (/etc/mysql/mariadb.d/logs) contains [mysql] expire_logs_days= 1 Clearly, this is being ignored, since I now have 3 weeks of accumulated log files instead of just the latest one. When I attempted to log into the mariadb server to examine the values of the global variables, the login failed with the message mysql: unknown variable 'expire_logs_days=1' I then commented out the line "expire_logs_days= 1" in the file /etc/mysql/mariadb.d/logs. This allowed me to log into the mariadb server without the error message to issue the SHOW VARIABLES; command, which revealed that expire_logs_days was set to the 0 default. So clearly mariadb seems to think that expire_logs_days is still a legitimate variable. It looks like something is interpreting the line "expire_logs_days = 1" as just a variable name instead of name = value. Anybody else experience this? Any suggested solutions? I haven't found anything on Google or bugs.gentoo.org. John Blinka
[gentoo-user] 4 versions of binutils: requesting confirmation for eselect set
On one of my machines I see gottlieb@E6430 ~ $ eselect binutils list [1] x86_64-pc-linux-gnu-2.28.1 * [2] x86_64-pc-linux-gnu-2.29.1 [3] x86_64-pc-linux-gnu-2.30 [4] x86_64-pc-linux-gnu-2.31.1 But I also see gottlieb@E6430 ~ $ eix -I -e binutils [?] sys-devel/binutils ... (2.28.1) [M]2.28.1 (2.29.1) [M]2.29.1-r1 (2.30) 2.30-r4 (2.31) 2.31.1-r4 ~2.31.1-r5 ... So I am using a masked version of binutils, which seems bad. I presume I should do eselect binutils set 4 I am asking for confirmation since I realize breaking binutils is not fun. thank you, allan
[gentoo-user] Incorrect list of groups membership
Hi, On my 2 Gentoo machines, users have a strange problem of group membership. When using 'id' or 'groups' without arguments, the list of groups includes those from the root user, and groups common to the user and root are duplicated, like wheel, video, allowssh. I observed that the list of groups is incorrect only in a KDE session, either in Konsole or xterm, but the list of groups is correct in other kinds of sessions like on a TTY or through SSH. After a reboot, the problem disappears for a while, but comes again, and I didn't find what could trigger it. I can't figure what KDE could have to do with user groups returned by the kernel ! Does anyone have a hint on the origin of this problem ? mick@xxx ~ $ groups root bin daemon sys adm disk wheel wheel floppy uucp cron audio cdrom dialout tape video video games cdrw apache usb vboxusers portage allowssh allowssh svn users mick mick@xxx ~ $ id uid=1001(mick) gid=1001(mick) groupes=1001(mick),0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),14(uucp),16(cron),18(audio),19(cdrom),20(dialout),26(tape),27(video),35(games),80(cdrw),81(apache),85(usb),102(vboxusers),250(portage),800(allowssh),909(svn),1000(users) When run with a login, the list is correct mick@xxx ~ $ groups mick wheel cron audio cdrom video games cdrw apache usb vboxusers portage allowssh svn users mick mick@xxx ~ $ groups root root bin daemon sys adm disk wheel floppy uucp dialout tape video allowssh mick@xxx ~ $ id mick uid=1001(mick) gid=1001(mick) groupes=1001(mick),10(wheel),16(cron),18(audio),19(cdrom),27(video),35(games),80(cdrw),81(apache),85(usb),102(vboxusers),250(portage),800(allowssh),909(svn),1000(users) mick@xxx ~ $ id root uid=0(root) gid=0(root) groupes=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),14(uucp),20(dialout),26(tape),27(video),800(allowssh) As far as I can tell the contents of '/etc/passwd' and '/etc/group' is also correct. mick@xxx ~ $ egrep 'mick|root' /etc/passwd root:x:0:0:root:/root:/bin/bash operator:x:11:0:operator:/root:/bin/bash mick:x:1001:1001::/home/mick:/bin/bash mick@xxx ~ $ egrep 'mick|root' /etc/group root:x:0:root bin:x:1:root,bin,daemon daemon:x:2:root,bin,daemon sys:x:3:root,bin,adm adm:x:4:root,adm,daemon disk:x:6:root,adm,haldaemon wheel:x:10:root,mick,jef,apache,anne floppy:x:11:root,haldaemon uucp:x:14:root cron:x:16:cron,mick,apache audio:x:18:famille,mick,jef,juliette,victor,anne,pulse,sddm cdrom:x:19:famille,mick,haldaemon,jef,juliette,victor,anne dialout:x:20:root tape:x:26:root video:x:27:root,famille,mick,jef,juliette,victor,anne,oracle,sddm games:x:35:famille,mick,jef,juliette,victor,anne cdrw:x:80:famille,mick,haldaemon apache:x:81:famille,jef,mick usb:x:85:famille,mick,haldaemon,juliette,victor,anne vboxusers:x:102:famille,vbox,mick,jef portage:x:250:portage,famille,mick,jef,apache allowssh:x:800:mick,jef,root,anne,juliette,victor svn:x:909:famille,jef,mick,tracd users:x:1000:mick,jef,apache,juliette,victor,offlineimap,anne mick:x:1001:mick The difference in output between 'id' and 'id mick' happens because 'id' calls the syscall 'getgroups' in the first case, but not in the other, as I could see with 'strace' mick@xxx $ strace id [...] getgroups(0, NULL) = 29 getgroups(29, [0, 1, 2, 3, 4, 6, 10, 10, 11, 14, 16, 18, 19, 20, 26, 27, 27, 33, 35, 80, 81, 85, 102, 250, 800, 800, 909, 1000, 1001]) = 29 [...] mick@xxx $ strace id mick [...] openat(AT_FDCWD, "/var/db/group.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type) openat(AT_FDCWD, "/etc/group", O_RDONLY|O_CLOEXEC) = 3 lseek(3, 0, SEEK_CUR) = 0 fstat(3, {st_mode=S_IFREG|0644, st_size=1978, ...}) = 0 read(3, "root:x:0:root\nbin:x:1:root,bin,d"..., 4096) = 1978 lseek(3, 0, SEEK_CUR) = 1978 [...repeated] lseek(3, 0, SEEK_CUR) = 1978 read(3, "", 4096) = 0 close(3)= 0 openat(AT_FDCWD, "/var/db/group.db", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type) openat(AT_FDCWD, "/etc/group", O_RDONLY|O_CLOEXEC) = 3 lseek(3, 0, SEEK_CUR) = 0 fstat(3, {st_mode=S_IFREG|0644, st_size=1978, ...}) = 0 read(3, "root:x:0:root\nbin:x:1:root,bin,d"..., 4096) = 1978 lseek(3, 0, SEEK_CUR) = 1978 [...repeated] lseek(3, 0, SEEK_CUR) = 1978 read(3, "", 4096) = 0 close(3)= 0 [...] mick@xxx ~ # uname -a Linux xxx 4.19.27-gentoo-r1 #1 SMP Mon Apr 1 14:38:01 CEST 2019 x86_64 Intel(R) Celeron(R) CPU G1610T @ 2.30GHz GenuineIntel GNU/Linux Thanks Best regards Mickaël Bucas