Ubuntu Servers :: Grep Gzip Segfault - Not Boot Apart From In Read-only Mode
Mar 28, 2010
I have an interesting issue Ubuntu Server 8.04, The server has been running for quite a while (not designed or put together by me) but recently it has started segfualting and now will not boot apart from in read-only mode. I see the following errors in dmesg.
I am using Fedora 14 64 bit with two 1T drives. There is a Raid 1 for the important information and I use a Raid 0 for cached files that can be generated on the fly. Yesterday my Raid 0 went into read only mode.
Here are a couple of tests:
What caused the Raid 0 drive from /dev/md1 to get removed? Is there a way to get it back to active sync?
I have tried:
But it can not open /dev/sda2: Device or resource busy.
I have limited access to several servers (key based auth) but cron facility is not available for me. Those servers getting filled up by large apache logs and I have to login to each node manually and clean them each and every day.
I tried to write a script to run from login box but when i try that it looks like it is looking for logs in the local server (login box).
So current situation is:
How can i modify this so that the script in server1 will look for files in that server and zip them?
Google showed another command called rsh but in my env it is also not avil.
so this is really the result of another problem. There seems to be an issue with CPU spiking to 99% forever (until reboot) if I run apt-get or synaptic or update manager while an external USB drive is plugged in. Note, other USB peripherals are no problem, just an external HD.
So my work around was to eject the drive when doing apt-get or other installation work, then reattaching it to remount. Now, on to the present problem. I'm using the basic backup script (the rotating one) found in the Ubuntu Server manual. It uses tar and gzip to store a compressed version of the desired directories on my external USB. (which sits in a fire proof safe - this is for a business)
However, it seems tar and gzip which run nightly 6 days a week via cron as root, don't ever want to die, and they don't release the drive. I have to reboot the system (I can't logoff) to release the drive, unplug it, the I can do update/install work.
Of course, if apt etc. would work fine without conflicts with the external device, I'd not care about the tar/gzip problem other than it generally isn't a proper way for them to function and it chews up some CPU cycles. (they run about 0.6 and 1.7 percent respectively) I also can't kill them via kill or killall. They seem undead.
I'm trying to dump a mysql database on a small web server without killing performance. I tried using the nice command to give the mysqldump and gzip a low priority, but gzip is still taking up 100% CPU. Pages on the web server are loading incredibly slow. Here's my command:
Code: nice -n 19 mysqldump -u USER -pPASSWORD DATABASE | nice -n 19 gzip -9 > OUTFILE.sql.gz How do I get gzip to run without taking up 100% CPU? I've attached a screenshot of top about 8 seconds into the dump.
I have a 8.04 x64 server installation that is receiving a kernel panic on boot no matter which kernel I choose even recovery mode.
[ 27.738620] raid1: raid set md0 active with 1 out of 2 mirrors Done. Begin: Running /scripts/local-premount ... kinit: name_to_dev_t(/dev/disk/by-uuid/c224854e-37bd-491a-b895-48e8bf07fe00) = md1(9,1) kinit: trying to resume from /dev/disk/bby-uuid/c224854e-37bd-491a-b895-48e8bf07fe00 [ 31.665733] Attempting maual resume kinit: No resume image, doing normal boot... Done. [ 31.717461] kjournald starting. Commit interval 5 seconds [ 31.717471] EXT3-fs: mounted filesystem with ordered data mode. Begin: Running /scripts/local-bottom ... Done. Done. Begin: Running /scripts/init-bottom ... Done. init: Error parsing configuration: No such file or directory [ 32.064009] Kernel panic - not syncing: Attempted to kill init!
I have built a new server, now I am trying to restore my db from mysql. I have a backup that is out dated, I was hoping there was a way to copy the files over and have them work on the new installation. I can boot the server with the installation cd using recovery mode, I can get to the hdd and mount a smbfs share from the new server. I have tried to cp the files retaining the permissions and get a permission denied error, but if I copy without retaining the perms they copy just fine and do not work.
I have setup the new server with very close to the same version of all software. I have built a new instance of my service using all of the same users and passwords. I then backed up the new db and moved it over and attempted to copy the old db over. I did not copy it straight to the mysql folder as I did not share that folder out. Any other ideas to get this db recovered? What about getting my old server to run again just long enough to get a mysql dump?
I'm storing a list of strings in a file and would like to read the file and pipe each line returned to grep which in turn searches a directory for files containing the string.However this is not returning any output.
I cannot sudo nor log into a second ssh session on my Ubuntu 10.10 server edition headless setup. Entering an incorrect password works as expected but the correct password gives errors, and on the second attempt a segfault. I recently changed my password as the old one was about to expire, that was 3 days ago, I can't find evidence that I have sudo'ed or logged in a second session since, I have been logged into it via ssh throughout all of it and I am still currently logged in. What should I do to correct this problem? I'm worried that by turning it off I will lose all access. Is the only option using a live cd to change the password?
I just saw this message in the syslog and wondered if it could have anything to do with my previous problems with LXDE crashing:
Code: Select allSep 6 08:03:34 MyComputer kernel: [ 1003.788502] colord-sane: segfault at 21 ip b4de95ba sp b5609fb8 error 6 in libdbus-1.so.3.7.2[b4dbe000+4a000]
I have read a number of bug reports regarding this issue and it appears to go back about two years. It was supposedly fixed but that does not appear to be the case unless there is something peculiar with my Wheezy 7.8 installation.I just found this on a Ubuntu bug report. It is related to a colord-sane but not necessarily exactly the same as what I am experiencing.This is a libsane bug, not a colord bug. If you want to to work around it, change /etc/colord.conf to have UseSANE=false
how do I make grub boot to allow me to choose, like safe mode and normal mode and all that second, how do I do automated back ups (preferably using file copy) for something like every sunday at 11:00 am using the command line, i use to know but forgot.
I attempted to install Catalyst 10.11 for my ATI HD 2600XT and the system now only displays lines and a large block of pixels where the mouse would go. CTRL-ALT-F1 kills the system and does not provide a command prompt. This is a single installation, not dual-boot, but there is no Press Esc to access the Grub menu during startup so I cannot choose safe mode. I attempted to get into Recovery mode using the flash drive that I used to install the system and it tells me there is no Recovery kernel (I used the 64-bit Desktop installer, not alternative). Does anyone know an alternative to get into the Grub menu other than ESC during bootup? Alternatively, do I need to download the 64-bit Alternative ISO and create a new boot disk with it so I can access Recovery mode? Is there something else I'm not thinking of?
I have Ubuntu9.10 installed in my desktop and the version of thunderbird is 220.127.116.11 and I am facing a problem that if I open any attached document from my mail, it open in Read-Only mode. To make changes I have to save the file or click on edit button but if I click on edit button then file get renamed as Untitled document.
I've rebooted my system like 30 minutes ago...and all the sudden I get the error related the that program in ubuntu 8.04 that checks the disk after reboot for bugs an stuff like that. The error is caused by "read only system" mode. It can't write anything onto the HDD. I can't even change /etc/fstab file with nano or anything else. Btw is server edition. I mean when I want to save the file (fstab) same damn thing read-only system how can I change that?
I use to be able to mount a usb and stick and copy over files to it. Now when I plug it in it mounts as read only and I cannot change it. I did not change anything on the system. I have su access and really nothing is new on this laptop. Any thoughts one what i can look at? I need to write data to usb all the time. I rebooted too. same issues.
I created a spreadsheet which I had edited repeatedly. Today I ran out of disk space and needed to resize some partitions. After that proceedure I opened the spreadsheet and when I click on a cell to see the formula I get the message "document opened in read only mode". Other documents open fine.
I create a link to a file in order to open the file from the desktop. When I move the link from the file location to the desktop, the file is opended in read-only mode. How can I change this so that the file opens in regular mode so that I am able to edit contents? The file in question is an open office spreadsheet.
so here's my issue and what I think is causing it right now. I have a 1TB external usb hard drive that has worked perfectly, but recently I set it up a mount point for it in fstab so that I could create a SMB share on the drive so I could stream videos and pictures to my TV through my Wii using WiiMC. This now works perfectly, but now the hard drive has been set into read-only mode. When I use sudo to try to chmod the drive or the folders on it, it does nothing. When I right-click on the drive and check the permissions tab, it says the owner is root and all the options are greyed out.
I've read through several posts on similar topics to this, but none of them have been very helpful as they suggest using command line tools that I don't know how to use, so I'm hoping someone here can give me concise, step by step instructions of what to type in, or what settings to change in fstab to solve my little problem so I can start copying stuff back onto my drive. I'm running Ubuntu 10.10 and the filesystem on the external drive is FAT32. Here's some more info you might need:
I am running a dedicated server with linux cent os 5.5 32 bit with lighttpd, php 5.2.14 and mysql
I am getting problem in my server. The filesystem enters read only mode automatically and then I can't edit any file in my server. This happens by itself. I tried to run fsck command and it gives the following output:
I am using ubuntu 10.04.My samsung e2120 has external micro sd card of 2GB.When i connect mobile to computer via cable in windows , it works normal as USB mass storage as configured by me in mobile settings.But in case of ubuntu 10.04
I can not edit my own .ppt file from samba share. Current desktop OS is windows 7. Samba server having RHEL 5 with following samba packages installed.
Code: libsmbclient0-3.5.6-43.el5 pam_smb-1.1.7-7.2.1 pam_smb-1.1.7-7.2.1 I can able to edit and save the file if I copy this file from samba to local system. But from Samba share it open in read only mode.
I am trying to grep a particular string from the files of 2 different servers without copying and calculate the total count of its occurence on both files. File structure is same on both servers and for reference as follows: