Re: [CentOS] print something on console after boot
I might be in left field but... in init.d create a script that simply echo_ip script contents #!/bin/bash ip -4 addr |grep inet |tee /var/log/ip # this will only print the ip lines and copy to /var/log/ip ( I prefer tee over echo, for a variety of reasons) then create S99echo_ip in rc3.d so that it runs last then On 12/8/2014 5:35 PM, Florin Andrei wrote: CentOS 7 How do I print something on the text-mode console right after the OS has finished booting? I've a virtual instance and I need to know its IP address after it has finished booting up, to know where to ssh into it. I've tried adding "ip -4 addr > /dev/tty0" to rc.local, but that obviously doesn't work, because the login prompt overwrites everything I do. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] get /full/path/filename.ext from filename.ext
I don't know if this is of interest as an alternative. I did find a cool functionality called locate and updatedb Updatedb creates the database of your files, locate does superfast searches. It essentially does a superfast "find" on your root filesystem, giving you the fully qualified path of all hits. You can create db's on your other filessytems. The problem is that it can get stale, but you can update it before doing your searches. Plus it gives you a fully qualified path name with the results. So if you need to do a set of searches on a filesystem (or whole system) run updatedb on each target filesystem to create the db for that filesystem. then use locate to search each filesystem "db"... it takes seconds like ls instead of minutes like findthe more files in the FS, the quicker the searches compared to other tools. the best part is you can run the db's when your systems are quiet, and the databases use minimal diskspace. On 12/9/2014 2:57 PM, ken wrote: This should be simple, but it's not, unless I'm forgetting something. Writing a script, an arg is a filename. So fname=$1 But I want that expanded to include the full path and filename, not just what is given as the arg on the command line. E.g., if the user's cwd is /home/joe/a/b/c/ and he specifies ../x/file-a.ext then the function/utility should transform that into the absolute path with filename: /home/joe/a/b/x/file-a.ext In the simplest scenario, the answer would be $PWD/file-a.ext, but that would by no means cover a portion of the possible scenarios. You'd think this functionality would be included already in one or another linux utility. It's kinda like the complement to the 'basename' utility. I've looked into the dark corners of ls, stat, file, bash, type, find, and a few other linux standards, but nothing seems to do this. Any gurus out there know the utility which does this? ___ 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] loading centos on a Sun Gen opereron x86
I am trying to load centos on a gen opteron x86 but since the boxes are out of support, I am unable to find firmware for it. Any suggestions on where I might find the drivers? Thanks, Dan ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] moving LDAP from one domain to another
Hello, I am moving LDAP from one domain to another We have moved off of a.wustl.edu network to b.school.edu network. I have searched vi /etc/nslcd.conf vi /etc/openldap/ldap.conf and removed all referances to "a" I restarted /etc/init.d/nscd restart this is redhat 6.7, and my ldap server is now ldap.b.wustl.edu:389 a.school.edu to b.school.edu I keep getting messages that Dec 29 14:50:19 linuscs133 nslcd[7438]: [709c39] ldap_start_tls_s() failed: Can't contact LDAP server (uri="ldap://ldap.a.wustl.edu/";) Dec 29 14:50:19 linuscs133 nslcd[7438]: [709c39] failed to bind to LDAP server ldap://ldap.a.wustl.edu/: Can't contact LDAP server Dec 29 14:50:19 linuscs133 nslcd[7438]: [709c39] no available LDAP server found Dec 29 14:50:28 linuscs133 rpc.mountd[12501]: authenticated mount request from IP:833 for /vol/aggr1/filefs (/vol/aggr1) Dec 29 14:50:41 linuscs133 rpc.mountd[12501]: authenticated mount request from ... for /vol/aggr1/dsg_external_collab (/vol/aggr1) Dec 29 14:55:19 linuscs133 nslcd[7438]: [f48f70] ldap_start_tls_s() failed: Can't contact LDAP server (uri="ldap://ldap.a.wustl.edu/";) Dec 29 14:55:19 linuscs133 nslcd[7438]: [f48f70] failed to bind to LDAP server ldap://ldap.a.school.edu/: Can't contact LDAP server Dec 29 14:55:19 linuscs133 nslcd[7438]: [f48f70] no available LDAP server found Where else is the a.wustl.edu domain set? Thanks in advance Dan ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] moving LDAP from one domain to another
duh, and I spent all day on this... thanks On 12/29/2015 03:14 PM, Alexander Dalloz wrote: Am 29.12.2015 um 22:03 schrieb Dan Hyatt: Hello, I am moving LDAP from one domain to another We have moved off of a.wustl.edu network to b.school.edu network. I have searched vi /etc/nslcd.conf vi /etc/openldap/ldap.conf and removed all referances to "a" I restarted /etc/init.d/nscd restart Wrong service restarted. You need to restart the nslcd service after changing the /etc/nslcd.conf. this is redhat 6.7, and my ldap server is now ldap.b.wustl.edu:389 a.school.edu to b.school.edu I keep getting messages that Dec 29 14:50:19 linuscs133 nslcd[7438]: [709c39] ldap_start_tls_s() failed: Can't contact LDAP server (uri="ldap://ldap.a.wustl.edu/";) Dec 29 14:50:19 linuscs133 nslcd[7438]: [709c39] failed to bind to LDAP server ldap://ldap.a.wustl.edu/: Can't contact LDAP server Dec 29 14:50:19 linuscs133 nslcd[7438]: [709c39] no available LDAP server found Dec 29 14:50:28 linuscs133 rpc.mountd[12501]: authenticated mount request from IP:833 for /vol/aggr1/filefs (/vol/aggr1) Dec 29 14:50:41 linuscs133 rpc.mountd[12501]: authenticated mount request from ... for /vol/aggr1/dsg_external_collab (/vol/aggr1) Dec 29 14:55:19 linuscs133 nslcd[7438]: [f48f70] ldap_start_tls_s() failed: Can't contact LDAP server (uri="ldap://ldap.a.wustl.edu/";) Dec 29 14:55:19 linuscs133 nslcd[7438]: [f48f70] failed to bind to LDAP server ldap://ldap.a.school.edu/: Can't contact LDAP server Dec 29 14:55:19 linuscs133 nslcd[7438]: [f48f70] no available LDAP server found Where else is the a.wustl.edu domain set? Thanks in advance Dan Alexander ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
[CentOS] cannot kickstart centos 6 on Dell Blade error cannot find c0t0
I have an intermittent problem with my Dell blades, out of 80 blades 69 of them kickstarted Centos 6 fine using PXE The other 11, I get a c0t0 not found error (indicating it is not finding the local disk on the blade). I can remote mount the iso image and do a basic install of centos on these blades, but when I go to do a pxe boot it gives me that error again. I have googled the issue and come up empty handed. Dell told us to install centos 6 minimal ISO then pxe install the server. This has been unsuccessful. I get the local ISO to install but the pxe fails again. Since the kickstart file defines the disk as sda1 I am supposing that it is really a hardware problem. But I am told by coworkers who handed it off to me that it is a known issue with centos and Dell blades. These are two internal disks on the blade. Any suggestions? -- Dan ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Problem with blades that wont kickstart
About 15% of my blades wont kickstart. I checked to see, and they all seem to be 100% compatible. I currently do not own/direct access the kickstart server, I will build one later. Is it possible they fat fingered the MAC address of the problem blades when they put them into the PXE server? As I can build them from a locally mounted virtual CD, but cannot build from PXE At first I was getting a grub error. When I installed a baseline Centos locally, and then pxe booted for the build. I got a cannot find C0T0 which indicates it cannot find the first drive (kickstart uses sda1), yet I look in the drac and I can see C0T0 drive as well as C0t1 drive (this is a raid 1 virtual drive no mirror) So here is my big question:can I put my primary drive in slot sda2 on the blade... then DD the drive from the working blade, change the MAC address in the network interface, change the hostname/IP address in /etc/sysconfig/network and /etc/sysconfig/network-scripts/eth0 to build the drives? What are the risks? what are the gotcha's? what problems will I have DD ing a drive that is currently the boot drive? Any suggestions are welcome -- Dan Hyatt ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Kickstarts failing 30% of time on Dell 620 blades
I have a large set of Dell 620 blades fully populated with memory and duel socket CPUs, Centos6.4 image. I have a kickstart that I am using to pxe boot 36 blades. I have two internal drives which are raid1 (two disks formed into one, no redundancy), not san attached In the first set, 9 successfully completed. 7 more built correctly after trying another pxe boot. 2 just wont pxeboot In the second set I had 11 fail and 5 succeed and the two I tried again failed. When they fail, they go to GRUB. I try booting from disk from the drac and still get grub It looks like the complete centos kickstart occurs as it goes through the whole install before rebooting and failing. Any idea why this would happen with identical hardware, identical kickstart/image, inside the same blade chassis. Any idea what to test. -- Dan Hyatt Division of Statistical Genomics Washington University School of Medicine Forest Park Blvd, Campus Box 8506 St. Louis, MO 63108 314 747 4767 (o) 314 473 8713 (c) dhy...@dsgmail.wustl.edu ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Virtualization of a production environment
I need to virtualize a server, but this needs to be stable enough for production. What are the advantages/disadvantages of the different hypervisers with CENTOS ESXi (vmware) XEN KVM Primarily I will be running Centos6.4 there may or may not be a windows server. I need stability as this will be production. I will not need the equivalent of V Motion, but would like to be able to do a physical to virtual would like the capability of snapshots and to be able to backup as files on storage (I cannot do boot from SAN, but this will be SAN attached). -- Thanks, Dan ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] xhost: unable to open display
When I put export DISPLAY="IP address:0.0"ip address being my windows8 desktop then xhost + I get xhost: unable to open display "IP:0.0" when I try export DISPLAY=":0.0" I get the same thing. I have centos6.4 running on a late model Dell Blade Windows8 Alienware laptop I checked the xwin firewall setting and it is set to public network access (but strangely private network is grayed out) any ideas -- Dan Hyatt ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Top posting threads.
On 5/19/2014 10:28 AM, O'Reilly, Dan wrote: > There is one more thing more annoying: people sending endless emails about > what's annoying on a mailing list... > > -Original Message- > From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On Behalf > Of Lamar Owen > Sent: Monday, May 19, 2014 9:28 AM > To: CentOS mailing list > Subject: [CentOS] Top posting threads. > > There are only two things more annoying on a mailing list than top > posting: bottom posting with no trimming of quoted content and all the > endless discussions about top posting. > The revenge of Microsucks and the philosophy that the old ways of UNIX masters were wrong. mail clients that default to top post Which is why MAC is so popular BSD Unix... ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] xhost: unable to open display
On 5/20/2014 9:46 AM, Charles Whitby wrote: > You running doing the xhost + on the Win8 box and the export DISPLAY on the > Linux side, right? > There is no xhost command on the windows side I have not done this in two years, but as I remember it, the xhost + was done on the console and the export DISPLAY was done in the user profile. It is the UNIX box exporting the display to allow windows (or another UNIX box) to receive it. What am I missing. > On Tue, May 20, 2014 at 10:44 AM, Dan Hyatt wrote: > >> When I put >> export DISPLAY="IP address:0.0"ip address being my windows8 desktop >> >> then >> xhost + >> >> I get >> xhost: unable to open display "IP:0.0" >> >> when I try >> export DISPLAY=":0.0" >> I get the same thing. >> >> I have centos6.4 running on a late model Dell Blade >> Windows8 Alienware laptop >> >> I checked the xwin firewall setting and it is set to public network >> access (but strangely private network is grayed out) >> any ideas >> >> -- >> >> Dan Hyatt >> >> ___ >> 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 -- Dan Hyatt Division of Statistical Genomics Washington University School of Medicine Forest Park Blvd, Campus Box 8506 St. Louis, MO 63108 314 747 4767 (o) 314 473 8713 (c) dhy...@dsgmail.wustl.edu ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Disable login at boot
On 5/20/2014 11:51 PM, Clint Dilks wrote: > On Wed, May 21, 2014 at 2:18 PM, John R Pierce wrote: > >> On 5/20/2014 6:59 PM, Karalyn Capone wrote: >>> Not disable the screen. I just want the machine to log in on boot >> automatically. >> >> huh? linux boots up and runs all services without any console log >> on. This isn't MS Windows. >> >> anything you want running automatically, put it in a service script in >> /etc/rc.d/init.d and symlinked to appropriate run level directories via >> chkconfig servicename on >> >> or put it in /etc/rc.local although that method is rather deprecated. I can think of a time/place where you would NOT want people to have to log in. You are setting up either virtualized sessions or a standalone kiosk where you want people to be able to go specific locations/websites But not have to log on. For instance, you have a kiosk, not connected to the internet, and you want people to be able to view your standalone web pages Another instance, is a business center where you want people to be able to surf specific web pages, you set up a user with no password who goes straight to the webpage or java app and has very restricted access (even having the whole thing on a read only filesystem...except for logs >> > Hi, from reading this thread I am beginning to think that the OP has a > Desktop type install and wants people to be able to be logged in as a > specific user without entering a password. > > If I am correct does the advice at the bottom of this page may work > https://www.centos.org/forums/viewtopic.php?t=5625 > > I haven't tested this myself :) > _______ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos -- Dan Hyatt Division of Statistical Genomics Washington University School of Medicine Forest Park Blvd, Campus Box 8506 St. Louis, MO 63108 314 747 4767 (o) 314 473 8713 (c) dhy...@dsgmail.wustl.edu ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] yum install to a portable location
I have googled, read the man page, and such. What I am trying to do is install applications to a NFS mounted drive, where the libraries and everything are locally installed on that filesystem so that it is portable across servers (I have over 100 servers which each need specific applications installed via yum and we do not want to install 100 copies). We tried the yum relocate and it was not available on Centos6.4 and yum --nogpgcheck localinstall R-3.1.0-5.el6.x86_64 I want the binaries and all dependencies in the application filesystem which is remote mounted on all servers. Thanks, -- Dan Hyatt ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] yum install to a portable location
What will chroot get me. I have root on the server, I have a filesystem mounted on all server. What I want to do is contain the binaries and dependancies on the nfs filesystem On 6/11/2014 11:30 AM, Andrew Holway wrote: > Can you use chroot? > > > On 11 June 2014 18:26, Dan Hyatt wrote: > >> I have googled, read the man page, and such. >> >> What I am trying to do is install applications to a NFS mounted drive, >> where the libraries and everything are locally installed on that >> filesystem so that it is portable across servers (I have over 100 >> servers which each need specific applications installed via yum and we >> do not want to install 100 copies). >> >> We tried the yum relocate and it was not available on Centos6.4 >> >> and >> yum --nogpgcheck localinstall R-3.1.0-5.el6.x86_64 >> >> I want the binaries and all dependencies in the application filesystem >> which is remote mounted on all servers. >> >> Thanks, >> >> -- >> >> Dan Hyatt >> >> ___ >> 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 -- Dan Hyatt Division of Statistical Genomics Washington University School of Medicine Forest Park Blvd, Campus Box 8506 St. Louis, MO 63108 314 747 4767 (o) 314 473 8713 (c) dhy...@dsgmail.wustl.edu ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] issue_discards in lvm.conf
I worked in the SSD lab at STEC for a while, testing SSD's and fixing SSD's that failed... When I was working in the lab on the Zuess drives (First enterprise class SSD drive) . When the drives came back from our customers hosed, all we had to do was re-flash the firmware (helps if you have the software and the firmware to reflash the drives, the hardware was your basic server). I don't know about you problem, or which manufacturing process drives you are using...but the Zeuss drives only needed a firmware reflash. This was just a 2u server with a software program that would allow me to reflash the drives. There were 2 kinds of SSD drives (2 manufacturing processes). The consumer grade which had a MTF of 2 years, and/or X writes. There was the other process, enterprise class drives which had a MTF of ~ (yes infinity) theory was they would never fail. I knew how to blow up the drives, run them well beyond the capacity of spinner drives. But then I would flash the firmware and the drive would be good as new. I would be running about 200 music videos at the same time to get enough throughput to cause it to crash. The goal was to find *when* they blew up, so we could limit them in firmware before then. We all know manufacturers know how to make benchmarks lie. They told me which tests to run to make our drives blow away the spinners, and which ones not to do. The very fragmented drives RO, SSD blew away the spinners, but Writting sequentially (both blank drives to start) there was little difference. When our customers (the major SAN manufacturers) returned the drives. There was one of two things wrong with them... 1. They got a drive with a bad firmware version. Reflash and it is fixed. 2. Their design was good enough for spinner drives but did not follow the standard for [SAS|FIBER] and we found the problem, advised them what it was so they could change thier design. I remember when I dropped a $40k sample...lab manager looked at me...stared at me...then burst out laughing. The enterprise SSD's were nearly indestructible and when someone dropped on for the first time, they would *try* to look angry, but then would burst into laughter at the nervous engineer. If I got any details slightly off, hey it was a decade ago! :) On 6/12/2014 1:29 PM, James B. Byrne wrote: > > On Thu Jun 12 17:21:43 UTC 2014, John R Pierce pierce at hogranch.com wrote: > >> On 6/12/2014 10:12 AM, m.roth at 5-cent.us wrote: >>> We use two methods: for the drives that are totally dead, or*sigh* the >>> SCSI drives, they get deGaussed. For SATA that's still running, we use >>> DBAN.*Great* software. From what I've read, one pass would probably be >>> good enough, given how data's written these days. With my name certifying >>> it, I do paranoid, and tell DBAN the full 7-pass, DoD 5220.22-M. I >>> *really* don't think anyone's getting anything off that. >> if the drive has remapped tracks, there's stale data on there you can't >> erase with DBAN. >> >>> We don't have any SSDs, so I can't speak to that. Bet you could deGauss >>> them, easily enough. Or maybe stick 'em on a burner on a stove to get over >>> the Curie point* >> degaussing would do nothing to flash memory, its semiconductor, >> not magnetic. > An EMP gun on the other hand. . . > -- Dan Hyatt ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] good thin client PDF reader for centos 6.4
Any suggestions for a good lightweight pdf reader for my centos servers? Thanks, -- Dan Hyatt ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] good thin client PDF reader for centos 6.4
Awesome I will try it on Monday Thanks, Dan On 6/20/2014 9:21 AM, m.r...@5-cent.us wrote: > SilverTip257 wrote: >> On Thu, Jun 19, 2014 at 10:20 PM, Peter Arremann >> wrote: >>> On Jun 19, 2014 10:12 PM, "Bob Hepple" wrote: >>>>writes: >>>>> Dan Hyatt wrote: >>>>>> Any suggestions for a good lightweight pdf reader for my centos >>> servers? > >>>>> Oh, and here's a neat one that's *not* a lightweight reader, that my >>>>> manager introduced me to last year: xournal. It lets you *edit* >>> .pdfs, >> Awesome! >> Thanks for sharing this one, Mark. > To you, and whoever else, you're very welcome. When my manager introduced > me to it, my *instant* reaction was those state tax forms, but I know > there's lots of other forms out there that the ignorant don't make > fill-outable. > > mark > > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos -- Dan Hyatt Division of Statistical Genomics Washington University School of Medicine Forest Park Blvd, Campus Box 8506 St. Louis, MO 63108 314 747 4767 (o) 314 473 8713 (c) dhy...@dsgmail.wustl.edu ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Bare drive RAID question, was RE: *very* ugly mdadm issue [Solved, badly]
I was under the understanding that you CAN put in larger drives, BUT they format identically to the smaller drive. There are some exceptions I do not remember what. D. On 9/5/2014 4:26 PM, Bob Marcan wrote: On Fri, 5 Sep 2014 10:18:13 -0400 Scott Robbins wrote: On Fri, Sep 05, 2014 at 08:01:05AM -0600, Warren Young wrote: On 9/5/2014 07:18, Richard Zimmerman wrote: Until I read this thread, I've never heard of building RAIDs on bare metal drives. I'm assuming no partition table, just a disk label? When the disk dies, the replacement disk must be exactly the same size. Been there, done that. I allways make partition few GB smaller than the physical size. It's not always possible to get the same type of the replacement disk. My 2c, Bob ___ 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] bizarre problem with performance
Hi, I am running centos6-5 on dell620 blades. mirrored local root drives several (including home) mounted filesystems. The other blades are working fine. Top indicates the server is running 1% cpu, and very little memory (idleing) There is no error in the messages file There is no amber lights on the server. When I log into my server it is fine, on my remote mounted home directory. When I cd to root (local disk) and I type ls it just hangs. I ran top, the system is basically idle I ran ifconfig and everything looks good. when I ran df -h it hangs when I run ls on my home directory it is fine when I run ls on my root directory it hangs when I run df -k it hangs I can go into any remote mounted directory and everything works fine. any suggestions. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] bizarre problem with performance
On my messages, I only get that annoying nfs warning message that is common. What is strange is it is the LOCAL ROOT filesystem The NFS mounted filesystems work fine. I was surprised that everything seems to work well on root as long as it is not looking at the root filesystem filesystem type commands like df -h or ls Dell did a hardware diagnostic and said there is nothing in the hardware. Suggesting that I boot the server into single user mode and do a fsck on the root filesystem On 9/17/2014 8:54 PM, Keith Keller wrote: On 2014-09-18, Gerry Reno wrote: Right off hand I would say that NFS is hanging and/or bad DNS lookup timeout. The OP said the hanging issue is only impacting local filesystems, not network. On Wed, Sep 17, 2014 at 5:41 PM, Dan Hyatt wrote: any suggestions. Did you check your logs and dmesg for interesting error messages? --keith ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] LS command bizzare behavior
Hi, My bosses are running into an issue, where we type "ls" on a nfs mounted filesystem, and files that are there are not listed... I thought it was pilot error until my big boss showed me... but we can vi the files, we can access them via other means if we know the name. Then once we have accessed them, LS now shows the files. We are running centos 6.5, we are accessing them via xwin-32 (which should not be the issue) I looked on google and found nothing discussing this...of course this has nothing to do with hidden files (dot in front) because once we access the files we can see them. Thanks Dan ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] LS command bizzare behavior
So how do I fix it. We actually have a widespread problem with files and directories "disappearing"... as it is one user in particular it might be pilot error, but it might be this. Because this is happening to two competent users. On 9/22/2014 1:11 PM, Keith Keller wrote: On 2014-09-22, Frank Cox wrote: On Mon, 22 Sep 2014 10:48:32 -0500 Dan Hyatt wrote: but we can vi the files, we can access them via other means if we know the name. Then once we have accessed them, LS now shows the files. Sounds like a caching issue to me. After you have accessed the file, it's in the cache and you can see it. More specifically, it sounds like a client-side caching issue. I've seen this happen on linux clients if I'm *really* fast on the trigger. --keith ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] CentOS 7 installer
Yes, imagine connected to your large data filesystems. Or worse yet, you have a data center power down PXE for some reason is set on all switches as the first choice and any mounted filesystem might get wiped... On 9/22/2014 3:06 PM, m.r...@5-cent.us wrote: I dunno if this ours, or an upstream enhancement, but I was just rebuilding a 6.5 box with 7. I selected custom formatting. 1. It seems to autoselect *ALL* drives. I would strongly argue that it should *only* select the first drive, or whichever is already bootable. That could be disastrous if someone doesn't notice they're all selected. 2. There's NO BACK BUTTON once you get into the select mount points, etc, screen. The only way back seems to be a reboot. 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] daemon for nfs client
In days of old, in Solaris there was a daemon for NFS Client, and NFS server (actually several including portmap...). I am unable to find reference to the daemon that runs NFS client But the RedHat Documentation does not explain the NFS client daemon. Is this a service or something else. on centos6.5 I previously posted about a really weird root filesystem. It started on another non critical server. so I found out when I unmounted the NFS filesystem the problem went away. BUT the NFS filesystem will not remount. On the non critical server, an old windows trick "reboot fixes everything" brought NFS and the mount up clean no problems But I want to try and fix this on the critical server without a reboot. Is there a way to stop and start the NFS client like I can restart the NFS server? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] LS command bizzare behavior
No it is not windows FS, this is a Hitachi Storage array managed by RedHat storage nodes. How do I clear client side NFS without a reboot (sorry about the cross post) For server side, it is simple service nfs restart. But it looks like redhat/centos no longer has a nfs client service. On 9/22/2014 6:09 PM, Keith Keller wrote: On 2014-09-22, Dan Hyatt wrote: So how do I fix it. If it is in fact client-side, you have to fix the client. If these are Windows NFS clients then I am not much help. Perhaps the maintainers of the NFS client software have heard of this issue. If you have Samba already set up, it might be interesting to see if the issue shows up there too. If it does, then it may not be a client-side issue. If it doesn't happen under Samba then it's more likely to be client-side NFS. --keith ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Is it safe to go from CentOS6.5 to CentOS 7 at this time
I am looking for opinions and personal experience on CentOS7 for both grid and virtualized web environments. I am currently on CentOS6.5 in a production environment. I am about to add about 50 more servers to my grid and am trying to identify the advantages and disadvantages of going to CentOS7. The good part is, that I have some tolerance for backing out and installing CentOS6.5 if 7 does not work out. I read the comments about what CentOS7 brings but want to make sure that I am not introducing undue risk. Not seen a lot of issues with it. I also have a small private cloud (VMWare esxi) and wanted to know if anyone was using CentOS7 there. The basic question: Should I be holding off a little longer on going to CentOS7 in production? Thanks Dan ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] trying to kickstart a vm guest from my datastore
I have a new ESXi server (5.x), and trying to load some VM guests on there. I have the guests configured, but when I try and boot from ISO image, the graphics are so bad it is futile. No worries I normally use kickstart anyways. Because the ESXi (on the same network as my physical servers) cannot talk to the PXE server. But works fine on the network (I can ssh/scp in and out of the ESXi server). i am unable to kickstart from the network. As this is a blade, there is not DVD access. But I have a kickstart file, an iso image on my datastore. Really I have two questions: 1. how do I "test" or troubleshoot WHY ESXi cannot reach the pxe server. The mac addresses/ips/hostnames of the VM guests are in DNS and DHCP. 2. How do I kickstart a VM guest from the datastore kickstart file/iso image? D. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] can I check the mac address on DHCP from my command line
Hi, I have an interesting problem. I want to be able to verify that my hostname, ipaddress, and mac address are correct in the DNS/DHCP. I have the values, how do I compare. I am able to use NSLOOKUP for the hostname=ip confirmation How do I do the ip addresss = mac address comparison I tried arp and a few other things. Almost everything on google says either to logon to DHCP (which I do not own) or use arp, which is not giving the desired results. I provided the mac address, ip address, and host name I want to find out if a missed entry might be causing the pxe boots and network problems I am having to fail. Dan ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] creating a floppy image from a linux file
Hi, I am still trying to get kick-start centos in my vmware5 because pxe cannot find the pxe server. I do not control the dhcp or pxe server. I have both my kickstart file and my iso image for centos6.5 on my vmware datastore, but am trying to run my kickstart file from VMware guest. Can I tell the command line to run from the datastore in VMWare? Or must I convert my kickstart file to a floppy image to run from VMware console? I have the centos image on the DVD mounted from my datastore. Now I need to convert the kickstart file to a floppy image to mount on the server from my datastore This is what google and VMWare keeps telling me but it does not make sense unless I am copying off a floppy What I am trying to do is turn the kickstart file into a floppy image so I can kickstart off the floppy in vmware. Create a disk image from the physical drive: cat /dev/fd0 > imagefile.img Copy image to the physical drive: cat imagefile.img > /dev/fd0 Help figuring out that silly little piece that is keeping me from building a VM guest from my kickstart file is much appreciated. Dan ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] creating a floppy image from a linux file
This is relatively unique. Cannot load a barebones OS because VMWares mouse does not map to the screen. So where the mouse pointer is pointing and the buttons are not mapped correctly making impossible. Since it is not a physical server, I don't have the USB. But VMWare will allow me to "mount" a virtual floppy. So if I can create a floppy image of my kickstart file, I can kickstart my virtual iso image. A datastore is a filesystem on a virtual server exported to the virtual guests. Because this is a blade, there is no usb or DVD physically connected. I can virtually mount a floppy and dvd from a floppy image and a dvd image. As this is a production environment where we don't have any http servers under my control, it gets interesting. Normal blades are installed via PXE from the other groups pxe server, the other group is not being helpful at this time. On 10/17/2014 4:20 PM, Valeri Galtsev wrote: On Fri, October 17, 2014 3:55 pm, Dan Hyatt wrote: Hi, I am still trying to get kick-start centos in my vmware5 because pxe cannot find the pxe server. I do not control the dhcp or pxe server. I have both my kickstart file and my iso image for centos6.5 on my vmware datastore, but am trying to run my kickstart file from VMware guest. Can I tell the command line to run from the datastore in VMWare? Or must I convert my kickstart file to a floppy image to run from VMware console? I hope I didn't miss something (as I have no idea what "datastore in VMWare" means). When I install system on real machine or on virtual box virtual machine, I use kickstart that I place on some webserver, then if I don't have access to dhcp configuration, then I boot the box off any installation media, and before it load kernel (when it gives you choice run system off CD or install system) I press "escape". At this moment you have access to which kernel and with which options you want to boot. So I just point it to my kickstart file as follows: linux ks=http://my.server.com/path/to/kickstart.cfg (replace the URL with URL of your kickstart file). Also, in kicstart I just give the URL of our public mirror I support for our University. E.g. as URL of installation media for 64 CentOS 7 I have the following line in kickstart file: url --url=http://bay.uchicago.edu/centos/7/os/x86_64 I hope, this helps. Valeri I have the centos image on the DVD mounted from my datastore. Now I need to convert the kickstart file to a floppy image to mount on the server from my datastore This is what google and VMWare keeps telling me but it does not make sense unless I am copying off a floppy What I am trying to do is turn the kickstart file into a floppy image so I can kickstart off the floppy in vmware. Create a disk image from the physical drive: cat /dev/fd0 > imagefile.img Copy image to the physical drive: cat imagefile.img > /dev/fd0 Help figuring out that silly little piece that is keeping me from building a VM guest from my kickstart file is much appreciated. Dan ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ___ 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
Re: [CentOS] creating a floppy image from a linux file
My chicken and egg. I was hoping to 1. create a baseline image that I can clone 2. get a centos image on a VM guest, have my own management servers (including pxe boot) that I own and control. Once I have one or two, I can expand my private cloud as large as I want...and building new guest servers will take minutes. On 10/17/2014 5:06 PM, John R Pierce wrote: On 10/17/2014 1:55 PM, Dan Hyatt wrote: I am still trying to get kick-start centos in my vmware5 because pxe cannot find the pxe server. I do not control the dhcp or pxe server. this is on ESXI? you /could/ create a virtual network thats not routed or bridged to your actual networks, then create your own PXE/DHCP server on this virtual network, and then connect your new VM to that private virtual net for installation, switching it over to the regular networks when its done installingI've done crazier things on ESXI :) ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] creating a floppy image from a linux file
So back to the question... If I unpack my iso image, and add a kickstart file, then I have to do this every change I make to the kickstart file. But if I convert the kickstart file into a floppy image, then I don't need an iso image for every build..I just have tiny kickstart images. So back to the question, do we know how to convert a kickstart file into a floppy image. This will solve the "unsupported" datastore problem. On 10/17/2014 5:10 PM, SilverTip257 wrote: On Fri, Oct 17, 2014 at 4:55 PM, Dan Hyatt wrote: Hi, I am still trying to get kick-start centos in my vmware5 because pxe cannot find the pxe server. I do not control the dhcp or pxe server. Bummer. I have both my kickstart file and my iso image for centos6.5 on my vmware datastore, but am trying to run my kickstart file from VMware guest. Include your ks file as part of your ISO image. Can I tell the command line to run from the datastore in VMWare? Or must I convert my kickstart file to a floppy image to run from VMware console? The vmware datastore is not a supported medium for retrieving a kickstart file (http and others are). Include your ks as part of your ISO .. which means unpacking, add files, and repacking the ISO. I have the centos image on the DVD mounted from my datastore. Now I need to convert the kickstart file to a floppy image to mount on the server from my datastore This is what google and VMWare keeps telling me but it does not make sense unless I am copying off a floppy What I am trying to do is turn the kickstart file into a floppy image so I can kickstart off the floppy in vmware. Create a disk image from the physical drive: cat /dev/fd0 > imagefile.img Copy image to the physical drive: cat imagefile.img > /dev/fd0 Help figuring out that silly little piece that is keeping me from building a VM guest from my kickstart file is much appreciated. * And John Pierce's suggestion to create your own PXE virtual network is a flexible and more ideal scenario in my opinion. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] XRDB not in our centos6.8 build
I am a bit baffled on this. We recently rebuilt all our servers to CentOS release 6.8 (Final) from a prior 6.x centos release. We ran into a couple of problems such as Java not working (just had to yum install java). It was installed, but unable to create a java machine, until I yum install java solved the problem. But now a user (the big boss) is receiving xrdp errors. And it appears that xrdp is not installed on these newly built servers. I googled xrdp and was unable to decipher if it is needed in our environment (we use sas which does use X11 graphics on the servers to export graphs). If it is needed, wondering why it not included in the groups we have always used for kickstart. When would I need xrdp? or is it one of the leftovers here from a bygone era? Thanks for your response. ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
[CentOS] explain strange behavior
In my bin directory, most of the binaries are linked to it. It is in my path. I have googled this and cannot find anything close. I am running bash on centos6.8 When I run "which command" most of the files in this custom bin directory show up. When I run "which file.jar" it cannot see it, but I can *ls* the file (soft link) as which only works on executables (according to man page), I created a dan.jar empty file and did a which on dan.tar and found it. can anyone explain what is happening and how I can soft link the jar files to my bin directory so which can see them? Dan ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
[CentOS] Lockd: failed to reclaim lock for pid ...
My environment is "heterogeneous" my authentication and home server are currently stuck on a 1G shared network, the production servers and storage servers are on a bonded 40G network, all are in the same VLAN. I have about 100 servers on the 40GB bonded network each with 12cores and 128GB of memory. They are running centos 6.6 Except for my storage servers they are all just running large and small research jobs on a grid engine. Two questions: The errors she seems to spawn is lockd: spurious grace period reject?! lockd: failed to reclaim lock for pid 8225 (errno -37, status 4) lockd: spurious grace period reject?! lockd: failed to reclaim lock for pid 8225 (errno -37, status 4) and at some point, we start getting errors that the file locks are stuck.. you can write and read from the lockfile, but programs that depend on the C construct lock file throw filelock errors until we reboot. Why is dmesg, /var/log/dmesg, and /var/log/messages unique from each other? I thought dmesg was a representation of /var/log/messages/ Is there a way to get a date stamp for the dmesg? if a job failed in the last hour and the message is from yesterday...and I don't know that doesn't help. I think what I am troubleshooting is THAT user who REFUSES to follow direction... and is sending thousands of very large jobs which each might immediately spawn another 10-20 jobs to a grid of 100 servers in a matter of seconds overwhelming either the network or the home directory server or the authentication server... because when she strikes, sometimes users cannot get a response from LDAP or the home server within as much as 10 seconds. Thus she breaks the NFS because it gets hammered and I have to restart all the servers on my grid. We have had problems with "out of memory errors" due to her programs in the recent past and had to restart all 100 servers. */var/adm/messages gives this* Oct 18 13:26:08 blade5-2-1 nslcd[2520]: [dd5cc5] ldap_result() failed: Can't contact LDAP server Oct 18 13:26:08 blade5-2-1 nslcd[2520]: [dd5cc5] ldap_abandon() failed to abandon search: Other (e.g., implementation specific) error Oct 18 13:27:14 blade5-2-1 nslcd[2520]: [e01acb] ldap_result() failed: Can't contact LDAP server Oct 18 13:27:30 blade5-2-1 nslcd[2520]: [8c7a8f] ldap_result() failed: Can't contact LDAP server *dmesg gives these* lockd: server home not responding, still trying lockd: server home OK lockd: spurious grace period reject?! lockd: failed to reclaim lock for pid 8225 (errno -37, status 4) lockd: spurious grace period reject?! lockd: failed to reclaim lock for pid 8225 (errno -37, status 4) */var/log/dmesg gives this* pmi_si: probing via SMBIOS ipmi_si: SMBIOS: io 0xca8 regsize 1 spacing 4 irq 10 ipmi_si: Adding SMBIOS-specified kcs state machine ipmi_si: Trying SMBIOS-specified kcs state machine at i/o address 0xca8, slave address 0x20, irq 10 (NULL device *): The BMC does not support setting the recv irq bit, compensating, but the BMC needs to be fixed. IRQ 10/ipmi_si: IRQF_DISABLED is not guaranteed on shared IRQs ipmi_si ipmi_si.0: Using irq 10 ipmi_si ipmi_si.0: Found new BMC (man_id: 0x0002a2, prod_id: 0x0100, dev_id: 0x20) ipmi_si ipmi_si.0: IPMI kcs interface initialized ACPI: No handler for Region [SYSI] (882029e57348) [IPMI] power_meter ACPI000D:00: Found ACPI power meter. ipmi device interface EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: EXT4-fs (dm-2): mounted filesystem with ordered data mode. Opts: EXT4-fs (dm-3): mounted filesystem with ordered data mode. Opts: EXT4-fs (dm-4): mounted filesystem with ordered data mode. Opts: EXT4-fs (dm-5): mounted filesystem with ordered data mode. Opts: Adding 121724924k swap on /dev/mapper/vg_server-lv_swap. Priority:-1 extents:1 across:121724924 ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos