RE: [CentOS-virt] xenbr0 isn't created anymore

2008-03-31 Thread Ross S. W. Walker
Kai Schaetzl wrote:
 Ross S. W. Walker wrote on Fri, 28 Mar 2008 16:12:20 -0400:
 
  I think you are mixing the versions up or made a typo,
 
 yes, I meant to write Xen  3.2.
 
  My configs still have xenbr0 listed, but the scripts will take any
  xenbr* and convert it to eth* if it exists and is a bridge. I don't
  have any problem with DHCP. I also have iptables currently disabled.
 
 Before going to the new Xen I tried to use this explanation for building a 
 bridge for xend, but it doesn't work for me at all :-(
 http://henning.schmiedehausen.org/wingnut-diaries/archives/86
 Unfortunately, bridge interfaces are missing from the Red Hat Deployment 
 Guide, I'm still looking for a guide about what can be used in bridge ifcfg 
 files. What I see on the net looks completely different.
 
 Oh, and you were absolutely right about the routing. I changed the default 
 gateway to fit the public subnet and added a static route for the private 
 subnet and now the additional src in ip route list is gone. Didn't change 
 that 
 the DHCPOFFER doesn't get back to the VM, though :-(

Kai,

Why not try tcpdump on the bridge interface and see if you can
see the DHCPOFFER/DHCPACK and what MACs it used.

-Ross

__
This e-mail, and any attachments thereto, is intended only for use by
the addressee(s) named herein and may contain legally privileged
and/or confidential information. If you are not the intended recipient
of this e-mail, you are hereby notified that any dissemination,
distribution or copying of this e-mail, and any attachments thereto,
is strictly prohibited. If you have received this e-mail in error,
please immediately notify the sender and permanently delete the
original and any copy or printout thereof.

___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] xenbr0 isn't created anymore

2008-03-31 Thread Kai Schaetzl
Ross S. W. Walker wrote on Mon, 31 Mar 2008 10:21:10 -0400:

 Why not try tcpdump on the bridge interface and see if you can
 see the DHCPOFFER/DHCPACK and what MACs it used.

I hoped to avoid doing something I do only every few years ;-) I'm quite 
familiar with using Wireshark/Etheral on Windows, but I used tcpdump only 
once or so, ever. I remember I can use tcpdump logs with Wireshark, can't 
I?

Anyway, I just installed xen 3.2 and VMs are well. It didn't solve the 
DHCP problem, so I will check tcpdump soon. But I found a problem with 
python when I wanted to add a DomU to the xen managed domains. It seems 
the xmlproc library is missing. I tried to install python-xml (as is 
recommended for Debian) but there is none for CentOS. libxml2-python is 
already installed and the only other module with xml in the name is 
python-lxml which doesn't look like the one I need. Did you hit the same 
problem?

Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com



___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


[CentOS-es] Ayuda para migrar a centos5

2008-03-31 Thread Yusdel Reyes oliva (Administrador Nodo TinoLT)
Saludos colegas, tengo montado un centos 4.2 final y quisiera actualizarlo a la 
vercion 5, que debo de hacer para actualizarlo y que no sufran daños las 
configuraciones anteriores..
___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es


[CentOS] Downgrade an rpm

2008-03-31 Thread Joseph L. Casale
I have an app I suspect is not working right as certain rpm's are a higher 
version then it recommends. If I have used a 3rd party to install the app which 
dragged in many dependencies with it, what is the procedure to downgrade only 
the specific rpms I need?

Thanks!
jlc
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] New firefox causing anyone else problems - CentOS 4.X?

2008-03-31 Thread William L. Maltby
On Sun, 2008-03-30 at 17:09 -0700, Bart Schaefer wrote:
 On Sun, Mar 30, 2008 at 4:34 PM, William L. Maltby
 [EMAIL PROTECTED] wrote:
  Looks like Firefox may be getting another update soon, if my problem is
   not atypical. Prior to the latest, had NP for *months*. Anyone else
   seeing any problems?
 
 I've had FF running on my CentOS 4 desktop for a little over 2 days
 now, continuously, with no problems.  However, I *don't* have the JRE
 package installed, and I use the centosplus kernel.

I've dropped back to the previous kernel to see if that makes a
difference, based on what I saw in the google results I mentioned in my
second post. IIRC, with the previous kernel *and* prev FF, I'd had some
issues, but never a panic. I'd been looking forward to a new FF,
thinking that would fix things. Symptoms were a slow freeze when I had
lots of things running on a Gnome desktop (two sets of mail, FF, gnome
terminal for two users - 1 native via login, the other su - invoked,
multiple tabs in FF and terminal, and several OO spreadsheets). Doing a
CP operation would sometimes result in severe lack of responsiveness
from that point on. Might take a half hour until I could even kill
things and start anew.

Various diags would show no swap use, nothing odd about memory usage,
etc. But repainting the workspaces would take a *long* time.

Maybe all this was a sign of that bug in a larval stage.

 snip sig stuff

-- 
Bill

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] Huge mailq

2008-03-31 Thread Jason Pyeron

 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Benjamin Smith
 Sent: Tuesday, February 26, 2008 10:34
 To: CentOS mailing list
 Subject: Re: [CentOS] Huge mailq
 
 On Monday 25 February 2008, Christopher Chan wrote:
  Hmm...it will still build. To really fix it, you need to do 
 one more step:
  
  rpm -e --nodeps sendmail
  
  Now that is a permanent solution.
 
 Like a hand grenade is a solution. Not likely to help him 
 much, tho. =/ 
 Doesn't even begin to address his situation since sendmail 
 wasn't the problem 
 to begin with. 
 
 Seems to me that it's a bad idea to use NFS as a mail store. 
 For example, the 
 RedHat documentation specifically recommends strongly 
 *against* it. Very 
 flatly: 
 
  Never put the mail spool directory, /var/spool/mail/, on an 
 NFS shared
  volume. 
 
 http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/security
-guide/s1-server-mail.html
 

Good to know. This will be new top priority fix.

 Also, NFS has various locking problems which prevent its use 
 in a proper mail 
 cluster. Read up on sendmail's mbox vs qmail's maildir for 
 more details. Not 
 suggesting that you switch to qmail, with it's recompile the 
 whole [EMAIL PROTECTED] 
 thing every time you change a config option mentality, but 
 it's useful 
 information nonetheless, especially when you get into having 
 multiple mail 
 receipt hosts. 
 
 The additional complexity of NFS is what seems to have caused 
 this gentleman's 
 problem - not only did sendmail itself have to work properly, 
 so did NFS, 
 DNS, and the spam filter.  
 
 How to avoid it? Either: 
 
 1) Reduce complexity. (get rid of the need for DNS, NFS, etc. or 
 
 2) Beef up the various pieces so they don't fail - make 
 sure you are using 
 high quality servers and equipment, or 
 
 3) Increase redundancy, so that no single point of failure exists. 
 
 Why is he depending on a single DNS server? Why is he using 
 NFS, with it's 
 implicit single-point-of-failure rather than GlusterFS, which 
 provides 
 multiple-primary-host redundancy and automatic failover?  
 http://www.gluster.org/
 

These are the types of steps we are taking now.

 -Ben
 -- 
 --
 Only those who reach toward a goal are likely to achieve it. 
 
 -- 
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.
 
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
 




-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron  PD Inc. http://www.pdinc.us -
- Principal Consultant  10 West 24th Street #100-
- +1 (443) 269-1555 x333Baltimore, Maryland 21218   -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and
notify the sender immediately.  Any other use of the email by you
is prohibited. 

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] backup to disk

2008-03-31 Thread Ray Leventhal

Hi,

I'm looking for common practices for backing up user data to disk.  My 
user data is all in /home.  I'm also interested in what folks are doing 
for things backing up os and configs.


Any pointers on setting up rsync, cpio, etc would be appreciated.  
Pointers to good how-to's especially welcome.


Currently we're using Arkeia Network Backup (commercial product with 
which I am in no way affiliated), and it's great, but with disk space so 
cheap, I'd love to be able to take my current non-raid setup and find a 
way to get up and running quickly in the case of some failures.


Thanks in advance,
-Ray

PS  -  sorry if this shows up twice...I posted on 29 March, but never 
saw it on the list :)

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] backup to disk

2008-03-31 Thread Alan Bartlett
On 31/03/2008, Ray Leventhal [EMAIL PROTECTED] wrote:

 PS  -  sorry if this shows up twice...I posted on 29 March, but never
 saw it on the list :)


It did arrive on the list. :-D

Alan.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] how do i have a clone centos server

2008-03-31 Thread Toby Bluhm

Mail Administrator wrote:

Thnaks john,

u gave me a  grt idea ..
the second one
seems quite interestin

but i do have to get additional HDD and mirror my existing server which
has jus one disk

  


This was my procedure to mirror an existing single IDE disk RH4 system.

YMMV. No guarantees. Not tested on Centos5. May eat all your data and 
drink all your beer.


Make a total backup before doing anything.

IIRC the grub setup is what gave me the most problem.

Hopefully, someone will chime in to point out any flaws here.


Current System/OS on single 10GB IDE disk
/dev/hda2 = swap @ 1GB
/dev/hda1 = / @ 9GB
Current system/OS is not in an LVM volume.

1. Install a 2nd identical disk as hdb
2. fdisk:
/dev/hdb1 = 9000M ; /dev/hdb2 = 1000M ( rest of disk )
part1 = type FD (raid)
part2 = type FD (raid)
3. Create mirror device /dev/md10 for / with 2nd disk missing:
mdadm --create --level=1 --force --raid-devices=1 /dev/md10 /dev/hdb1
4. mke2fs -j /dev/md10
5.  Create mirror device /dev/md11 for swap with 2nd disk missing:
 mdadm --create --level=1 --force --raid-devices=1 /dev/md11 /dev/hdb2
6. mkswap /dev/md11

 It may be safer to start step 7 from a rescue disk.

7. mkdir /z
8. mount /dev/md10 /z
9. cd /
10. dump -a0f - . | ( cd /z ; restore -xvf - )
11. Update pertinent lines in

/z/etc/grub.conf:
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
root (hd0,0)
kernel /boot/vmlinuz-2.6.9-11.EL ro root=/dev/md10 rhgb

/z/etc/fstab:
/dev/md10   /   ext3defaults1 1
/dev/md11  swapswapdefaults0 0

12. Shutdown
13. swap hdb  hda around
14. Boot RHEL4 linux rescue ; let system find/mount RHEL Installations
15. fdisk hdb to be identical to hda
16. chroot /mnt/sysimage
17. grub-install /dev/hda
18. grub-install /dev/hdb
19. Setup grub:
grub
root (hd0,0)
setup (hd0)
quit
20. Create new initrd(s) to include modules raid, scsi, lvm, etc needed 
at boot time:
mkinitrd --with=raid0 --with=raid1 --with=raid5 --with=aic79xx 
/boot/initrd-2.6.9-22.EL.img.new

mv /boot/initrd-2.6.9-22.EL.img /boot/initrd-2.6.9-22.EL.img.old
cp /boot/initrd-2.6.9-22.EL.img.new /boot/initrd-2.6.9-22.EL.img
21. Reboot to normal startup on the new mirrored /  swap.

 Step 21 needs to boot cleanly. Step 22 will remove your last chance to 
revert to the old setup by installing the original boot disk as hda.

 If something goes bad here, may need to restore from backup.

22. Add in 2nd disk to md10 mirror set:
mdadm --grow /dev/md10 --raid-devices=2
mdadm --add /dev/md10 /dev/hdb1

23. Add in 2nd disk to md11 mirror set:
mdadm --grow /dev/md11 --raid-devices=2
mdadm --add /dev/md11 /dev/hdb2

You can monitor the sync process:

cat /proc/mdstat:
md10 : active raid1 hdb1[2] hda1[0]
 8789632 blocks [2/1] [U_]
 []  recovery =  0.8% (77952/8789632) 
finish=5.5min speed=25984K/sec

unused devices: none

24. System will be at normal state when mirror sync is finished


--
Toby Bluhm
Alltech Medical Systems America, Inc.
30825 Aurora Road Suite 100
Solon Ohio 44139
440-424-2240


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Downgrade an rpm

2008-03-31 Thread Kai Schaetzl
Joseph L. Casale wrote on Mon, 31 Mar 2008 00:35:08 -0600:

 If I have used a 3rd party

what is that?

 to install the app which dragged in many dependencies with it, what is
the procedure to downgrade only the specific rpms I need?

downgrade to what?

I may be wrong but it sounds like you want to use CentOS in a way that it is
not supposed to be used. e.g. it sounds like you want to replace CentOS rpms 
with
older third-party rpms. Don't do that.

BTW: it would be nice if you could stop using HTML, thanks.


Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Downgrade an rpm

2008-03-31 Thread Rudi Ahlers

Kai Schaetzl wrote:

Joseph L. Casale wrote on Mon, 31 Mar 2008 00:35:08 -0600:

  

If I have used a 3rd party



what is that?

  

to install the app which dragged in many dependencies with it, what is


the procedure to downgrade only the specific rpms I need?

downgrade to what?

I may be wrong but it sounds like you want to use CentOS in a way that it is
not supposed to be used. e.g. it sounds like you want to replace CentOS rpms 
with
older third-party rpms. Don't do that.

BTW: it would be nice if you could stop using HTML, thanks.


Kai
Kai, correct me if I'm wrong, but one is allowed to use other programs 
not supplied by CentOS. And surely if the user feels that xyz-1.2.3.rpm 
is giving him problems, and he wants to use xyz-1.2.0.rpm instead that's 
his choice?


--

Kind Regards
Rudi Ahlers
CEO, SoftDux

Web:   http://www.SoftDux.com
Check out my technical blog, http://blog.softdux.com for Linux or other 
technical stuff, or visit http://www.WebHostingTalk.co.za for Web Hosting stuff

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] Downgrade an rpm

2008-03-31 Thread Joseph L. Casale
Kai, correct me if I'm wrong, but one is allowed to use other programs
not supplied by CentOS. And surely if the user feels that xyz-1.2.3.rpm
is giving him problems, and he wants to use xyz-1.2.0.rpm instead that's
his choice?


Well, I have rpmforge enabled for example, and I installed an application from 
their repo which installed a few dependencies from their repo as well. One of 
those dependencies was an rpm whose version was higher than the software dev's 
recommended version.

In that scenario, how does one force a downgrade?

Thanks!
jlc
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Downgrade an rpm

2008-03-31 Thread Rudi Ahlers

Joseph L. Casale wrote:

Kai, correct me if I'm wrong, but one is allowed to use other programs
not supplied by CentOS. And surely if the user feels that xyz-1.2.3.rpm
is giving him problems, and he wants to use xyz-1.2.0.rpm instead that's
his choice?




Well, I have rpmforge enabled for example, and I installed an application from 
their repo which installed a few dependencies from their repo as well. One of 
those dependencies was an rpm whose version was higher than the software dev's 
recommended version.

In that scenario, how does one force a downgrade?

Thanks!
jlc
___
  

Does the current installed version give a problem?

Using something like rpmforge to install an rpm ( I presume you used yum 
or something?) I think the only way is to remove it, and then manually 
install the correct one. The command would be something like rpm -ivh 
http://rmpforge-website/rpms/package-1.2.3.54-234.rpm - or something


--

Kind Regards
Rudi Ahlers
CEO, SoftDux

Web:   http://www.SoftDux.com
Check out my technical blog, http://blog.softdux.com for Linux or other 
technical stuff, or visit http://www.WebHostingTalk.co.za for Web Hosting stuff

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Downgrade an rpm

2008-03-31 Thread Rudi Ahlers

Joseph L. Casale wrote:

Does the current installed version give a problem?

Using something like rpmforge to install an rpm ( I presume you used yum
or something?) I think the only way is to remove it, and then manually
install the correct one. The command would be something like rpm -ivh
http://rmpforge-website/rpms/package-1.2.3.54-234.rpm - or something



That is what I suspect. I presume I have to block it from being upgraded after 
as well. How can I force the new app back in without worrying about this 
dependency?

Thanks!
jlc
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

  
Well, you'd need to install the dependencies as well, if needed. Maybe 
the dependencies will work with the release that you want? But still, 
does it give problems? Running a recommended version, or higher should 
yield the same results


--

Kind Regards
Rudi Ahlers
CEO, SoftDux

Web:   http://www.SoftDux.com
Check out my technical blog, http://blog.softdux.com for Linux or other 
technical stuff, or visit http://www.WebHostingTalk.co.za for Web Hosting stuff

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Downgrade an rpm

2008-03-31 Thread Tom Brown



That is what I suspect. I presume I have to block it from being upgraded after 
as well. How can I force the new app back in without worrying about this 
dependency?

  


to prevent a package from being updated or installed from a certain repo 
you'd add


exclude=package_name

to the yum config for that particular repo - that way if you add it to 
rpmforge and the package exists in rpmforge and base then the 
installation and or update would occur from the base repo.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] alsa 1.016 compile error on latest kernel centos 5.1

2008-03-31 Thread James Pearson

Jerry Geis wrote:

Hi all,

I need to compile alsa-project 1.0.16 on the latest centos 5.1 kernel.
I am getting this error. What to do... ?

CC
[M]  
/home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/sound_oss.o

 CC
[M]  
/home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/info_oss.o

In file included
from 
/home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/../alsa-kernel/core/info_oss.c:29, 



from 
/home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/info_oss.c:7: 


include/linux/utsname.h:37:52: error: macro init_utsname passed 1
arguments, but takes just 0
In file included
from 
/home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/../alsa-kernel/core/info_oss.c:29, 



from 
/home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/info_oss.c:7: 


include/linux/utsname.h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘{’ token
make[3]: ***
[/home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/info_oss.o] 
Error 1

make[2]: ***
[/home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore] Error 2
make[1]: ***
[_module_/home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16] Error
2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-53.1.14.el5-x86_64'


Seems to build OK for me (2.6.18-53.1.14.el5-i386) ...

Did it build OK for previous 5.1 kernels?

Do you know where it is picking include/linux/utsname.h from? - it 
should be:


 /lib/modules/2.6.18-53.1.14.el5/build/include/linux/utsname.h

(which is really under /usr/src/kernels/2.6.18-53.1.14.el5-x86_64)

Where does the output of configure say about this?

James Pearson
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Downgrade an rpm

2008-03-31 Thread Kai Schaetzl
Joseph L. Casale wrote on Mon, 31 Mar 2008 07:42:24 -0600:

 In that scenario, how does one force a downgrade?

On first thought: Force an uninstall via yum (if yum won't do it, use 
rpm), install the older version via yum (if available from rpmforge) and 
then exclude it (and probably all related rpms) from yum updating.

There may be better ways.

Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Downgrade an rpm

2008-03-31 Thread Kai Schaetzl
Rudi Ahlers wrote on Mon, 31 Mar 2008 15:36:48 +0200:

 Kai, correct me if I'm wrong

Just read again what I wrote ;-) And read it in the context of the 
provided information.

Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Downgrade an rpm

2008-03-31 Thread Rudi Ahlers

Kai Schaetzl wrote:

Joseph L. Casale wrote on Mon, 31 Mar 2008 07:42:24 -0600:

  

In that scenario, how does one force a downgrade?



On first thought: Force an uninstall via yum (if yum won't do it, use 
rpm), install the older version via yum (if available from rpmforge) and 
then exclude it (and probably all related rpms) from yum updating.


There may be better ways.

Kai

  
Well, yes that could work. use yum erase package name to remove it. 
But, can one install a specific version of a package from the yum command?


--

Kind Regards
Rudi Ahlers
CEO, SoftDux

Web:   http://www.SoftDux.com
Check out my technical blog, http://blog.softdux.com for Linux or other 
technical stuff, or visit http://www.WebHostingTalk.co.za for Web Hosting stuff

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Downgrade an rpm

2008-03-31 Thread Alan Bartlett
On 31/03/2008, Rudi Ahlers [EMAIL PROTECTED] wrote:

 But, can one install a specific version of a package from the yum command?


Yes.

Alan.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] backup to disk

2008-03-31 Thread Ray Leventhal

Barry Brimer wrote:

Hi,

I'm looking for common practices for backing up user data to disk.  
My user data is all in /home.  I'm also interested in what folks are 
doing for things backing up os and configs.



snip

Have you looked at rsnapshot http://www.rsnapshot.org ??


Hi Barry,

Thanks for the reply and link.  I'm looking this over right now.

-Ray
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] backup to disk

2008-03-31 Thread Ray Leventhal

Ned Slider wrote:

Ray Leventhal wrote:


I'm looking for common practices for backing up user data to disk.  
My user data is all in /home.  I'm also interested in what folks are 
doing for things backing up os and configs.



snip
In a mixed Linux/Windows environment, I deployed a Linux backup server 
and mounted users data directories on the backup server using smb/cifs 
and then did a local rsync of the mounted dirs to the backup dir 
(easy to run as a cron job each night). Further backups may then be 
written to removable storage for off site storage or additional disks 
in case of drive failure. I like rsync for backing up changing data 
sets such as users data.


To negate the risks/downtime associated with hard drive failure, I 
cloned the original OS setup using dd to spare HDs and locked them in 
the safe. Primary drive failure would require replacement of the 
drives (and a system update) and restoring data from the latest 
backups, although there's no reason one couldn't run 2 near identical 
backup servers side by side if the hardware is available.


There are simply so many different ways one could implement a backup 
strategy depending on hardware available, what software you're 
comfortable with, whether you want to script your own or use a backup 
package, the type of data you need to back up etc. The *important* 
thing is that you're comfortable with your backup procedure, it meets 
your needs, it's performed regularly, it's tested and it works.




Hi Ned,

Thanks for the thoughtful reply.  I've cloned the OS drive already and 
it is safely locked away.  We're an entirely off-internet system, so 
updates aren't even a problem.  The issue is the user data and with what 
you and others have written, I'm considering doing a local rsync to a 
second set of mirrored drives already in the box (but as of now disused).


Kind regards,
-Ray
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] backup to disk

2008-03-31 Thread Max Hetrick
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ray Leventhal wrote:

 Thanks for the reply and link.  I'm looking this over right now.

If you look to use rsnapshot, there's a guide on the CentOS wiki.

