Re: [gentoo-user] Contradictionary behaviour of SMART on hds ?!?
On 07/27/2014 06:50:49 PM, meino.cra...@gmx.de wrote: Hi Mick, thanks for your reply on the topic. I executed the mkswap/dd combo a several times today. Since I have no logs I repeated again. Here are the results: solfire:/home/usermkswap -L swap -f -c /dev/sda2 1 bad page mkswap: /dev/sda2: warning: wiping old swap signature. Setting up swapspace version 1, size = 6291448 KiB LABEL=swap, UUID=e742c0a6-862c-41e9-be4b-698b33c5a236 solfire:/home/userdd if=/dev/zero of=/dev/sda2 bs=512 conv=notrunc dd: error writing ‘/dev/sda2’: Input/output error 1669369+0 records in 1669368+0 records out 854716416 bytes (855 MB) copied, 28.4799 s, 30.0 MB/s [1]24047 exit 1 dd if=/dev/zero of=/dev/sda2 bs=512 conv=notrunc solfire:/home/user I am a little anxious about the hdparm command... For me it is unclear what sector is meant: smartclt says: Num Test_DescriptionStatus Remaining LifeTime(hours) LBA_of_first_error # 1 Selective offline Completed: read failure 90% 14500 4288352511 From a previous posting I learned that LBA in this case is the byte counter. The sector is therefore 4288352511/512=8375688 However as a result of the dd command above I found this in the dmesg log: [48588.471905] end_request: I/O error, dev sda, sector 1773816 Now...what sector count fits what sector count ... ? I will not fire zeroes towards my hd this way before I know exactly to what I am shooting at... ;) Any light in all this shadow is heartly appreciated... Best regards, mcc Here a few observations: First, smartctl starts counting at the very first sector of the drive while dd starts counting at the first sector of the partition. So, find out where the partition starts by using fdisk and add the partition offset to the number given by dd. Second, if your file system is ext{2,3,4} try using fsdebug as described in file:///home/jarausch/GenToo/Hints/Smartmontools_badblockhowto.html Third, as far as I understand, smartctl's '-t select' option lets you test specific ranges of the disk. You could try to start the test after the defective sector. Helmut
Re: [gentoo-user] NFS tutorial for the brain dead sysadmin?
On Sunday, July 27, 2014 08:44:02 PM Kerin Millar wrote: On 27/07/2014 17:55, J. Roeleveld wrote: On 27 July 2014 18:25:24 CEST, Stefan G. Weichinger li...@xunil.at wrote: Am 26.07.2014 04:47, schrieb walt: So, why did the broken machine work normally for more than a year without rpcbind until two days ago? (I suppose because nfs-utils was updated to 1.3.0 ?) The real problem here is that I have no idea how NFS works, and each new version is more complicated because the devs are solving problems that I don't understand or even know about. I double your search for understanding ... my various efforts to set up NFSv4 for sharing stuff in my LAN also lead to unstable behavior and frustration. Only last week I re-attacked this topic as I start using puppet here to manage my systems ... and one part of this might be sharing /usr/portage via NFSv4. One client host mounts it without a problem, the thinkpads don't do so ... just another example ;-) Additional in my context: using systemd ... so there are other (different?) dependencies at work and services started. I'd be happy to get that working in a reliable way. I don't remember unstable behavior with NFS (v2 back then?) when we used it at a company I worked for in the 90s. Stefan I use NFS for filesharing between all wired systems at home. Samba is only used for MS Windows and laptops. Few things I always make sure are valid: - One partition per NFS share - No NFS share is mounted below another one - I set the version to 3 on the clients - I use LDAP for the user accounts to ensure the UIDs and GIDs are consistent. These are generally good recommendations. I'd just like to make a few observations. The problems associated with not observing the first constraint (one filesystem per export) can be alleviated by setting an explicit fsid. Doing so can also help to avoid stale handles on the client side if the backing filesystem changes - something that is very useful in a production environment. Therefore, I tend to start at 1 and increment with each newly added export. For example:- /export/foo *(async,no_subtree_check,fsid=1) /export/foo/bar *(async,no_subtree_check,fsid=2) /export/baz *(async,no_subtree_check,fsid=3) If using NFSv3, I'd recommend using nolock as a mount option unless there is a genuine requirement for locks to be co-ordinated. Such locks are only advisory and are of questionable value. Using nolock simplifies the requirements on both server and client side, and is beneficial for performance. NFSv3/UDP seems to be limited to a maximum read/write block size of 32768 in Linux, which will be negotiated by default. Using TCP, the upper bound will be the value of /proc/fs/nfsd/max_block_size on the server. Its value may be set to 1048576 at the most. NFSv3/TCP is problematic so I would recommend NFSv4 if TCP is desired as a transport protocol. NFSv4 provides a useful uid/gid mapping feature that is easier to set up and maintain than nss_ldap. NFS4 requires all the exports to be under a single foldertree. This is a myth: http://linuxcostablanca.blogspot.co.uk/2012/02/nfsv4-myths-and-legends.html. Exports can be defined and consumed in the same manner as with NFSv3. When I originally tried NFSv4, it refused to work unless they were all under the same directory. As I dislike that, I decided against using it. That was a long time ago, will revisit that part again later. Interesting link, I wonder how difficult it will be to combine that with Samba 4 and use the Samba AD structure for NFSv4 with either ZFS or BTRFS underneath. -- Joost
[gentoo-user] Had a peak in /var/log and there is a telnet dir
Hi all, I don't run telnet at all. I don't even have it installed on my machine yet tonight I had a look in /var/lib to try and find a reason as to why something else is failing and lo and behold there is a telnet dir. Having a look inside shows: ** bluey telnet # pwd /var/log/telnet bluey telnet # ls -la total 48 drwx-- 2 root root 4096 Jul 2 14:58 . drwxr-xr-x 15 root root 8192 Jul 28 22:03 .. -rw-r--r-- 1 root root 145 Jul 2 14:58 current -rw-r--r-- 1 root root 145 May 4 21:07 log-2014-05-12-11:22:05 -rw-r--r-- 1 root root 372 May 12 19:22 log-2014-05-26-11:54:56 -rw-r--r-- 1 root root 145 May 26 19:54 log-2014-06-13-04:25:41 -rw-r--r-- 1 root root 145 Jun 13 12:25 log-2014-06-30-10:39:20 -rw-r--r-- 1 root root 513 Jun 30 22:09 log-2014-07-02-06:58:34 -rw-r--r-- 1 root root 11 Jul 2 14:58 .timestamp bluey telnet # bluey telnet # telnet bash: telnet: command not found ** Looking inside one of these files reveals: ** bluey telnet # cat log-2014-05-26-11\:54\:56 May 12 19:22:05 [login] pam_unix(login:auth): authentication failure; logname=LOGIN uid=0 euid=0 tty=/dev/tty1 ruser= rhost= user=root May 12 19:22:07 [login] FAILED LOGIN (1) on '/dev/tty1' FOR 'root', Authentication failure May 12 19:22:15 [login] pam_unix(login:session): session opened for user root by LOGIN(uid=0) May 12 19:22:15 [login] ROOT LOGIN on '/dev/tty1' ** Sorry for the bad wrapping, each new line starts with May 12... Does anyone have any ideas as to why there is a telnet dir with something in it on my machine Does anyone know of another app that might for some bizarre reason, create a telnet dir? Any thoughts, greatly appreciated, Andrew
Re: [gentoo-user] Had a peak in /var/log and there is a telnet dir
On 28/07/2014 16:45, Andrew Lowe wrote: Hi all, I don't run telnet at all. I don't even have it installed on my machine yet tonight I had a look in /var/lib to try and find a reason as to why something else is failing and lo and behold there is a telnet dir. Having a look inside shows: ** bluey telnet # pwd /var/log/telnet bluey telnet # ls -la total 48 drwx-- 2 root root 4096 Jul 2 14:58 . drwxr-xr-x 15 root root 8192 Jul 28 22:03 .. -rw-r--r-- 1 root root 145 Jul 2 14:58 current -rw-r--r-- 1 root root 145 May 4 21:07 log-2014-05-12-11:22:05 -rw-r--r-- 1 root root 372 May 12 19:22 log-2014-05-26-11:54:56 -rw-r--r-- 1 root root 145 May 26 19:54 log-2014-06-13-04:25:41 -rw-r--r-- 1 root root 145 Jun 13 12:25 log-2014-06-30-10:39:20 -rw-r--r-- 1 root root 513 Jun 30 22:09 log-2014-07-02-06:58:34 -rw-r--r-- 1 root root 11 Jul 2 14:58 .timestamp bluey telnet # bluey telnet # telnet bash: telnet: command not found ** Looking inside one of these files reveals: ** bluey telnet # cat log-2014-05-26-11\:54\:56 May 12 19:22:05 [login] pam_unix(login:auth): authentication failure; logname=LOGIN uid=0 euid=0 tty=/dev/tty1 ruser= rhost= user=root May 12 19:22:07 [login] FAILED LOGIN (1) on '/dev/tty1' FOR 'root', Authentication failure May 12 19:22:15 [login] pam_unix(login:session): session opened for user root by LOGIN(uid=0) May 12 19:22:15 [login] ROOT LOGIN on '/dev/tty1' ** Sorry for the bad wrapping, each new line starts with May 12... Does anyone have any ideas as to why there is a telnet dir with something in it on my machine Does anyone know of another app that might for some bizarre reason, create a telnet dir? Any thoughts, greatly appreciated, Andrew Files in /var/log are usually created by syslog, and those have the correct format for syslog entries and are using the tag login. But they are not telnet logins, they are console logins on /dev/tty1. This all looks perfectly normal btw, the are just in a directory with an odd name. So, first thing is to check you syslogger's config and see if is configured to add logs with the message login to a file in a directory telnet[1]. Better, post your scrubbed config here If that looks legit, check your logrotate config. I wouldn't be assuming an intrusion here,it doesn't have the look or feel of one. I'd be assuming a stoopid config :-) -- Alan McKinnon alan.mckin...@gmail.com
Re: [gentoo-user] NFS tutorial for the brain dead sysadmin?
Hello every body. I was wondering that is it possible to make portage to sync a only a subset of portage tree. For example I have not installed Gnome and I dont want to sysc command download ebuilds related to this branch. thanks On Mon, Jul 28, 2014 at 6:28 PM, J. Roeleveld jo...@antarean.org wrote: On Sunday, July 27, 2014 08:44:02 PM Kerin Millar wrote: On 27/07/2014 17:55, J. Roeleveld wrote: On 27 July 2014 18:25:24 CEST, Stefan G. Weichinger li...@xunil.at wrote: Am 26.07.2014 04:47, schrieb walt: So, why did the broken machine work normally for more than a year without rpcbind until two days ago? (I suppose because nfs-utils was updated to 1.3.0 ?) The real problem here is that I have no idea how NFS works, and each new version is more complicated because the devs are solving problems that I don't understand or even know about. I double your search for understanding ... my various efforts to set up NFSv4 for sharing stuff in my LAN also lead to unstable behavior and frustration. Only last week I re-attacked this topic as I start using puppet here to manage my systems ... and one part of this might be sharing /usr/portage via NFSv4. One client host mounts it without a problem, the thinkpads don't do so ... just another example ;-) Additional in my context: using systemd ... so there are other (different?) dependencies at work and services started. I'd be happy to get that working in a reliable way. I don't remember unstable behavior with NFS (v2 back then?) when we used it at a company I worked for in the 90s. Stefan I use NFS for filesharing between all wired systems at home. Samba is only used for MS Windows and laptops. Few things I always make sure are valid: - One partition per NFS share - No NFS share is mounted below another one - I set the version to 3 on the clients - I use LDAP for the user accounts to ensure the UIDs and GIDs are consistent. These are generally good recommendations. I'd just like to make a few observations. The problems associated with not observing the first constraint (one filesystem per export) can be alleviated by setting an explicit fsid. Doing so can also help to avoid stale handles on the client side if the backing filesystem changes - something that is very useful in a production environment. Therefore, I tend to start at 1 and increment with each newly added export. For example:- /export/foo *(async,no_subtree_check,fsid=1) /export/foo/bar *(async,no_subtree_check,fsid=2) /export/baz *(async,no_subtree_check,fsid=3) If using NFSv3, I'd recommend using nolock as a mount option unless there is a genuine requirement for locks to be co-ordinated. Such locks are only advisory and are of questionable value. Using nolock simplifies the requirements on both server and client side, and is beneficial for performance. NFSv3/UDP seems to be limited to a maximum read/write block size of 32768 in Linux, which will be negotiated by default. Using TCP, the upper bound will be the value of /proc/fs/nfsd/max_block_size on the server. Its value may be set to 1048576 at the most. NFSv3/TCP is problematic so I would recommend NFSv4 if TCP is desired as a transport protocol. NFSv4 provides a useful uid/gid mapping feature that is easier to set up and maintain than nss_ldap. NFS4 requires all the exports to be under a single foldertree. This is a myth: http://linuxcostablanca.blogspot.co.uk/2012/02/nfsv4-myths-and-legends.html . Exports can be defined and consumed in the same manner as with NFSv3. When I originally tried NFSv4, it refused to work unless they were all under the same directory. As I dislike that, I decided against using it. That was a long time ago, will revisit that part again later. Interesting link, I wonder how difficult it will be to combine that with Samba 4 and use the Samba AD structure for NFSv4 with either ZFS or BTRFS underneath. -- Joost
Re: [gentoo-user] resolv.conf is different after every reboot
2014-07-28 1:00 GMT+03:00 Kerin Millar kerfra...@fastmail.co.uk: On 27/07/2014 21:38, Grand Duet wrote: 2014-07-27 22:13 GMT+03:00 Neil Bothwick n...@digimed.co.uk: On Sun, 27 Jul 2014 13:33:47 +0300, Grand Duet wrote: That's what replaces it when eth0 comes up. It looks like eth0 is not being brought up fully It sounds logical. But how can I fix it? By identifying how far it is getting and why no further. But it appears that eth0 is being brought up correctly and then the config is overwritten by the lo config. I think so. As I have already reported in another reply to this thread, it is my first reboot after commenting out the line dns_domain_lo=mynetwork and so far it went good. Moreover, the file /etc/resolv.conf has not been overwritten. I still have to check if everything else works fine and if I will get the same result on the next reboot but I hope that the problem has been solved. But it looks like a bug in the net csript. Why lo configuration should overwrite eth0 configuration at all? I would consider it be a documentation bug at the very least. Being able to propagate different settings to resolv.conf depending on whether a given interface is up may be of value for some esoteric use-case, although I cannot think of one off-hand. Some other distros use the resolvconf application to handle these nuances. In any case, it is inexplicable that the user is invited to define dns_domain for the lo interface. Why would one want to push settings to resolv.conf based on the mere fact that the loopback interface has come up? Also, it would be a great deal less confusing if the option were named dns_search. I think that the handbook should refrain from mentioning the option at all, for the reasons stated in my previous email. Those who know that they need to define a specific search domain will know why and be capable of figuring it out. It's too bad that the handbook is still peddling the notion that this somehow has something to do with 'setting' the domain name. It is tosh of the highest order. I agree with you. But how to put it all in the right ears?
Re: [gentoo-user] NFS tutorial for the brain dead sysadmin?
On Mon, 28 Jul 2014 19:59:16 +0430, behrouz khosravi wrote: I was wondering that is it possible to make portage to sync a only a subset of portage tree. For example I have not installed Gnome and I dont want to sysc command download ebuilds related to this branch. Please do not top-post Please do not hijack threads. If you have a new question to ask, start a new thread, don't use a thread dedicated to a different question. The short answer to your question is no - unless you want to start messing with RSYNC_OPTS in make.conf to add exclude directives, but that could break dependency resolution. -- Neil Bothwick This is a test of the emergency tagline stealing system. signature.asc Description: PGP signature
Re: [gentoo-user] re: which NTPd package to use?
On Sat, Jul 26, 2014 at 5:05 AM, Alexander Kapshuk alexander.kaps...@gmail.com wrote: Which NTPd package would the list recommend using, ntp, openntpd, or some other package? openntpd seems to be easier to set up according to wiki.gentoo.org. The list's advice would be much appreciated. This is going to be very unpopular with the list, but if you've already jumped to the systemd camp, it has one built in... /me ducks -- Douglas J Hunley (doug.hun...@gmail.com) Twitter: @hunleyd Web: about.me/douglas_hunley G+: http://google.com/+DouglasHunley
Re: [gentoo-user] re: which NTPd package to use?
On Mon, Jul 28, 2014 at 12:42 PM, Douglas J Hunley doug.hun...@gmail.com wrote: On Sat, Jul 26, 2014 at 5:05 AM, Alexander Kapshuk alexander.kaps...@gmail.com wrote: Which NTPd package would the list recommend using, ntp, openntpd, or some other package? openntpd seems to be easier to set up according to wiki.gentoo.org. The list's advice would be much appreciated. This is going to be very unpopular with the list, but if you've already jumped to the systemd camp, it has one built in... Anybody have a decent comparison of timedated vs ntpd or anything else for that matter? Running ntpd isn't hard at all, so I'm not really sure why I'd want to switch. At the very least I'd want to ensure that the replacement covers the basics. I am running networkd and I'm very happy with it. Setting it up for dhcp-only is brain-dead simple, and I have it serving up a bridge for containers/kvm with fairly little trouble as well. Rich
Re: [gentoo-user] re: which NTPd package to use?
Am 28.07.2014 18:47, schrieb Rich Freeman: Anybody have a decent comparison of timedated vs ntpd or anything else for that matter? Running ntpd isn't hard at all, so I'm not really sure why I'd want to switch. At the very least I'd want to ensure that the replacement covers the basics. I am running networkd and I'm very happy with it. Setting it up for dhcp-only is brain-dead simple, and I have it serving up a bridge for containers/kvm with fairly little trouble as well. AFAI understand it the systemd-timedated.service helps setting clock and time-related settings ... and if you use it to enable NTP syncing, systemd-timesyncd.service will actually take over the part of syncing with ntp servers. I also preferred chrony over ntp for the last year or so. Better with laptops etc. and quicker to correct time when there is large offset. What I haven't yet fully understood: daemons like chrony bring a specific settings file for systemd-environments, in this case: /usr/lib/systemd/ntp-units.d/50-chrony.list (saying chronyd.service) In the same directory I see 90-systemd.list (saying systemd-timesyncd.service). As far as I understand this: if other ntp-software is installed, systemd-timedated.service uses the ntp-unit with higher priority (in my current case chronyd.service) for ntp-syncing. So you may use the systemd-timedated.service to do your settings and in the same setup let it use another ntp-daemon to actually do the syncing behind the curtains. Generalized interface with choice --- nice, isn't it? ;-) but maybe I misunderstand. Stefan
Re: [gentoo-user] re: which NTPd package to use?
Am 28.07.2014 23:20, schrieb Stefan G. Weichinger: I am running networkd and I'm very happy with it. Setting it up for dhcp-only is brain-dead simple, and I have it serving up a bridge for containers/kvm with fairly little trouble as well. shameless pointer to an older blog entry: http://www.oops.co.at/en/publications/systemd-networkd-network-configuration-for-a-kvm-server S
Re: [gentoo-user] re: which NTPd package to use?
Am 28.07.2014 23:20, schrieb Stefan G. Weichinger: As far as I understand this: if other ntp-software is installed, systemd-timedated.service uses the ntp-unit with higher priority (in my current case chronyd.service) for ntp-syncing. So you may use the systemd-timedated.service to do your settings and in the same setup let it use another ntp-daemon to actually do the syncing behind the curtains. My tests show: If I manually disable chronyd.service and then do timedatectl set-ntp yes this enables and starts chronyd.service (in my case the higher priority ntp.unit as mentioned before). I might additionally emerge net-misc/ntp and see what happens - this adds /usr/lib/systemd/ntp-units.d/60-ntpd.list with ntpd.service inside ... so this would trigger ntpd.service if chrony would not be installed? And there is still /etc/systemd/ntp-units.d/ where you can override the given priorities (if more than one ntp-capable package is installed). - I am quite happy with systemd controlling and using chrony here ... just interesting how things are implemented here. enough for today: 0:20am here, ntp-synced. Stefan
[gentoo-user] Arrh - my KDE look has disappeared
Hi all, Fired up the 'puter last night and instead of a backdrop showing the dog doing something stupid, a task bar, the start button thingy, and a few other bits and pieces, I had the default KDE backdrop. The task bar was on the second screen, the backdrop was the default, there was no start button etc. What's happened?? Obviously KDE has freaked out in some way, but how? Where are the files that configure the look and feel of my desktop kept? I've looked in ~/Desktop and ~/.kde4 and there was nothing there. Any thoughts on the matter greatly appreciated, Andrew