Browsing articles tagged with "linux - 2/779 - Admins Goodies"
Jun 7, 2013
tom

Cron runs my script but script doesn’t do anything, something to do with mail error??? “got status 0x004b#012”

I have a seriously weird problem with one of the Ubuntu 10.10 web servers I administer. I wrote a script using ruby and rake to run some tar commands and do a mysqldump of the databases. I’ve installed an entry in the root users crontab like so: 0 0,12 * * * /bin/bash -l -c ‘cd /my/script/path && rake backup:everything’ This is working perfectly on one of the servers. However on the other this doesn’t […]

Continue Reading »
Jun 1, 2013
tom

how to measure MB/sec on specific socket

We have a web tier where once in a while a web node will slam our data nodes(plural) and if we could see the MB/second coming into that machine on all sockets or on individual sockets, we could immediately know which web node started to have a huge influx of doing stuff. This would be great for our monitoring capability. Is there way to see a machines “current” MB/s intake? I do not want to […]

Continue Reading »
May 29, 2013
tom

kernel panic – no idea how to fix

My Alfresco server suddenly stopped booting and gave me this message upon bootup: ACPI: Getting cpuindex for acpiid 0x5 ACPI: Getting cpuindex for acpiid 0x6 ACPI: Getting cpuindex for acpiid 0x7 Red Hat nash version 5.1.19.6 starting Reading all physical volumes. This may take a while… Found volume group “VolGroup00″ using metadata type lvm2 3 logical volume(s) in volume group “VolGroup00″ now active ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0 ata1.00: BMDMA […]

Continue Reading »
May 24, 2013
tom

How to remember a mount point

I am using Red Hat Enterprise 6.3 and I have just mounted a new volume in one folder of my preference. After reboot that mount point was lost and the volume was mounted at his original place. In which place I can set my mount call so that I can have my volume always at the same place? Do I have to look at init.d or is there a better place? Asked by Abruzzo Forte […]

Continue Reading »
May 23, 2013
tom

SCP transfer only modified files

I’m using below command to transfer files cross server scp -rc blowfish /source/directory/* username@domain.net:/destination/directory Is there a way to transfer only files modified files just like update command for cp? Asked by Jae Choi rsync is your friend. rsync -ru /source/directory/* username@domain.net:/destination/directory If you want it to delete files at the destination that no longer exist at the source, add the –delete option. Answered by Flup Check more discussion of this question. Bookmark on Delicious […]

Continue Reading »
May 23, 2013
tom

How can I automate clearing and resetting a Linux user’s home directory to a default?

I’m helping to teach two Unix courses next week. Users will be granted an account on a RHEL 5 machine, during which time they’ll add files to their /home folder, update their .bashrc and other dotfiles, and perform other general messiness that needs to be cleaned up. Students in the second session will be reusing the user accounts of the folks in the first session. I’d like to automate the cleanup of their accounts, so […]

Continue Reading »
May 8, 2013
tom

REJECT vs DROP when using iptables

Is there any reason why I would want to have iptables -A INPUT -j REJECT instead of iptables -A INPUT -j DROP Asked by Mike B As a general rule, use REJECT when you want the other end to know the port is unreachable’ use DROP for connections to hosts you don’t want people to see. Usually, all rules for connections inside your LAN should use REJECT. For the Internet, With the exception of ident […]

Continue Reading »
May 7, 2013
tom

FTP ip reached by using SFTP command but not FTP

I’ve been given by a company their FTP IP where I should connect to. I got also username and password. That is supposed to work with port 21, right? I tried to use FTP command-line but it didn’t work; I tried my chance with sftp command-line and, using their credentials, I am authorized and connect without any problem. SFTP is supposed to use port 22 (and I used wireshark to check that). Am I right […]

Continue Reading »
May 4, 2013
tom

The XFS filesystem is broken in RHEL/CentOS 6.x – What can I do about it?

Recent versions of RHEL/CentOS (EL6) brought some interesting changes to the XFS filesystem I’ve depended on heavily for over a decade. I spent part of last summer chasing down an XFS sparse file situation resulting from a poorly-documented kernel backport. Others have had unfortunate performance issues or inconsistent behavior since moving to EL6. XFS was my default filesystem for data and growth-partitions, as it offered stability, scalability and a good performance boost over the default […]

Continue Reading »
May 2, 2013
tom

rm + how to remove file with special Characters

I have this file in my linux machine: ———-9976723563nneh4_—–192.9.200.4 I try to delete this file but I cant as all see here: what need to add to rm in order to remove this file ? rm “———-9976723563nneh4_—–192.9.200.4″ rm: illegal option — ——–9976723563nneh4_—–192.9.200.4 usage: rm [-fiRr] file … . rm ‘———-9976723563nneh4_—–192.9.200.4′ rm: illegal option — ——–9976723563nneh4_—–192.9.200.4 usage: rm [-fiRr] file … Asked by yael rm — ———-9976723563nneh4_—–192.9.200.4 You need — in order to tell rm (and […]

Continue Reading »
Pages:«1234567...779»