http://wiki.centos.org/HowTos/RsnapshotBackups

Regards,
Max
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFH8QeTIXSX/6LmsXkRAvfuAJ0WgEhWUbtxSeeO29Ir6octZH9NNACfR0Vt
KE2gQmSQxBXPgOpnAvAeKak=
=Xf+e
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Downgrade an rpm

2008-03-31 Thread Bob Taylor
On Mon, 2008-03-31 at 16:38 +0200, Rudi Ahlers wrote:
 Kai Schaetzl wrote:
  Joseph L. Casale wrote on Mon, 31 Mar 2008 07:42:24 -0600:
 

  In that scenario, how does one force a downgrade?
  
 
  On first thought: Force an uninstall via yum (if yum won't do it, use 
  rpm), install the older version via yum (if available from rpmforge) and 
  then exclude it (and probably all related rpms) from yum updating.
 
  There may be better ways.
 
  Kai
 

 Well, yes that could work. use yum erase package name to remove it. 
 But, can one install a specific version of a package from the yum command?
 

Use rpm -i --oldpackage filename?
-- 
Bob Taylor

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Re: alsa 1.016 compile error on latest kernel centos 5.1

2008-03-31 Thread Jerry Geis


Jerry Geis wrote:
/ Hi all,
// 
// I need to compile alsa-project 1.0.16 on the latest centos 5.1 kernel.

// I am getting this error. What to do... ?
// 
// CC
// [M]  
// /home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/sound_oss.o

//  CC
// [M]  
// /home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/info_oss.o

// In file included
// from 
// /home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/../alsa-kernel/core/info_oss.c:29, 
// 
// 
// from 
// /home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/info_oss.c:7: 
// 
// include/linux/utsname.h:37:52: error: macro init_utsname passed 1

// arguments, but takes just 0
// In file included
// from 
// /home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/../alsa-kernel/core/info_oss.c:29, 
// 
// 
// from 
// /home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/info_oss.c:7: 
// 
// include/linux/utsname.h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or

// ‘__attribute__’ before ‘{’ token
// make[3]: ***
// [/home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore/info_oss.o] 
// Error 1

// make[2]: ***
// [/home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16/acore] Error 2
// make[1]: ***
// [_module_/home/silentm/MessageNet/alsa-project/alsa-driver-1.0.16] Error
// 2
// make[1]: Leaving directory `/usr/src/kernels/2.6.18-53.1.14.el5-x86_64'
/
Seems to build OK for me (2.6.18-53.1.14.el5-i386) ...

Did it build OK for previous 5.1 kernels?

Do you know where it is picking include/linux/utsname.h from? - it 
should be:


  /lib/modules/2.6.18-53.1.14.el5/build/include/linux/utsname.h

(which is really under /usr/src/kernels/2.6.18-53.1.14.el5-x86_64)

Where does the output of configure say about this?

James Pearson

Jim,

Yes it is getting it from 
/lib/modules/2.6.18-53.1.14.el5/build/include/linux/utsname.h


I had to change the driver configure script :

Original:

if test $kversion.$kpatchlevel = 2.6 -a $ksublevel -ge 19; then
 CONFIG_HAVE_INIT_UTSNAME=1

My version:

if test $kversion.$kpatchlevel = 2.6 -a $ksublevel -ge 18; then
 CONFIG_HAVE_INIT_UTSNAME=1


Jerry

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] backup to disk

2008-03-31 Thread Les Mikesell

Ray Leventhal wrote:
 
Thanks for the thoughtful reply.  I've cloned the OS drive already and 
it is safely locked away.  We're an entirely off-internet system, so 
updates aren't even a problem.  The issue is the user data and with what 
you and others have written, I'm considering doing a local rsync to a 
second set of mirrored drives already in the box (but as of now disused).


Keep in mind that certain hardware, software, or operator errors (or a 
building disaster) can wipe out all of the disks at once.  A safer 
approach might be to rsync to external disks that you rotate offsite or 
to rsync over the network to a different location.


--
  Les Mikesell
   [EMAIL PROTECTED]


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] backup to disk

2008-03-31 Thread Ray Leventhal

Les Mikesell wrote:

Ray Leventhal wrote:
 Thanks for the thoughtful reply.  I've cloned the OS drive already 
and it is safely locked away.  We're an entirely off-internet system, 
so updates aren't even a problem.  The issue is the user data and 
with what you and others have written, I'm considering doing a local 
rsync to a second set of mirrored drives already in the box (but as 
of now disused).


Keep in mind that certain hardware, software, or operator errors (or a 
building disaster) can wipe out all of the disks at once.  A safer 
approach might be to rsync to external disks that you rotate offsite 
or to rsync over the network to a different location.



A point I was just discussing with some folks here.  Thanks, Les.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] corrupted disk/drive issue...

2008-03-31 Thread bruce
ok...

my bad. there is an additional step that has to be done tha t i left out. my
apologies. once you've found that you do have the lvms with the:
 lvm pvscan
 lvm vgscan
 lvm lvscan

cmds... the lvm(s) might be in an inactive state. if you do a ls /dev and
you see that you have /dev/VolGroup00 or something to that effect
depending on how you named your lvms... you're ok. if not, then you simply
need to activate the lvms by doing:
 lvm vgchange -ay

this will go ahaead and set the lvm(s) to an active state, where it will
then show up under the /dev dir...

the rest of the steps i provided should work ok..

thanks..

Hi...

Ran into an interesting issue during the past week, and figured I'd post the
issue, and solution here in case it might come in handy for someone else...

The laptop was running, but it was left on with the lid closed for a day or
so.. when powered up, the laptop went into a state saying it couldn't find
the mounts... hmm.. shouldn't have thought this could happen. figured the
drive might screwing up, so i reinstalled FC8.

after a few hours, got everything back.. went and plugged the laptop into a
power strip that had a short..!! ouch, saw the same behavior.. got sort of
nervous, but thought it should be ok (hopefully!) so after another
reinstall, got to really wondering what was really going on...  didn't think
about it.. the laptop was working.. things were cool.. for a day! and after
closing the lid, and then reopening.. after another day or so. saw the same
behavior.

here's what i was seeing:

Filesystemtype is ext2fs, partition type 0x83

VolGroup00 using etadata type lvm2
2 logical volumes in volume group VolGroup00 now active


VFS: Can't find ext3 filesystem on dev dm-3
mount: error mounting /dev/root on /sysroot as ext3:  Invalid argument
setuproot: moving /dev failed: No such file or directory
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
switchroot: mount failed: No such file or directory



at this point, talked to a few people, and started thinking that somehow the
disk was getting, had gotten corrupted.

so...

started to try to see what the drive had, if anything!

poped in the FC8 rescuedCD, and went to work..

ran the cmds:
lvm pvscan
lvm vgscan
lvm lvscan

since i had installed using the defaults for FC8 LVM, the drive showed that
it was basically ok.

went ahead and ran fdisk /dev/sda and saw that i indeed had my two
partitions /dev/sda1, /dev/sda2

so at this point..

i did a
  mkdir /dev/sysimage,
followed by a
  mount /dev/VolGroup00/LogVol00 /mnt/sysimage

this worked, and got me to a point where i could hopefully fix/repair
whatever errs might be on the drive...

i then ran
  e2fsck -y /dev/VolGroup00/LogVol00

after a little hope.. and an amount of time as the system did it's thing, it
came back saying how many sectors where corrected, etc...

i then rebooted, and the laptop was back up/running as it should!

feel free to add to this if you have useful information, or additional
insight that you want to share.

