Software :: Red Hat 9 - Replicating And Identifying The Root Cause
May 31, 2010
I just encountered a very weird issue and I am having hard time replicating and identifying the root cause. We have one RH9 server and we received an alert that the /var reached 85%, I checked and found out that /var/log/audit.d is occupying most of the space. It has a lot of files inside it consisting file size of 21MB each everyday. I ask the customer if can housekeep and it eventually climbed up to 100%. My colleague did some house keeping but what he did was he compressed the audit.d directory and remove it.
After that users are complaining they cannot telnet to the server even though the service is on. I have recreated the audit.d directory and restarted the xinetd as usual. Still the same problem. And the weird thing is that I cannot even switch to any user from the root. I tried to do "su - someuser" but it hangs there without doing anything. I also tried to telnet, it will ask for login and password but same thing it hangs in there. Did some restart on xinetd and did "chkconfig telnet off" "chkconfig telnet on" but with no success. Could this be caused by the deletion of audit.d? Or is the 100% utilization of /var the system could not cope up? The good thing is everything worked fine after restart. But still the root cause is unknown. If I check /var/log/secure it shows the user being authenticated though it is not getting any session. /var/log/messages also does not reveal anything.
View 3 Replies
ADVERTISEMENT
Dec 5, 2010
Noticed that one of my partitions on openSuse 11.1, mounted as /usr, filled up suddenly with over 20 GB of something. Tracked it down to /usr/bin, in which the X11 directory contains 2353 items and another X11 directory, recursively at least 11 times that I've expanded without reaching the last X11 directory. The newest files in each directory are dated 11/24/10.
Any idea of what's happening? How to stop it before it fills the disk?
View 7 Replies
View Related
Aug 3, 2010
So I was playing RollerCoaster Tycoon 2 in a WINE Virtual Desktop when I went to check my email. I launched Firefox and suddenly my bookmarks started to replicate and haven't stopped. I've recorded this happening. Link here: [URL]
View 9 Replies
View Related
Oct 20, 2010
We have several production machines serving our static content. I want an automatic operation where I would only need to upload to one of them and it will get replicated/mirrored to all machines.Either that or distribute automatically from local source to all machines. First option is obviously better since all machines reside on same LAN and remote to our office.
Another feature I am looking for is to get a full report on what got transferred and if any problems occurred immediately (since usually these deployments can mean downtime for us). Looking around I saw rsync.Using CentOS 5.4-5.5 btw.
View 5 Replies
View Related
Jul 31, 2010
I recently set up replication on a production server and some rows are not making it to the tables on the slave. After 3 days I can see 200+ entries (of 161,000~) that are on the master and not the slave. Logs under /var/log including mysqld.log, mysql.status, messages do not show any problem.I have already tried dropping the DB on the slave and setting up the replication again by doing a stop slave, set slave options such as were in the logging to start, drop table, restore the dump previously made by the master, start slave, but the issue persists.
I following the documentation on the MySQL site for setting up replication so I'm not sure why this is having issues.What can I do to investigate and fix this?
View 2 Replies
View Related
Jan 27, 2010
I have set up a master BIND DNS server with 2 slaves. All the services start up fine on all 3 servers, but zones and named.conf info is not being replicated. The 3 servers are tentatively installed on a Xen virtual server for testing purposes. All 3 servers are 64bit and installed with: -> CentOS release 5.4 (Final) - 2.6.18-164.10.1.el5xen -> BIND 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2
All 3 servers are fully updated. All 3 servers have static IP addresses. The services on all 3 servers start up without any apparent issues. Master server: # /etc/init.d/named restart ; tail -f /var/log/messages
[Code]...
View 10 Replies
View Related
Nov 6, 2010
So I have a bunch of CDs I have burnt over the past year or two, and only problem is, I would burn them, use it and forget about it. I never bothered labelling it. Now, I want to label them appropriately. Is there any way I can find out the following just looking at the CD contents-
1. Distribution - lucid / karmic / etc
2. Architecture - amd64 or i386
3. Type - server, desktop, alternate etc
I know if I boot into the machine from the CD drive, I can find out, but I prefer not having to do that
View 1 Replies
View Related
Sep 7, 2010
got the problem with multiple ssh-tunnels. The case is:I have 1 server running Slackware 13.0 with external ip and few windows-machines. inetd daemon is running on the server, my script is listening on port 2345. I create multiple ssh-tunnels from client machines to the 2345 port of the server in order to initiate script execution. For debugging reasons the script simply echoes the incoming information to the connection initiator. This is how the connection is initiated.
Code:
ssh <user>@<my_server_IP> -L 5555:<my_server_IP>:2345
echo "hello"|nc -vn 127.0.0.1 5555 (a port on a client-machine, that is forwarded to <my_server_IP>:2345)
gives "hello" output.
Code:
client1 port 5555|----ssh-tunnel---- eth0|-------server---------------|
[Code]...
The problem is that i need my script to execute some commands (registry parsing) on a remote client machine with winexe utility. So I need to identify each tunnel or each connection in order to execute the command on each of the client workstations. I need at least to have access to some ID of the ssh session or a tunnel, through which a certain connection was initiated and then use it to create a reverse tunnel or just connect to certain client via that client`s tunnel.
View 3 Replies
View Related
Feb 4, 2010
Starting from January, my Internet connection has become "unstable". I mean that I get occasional interruptions of the connection. This is particularly annoying while listening to a webradio or using voip. Of course, prior to January 2010, I could stay hours or days without interruptions. Now, I have to reconnect manually every 5 min to the service although the reconnection to the ISP is done immediately. So, before I take my axe and visit the office of my ISP, I would like identify where is that connection drop happening. Is it at my pc? at the ADSL modem/router? or the ISP? I use a wireless connection with WPA to my router. Then, the router is basically an ADSL modem. I am running Kubuntu locally. How can I follow up on the network status between different elements and see who is cutting off my connection?
View 1 Replies
View Related
Dec 23, 2010
How do we check as to how many links have been created that point to a particular file?
Let's say there is this file /work/contacts.dat
and we have, let's say, 10 soft links that have been created by different users in their home directories. Now how can I figure by looking at the file /work/contacts.dat that there are 10 (soft or hard)links pointing to this particular file so that I know that it is being used or refered to by those many users and before deleting it I can check with them.
View 3 Replies
View Related
Dec 29, 2010
Tried to test the 10.10 Netbook's Unity but after keying the password I got a "Unity missing driver" without any identification of the driver. Is it available in the repositories? How can I identify it to install it? Why isn't it included?
View 5 Replies
View Related
Jul 13, 2011
I have a setup with a mythtv backend that streams media via the built in upnp to two xbox 360s. This works perfect at the moment. However I need a command/script that can identify if either of the two xbox's are connected via upnp. I need this so that I can have the system auto shutdown if no one is connected using the existing mythtv sleep wake features. (Basically if a script returns 1 then dont shutdown if returns 0 then shutdown.)
Code:
if upnp is connected then
dont shutdown
else
shutdown
fi
Thanks
Chris
View 5 Replies
View Related
Jul 18, 2010
I'm looking for the best way to identify what distro the user is running and what the desktop environment is running. I'm building some pipeline tools for a visual effects studio and need some generic commands for passing paths to the user's file manager from within Maya and Nuke. The workstations I have access to are FC12 with xfce4 so for that I'd pass a system command :
Code: ("thunar "+$path)I've been identifying Fedora workstations with:
Code: # cat /etc/issue
Is there a command to identify what the current window manager is? Preferably something generic that'll work on the other distros as well.
View 4 Replies
View Related
May 6, 2011
a. How can I determine the hardware type of the machine where the linux is running ?
b. Also, what exactly is the difference between machine hardware name and hardware platform ? (uname -m and uname -i)
c. Output from my machine shows,
- uname -i as i386 and
- uname -m as i686
View 3 Replies
View Related
Jun 14, 2010
I just read and learned about logical volume management today. I have a server running RHEL5.4, LVM2. I have 1 physical volume, with one volume group, and 3 logical volumes. I have no free extents, nor do I have any in my volume group (not sure if it's possible to have free in one and not the other anyway), and I am running out of space on one of my logical volumes. Doing a df -h shows 96% of 9.7GB used on /dev/mapper/MainVG-root, mounted at /. So here's the stupid question: how can I find out what directories/files are taking up what space within this logical volume? As I said I have 3 all together, and the other 2 are mapped to /var and a /var pgsql sub-directory. I figured I could get the sizes of the other directories under / and drill down accordingly, but I seem to be missing some basic rule because the commands I am using and the values I am getting don't add up.
For example, it seemed logical to me to do an ls -lsh on / to try and identify the largest directories. Each directory is listed as being ~4-8K in size. That doesn't make sense to me. So I decided to do a du -sh on each directory. Having done this on all of the / sub-directories and added up those values, there is not enough reported usage here to equal 8.9GB of used space (as df -h / reports).how they would find out how the 9.7GB here is being allocated? Preferably without scripts as I am not ready to add a layer of complexity to this yet without understanding some fundamentals.
View 2 Replies
View Related
Aug 3, 2010
I've installed Ubuntu Server, and Webmin following this guide, and all is well so far... I've mounted some drives with some pre-existing data on them, and can view the data on those drives. But I have one drive that I can't seem to mount, and I'm pretty sure there's data on it. But I can't seem to find how to identify what format the data is in, ie.. ntfs, ext2, ext 3, etc. Its likely pretty simple, but how can you identify the drive format before you attempt to mount it?
View 2 Replies
View Related
Dec 23, 2008
I boot linux off a USB stick on many different computers with different hardware. How can I determine in a script which devices eth0, eth1, wlan0 exist and which hardware devices they apply too? Sometimes a wireless card is wlan0, other times it is eth1 or even eth3! The proc/net/dev file does not inidicate which hardware is installed.
View 2 Replies
View Related
Dec 12, 2009
following on from [URL] I was having a little think about how to make this concept more secure. its easy enough to separate known and unknown clients out via MAC address. but that system is easier to break than it is to set up either, sniff out a mac address already connected to the system, and spoof that address.or, more simply, set a static IP on your wifi device, and avoid the redirection completely. so, is anyone aware of a relatively straight forward setup that would allow me to identify clients on my network without relying on MAC address, would more forcefully separate out known and unknown hosts (vlan??). As well as doing so without alerting them to the fact, and without requiring known hosts to do anything special, or install software. Or requiring any more hardware than I have already. (hardware = a debian box with 2 NIC's acting as a gateway between all internal network, and the billion router which handles the outside world not getting in, and a WAP attached to the internal side of the network. also somewhere I have a wifi card that I could attach to the server to replace the AP) I assume some sort of authentication mechanism is required, but I dont know much more past that.
View 2 Replies
View Related
Dec 20, 2010
identifying the number of cores each processor is running.
I have checked /proc/cpuinfo but i dont find any core details inside it and I can find only no of processor and its speed.
View 7 Replies
View Related
Sep 1, 2011
Ubuntu has been reporting a System error problem but when it try's send a report to your servers, it fails due to it's failure of identifying the packet id, i honestly have no idea of how to go about fixing this problem or even identifying the packet that's broken, please do help, as now my Apache server's not working properly, and a couple of other programs are getting affected by this, event installing and updating s an issue.
View 1 Replies
View Related
Jan 23, 2011
I've just made the switch from Windows 7 to Ubuntu (not dual-boot!) and have been messing around with Conky and AWN while trying to get a unique layout. However, while I absolutely love Ubuntu 10.10 so far, one thing that I'm missing is the ability to hover on an applications icon and have a mini-popup appear displaying what windows are open for that application. For instance, right now I've got 4 Firefox windows open. I know I can click on the icon and see a list of open windows, but I'd prefer to see the "preview" thumbnail that tells me what is on the page. For instance, anyone who's familiar with ch131 knows that their HTML <title> stays the same on all pages, so if I'm letting 6 full movies load overnight and want to start watching them when I wake up, I have to go through the list and click on each one till I arrive on the correct window.
View 2 Replies
View Related
May 13, 2010
I have a directory /sanvol/ifr/ which contains 90,000 files and 2 subdirectories containing 60,000 files. I need to copy the contents of /sanvol/ifr to /sanvol/edm/. The cp command will not work because there are too many files.
I tried the following: find /sanvol/ifr/ type f -name '*' -exec cp -p {} /sanvol/edm/. ;
but this copies all files including whats in the subdirectories to /sanvol/edm/
I need to replicate exactly the contents of /sanvol/ifr/ to /sanvol/edm/ and preserve file attributes and dates.
View 3 Replies
View Related
May 7, 2011
1. Every Sunday2. Find all files older than 1 day3. Gzip these file4. Tar up the gzipped files into one tar file.5. Name the tarball with a date stamp indicating what day it was created, so we know that week's files are in the file
View 3 Replies
View Related
Feb 19, 2011
I was using the latest stable release of Debian, dual-booted alongside Windows Vista, with the GNOME desktop, installed via netinst, trying to build and install a library that I knew and trusted, when suddenly I couldn't open the Root Terminal. I clicked the link (in Applications->Accessories (I think, whatever the top one is)->Root Terminal), and in the taskbar I saw an item that said "Starting Root Terminal". A few seconds later, that went away, but the terminal still wasn't open. I tried the regular user terminal, to see the same thing happen. Unsure of what was happening, I tried restarting my computer, since that's always the first step you should take in computer problems.
When I restarted, GNOME wouldn't start. The screen would flash a bit for a few seconds, then a dialog box would appear over a background of static that said "The greeter application is crashing. Attempting another one...".t would then go back to the DOS-style kernel, wait a second, and then the same thing would happen. After several of that, I would get a blue screen which said something to the effect of "It has been detected that the desktop environment has crashed six times in the past 30 seconds.
Waiting two minutes before trying again." When it did that, I tried logging in as root to assess the problem. I gave it the correct password, but it said that it was an incorrect login. After several tries (to ensure I didn't mistype the password), I logged in as myself. Same problem. I tried the su command, with the correct password, and it said it couldn't authorise it.
After a lengthy conversation with a friend of mine who was very good with computers, he basically summarised that he had no clue, but that his best guess would be a virus. Upon running the Linux installer, I found the Repair option. Not being particularly familiar with Linux, I used it simply to backup my important files onto a flash drive. I then tried running the Install option, in an attempt to simply write over my existing Linux and make it new again. The installer, however, consistently froze up when trying to start the partitioner, on the "Checking disks..." stage. I figured it was a problem with my partition. In my naivete, I simply used the Windows tools to clear that partition... It destroyed GRUB too, so I couldn't run any OS. I figured my computer was pretty well screwed, and at that point just decided to bring it into the shop and have them completely wipe it.
my computer was backed up onto an external hard driven I brought it back, I reinstalled Windows. Upon restart, it said that it was still looking for GRUB, which made no sense to me. After messing around with it a bit, I decided to just reinstall Linux too. To my lack of surprise, that fixed the problem. Both OS' now ran just fine. The first thing I did on Debian was to install the Clam Anti-Virus, which I understood to be one of the best Linux anti-viruses. However, within about 10 hours, got the same problem as originally. I wasn't doing any of the same things, and between the lack of consistency in activities and the fact that I had an anti-virus running,figured it wasn't a virus. Not knowing what to do, I just left it and have been using Windows since.
View 8 Replies
View Related
Oct 12, 2010
Since I installed MS2 I messed up grub. Finally I got 11.3 back to its old glory.
What would be the best procedure to create a backup image with all settings and permissions ...just in case ?
View 5 Replies
View Related
Feb 5, 2011
i am having problems with privileges i have created a new user with my name, but i cant get root privileges on it. i need the same privileges as the root profile.
View 9 Replies
View Related
Jan 22, 2010
An old machine in our office, running Ubuntu 6.06 all of a sudden will not boot up. I get the following info during boot:
Uncompressing Linux... Ok Booting the kernel
mount: Mounting /root/sda1 /root failed: No such device
mount: Mounting /root/dev on /dev/.static/dev failed: No such file or directory
[code]....
I haven't changed anything on the system as far as I'm aware, and I ran some HD diagnostics and everything seems fine. however when I try to mount the drive with the following command:
sudo mount -t ext3 -o rw /dev/hda1 /mnt
I get the following error:
mount: wrong fs type, bad option, bad
superblock on /dev/sda1, missing code
page or helper program, or other error
In some cases useful info is found in
syslog - try dmesg | tail or so
I ran fdisk -l and it says the partition type is Linux. The output after running dmesg | tail :
[12207.483801] init_special_inode: bogus i_mode (101)
[12207.483809] EXT2-fs: corrupt root inode, run e2fsck
[12260.427078] init_special_inode: bogus i_mode (101)
[code]...
Update: After running e2fsck -p /dev/sda1, I get the following info:
/dev/sda1: clean, 142449 / 9584640 files, 5402711 / 19161520 blocks
View 1 Replies
View Related
Oct 26, 2010
I no longer have access to my root desktop. On a session I attempted to change the root username but i apparently assigned it a wrong directory that does not exist. When I rebooted with my new root username, i was instead recognised as a simple user (no root privileges). I tried the console to change to "old" root but root password is not accepted and there is no way to access to sudoer files. it seems that inserting a new username requires root privileges and i am back to square one. Simply logging with old root username and password after restart gives me a blank screen with nothing on it and cannot even reboot.
View 9 Replies
View Related
Jan 20, 2011
want to run VirtualBox with root permissions. Trouble is that only when run as root i can access attached USB devices inside of a virtual machine, otherwise, these a greyed out).Now running VirtualBox as a root user also changes the configuration folders, making all my virtual machines already defined disappear. I also don't want to copy all to the root configuration folders. Is there a way to give the VirtualBox root permissions but without actually running the application as a root user. Is it possible to do without changing the permissions of the non-root user, i.e. i don't want my user to have all root permissions, due to security considerations.
View 1 Replies
View Related
Jul 25, 2011
can't cd to root acount /home in terminal - sudo cd /root fails?
View 3 Replies
View Related