Re: [CentOS] smartd and smartctl

2012-02-17 Thread Mike VanHorn

FWIW, on some of my workstations, when I have gotten the sector pending
messages, I have been able to take the drive out and run the
manufacturer's diagnostics on it (in my case, Seatools), and that fixed
some things and I haven't had any issues since.

---
Mike VanHorn
Senior Computer Systems Administrator
College of Engineering and Computer Science
Wright State University
265 Russ Engineering Center
937-775-5157
michael.vanh...@wright.edu
http://www.engineering.wright.edu/~mvanhorn/





On 2/17/12 3:25 PM, m.r...@5-cent.us m.r...@5-cent.us wrote:

Mike Burger wrote:

 A few weeks ago, one of my servers started complaining, via smartd, that
 one drive had one unreadable sector. I umounted it, and ran an fsck -c,
 then remounted it. Error didn't go away. Now, what's really annoying is
 that I've gotten back to it today, and it's reporting the problem, as it
 has for weeks now, every half an hour.

 However, when I run
 smartctl -q errorsonly -H -l selftest -l error /dev/sdb
 it gives me *nothing*. Anyone understand why I get two different
 results?

  mark and I am waiting for the smartctl -t long /dev/sdb to
 complete

 The smart system works at the hardware level, reading diagnostic
 information from the SMART circuitry on the hard drives, themselves. The
 hard drives will often, now, try to move the data from bad sectors on the
 platters to good sectors, and then mark them so that they won't be used,
 later.

 Running fsck only works at the logical filesystem layer. The fsck tool
has
 no hooks to deal with the physical layer.

Ok, but my thinking was, first, that after the fsck, the system wouldn't
try to write to the bad sector, thus not provoking smart. The more
annoying thing is that I don't understand why smartctl doesn't give the
same info as smartd. When I do a -a, it does tell me that one sector's
pending, but not that there's any error.

mark

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


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


[CentOS] iscsid still starting up after turning it off

2011-12-09 Thread Mike VanHorn

I have a set of CentOS 5.7 workstations, on which I have turned of iscsid
using 'chkconfig iscid off'. However, when some of them reboot, iscsid
starts anyway. 

Also, when I do an 'service --status-all, iscsid is listed twice (this is
true on both the workstations where iscsid starts and the ones where
iscsid doesn't start), which seems to indicate, I think, that it is listed
as a service twice.

How can I tell from whence iscsid is starting, even after it's been turned
off?

Thanks!

---
Mike VanHorn
Senior Computer Systems Administrator
College of Engineering and Computer Science
Wright State University
265 Russ Engineering Center
937-775-5157
michael.vanh...@wright.edu
http://www.engineering.wright.edu/~mvanhorn/




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


Re: [CentOS] restricting access to an NIS netgroup

2011-11-09 Thread Mike VanHorn

On 11/8/11 4:31 PM, Stephen Harris li...@spuddy.org wrote:

On Tue, Nov 08, 2011 at 03:41:22PM -0500, Mike VanHorn wrote:
How can I restrict access to a system based on NIS netgroups?

Change nsswitch.conf so that it reads
  passwd: compat
  passwd_compat: nis

And then in /etc/passwd
   +@netgroup1::
   +@netgroup2::

That way only users in the given netgroup(s) have visible accounts on the
machine.


This works. Thanks!


---
Mike VanHorn
Senior Computer Systems Administrator
College of Engineering and Computer Science
Wright State University
265 Russ Engineering Center
937-775-5157
michael.vanh...@wright.edu
http://www.engineering.wright.edu/~mvanhorn/



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


Re: [CentOS] restricting access to an NIS netgroup

2011-11-09 Thread Mike VanHorn

You'll probably need to add a pam_access.so reference to the stock
/etc/pam.d/password-auth. Make the first account line

   account  required  pam_access.so

My CentOS system doesn't have a stock password-auth file. I tried creating
one with that line in it, but that didn't work. Also, per some web pages I
found, I tried putting that line into system-auth, but that didn't work
either.

Also, I assume that your system can access your netgroups properly,
i.e., getent can see them:

   getent netgroup $groupname

Yes, that is working.

Fortunately, the solution provided on-list by Stephen Harris did work, but
I'm puzzled as to why this isn't.

---
Mike VanHorn
Senior Computer Systems Administrator
College of Engineering and Computer Science
Wright State University
265 Russ Engineering Center
937-775-5157
michael.vanh...@wright.edu
http://www.engineering.wright.edu/~mvanhorn/




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


[CentOS] restricting access to an NIS netgroup