peace.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] atrpms nvidia cannot load

2008-03-31 Thread Sam Beam
Hi guys - brand new 5.1 install here and quite happy - but...

The nv driver did not work at all for me, fritzy stripes and dots. This is a 
GeForce 7300 LE which was working happily dual-head under FC6 with the livna 
nvidia RPMs

So I looked around and it seemed like the ATRpms repo via yum was the best 
option for CentOS. This is what I installed, it worked great with the 
xorg.conf from the old system.

But then I did a 'yum update' to the system and got a new kernel from 
centosplus (?). 

Now the nvidia module won't load. It's not happy with the new kernel. I am at 
a loss as to how to make it happy?

what is the best way to install the closed-source drivers? direct from nvidia? 
recomplile them? Is there some gap between updates kernel and the atrpms 
modules?

and in advance I am SORRY if this has been beat to death. I know ~75% of the 
traffic on the Fedora list was about nvidia woes and flames. Lame, but the 
DRI does work well on these and my daughter likes to play games. 

best,
Sam
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Local Mirror of Extras and Dev

2008-03-31 Thread Joseph L. Casale
I setup a local mirror of base and updates, can I simply rsync the hierarchy of 
extras and dev the same way without issue? I see the repo for these follows a 
slightly different setup than updates for example.

Thanks,
jlc
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Downgrade an rpm

2008-03-31 Thread Kai Schaetzl
Rudi Ahlers wrote on Mon, 31 Mar 2008 16:38:12 +0200:

 But, can one install a specific version of a package from the yum command?

Sure. You do a find and then get all available packages. Then you pick the 
one you want. You need to use it's long name then, of course. There might 
be a new problem then, though: more dependencies on older versions of 
packages. So, depending on the whole scenario it might be easier to use rpm 
instead of yum.

Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Re: how do i have a clone centos server

2008-03-31 Thread Scott Silva

on 3-31-2008 6:30 AM Toby Bluhm spake the following:

Mail Administrator wrote:

Thnaks john,

u gave me a  grt idea ..
the second one
seems quite interestin

but i do have to get additional HDD and mirror my existing server which
has jus one disk

  


This was my procedure to mirror an existing single IDE disk RH4 system.

YMMV. No guarantees. Not tested on Centos5. May eat all your data and 
drink all your beer.


Make a total backup before doing anything.

IIRC the grub setup is what gave me the most problem.

Hopefully, someone will chime in to point out any flaws here.


Current System/OS on single 10GB IDE disk
/dev/hda2 = swap @ 1GB
/dev/hda1 = / @ 9GB
Current system/OS is not in an LVM volume.

1. Install a 2nd identical disk as hdb
2. fdisk:
/dev/hdb1 = 9000M ; /dev/hdb2 = 1000M ( rest of disk )
part1 = type FD (raid)
part2 = type FD (raid)
3. Create mirror device /dev/md10 for / with 2nd disk missing:
mdadm --create --level=1 --force --raid-devices=1 /dev/md10 /dev/hdb1
4. mke2fs -j /dev/md10
5.  Create mirror device /dev/md11 for swap with 2nd disk missing:
 mdadm --create --level=1 --force --raid-devices=1 /dev/md11 /dev/hdb2
6. mkswap /dev/md11

 It may be safer to start step 7 from a rescue disk.

7. mkdir /z
8. mount /dev/md10 /z
9. cd /
10. dump -a0f - . | ( cd /z ; restore -xvf - )
11. Update pertinent lines in

/z/etc/grub.conf:
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
root (hd0,0)
kernel /boot/vmlinuz-2.6.9-11.EL ro root=/dev/md10 rhgb

/z/etc/fstab:
/dev/md10   /   ext3defaults1 1
/dev/md11  swapswapdefaults0 0

12. Shutdown
13. swap hdb  hda around
14. Boot RHEL4 linux rescue ; let system find/mount RHEL Installations
15. fdisk hdb to be identical to hda
16. chroot /mnt/sysimage
17. grub-install /dev/hda
18. grub-install /dev/hdb
19. Setup grub:
grub
root (hd0,0)
setup (hd0)
quit
20. Create new initrd(s) to include modules raid, scsi, lvm, etc needed 
at boot time:
mkinitrd --with=raid0 --with=raid1 --with=raid5 --with=aic79xx 
/boot/initrd-2.6.9-22.EL.img.new

mv /boot/initrd-2.6.9-22.EL.img /boot/initrd-2.6.9-22.EL.img.old
cp /boot/initrd-2.6.9-22.EL.img.new /boot/initrd-2.6.9-22.EL.img
21. Reboot to normal startup on the new mirrored /  swap.

 Step 21 needs to boot cleanly. Step 22 will remove your last chance to 
revert to the old setup by installing the original boot disk as hda.

 If something goes bad here, may need to restore from backup.

22. Add in 2nd disk to md10 mirror set:
mdadm --grow /dev/md10 --raid-devices=2
mdadm --add /dev/md10 /dev/hdb1

23. Add in 2nd disk to md11 mirror set:
mdadm --grow /dev/md11 --raid-devices=2
mdadm --add /dev/md11 /dev/hdb2

You can monitor the sync process:

cat /proc/mdstat:
md10 : active raid1 hdb1[2] hda1[0]
 8789632 blocks [2/1] [U_]
 []  recovery =  0.8% (77952/8789632) 
finish=5.5min speed=25984K/sec

unused devices: none

24. System will be at normal state when mirror sync is finished


One thing to add. Don't put the second drive as a slave to the first. Most 
times when a PATA drive goes down it will lock the entire channel until a 
reboot. The whole point of having the mirrors is to keep running on a drive 
fail. It is better to have it on the secondary master as hdc. Of course this 
doesn't apply to SATA or SCSI or their variants


--
MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't



signature.asc
Description: OpenPGP digital signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] atrpms nvidia cannot load

2008-03-31 Thread Ned Slider


Sam Beam wrote:

Hi guys - brand new 5.1 install here and quite happy - but...

The nv driver did not work at all for me, fritzy stripes and dots. This is a 
GeForce 7300 LE which was working happily dual-head under FC6 with the livna 
nvidia RPMs


So I looked around and it seemed like the ATRpms repo via yum was the best 
option for CentOS. This is what I installed, it worked great with the 
xorg.conf from the old system.


But then I did a 'yum update' to the system and got a new kernel from 
centosplus (?). 

Now the nvidia module won't load. It's not happy with the new kernel. I am at 
a loss as to how to make it happy?


what is the best way to install the closed-source drivers? direct from nvidia? 
recomplile them? Is there some gap between updates kernel and the atrpms 
modules?




Hi Sam,

I would recommend the nvidia driver on RPMForge as it's a dkms-based 
driver, meaning that it gets automatically rebuilt upon a kernel upgrade.


You'd need to enable the RPMForge repo, see here:

http://wiki.centos.org/Repositories

and then install dkms and the nvidia driver for your card

yum install dkms nvidia-x11-drv

Check that the dkms_autoinstaller service is set to run at the 
appropriate run levels and you should be good to go (you may need to 
first uninstall the existing ATRpms driver package). Oh - you'll 
probably also need the devel stuff present on your system such as 
kernel-headers, kernel-devel and gcc etc for the driver to compile.


Hope that helps.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] my centos switched alone its root fs to read-only

2008-03-31 Thread Alain Spineux
My test server was in very eavy load, running kolab's components:
postfix, cyrus-imap and openldap
A second test machine was sending, and reading emails as fast as it can.
The CPU was never idle !
I left the server at about 17H30
and at 22H I find it uncommitted (difficult to work when the
partition in read-only !)
However the mount command report it as RW !
The /boot is still RW for real indeed.

