Re: [CentOS] tar exclude command

2010-01-07 Thread Luciano Rocha
On Thu, Jan 07, 2010 at 07:06:11AM -0800, adrian kok wrote: Hi I have problem in tar command Can you help? tar -cv --exclude /var/named/chroot/proc/* -zf backup.tar.gz /var/named You must escape the *, so that shell doesn't convert the command to: tar -cv --exclude

Re: [CentOS] Lost mdadm.conf

2009-12-31 Thread Luciano Rocha
On Thu, Dec 31, 2009 at 11:39:25AM -0400, robert mena wrote: Hi, I lost my mdadm.conf (and /proc/mdadm shows nothing useful) and I'd like to mount the filesystem again. So I've booted using rescue but I was wondering if I can do a command like this safely (i.e without losing the data

Re: [CentOS] Lost mdadm.conf

2009-12-31 Thread Luciano Rocha
On Thu, Dec 31, 2009 at 12:24:23PM -0400, robert mena wrote: Hi, it worked (kind of). Thanks. I was able to recreate (the all appear in /proc/mdstat) and in the rescue I've mounted the /boot which maps to /dev/md0. But I can't mount any other partition. they all complain with the same

Re: [CentOS] Lost mdadm.conf

2009-12-31 Thread Luciano Rocha
On Thu, Dec 31, 2009 at 04:23:52PM +, Joseph L. Casale wrote: That's a fairly limited script and out of date, I've never used mknod... Not all rescue environments have MAKEDEV or have it in $PATH, so this should always work. ;) -- lfr 0/0 pgpVfPn6gbK7v.pgp Description: PGP signature

Re: [CentOS] Lost mdadm.conf

2009-12-31 Thread Luciano Rocha
On Thu, Dec 31, 2009 at 12:38:51PM -0400, robert mena wrote: Hi, Yes. I have from /devmd0 to /dev/md6 (for some reason it skipped md3). I do not have the fstab at hand but / /boot and /tmp each map to a different mdX. I've been able to mount the /boot but no other. One thing,

Re: [CentOS] Lost mdadm.conf

2009-12-31 Thread Luciano Rocha
On Thu, Dec 31, 2009 at 04:40:56PM +, Joseph L. Casale wrote: Not all rescue environments have MAKEDEV or have it in $PATH, so this should always work. ;) Really, on my hp's as well? I don't have any /dev/hdx or /dev/sdx on the ones with software raid... Nothing is easier than

Re: [CentOS] [OT] - Estrutura de armazenamento de uma grande quantidade de arquivos

2009-11-27 Thread Luciano Rocha
On Fri, Nov 27, 2009 at 09:42:54AM -0200, Fábio Jr. wrote: Olá pessoal, Posts para esta lista devem ser feitos em Inglês. Posts to this list must be done in English. Cumprimentos, Luciano Rocha -- lfr 0/0 pgpA2uWZ0v118.pgp Description: PGP signature

Re: [CentOS] du vs df size difference

2009-10-01 Thread Luciano Rocha
On Wed, Sep 30, 2009 at 06:30:08PM -0400, Ryan Pugatch wrote: Luciano Rocha wrote: Do this: mount /dev/xvda3 /mnt du -hc /mnt And see if you can find the other 12GB. I usually do: du -mc --max-depth 2 /mnt | sort -n Though I've recently learned: du -hc --max-depth 2

Re: [CentOS] du vs df size difference

2009-09-30 Thread Luciano Rocha
On Wed, Sep 30, 2009 at 04:59:25PM -0400, Ryan Pugatch wrote: Hi all, Curious issue.. looking in to how much disk space is being used on a machine (CentOS 5.3). When I compare the output of du vs df, I am seeing a 12GB difference with du saying 8G used and df saying 20G used. # du -hcx

Re: [CentOS] logrotate and regular expressions

2009-09-23 Thread Luciano Rocha
On Wed, Sep 23, 2009 at 11:51:04AM -0400, Sol Fulop wrote: Is there a way around that??? Like run a command to get all the filenames then pipe it to the config directive /path/to/logs/access_log.www.*.(com|org|net|us) {} in logrotate.conf? In that particular instance, you can use:

Re: [CentOS] System Recovery

2009-09-04 Thread Luciano Rocha
On Fri, Sep 04, 2009 at 11:24:16AM -0500, Robert wrote: I deleted one copy of the backup, as I've done in the past and made a new crontab entry to try the backup again 2 or 3 minutes later. It was still running several hours later, which couldn't possibly be right. Next, I tried clearing

Re: [CentOS] Encrypted File Storage

2009-08-10 Thread Luciano Rocha
On Mon, Aug 10, 2009 at 05:23:48PM +, Joseph L. Casale wrote: Anyone got any experience/suggestions for a way to store a directory of sensitive information on a CentOS box? This directory contains many scripts and output files, I need it backed up but not unencrypted and don't want to

Re: [CentOS] resize LVM (ext3)

2008-10-29 Thread Luciano Rocha
will shrink automatically? NO! lvreduce doesn't care about what's inside, and will happily lose data. 4. Do i need to umount system/home when resizing? Yes, and you must do a full fsck also: e2fsck -f /dev/system/home Regards, Luciano Rocha -- lfr 0/0 pgpNkocZH4oWf.pgp Description: PGP

Re: [CentOS] resize LVM (ext3)

2008-10-29 Thread Luciano Rocha
On Wed, Oct 29, 2008 at 01:38:06PM +0100, David Hláčik wrote: Now, for lvresize: lvresize -L 80G system/home Are you sure there should not be lvreduce -L 80G system/home ? Same thing. I prefer the direction-neutral lvresize. Regards, Luciano Rocha -- lfr 0/0 pgph8d6Kf9euL.pgp

Re: [CentOS] compare directories

2008-10-23 Thread Luciano Rocha
On Thu, Oct 23, 2008 at 11:53:20AM +0200, David Hláčik wrote: Hello guys, I have two mirrors. I need to compare files and directories on both mirrors and as a result print list of those which are missing on mirror 2 What i did find /data find.mirror1 find /data find.mirror2 Now

Re: [CentOS] Finding the correct ext3-fs dm/LVM?

2008-10-20 Thread Luciano Rocha
On Mon, Oct 20, 2008 at 07:31:22PM +0200, Kai Schaetzl wrote: I'm getting ext3-fs maximal mount count warnings on logical volumes that are regularly mounted und unmounted for backup. Of course, I can just tune2fs all of them to stop that. But, if I wanted to find out for instance which one

Re: [CentOS] Finding the correct ext3-fs dm/LVM?

2008-10-20 Thread Luciano Rocha
On Mon, Oct 20, 2008 at 06:36:30PM +0100, Luciano Rocha wrote: On Mon, Oct 20, 2008 at 07:31:22PM +0200, Kai Schaetzl wrote: I'm getting ext3-fs maximal mount count warnings on logical volumes that are regularly mounted und unmounted for backup. Of course, I can just tune2fs all of them

Re: [CentOS] specialix module

2008-08-26 Thread Luciano Rocha
of differences between the kernel versions (different signatures for internal functions: INIT_WORK, kmem_cache_x, etc.; or different types). Regards, Luciano Rocha -- lfr 0/0 pgp4aCkhvFFVb.pgp Description: PGP signature ___ CentOS mailing list CentOS@centos.org

Re: [CentOS] [OT]: Passing password for a command on the fly

2008-05-16 Thread Luciano Rocha
On Fri, May 16, 2008 at 09:38:17AM +0100, Mário Gamito wrote: Hi, First things first, sorry for the off-topic, but I've already burned my eyes Googling and couldn't find the answer to what I need and I remembered asking here, because I'm a long time CentOS and its mailing list user. Again,

Re: [CentOS] exam txt file

2008-04-17 Thread Luciano Rocha
On Thu, Apr 17, 2008 at 05:56:36AM -0700, Hiep Nguyen wrote: hi all, i have centos 5 w/o gui. i can only have access via ssh. i have a text file that contains special (unprintable) characters, what editor i can use to exam what those character are??? i use vi, but i don't know what

Re: [CentOS] Automatically send CTRL-D

2008-03-11 Thread Luciano Rocha
On Tue, Mar 11, 2008 at 12:58:03PM +, Mário Gamito wrote: Hi Marcelo, On Tue, Mar 11, 2008 at 12:52 PM, Marcelo Roccasalva [EMAIL PROTECTED] wrote: On Tue, Mar 11, 2008 at 10:35 AM, Mário Gamito [EMAIL PROTECTED] wrote: [...] $ sha512sum | xargs echo password | cut -f2 -d' '

Re: [CentOS] Linux vs Windows Drivers

2007-12-26 Thread Luciano Rocha
On Wed, Dec 26, 2007 at 04:01:22PM -0500, Bit wrote: Luciano Rocha wrote: On Wed, Dec 26, 2007 at 12:48:52PM -0500, Bit wrote: Thanks to both of you for the reply. Good information, but that still doesn't really answer my question. I'm more interested in the technical side

Re: [CentOS] Linux vs Windows Drivers

2007-12-26 Thread Luciano Rocha
On Wed, Dec 26, 2007 at 05:01:54PM -0500, Bit wrote: ATI drivers are proprietary and closed-source. So, for example, on my current desktop, I download the Linux drivers for my card from the link below and run the installer as per their instructions.

Re: [CentOS] Where are my VIM colors?

2007-12-07 Thread Luciano Rocha
On Fri, Dec 07, 2007 at 09:49:39AM -0500, [EMAIL PROTECTED] wrote: Maybe, it's stupid question but I've just installed CentOS5 and when I'm going to edit some of my conf files I see no colors as it did in old CentOS4x... Did you install vim-enhanced? yum -y install vim-enhanced vim-X11 # for

[CentOS] typo in /etc/X11/xinit/Xsession

2007-10-27 Thread Luciano Rocha
line 15: if ( unask 077 cp /dev/null $errfile 2 /dev/null ); then Should be umask. -- lfr 0/0 pgpPXEZbwYz8L.pgp Description: PGP signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] typo in /etc/X11/xinit/Xsession

2007-10-27 Thread Luciano Rocha
On Sat, Oct 27, 2007 at 11:44:52AM -0700, Akemi Yagi wrote: On 10/27/07, Luciano Rocha [EMAIL PROTECTED] wrote: line 15: if ( unask 077 cp /dev/null $errfile 2 /dev/null ); then Should be umask. I assure you this is not Johnny's typo. Looks like it will be corrected in 5.2

Re: [CentOS] script help

2007-10-26 Thread Luciano Rocha
On Fri, Oct 26, 2007 at 11:28:37AM +0100, Tom Brown wrote: Hi I am sure the answer here is really easy but i am stuck! # mount | grep data | awk '{print$1,$2,$3}' gives me the info i require locally, however i need to execute this over about 1000 hosts so i run things remotely

Re: [CentOS] script help

2007-10-26 Thread Luciano Rocha
On Fri, Oct 26, 2007 at 11:52:50AM +0100, Luciano Rocha wrote: On Fri, Oct 26, 2007 at 11:28:37AM +0100, Tom Brown wrote: Hi I am sure the answer here is really easy but i am stuck! # mount | grep data | awk '{print$1,$2,$3}' gives me the info i require locally, however i

Re: [CentOS] fetchmail log messages I don't understand

2007-10-24 Thread Luciano Rocha
On Wed, Oct 24, 2007 at 11:46:34AM -0500, Chuck Campbell wrote: I see these messages every time fetchmail pops my mail. I don't understand what certificates it is talking about, or how to straighten this out. A certificate identifies the server, i.e., the client gets a piece of information

Re: [CentOS] fetchmail log messages I don't understand

2007-10-24 Thread Luciano Rocha
On Wed, Oct 24, 2007 at 12:22:21PM -0500, Johnny Hughes wrote: Luciano Rocha wrote: On Wed, Oct 24, 2007 at 11:46:34AM -0500, Chuck Campbell wrote: I see these messages every time fetchmail pops my mail. I don't understand what certificates it is talking about, or how to straighten

Re: [CentOS] Hosed my software RAID/LVM setup somehow

2007-10-17 Thread Luciano Rocha
On Wed, Oct 17, 2007 at 04:54:55PM +0200, Kai Schaetzl wrote: CentOS 5, original kernel (xen and normal) and everything, Linux RAID 1. I rebooted one of my machines after doing some changes to RAID/LVM and now the two RAID partitions that I made changes to are gone. I cannot boot into the

Re: [CentOS] Centos 5 or 5.0

2007-09-08 Thread Luciano Rocha
On Thu, Sep 06, 2007 at 10:15:12AM -0300, Centos wrote: Hello I am downloading Centos, but I don't know What is the difference between Centos 5 and Centos 5.0 The 5 is a link to the latest in the 5.x series. Currently it points to 5.0. also as far as I remember any rpm or file

Re: [CentOS] shrink LV with ext3 filesystem

2007-09-04 Thread Luciano Rocha
On Tue, Sep 04, 2007 at 12:40:24PM +0200, Thomas Antony wrote: Hi. I want to make a snapshot from a logical volume and noticed that there must be enough free disk space in the volume group. Actually there is no free disk space left. How do i shrink online /var without losing any

Re: [CentOS] shrink LV with ext3 filesystem

2007-09-04 Thread Luciano Rocha
On Tue, Sep 04, 2007 at 08:18:18PM +0200, Thomas Antony wrote: Is it possible that i log into the server with ssh and umount only /var and then resize the logical volume? Yes, but you'll have to stop a lot of daemons and other processes that run with files opened in /var. You can

Re: [CentOS] iptables rule (MAC filtering)

2007-06-25 Thread Luciano Rocha
On Mon, Jun 25, 2007 at 06:20:04PM +0200, Jordi Espasa Clofent wrote: Hi all, I've a CentOS box which as two NIC; this box is also a router for LAN subnet: | eth0 (external) 172.0.0.1| ^ this is a very bad example

Re: [CentOS] iptables rule (MAC filtering)

2007-06-25 Thread Luciano Rocha
On Mon, Jun 25, 2007 at 09:46:22PM +0200, Jordi Espasa Clofent wrote: ^ this is a very bad example It's understandable example; so, it's enough. 127.x is always private to each host, so it is confusing. I just assumed it was one address that just came to

Re: [CentOS] CUPS driver for Panasonic DP-2330 printer?

2007-06-19 Thread Luciano Rocha
On Tue, Jun 19, 2007 at 12:16:51PM -0400, James B. Byrne wrote: Can anyone point me to a possible source of a linux cups driver specifically for this machine or to a work-alike driver for a similar piece of equipment. Failing this, does anyone have any suggestions as to any open source

Re: [CentOS] mounting an lvm partition via a USB adapter

2007-06-18 Thread Luciano Rocha
On Mon, Jun 18, 2007 at 08:10:28AM -0400, Robert Moskowitz wrote: I am trying to mount this (my old hard drive) from my Centos 5 install as a USB drive so I can copy files over. The second partition, /dev/sda2 is the one I really want and it is an lvm partition. When I am booted from