2011-11-08 Thread Mike VanHorn

I am using CentOS 5.7. I have an /etc/security/access.conf file which has
the following:

+ : root : LOCAL
+ : @mynetgroup : ALL
- : ALL : ALL

I thought this is supposed to restrict access to the system to only root
and the accounts in the mynetgroup netgroup; however, anyone NIS account
is still able to login. It appears that the access.conf is being ignored
completely, so I'm thinking there's something I'm missing.

How can I restrict access to a system based on NIS netgroups?

Thanks!

---
Mike VanHorn
Senior Computer Systems Administrator
College of Engineering and Computer Science
Wright State University
265 Russ Engineering Center
937-775-5157
michael.vanh...@wright.edu
http://www.engineering.wright.edu/~mvanhorn/




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


[CentOS] updating 5.6 but not going to 6.0

2011-08-25 Thread Mike VanHorn

I'm confused as to how to install updates for CentOS 5.6 without upgrading
to 6.0. When I do a yum check-updates, the new *-release packages for
6.0 are listed, so I don't think I want to do a simply yum update.

Is there a way to update 5.6 without going to 6.0?

---
Mike VanHorn
Senior Computer Systems Administrator
College of Engineering and Computer Science
Wright State University
265 Russ Engineering Center
937-775-5157
michael.vanh...@wright.edu
http://www.engineering.wright.edu/~mvanhorn/




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


[CentOS] Insert the second CD of an install

2011-02-15 Thread Mike VanHorn

Using CentOS 5.5 x86_64.

I am trying to install software that comes on two discs. I can start the
install just fine, but when it comes to taking out the first disc and
putting in the second, the system won't let me eject it.

I remember reading something on the internet once about something needing to
be enabled to allow this to work, but I can't find it now. Does anybody have
a clue as to what I might be looking for?

(Yes, the work around is to just mount both ISOs and not use real discs at
all, but as administrator I understand that process and my users won't.
However, they are familiar with the process of inserting disks.)

Thanks!

---
Mike VanHorn
Senior Computer Systems Administrator 
College of Engineering and Computer Science
Wright State University
265 Russ Engineering Center
937-775-5157
michael.vanh...@wright.edu
RSS: http://www.engineering.wright.edu/~mvanhorn/MikeVanHorn'sNewsFeed.xml
http://www.engineering.wright.edu/~mvanhorn/



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


Re: [CentOS] Insert the second CD of an install

2011-02-15 Thread Mike VanHorn
On 2/15/11 4:09 PM, John R Pierce pie...@hogranch.com wrote:

 On 02/15/11 1:03 PM, Mike VanHorn wrote:
 Using CentOS 5.5 x86_64.
 
 I am trying to install software that comes on two discs. I can start the
 install just fine, but when it comes to taking out the first disc and
 putting in the second, the system won't let me eject it.
 
 you typically have to umount the volume before you can eject the disk.
 and of course to umount it, noone can have any open files on it.

Exactly. That's why I can't remember what it was I read about, because I've
never known anything to work any way other than the way you've described it
above.

---
Mike VanHorn
Senior Computer Systems Administrator 
College of Engineering and Computer Science
Wright State University
265 Russ Engineering Center
937-775-5157
michael.vanh...@wright.edu
RSS: http://www.engineering.wright.edu/~mvanhorn/MikeVanHorn'sNewsFeed.xml
http://www.engineering.wright.edu/~mvanhorn/



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


Re: [CentOS] how many people still use NIS?

2010-10-01 Thread Mike VanHorn
On 10/1/10 2:27 PM, Boris Epstein borepst...@gmail.com wrote:

 Hello listmates,
 
 I have discovered a very strange SFTP problem which I can not connect to
 anything but NIS thus far. See here:
 
 http://www.linuxquestions.org/questions/linux-server-73/sftp-seems-to-fail-for
 -nis-accounts-under-openssh-5-x-816020/
 
 http://readlist.com/lists/suse.com/suse-linux-e/38/193419.html
 
 Hence the question: is NIS (YP) still in use much anywhere for
 authentication?

We use it for our mixed environment of Solaris and Linux (including CentOS)
workstations. 100-150 machines, 600-700 users.

---
Mike VanHorn
Senior Computer Systems Administrator 
College of Engineering and Computer Science
Wright State University
265 Russ Engineering Center
937-775-5157
michael.vanh...@wright.edu
RSS: http://www.engineering.wright.edu/~mvanhorn/MikeVanHorn'sNewsFeed.xml
http://www.engineering.wright.edu/~mvanhorn/



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