some more info

[EMAIL PROTECTED] trunk]# touch /foo.bar
touch: cannot touch `/foo.bar': Read-only file system
[EMAIL PROTECTED] trunk]# mount
/dev/md1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/md0 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
max:/s0 on /s0 type nfs (rw,addr=192.168.*.*)
[EMAIL PROTECTED] trunk]# cat /var/log/messages
Mar 30 04:02:13 c700 syslogd 1.4.1: restart.
Mar 30 05:47:29 c700 restorecond: Will not restore a file with more
than one hard link (/etc/resolv.conf) Invalid argument
Mar 31 07:41:37 c700 restorecond: Will not restore a file with more
than one hard link (/etc/resolv.conf) Invalid argument
[EMAIL PROTECTED] trunk]# date
Mon Mar 31 22:14:02 CEST 2008
[EMAIL PROTECTED] log]# df
Filesystem   1K-blocks  Used Available Use% Mounted on
/dev/md1  18316104   3921164  13449520  23% /
/dev/md0101018 11076 84726  12% /boot
tmpfs   257756 0257756   0% /dev/shm
max:/s0  425343328 389031904  14705248  97% /s0

Any idea ?

The system is still up and running until I need to carry on my test further.

Regards.

-- 
Alain Spineux
aspineux gmail com
May the sources be with you
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Re: my centos switched alone its root fs to read-only

2008-03-31 Thread Alain Spineux
I went to the basement to check the console :

I got this

EXT3-fs error (device md1): htree_dirblock_to_tree: bad entry in directory #2483
009: rec_len % 4 != 0 - offset=0, inode=211961333, rec_len=5205, name_len=231
Abordinf journal on device /dev/md1
journal  commit IO error
ext3_abot called.
EXT3-fs error  (device md1): ext3_journal_start_sb: Detected aborted journal
Remounting file read-only

Grr

On Mon, Mar 31, 2008 at 10:39 PM, Alain Spineux [EMAIL PROTECTED] wrote:
 My test server was in very eavy load, running kolab's components:
  postfix, cyrus-imap and openldap
  A second test machine was sending, and reading emails as fast as it can.
  The CPU was never idle !
  I left the server at about 17H30
  and at 22H I find it uncommitted (difficult to work when the
  partition in read-only !)
  However the mount command report it as RW !
  The /boot is still RW for real indeed.

  some more info

  [EMAIL PROTECTED] trunk]# touch /foo.bar
  touch: cannot touch `/foo.bar': Read-only file system
  [EMAIL PROTECTED] trunk]# mount
  /dev/md1 on / type ext3 (rw)
  proc on /proc type proc (rw)
  sysfs on /sys type sysfs (rw)
  devpts on /dev/pts type devpts (rw,gid=5,mode=620)
  /dev/md0 on /boot type ext3 (rw)
  tmpfs on /dev/shm type tmpfs (rw)
  none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
  sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
  max:/s0 on /s0 type nfs (rw,addr=192.168.*.*)
  [EMAIL PROTECTED] trunk]# cat /var/log/messages
  Mar 30 04:02:13 c700 syslogd 1.4.1: restart.
  Mar 30 05:47:29 c700 restorecond: Will not restore a file with more
  than one hard link (/etc/resolv.conf) Invalid argument
  Mar 31 07:41:37 c700 restorecond: Will not restore a file with more
  than one hard link (/etc/resolv.conf) Invalid argument
  [EMAIL PROTECTED] trunk]# date
  Mon Mar 31 22:14:02 CEST 2008
  [EMAIL PROTECTED] log]# df
  Filesystem   1K-blocks  Used Available Use% Mounted on
  /dev/md1  18316104   3921164  13449520  23% /
  /dev/md0101018 11076 84726  12% /boot
  tmpfs   257756 0257756   0% /dev/shm
  max:/s0  425343328 389031904  14705248  97% /s0

  Any idea ?

  The system is still up and running until I need to carry on my test further.

  Regards.

  --
  Alain Spineux
  aspineux gmail com
  May the sources be with you




-- 
Alain Spineux
aspineux gmail com
May the sources be with you
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] Re: my centos switched alone its root fs to read-only

2008-03-31 Thread Damien Solodow
Aka you had a hardware problem and it tried to save the filesystem from
corruption.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Alain Spineux
Sent: Monday, March 31, 2008 4:44 PM
To: CentOS mailing list
Subject: [CentOS] Re: my centos switched alone its root fs to read-only

I went to the basement to check the console :

I got this

EXT3-fs error (device md1): htree_dirblock_to_tree: bad entry in
directory #2483
009: rec_len % 4 != 0 - offset=0, inode=211961333, rec_len=5205,
name_len=231
Abordinf journal on device /dev/md1
journal  commit IO error
ext3_abot called.
EXT3-fs error  (device md1): ext3_journal_start_sb: Detected aborted
journal
Remounting file read-only

Grr

On Mon, Mar 31, 2008 at 10:39 PM, Alain Spineux [EMAIL PROTECTED]
wrote:
 My test server was in very eavy load, running kolab's components:
  postfix, cyrus-imap and openldap
  A second test machine was sending, and reading emails as fast as it
can.
  The CPU was never idle !
  I left the server at about 17H30
  and at 22H I find it uncommitted (difficult to work when the
  partition in read-only !)
  However the mount command report it as RW !
  The /boot is still RW for real indeed.

  some more info

  [EMAIL PROTECTED] trunk]# touch /foo.bar
  touch: cannot touch `/foo.bar': Read-only file system
  [EMAIL PROTECTED] trunk]# mount
  /dev/md1 on / type ext3 (rw)
  proc on /proc type proc (rw)
  sysfs on /sys type sysfs (rw)
  devpts on /dev/pts type devpts (rw,gid=5,mode=620)
  /dev/md0 on /boot type ext3 (rw)
  tmpfs on /dev/shm type tmpfs (rw)
  none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
  sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
  max:/s0 on /s0 type nfs (rw,addr=192.168.*.*)
  [EMAIL PROTECTED] trunk]# cat /var/log/messages
  Mar 30 04:02:13 c700 syslogd 1.4.1: restart.
  Mar 30 05:47:29 c700 restorecond: Will not restore a file with more
  than one hard link (/etc/resolv.conf) Invalid argument
  Mar 31 07:41:37 c700 restorecond: Will not restore a file with more
  than one hard link (/etc/resolv.conf) Invalid argument
  [EMAIL PROTECTED] trunk]# date
  Mon Mar 31 22:14:02 CEST 2008
  [EMAIL PROTECTED] log]# df
  Filesystem   1K-blocks  Used Available Use% Mounted on
  /dev/md1  18316104   3921164  13449520  23% /
  /dev/md0101018 11076 84726  12% /boot
  tmpfs   257756 0257756   0% /dev/shm
  max:/s0  425343328 389031904  14705248  97% /s0

  Any idea ?

  The system is still up and running until I need to carry on my test
further.

  Regards.

  --
  Alain Spineux
  aspineux gmail com
  May the sources be with you




-- 
Alain Spineux
aspineux gmail com
May the sources be with you
___
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] Why does 'test -f' and 'test -e' return true on a (hidden) file that doesn't exist?

2008-03-31 Thread Tim Alberts

Marko A. Jennings wrote:

On Mon, March 31, 2008 4:37 pm, Tim Alberts wrote:
  

Why does 'test -f' and 'test -e' return true on a (hidden) file that
doesn't exist?

* cat /home/talberts/.forward*
cat: /home/talberts/.forward: No such file or directory
* test -f /home/talberts/.forward ;echo $?*
1
* test -e /home/talberts/.forward ;echo $?*
1



0 = exists
1 = does not exist
  

I'm backwards.  Doh!  thank you

begin:vcard
fn:Tim Alberts
n:Alberts;Tim
org:Measurement Systems International;Engineering
adr:Suite 200;;14240 Interurban Avenue South;Seattle;WA;98168;USA
email;internet:[EMAIL PROTECTED]
title:Associate Engineer
tel;work:206-433-0199
tel;fax:206-244-8470
x-mozilla-html:FALSE
url:http://www.msiscales.com/
version:2.1
end:vcard

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Why does 'test -f' and 'test -e' return true on a (hidden) file that doesn't exist?

2008-03-31 Thread Rudi Ahlers

Tim Alberts wrote:
Why does 'test -f' and 'test -e' return true on a (hidden) file that 
doesn't exist?


* cat /home/talberts/.forward*
cat: /home/talberts/.forward: No such file or directory
* test -f /home/talberts/.forward ;echo $?*
1
* test -e /home/talberts/.forward ;echo $?*
1


___
  

It doesn't:

[EMAIL PROTECTED] ~]# cat /tmp/.test1
test1
[EMAIL PROTECTED] ~]# test -f /tmp/.test1 ; echo $?*
0*
[EMAIL PROTECTED] ~]# test -f /tmp/.test1 ; echo $?
0

[EMAIL PROTECTED] ~]# cat /tmp/.test2
cat: /tmp/.test2: No such file or directory
[EMAIL PROTECTED] ~]# test -f /tmp/.test2 ; echo $?
1
[EMAIL PROTECTED] ~]# test -e /tmp/.test2 ; echo $?
1
[EMAIL PROTECTED] ~]#

--

Kind Regards
Rudi Ahlers
CEO, SoftDux

Web:   http://www.SoftDux.com
Check out my technical blog, http://blog.softdux.com for Linux or other 
technical stuff, or visit http://www.WebHostingTalk.co.za for Web Hosting stuff

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Why does 'test -f' and 'test -e' return true on a (hidden) file that doesn't exist?

2008-03-31 Thread Garrick Staples
On Mon, Mar 31, 2008 at 04:43:28PM -0400, Marko A. Jennings alleged:
 On Mon, March 31, 2008 4:37 pm, Tim Alberts wrote:
  Why does 'test -f' and 'test -e' return true on a (hidden) file that
  doesn't exist?
 
  * cat /home/talberts/.forward*
  cat: /home/talberts/.forward: No such file or directory
  * test -f /home/talberts/.forward ;echo $?*
  1
  * test -e /home/talberts/.forward ;echo $?*
  1
 
 0 = exists
 1 = does not exist

And to expand on that a bit... shell commands do not return the normal boolean
true/false, they return zero for success and non-zero for errors.

Using non-zero for errors is handy for indicating the type or reason for the
error.

-- 
Garrick Staples, GNU/Linux HPCC SysAdmin
University of Southern California

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


pgpZi225bs5qi.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Why does 'test -f' and 'test -e' return true on a (hidden) file that doesn't exist?

2008-03-31 Thread Stephen Harris
On Mon, Mar 31, 2008 at 01:37:01PM -0700, Tim Alberts wrote:
 Why does 'test -f' and 'test -e' return true on a (hidden) file that 
 doesn't exist?
 
 * cat /home/talberts/.forward*
 cat: /home/talberts/.forward: No such file or directory
 * test -f /home/talberts/.forward ;echo $?*
 1
 * test -e /home/talberts/.forward ;echo $?*
 1

0 means true

% test 1 == 1 ; echo $?
0
% test 1 == 2 ; echo $?
1
% test 1 == 1  echo good
good

(BTW, putting * around lines you type is REALLY bad quoting style)

-- 

rgds
Stephen
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Why does 'test -f' and 'test -e' return true on a (hidden) file that doesn't exist?

2008-03-31 Thread Tim Alberts

Stephen Harris wrote:


(BTW, putting * around lines you type is REALLY bad quoting style)

  
Copied from HTML into email program.  then sent as plain text.  complain 
to thunderbird.


begin:vcard
fn:Tim Alberts
n:Alberts;Tim
org:Measurement Systems International;Engineering
adr:Suite 200;;14240 Interurban Avenue South;Seattle;WA;98168;USA
email;internet:[EMAIL PROTECTED]
title:Associate Engineer
tel;work:206-433-0199
tel;fax:206-244-8470
x-mozilla-html:FALSE
url:http://www.msiscales.com/
version:2.1
end:vcard

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] mysql data

2008-03-31 Thread Ray Leventhal

HI folks,

Apologies if this is OT.  If it is, please msg me offllist and I'll 
carry on my searching elsewhere.


Where does mysql actually store databases and tables in the filesystem?

Thanks in advance
-Ray
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] mysql data

2008-03-31 Thread Karanbir Singh

Ray Leventhal wrote:

HI folks,

Apologies if this is OT.  If it is, please msg me offllist and I'll 
carry on my searching elsewhere.


Where does mysql actually store databases and tables in the filesystem?

depends on where you set it up to store those things. a cursory google 
for mysql config will give you the details.


and you can start by looking at /etc/my.cnf

--
Karanbir Singh : http://www.karan.org/  : [EMAIL PROTECTED]
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] mysql data

2008-03-31 Thread Matt Shields
On Mon, Mar 31, 2008 at 5:17 PM, Ray Leventhal [EMAIL PROTECTED] wrote:
 HI folks,

  Apologies if this is OT.  If it is, please msg me offllist and I'll
  carry on my searching elsewhere.

  Where does mysql actually store databases and tables in the filesystem?

  Thanks in advance
  -Ray

If you're using the stock settings from an RPM, probably in /var/lib/mysql

-- 
-matt
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] mysql data

2008-03-31 Thread Barry L. Kline

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ray Leventhal wrote:

| Where does mysql actually store databases and tables in the filesystem?

If you're asking because you're concerned about backup/restore then
you'll want to forget about the location of the data files and instead
use the mysqldump command to make your backups.

If you're interested from the capacity planning standpoint then the
answer is that CentOS configures MySQL to live in the /var/lib/mysql
directory.

Barry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFH8VnsCFu3bIiwtTARAqr6AJ4+4ebIBElzscaAv4V2lzvWlawSqQCfW3pz
mpjjqFcZM08jrOS6GK6r4Ho=
=7vI8
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Why does 'test -f' and 'test -e' return true on a (hidden) file that doesn't exist?

2008-03-31 Thread Tim Alberts

Rudi Ahlers wrote:

Tim Alberts wrote:

Stephen Harris wrote:


(BTW, putting * around lines you type is REALLY bad quoting style)

  
Copied from HTML into email program.  then sent as plain text.  
complain to thunderbird.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
  

Don't use HTML, complain to user :)

Wow folks.  Is this really worth complaining about?  Why waste time 
writing email clients that use HTML if people are gonna whine about it?


AGAIN.. I copied from HTML output into mozilla thunderbird...I sent the 
email as PLAIN TEXT...if you don't like how mozilla thunderbird deals 
with it...complain to them... but fundamentally go somewhere else with 
this petty complaint.



begin:vcard
fn:Tim Alberts
n:Alberts;Tim
org:Measurement Systems International;Engineering
adr:Suite 200;;14240 Interurban Avenue South;Seattle;WA;98168;USA
email;internet:[EMAIL PROTECTED]
title:Associate Engineer
tel;work:206-433-0199
tel;fax:206-244-8470
x-mozilla-html:FALSE
url:http://www.msiscales.com/
version:2.1
end:vcard

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Why does 'test -f' and 'test -e' return true on a (hidden) file that doesn't exist?

2008-03-31 Thread Rudi Ahlers

Tim Alberts wrote:

Rudi Ahlers wrote:

Tim Alberts wrote:

Stephen Harris wrote:


(BTW, putting * around lines you type is REALLY bad quoting style)

  
Copied from HTML into email program.  then sent as plain text.  
complain to thunderbird.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
  

Don't use HTML, complain to user :)

Wow folks.  Is this really worth complaining about?  Why waste time 
writing email clients that use HTML if people are gonna whine about it?


AGAIN.. I copied from HTML output into mozilla thunderbird...I sent 
the email as PLAIN TEXT...if you don't like how mozilla thunderbird 
deals with it...complain to them... but fundamentally go somewhere 
else with this petty complaint.



___
  
Relax man, didn't you see the smiley face ? It wasn't meant as an 
insult. But, to reply to your HTML query, it's simply with 50 emails 
coming in, and 10 replies per email, plain text isn't as heavy on 
everyone's bandwidth as HTML. But again, I'm not taking you on about this


--

Kind Regards
Rudi Ahlers
CEO, SoftDux

Web:   http://www.SoftDux.com
Check out my technical blog, http://blog.softdux.com for Linux or other 
technical stuff, or visit http://www.WebHostingTalk.co.za for Web Hosting stuff

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Thunar and smb

2008-03-31 Thread Manuel Enrique Chavez Manzano
Hello people, A few days ago I had installed XFCE4.4.2 from de extras
repositories of CentOS 
everything is ok but the fact that I can't access the smb network I have
on my work place, 
What can I do to get access,

Any ideas
Thanks
  
-- 
Nuestra recompensa se encuentra en el esfuerzo y no en el resultado.
Un esfuerzo total es una victoria completa.
Mahatma Gandhi


  (@ @)
   |--o00o-(_)-o00o--|
   |Manuel Enrique Chávez Manzano|
   |[EMAIL PROTECTED]  | 
   |[EMAIL PROTECTED] |
   |GNU/LINUX User   |
   |#468073  |
   |Usando CentOS 5  |
   |---ooo--ooo--|

http://counter.li.org/cgi-bin/certificate.cgi/468073


signature.asc
Description: Esta parte del mensaje está firmada	digitalmente
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] atrpms nvidia cannot load

2008-03-31 Thread Ned Slider


Sam Beam wrote:


Thanks Ned that works great! I'd never heard of dkms before. the best!



Glad you got it working. For reference:

http://linux.dell.com/projects.shtml#dkms

but I confess to not really understanding how it works, just that it does!

for the record, here is what I did since I was already running under the new 
updated kernel:



snip


all is well! will test the autoinstaller later. This rocks thanks


The real test will come after the next kernel update, but it should all 
just work :)


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Icon .png file loading error after graphics driver upgrade

2008-03-31 Thread John J. Lee
Dear,

I updated my nvidia graphics driver on one of the CentOS boxes.

When I log in my account, icons are not displayed correctly.
They are displayed as small empty squares, and there are error messages like
Fater error: failed to load file name.png : version error for each icon.

If I log in as super user, everything is OK.  Icons are OK. No error messages.
Do you have any idea?

Thank you.

-john
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Why does 'test -f' and 'test -e' return true on a (hidden) file that doesn't exist?

2008-03-31 Thread Stephen Harris
On Mon, Mar 31, 2008 at 02:13:26PM -0700, Tim Alberts wrote:
 Stephen Harris wrote:
 
 (BTW, putting * around lines you type is REALLY bad quoting style)
 
   
 Copied from HTML into email program.  then sent as plain text.  complain 
 to thunderbird.

No.  Complain to person who _did_ it.

Technology is merely a tool.  It requires a brain to use the tools
properly.  We all make mistakes.  Learn from this one and don't trust
cut'n'paste systems in future.  They _will_ do the wrong thing.

-- 

rgds
Stephen
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] RAID1 migration - /dev/md1 is not there

2008-03-31 Thread Sam Beam
I am trying to convert an existing IDE one-disk system to RAID1 using the 
general strategy found here:

http://lists.centos.org/pipermail/centos/2005-March/003813.html

But I am stuck on one thing - when I went to create the second md device with 
mdadm, 

# mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/hdb2 missing
mdadm: error opening /dev/md1: No such file or directory

And indeed, ls /dev/md* shows only md0, which worked fine.

I do have the 'raid1' kernel module loaded.

What am I missing? Do I need to create the nodes manually now?

thanks
-S
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] RAID1 migration - /dev/md1 is not there

2008-03-31 Thread Les Mikesell

Sam Beam wrote:
I am trying to convert an existing IDE one-disk system to RAID1 using the 
general strategy found here:


http://lists.centos.org/pipermail/centos/2005-March/003813.html

But I am stuck on one thing - when I went to create the second md device with 
mdadm, 


# mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/hdb2 missing
mdadm: error opening /dev/md1: No such file or directory

And indeed, ls /dev/md* shows only md0, which worked fine.

I do have the 'raid1' kernel module loaded.

What am I missing? Do I need to create the nodes manually now?



Add --auto=yes to the create command to add the device node. Udev based 
systems don't have the nodes created ahead of time.


--
  Les Mikesell
   [EMAIL PROTECTED]


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Why does 'test -f' and 'test -e' return true on a (hidden) file that doesn't exist?

2008-03-31 Thread Morten Nilsen

Rudi Ahlers wrote:

Relax man, didn't you see the smiley face ?


Hey man, would you please trim replies in the future..
Five miles of quoted text is actually worse than html mail ;)

--
Cheers,
Morten
:wq
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] raid1 custom initrd and yum

2008-03-31 Thread Sam Beam
OK sorry to hammer the list but one more question - having almost got the 
drives mirrored and happy - since I have created a custom initrd that has the 
raid1 drivers in it, do I now have to tell yum to ignore kernel updates? Will 
the stock kernel render me unbootable?

Actually I am not 100% sure the initrd I created 

# mkinitrd -f --preload=raid1 /mnt/tmp/initrd-`uname -r`.img `uname -r`

is even being used, because lsmod still lists a raid1 module. Wouldn't it 
be embedded in the running kernel and thus not in the module list?

either way I am a little confused and this is important ;)

best regards and thanks to all for the help,
Sam
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] How to find available groups for installation via yum ?

2008-03-31 Thread Primorec
Hi All,

Short description of the problem:
- I would like to install the complete 'xfce' desktop on CentOS5.x

I've tried:
yum groupinstall xfce
yum groupinstall xfce4
yum groupinstall xfce*
yum groupinstall xfce4*
yum groupinstall xfce4.2
yum groupinstall xfce4.1
yum groupinstall xfce4.3
yum groupinstall xfce4.4
yum groupinstall xfce4.4.2

etc
etc
...
nothing worked

then I've started googling the net and  finally  I found
the magic combination. One very merciful soul posted the golden combination.

yum groupinstall XFCE-4.4

This did the trick.   God bless him/her and all his relatives. He/She
deserved it.

question:
Is there a way to check which packages are available for the installation as
a 'group' using yum ?

TIA

Igor




-- 
Experience is what you get when you didn't get what you wanted.
Randy Pausch
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos