Re: [CentOS] X forwarding

2013-02-02 Thread Brett Serkez
On Sat, Feb 2, 2013 at 9:49 AM, skull skul...@gmx.ch wrote:

 How does one use X forwarding properly?
 ...

 Anything else there is to do?
 When i try to:
 ssh -X root@server virt-manager


Just to be sure, you are in an xterm with DISPLAY set to the local X-Server
before issuing the ssh?

Try substitute -Y for -X, like:  ssh -Y root@server

When you are logged in to the server, what is DISPLAY set to?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] full image backup

2012-10-30 Thread Brett Serkez
The question is really about bare metal restore, yes?

I would recommend clonezilla and that you create a bootable thumb drive or
cd and be sure you can boot off of either and access the storage that you
intent to contain your backup.

Brett

On Tue, Oct 30, 2012 at 7:22 AM, Hossein Lanjanian 
hossein.lanjan...@gmail.com wrote:

 Hi every body
 I am a new centos user.
 I installed centos 6 on my laptop and add some software to it.
 How can I create a full image (boot able) back up of it. ( some thing like
 windows full image backup).
 please help!

 --
 With The Best
 H.Lanjanian
 ___
 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] wins option in nsswitch.conf not working

2012-06-03 Thread Brett Serkez
On Sun, Jun 3, 2012 at 1:50 PM, Peter Peltonen peter.pelto...@gmail.comwrote:


 If I add wins at the end of the hosts section in /etc/nsswitch.conf
 the resolver seems to get stuck as after ping it just hangs (there
 is no output, I have to quit it with CTRL+C)


Works on my network, my nsswitch.conf looks like this:

hosts:  files [!NOTFOUND=return] wins [!NOTFOUND=return] dns

 I seem to recall that the [!NOTFOUND=return], which is confusing as a
double negative, keeps things like ping from hanging by causing an
immediate return once a resolution is found.

Order is important, so the above looks in the local files (/etc/hosts),
then WINS and finally DNS, if you change the order, you may get different
results.

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


Re: [CentOS] VirtualBox on CentOS 6.0?

2011-11-02 Thread Brett Serkez
On Wed, Nov 2, 2011 at 4:04 AM, Roy Trubshaw roy.trubs...@yahoo.co.ukwrote:

 - Here's a relatively complete description on turning VirtualBox into a
 service under Redhat/Centos/Fedora (
 http://www.kernelhardware.org/virtualbox-auto-start-vm-centos-fedora-redhat/
 ).


Using VB 4.1.x under CentOS 6 to run CentOS 5  6 and WindowsXP guest VMs
without issue.  Be sure to read the comments on the above link, the script
needs some minor adjustments.

Being able to copy guest VMs between Linux and Windows Hosts supports a
robust development and fall back environment.

While I have noticed a few minor issues with VB, overall it has been
stable.  The issues I've noticed are occasional screen paint issues using
seamless mode and there is no way to delete a snapshot without applying the
changes from the snapshot.

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


Re: [CentOS] Samba + Openldap

2011-10-18 Thread Brett Serkez
  Anyone have an update tutorial/howto for samba to authenticate to ldap?
 -

Not so much a Samba issue, make sure you have a known local username and
password so you are not locked out if the LDAP server fails to start for
whatever reason, especially if you disable network logins as root, as you
should!

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


Re: [CentOS] OT: Java down

2010-11-19 Thread Brett Serkez
Sun was purchased by Oracle, the updated URL: http://java.oracle.com

Brett


On Fri, Nov 19, 2010 at 7:17 AM, Helmut Drodofsky
drodof...@internet-xs.dewrote:

 Hallo,



 yesterday from 3 to 11 pm UTC our Java application was down. As far as I
 know, the server java.sun.com was not available.



 Needs any java application direct access to sun?



 Can I stop this hell?



 Any idea?



 Best regards



 Helmut



 ___
 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] error rsyncing large file

2010-01-20 Thread Brett Serkez
On Wed, Jan 20, 2010 at 1:01 PM, Joseph L. Casale jcas...@activenetwerx.com
 wrote:

 snip
 As it's a 20 gig file I am trying to send the diff of with a -c, I suspect
 over
 snip


This might be too basic a question,  what type of file system are you using
on the CentOS system?  For instance if it is the ext2/ext3 file system,
there are file size limits depending on such things as the block size:
http://en.wikipedia.org/wiki/Ext2#File_system_limits.

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


Re: [CentOS] SSH slow

2010-01-18 Thread Brett Serkez
In /etc/ssh/sshd_config change:

UseDNS yes

to

UseDNS no

Brett

On Mon, Jan 18, 2010 at 6:08 PM, ML mailingli...@mailnewsrss.com wrote:

 Hi All,

 All of my systems are running 5.4 x64. The are all AMD x64 processors with
 at least 2gb of RAM in each.

 I am running SSH on a non standard port.

 When I SSH into ANY of my systems, I get prompted for my password right
 away, but after entering, it takes 30+ seconds to get logged in and get a
 prompt so I can work.

 I dont quite know what to look for here

 Does anyone have thoughts?

 -Jason

 ___
 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] Backup server

2010-01-13 Thread Brett Serkez
On Wed, Jan 13, 2010 at 5:04 AM, Sorin Srbu sorin.s...@orgfarm.uu.se wrote:
snip
 The way we currently do backups is to use rsync from the clients to two
 folders on an older server that rolls over every other week. This worked fine
 for a while, but the rsync is cumulative and the users generate a tremendous
 amount of data...
snip

You might want to check out the rsync switches --backup-dir and
--suffix.   Using them some thing like this:

--delete --backup --backup-dir=$MIRROR_DIR/RsyncBckups --suffix=.$DATE

allows you to keep an exact duplication of the original directory and
keeping the original files that were either deleted or overwritten in
a seperate backup directory with dated suffixes, which can be archived
on some regular basis.  This should allow you to keep the simplicity
of rsync and control the cumulative size.

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


Re: [CentOS] Confusion about scheduling tasks with crontab

2009-10-18 Thread Brett Serkez
On Sun, Oct 18, 2009 at 11:11 AM, ne... guhv...@gmail.com wrote:
 On Sun, Oct 18, 2009 at 16:09, Niki Kovacs cont...@kikinovak.net wrote:

 I have to setup a scheduled task on a server, and I just read through
 some crontab docs. Now I'm confused. It's not so much the syntax of the
 cron job to define (I got that), it's more... how do I get to define it?
 Use a text editor (vi or the likes) to edit /etc/crontab directly? Or
 create some empty file in /etc/cron.daily or /etc/cron.hourly or the
 likes and then edit it using crontab -e ?
 As root, crontab -e. This is all you need.

If the script is to run as root and you aren't overly concerned about
the precise time your script runs, only that it runs at these
intervals, you can place your script or a soft-link to your script in
one of the directories /etc/cron.monthly, /etc/cron.weekly,
/etc/cron.daily and /etc/cron.hourly.

Any output from your script will be emailed to you, if this is setup.

To the best of my knowledge the scripts in these directories are run
in alphabetical order, you can control the order if desired by the
naming of the script.

In this case, crontab -e is not needed, create your script in our
favorite editor.

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


[CentOS] Strange XEN on CentOS HWaddr Address Issue

2009-08-04 Thread Brett Serkez
Ran into a strange issue with XEN on CentOS that I think is specific
to CentOS, which is why I'm starting by posting to this list first,
I'll post on the XEN list depending on responses.  My sense is this
issue has something to do with how CentOS handles network setup on
first boot of the XEN kernel.

- Installed a brand new CentOS 5.3 server with minimal packages.

- Installed XEN, modified grub.conf to boot off of the XEN kernel and rebooted.

- After reboot, network connectivity was lost.

- Investigation concluded the issue was that the HWaddr address of the
physical NIC matched the fabricated HWaddr that XEN uses for most of
its adapters:  FE:FF:FF:FF:FF:FF.

 - Temporary resolution, I re-enabled the motherboard's NIC, rebooted,
all seems to be working.

I would like to get the NIC in question working as it is a GigaBit
NIC, but it still has the HWaddr:  FE:FF:FF:FF:FF:FF which conflicts
with XEN.

My understanding of the HWaddr is that the first portion is
manufacturer assigned for uniqueness, I cannot image this NIC
originally had this HWaddr, but I don't know what it originally was.

Does anyone know if this value is read from the NIC on each boot, or
is it stored in a file after the first boot?  Is there someway to undo
this change so the NIC returns to its original value or atleast a
non-conflicting value?

Has anyone else seen this behavior?

Thank you in advance,

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


Re: [CentOS] Strange XEN on CentOS HWaddr Address Issue

2009-08-04 Thread Brett Serkez
On Tue, Aug 4, 2009 at 9:09 AM, Christoph Maserc...@financial.com wrote:
snip
 When Xen starts does some trickery with your interfaces. You should see
 FE:FF:FF:FF:FF:FF on device peth0 and the real MAC-address on device
 eth0.
 All Xen vif devices will show also MAC FE:FF:FF:FF:FF:FF. That is
 totally normal.

I  wanted to clarify on this point.  Understood as far as the above,
but the issue is that the PHYSICAL MAC was changed to
FE:FF:FF:FF:FF:FF.

 This went so far as to still have this value even after rebooting on
the standard kernel and then uninstalling XEN:

# dmesg | grep eth1
eth1: RTL8110s at 0xee156c00, fe:ff:ff:ff:ff:ff, XID 0400 IRQ 22

What ever happened during the first boot of XEN caused a permanent
change to this NIC as far as I can tell.

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


Re: [CentOS] Strange XEN on CentOS HWaddr Address Issue

2009-08-04 Thread Brett Serkez
 Maybe because you are looking at the bridge's mac and not the
 ethernet's which would be peth0.

No I am not.  dmesg shows the kernel messages at boot and it is
looking at the physical device, let's not get distracted, the issue is
clear in this regard.  As I previously stated, this happens even when
uninstalling XEN and booting off the non-XEN kernel since the install
of XEN.

 indeed, AFAIK all hardware adapters start with 00. This must have been set
 in the BIOS or with a boot option or in the network config.

This was helpful, gave me places/incentive to continue looking.

In /etc/sysconfig/network-scripts/ifcfg-eth1 I found:

# Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet
DEVICE=eth1
BOOTPROTO=none
HWADDR=00:40:F4:CE:E6:7B

So now I know what the original MAC address was.

Here is where it gets interesting.  The following file was modified at
the date/time that the XEN kernel was first booted:

/etc/sysconfig/hwconf

and it has fe:ff:ff:ff:ff:ff  for BOTH network adapters:

desc: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet
networfe:ffddr: fe:ff:ff:ff:ff:ff
vendorId: 10ec
deviceId: 8169
subVendorId: 10ec
subDeviceId: 8169
pciType: 10

desc: Intel Corporation 82562EZ 10/100 Ethernet Controller
network.hwaddr: fe:ff:ff:ff:ff:ff
vendorId: 8086
deviceId: 1050
subVendorId: 8086
subDeviceId: 303a

Everything I'm finding is re-enforcing my original theory that XEN
modified the hwaddr of this NIC.

The question continues to be what caused this and how to change it
back.  Given this is a stock system, I have to believe others must
have/may run into this issue.

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


Re: [CentOS] How do I change passwords / remove users for Samba?

2009-06-23 Thread Brett Serkez
On Tue, Jun 23, 2009 at 5:25 AM, Kevin Thorpeke...@pibenchmark.com wrote:

 Yet I can still connect to the shares as kevin. strange

As root try:

# service smb reload

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


Re: [CentOS] How do I change passwords / remove users for Samba?

2009-06-23 Thread Brett Serkez
On Tue, Jun 23, 2009 at 6:49 AM, Kevin Thorpeke...@pibenchmark.com wrote:
 On 23/06/2009 11:39, Kevin Thorpe wrote:
 Well I finally worked it out. Reboot Windows then it works. Bah! Stupid
 Microsoft. Wasted half my morning because Windows is broken.

Windows helpfully remembers your username and password for the
duration of your login.  A logoff and back in would had sufficed.

What I have found is that Windows remembers username and password per
host, so once you connect to a share on a given host with a particular
username and password, you cannot connect to the same host with a
different username and password.

One work around is to use the netbios aliases feature which allows a
server to have multiple names on a network.  This would allow you to
connect to the same server with different user names during the same
Windows session as it would think you are connecting to a different
host.

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


Re: [CentOS] How do I change passwords / remove users for Samba?

2009-06-23 Thread Brett Serkez
 I don't think you can connect to the same machine as 2 different users - and
 windows will cache connections even if they aren't mapped to a drive letter.  
 If
 it happens again, try 'NET USE' from a cmd window to see if you have lingering
 connections and delete them.

If it were a Windows server, yes, how ever if you use the netbios
alias option in Samba, the Windows client thinks it is connecting to
different servers, and the Samba server doesn't care.  I know this
works as I use it.

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


Re: [CentOS] Make sshd log IP addresses, not hostnames

2009-06-22 Thread Brett Serkez
On Mon, Jun 22, 2009 at 3:21 PM, Scott Mosemanscmose...@gmail.com wrote:
 Can I adjust the ssh daemon to log IP addresses instead of hostnames?

In sshd_config set UseDNS to no:

UseDNS no

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


Re: [CentOS] OT: looking for a rsync equivalent for Windows platforms

2009-06-06 Thread Brett Serkez
On Sat, Jun 6, 2009 at 4:39 AM, Rudi Ahlersrudiahl...@gmail.com wrote:
 Hi all,

 Does anyone know of a good  free rsync type program for Windows
 platforms? Like most of us, I need to work on both Windows  Linux
 environments, and would like to sync some data (music, videos, photos,
 documents, thunderbird profiles, FF bookmarks, etc) between a USB HDD,
 my Linux (CentOS + KDE) PC, and Windows Laptop at the office.

Cygwin allows you to run rsync in Windows.  Cygwin allows you to use
many if not all GNU tools such as ssh, bash...  There are of course
minor issues due to the differences in the FAT/NTFS vs. ext file
systems, most of which are masked by Cygwin.

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


[CentOS] Bug in yum Logwatch reporting

2009-04-03 Thread Brett Serkez
I've been noticing yum updates on several servers I manage over the
last few weeks, which I know I didn't perform and could not explain
until this morning.  At first I suspect a break-in, but found no other
evidence or reason an intruder would run the yum updates I was
viewing.

Yum updates are logged in /var/log/yum.log, which is what Logwatch
scans.  Seems that the format of the log entries is: MMM DD, the
year is missing!   This morning looking at this log sequentially I
noticed I did do yum updates on Apr 02 and Apr 03 as reported in last
night's logwatch, but not April of 2009, but rather April of 2008!

Has anyone else noticed this behavior and/or know if there is a fix in
progress for it?

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


Re: [CentOS] Quickbooks and Samba and Oplocks... OH MY

2009-01-29 Thread Brett Serkez
On Thu, Jan 29, 2009 at 11:36 AM, Tim Nelson tnel...@rockbochs.com wrote:
 It is widely known that Quickbooks has a horrible storage engine, requires 
 Windows to host multiuser access, etc. However, I've successfully been 
 storing QuickBooks files on Samba shares at a handful of locations with no 
 real issues other than slight performance degradation. However, a somewhat 
 recent thread here mentioned the proper use of oplock'ing in the Samba 
 configuration to considerably increase performance/reliability.

I am able to host all files other than Quickbooks on Samba shares.
The issue with QuickBooks is they run their own WIndows service on
port 10172 in addition to Windows file sharing.

If someone has figured out a way around this, I would prefer to host
multiple user QuickBooks access on Samba.

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


Re: [CentOS] Single Session VNC

2009-01-24 Thread Brett Serkez
On Sat, Jan 24, 2009 at 12:19 AM, karl balsmeier karlski2...@gmail.com wrote:
 Currently most machines I connect to use a display, but I want to run
 vncserver such that the display is always 0.

 Is this possible.

Can you be more specific about your question?

If you are asking about the :# suffix, such as target:1, that is the
port number to connect to the appropriate VNC server.   :0 is the
console at port 5900, :1 port 5901, :2 5902 and so on.

Is your question you don't want to type the :0, you want to connect to
the console, or something else?

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


Re: [CentOS] Old Small Box

2009-01-22 Thread Brett Serkez
On Wed, Jan 21, 2009 at 6:06 PM, Mike -- EMAIL IGNORED
m_d_berger_1...@yahoo.com wrote:
 I have an old 400mHz Dell with a 20G hard drive
 and 125M ram.  Can I install and run CentOS on it?

Depends on what you want to use it for.  I have successfully run
CentOS on PIIIs with as little as 256MB of memory, but with limited
functionality enabled, usually as a firewall, SAMBA server and/or web
server.  In all cases I took care during installation to install as
little software as possible, disable all unnecessary daemons and use
only the command line.

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


Re: [CentOS] Any way to reduce CPU use of OpenSSH?

2008-12-11 Thread Brett Serkez
On Thu, Dec 11, 2008 at 10:14 AM, Steve Snyder [EMAIL PROTECTED] wrote:
 On my CentOS v5.2 server (dual Pentium4) the OpenSSH daemon stands out
 as being the most CPU-intensive of the applications running, It's used
 176 minutes of CPU time in the last 2 days alone.

Can you tell us more about how your system is used, especially in
regard to ssh?  Are there many logins?  Is X forwarding used?

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


Re: [CentOS-virt] Need Help with Xen Please

2008-11-28 Thread Brett Serkez
On Thu, Nov 27, 2008 at 3:52 AM, Jason Taylor [EMAIL PROTECTED] wrote:
 Brett:

 Thank you for your help. It has been a few days since I was able to give
 this a try. However I installed Cygwin on my Windows desktop and SSH'd to
 the headless machine.  I then ran virt-install without the graphics support.
 Doing this I was able to get past where it was stuck before.

Glad that worked for you.  Just to be clear, if you use 'ssh -Y
target', you can use the graphical virt tools, I do this all the time.

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


Re: [CentOS] Stop the FUD Xen is not deprecated

2008-11-25 Thread Brett Serkez
On Tue, Nov 25, 2008 at 10:45 AM, Vandaman [EMAIL PROTECTED] wrote:
 Do people have wet underwear for nothing over XEN?

 See http://www.redhat.com/promo/qumranet/

 As far as CentOS is concerned saying Xen is deprecated is
 jumping the gun. CentOS ships with Xen and as long as upstream
 supports it, CentOS by extension supports it.

Thank you for the clarification.

What isn't clear from reading the above referenced material is if Xen
will be included in future CentOS releases.

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


Re: [CentOS] Stop the FUD Xen is not deprecated

2008-11-25 Thread Brett Serkez
On Tue, Nov 25, 2008 at 2:13 PM, Tom Brown [EMAIL PROTECTED] wrote:
snip

 Xen wont be in RHEL6 - KVM will

What insight can be offered on this change?  Is this a business or
technical or both decision?

 libvirt handles both so fundamentally it makes no difference as to what the
 virtualization technology is as the way its managed will not change

I would image there has to be a conversion, for instance the format of
the disk image, or the way that networking is setup?

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


Re: [CentOS-virt] Need Help with Xen Please

2008-11-18 Thread Brett Serkez
On Tue, Nov 18, 2008 at 6:41 AM, Brett Worth [EMAIL PROTECTED] wrote:
 Jason Taylor wrote:
 When you connect to the Centos server from your remote console you said 
 before that you're
 using ssh.  Is this from another Linux system?  You need to ensure that you 
 have access to
 your local graphical interface from the remote server i.e. that you have a 
 valid DISPLAY
 variable set.  If echo $DISPLAY returns an empty string then maybe you just 
 need to do
 ssh -X centos_server when connecting so that ssh will forward the X11 back 
 to your
 display.  Then virt-manager should work.

Sometimes ssh -Y works when ssh -X doesn't.  Over time I've started
using ssh -Y as it always works.

If the server is setup correctly, it will not allow you to ssh as
root, you'll need to ssh -Y as yourself and then su -.  When you use
the su command you might loose the DISPLAY variable, in this case
simply re-establish it and all should work.

If you workstation is Linux, you have an X-Display running.  If it is
Windows, you can use Cygwin as your X-Server.

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


Re: [CentOS-virt] Need Help with Xen Please

2008-11-16 Thread Brett Serkez
 One thing: you want to use the Xen 3.2 rpms provided by xen.org for serious
 production work on CentOS and not the one coming with CentOS. Suggest you read
 the archives of the list for all tips and caveats.

I've been using the stock Xen (2.6.18) that comes with the latest
CentOS 5.2 in production without major issue.  At one time I had to
restart xend occasionally to be able to properly reboot guest OSes
from virt-manager, but even that has stabilized.

What specifically is better about 3.2 that you are recommended it over
2.6.18?  My experience to date with CentOS is it tends to run the
latest, proven stable version of each package, which would make me
hesitant to run downloaded packages.

As far as virt-manager, use ssh -X or ssh -Y to connect to the DomU
then start up virt-manager, this should reflect the GUI back to the
originating workstation.

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


Re: [CentOS] Rebooting CentOS 5.2 XEN Guest

2008-10-16 Thread Brett Serkez
On Thu, Oct 9, 2008 at 3:43 PM, Kai Schaetzl [EMAIL PROTECTED] wrote:
 Brett Serkez wrote on Thu, 9 Oct 2008 14:23:16 -0400:

 At one time when I issued an 'init 6' in one of the XEN guests it
 rebooted

I've narrowed the issue to the xend and xendomains daemons.

On one of my systems I was able to init 6 and init 0 no problem, then
suddenly I could not, when this occurred, CPU utilization was 100% on
one CPU on the host with the guest said either Restarting System or
System Halted.   After some investigation I found that if I
restarted the xend and xendomains services I could once again init 0
and init 6.

 I usually use xm reboot from the host. You can also use reboot from within
 the guest. I remember *one* occurence quite a few months back where after
 an update I had problems to shut a VM down. But it happened only that one
 time. Note, there is a centos-virt list.

Thanks for this tip, I have signed up on the centos-virt list.

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


Re: [CentOS] Re: help required

2008-10-16 Thread Brett Serkez
On Thu, Oct 16, 2008 at 5:51 PM, John Hinton [EMAIL PROTECTED] wrote:
 Scott Silva wrote:
 If you do wish to have two equally accessible mailservers, users will need
 to be replicated.

I was thinking LDAP would be better than raw passwd files.  LDAP can
be configured on the secondary mail server to keep users in sync with
the primary for instant availability.

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


[CentOS] Rebooting CentOS 5.2 XEN Guest

2008-10-09 Thread Brett Serkez
All,

I have CentOS 5.2 XEN guests running on a CentOS 5.2 host.

At one time when I issued an 'init 6' in one of the XEN guests it
rebooted  Now it seems to halt but virt-manager shows it as still
running and the only way to get the guest to boot is to destroy the
virtual machine and start it again.

Unfortunately I didn't notice precisely when this change in behavior
occurred, I believe it was the last 'yum update' that included a new
XEN kernel, but I cannot say for sure.

Has anyone else noticed this change in behavior?  Any solutions to
restore the older behavior, being able to 'init 6' the virtual machine
was very useful.

Thank you,

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


Re: [CentOS] Multiple Linux instances on the same box - dual/triple/etc boot ?

2008-09-20 Thread Brett Serkez
On Fri, Sep 19, 2008 at 7:34 PM, admin [EMAIL PROTECTED] wrote:
 Yes, this seems like a case where virtualisation is a good solution. I've
 only just started learning to run Xen myself, but the advantages of
 virtualisation over dual/triple booting etc are pretty clear. As well as the
 ones you mention, different machines can also be run concurrently and
 networked.

I have recently put virtualized xen CentOS host and guests into
production, using the standard tools in CentOS 5 and all works well.
Not sure about the VMServer since I haven't tried it, but with xen
built into the kernel and what I've seen of the tools such as
virt-manager, virt-clone, virt-image, it is very light and simple and
should work well for the needs described.

In in this case, I'd suggest formatting the whole disk, with a very
large partition to hold xen image files, files that represent the
hard-drives of the guests.  While disk io in the guests is a bit
slower, the flexibility should be worth it, as imaging a guest is no
more difficult than a file copy.  The guests can access the host's
storage via NFS or Samba just as an networked host can.

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


Re: [CentOS] shutdown and boot on Xen

2008-09-12 Thread Brett Serkez
On Fri, Sep 12, 2008 at 3:37 PM, Sergio Belkin [EMAIL PROTECTED] wrote:
 Hi,

 I am using xen-3.0.3-41.el5 on Centos 5 with 2.6.18-53.1.21.el5xen
 kernel. I'd like to:

 1) When Dom0 shutdown, DomU's do the same.

This is a given.

 2) When Dom0 boots. DomU's do the same.

Create a soft-link in /etc/xen/auto to each DomU in /etc/xen that you
want to auto-start at system boot.

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



Re: [CentOS] What is the minimum ISO to build a server?

2008-09-03 Thread Brett Serkez
On Wed, Sep 3, 2008 at 6:05 PM, Paul Rushing [EMAIL PROTECTED] wrote:

 also http://wiki.centos.org/FAQ/CentOS5 refers to being able to do a
 minimal install with only the 1st cd.

I've done this, works fine.  The root file system is usually about 800
MB, after manually adding a few packages, I usually end up at about 1
GB.

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


Re: [CentOS] General Linux query

2008-08-21 Thread Brett Serkez
I can only comment from my experience, which is primarily ext2 and ext3.

 1) How file systeem get corrupted on linux?

I've almost never seen corruption in a Linux file system, the primary
reason is usually a hardware issue, the secondary reason (by far) is
buggy code.

 2)  why,when and how fsck to be run without lossing data?

fsck can never guarantee data will not be lost, it does the best it
can, which is usually pretty good.  Normally fsck is run in single
user mode.  If you want to run it manually, you'd bring the system to
single user mode (init 1) or it would run automatically during boot.
There is a counter in the file system as to the last time fsck was
run, during boot if this exceeds a certain vaule, fsck is run.  There
is also a clean shutdown bit which is set during a normal
shutdown/dismount, if this is not se,t which indicates a possible
system crash, fsck is run during system boot.

 4)  what are all the precaution to be made to prevent file system
 corruption.

Run a production distribution such as Redhat/CentOS vs. more of a
bleeding edge distribution such as Fedora.  More than this, assume
there will be data loss or corruption at some point and take
precautions such as running RAID 1, backups and use a UPS to avoid
system crashes or hardware issues in the face of brown or black outs.
Lastly choose a journaling  file system such as ext3, use ext2 for
partitions were performance over consistency is more important.

 5)  why  when the system will get hanged  and what are all the possible
 reasons?

Usually hardware issues, particularly memory and hard drives.  Most
distributions come with memtest86 so that the hardware's memory can be
thoroughly tested prior to installation of the operating system.

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


Re: [CentOS] centos on intel D945GCLF board

2008-08-19 Thread Brett Serkez
On Tue, Aug 19, 2008 at 9:38 AM, Janez Košmrlj [EMAIL PROTECTED] wrote:
 I know that disabling the LAN in BIOS works. The problem is that I need the
 on-board card, since I am trying to build a home router and I need 2 LAN
 cards for that. And the board has only one PCI slot.

I had a similar problem with a similar Intel  MB, it didn't crash at
boot, but randomly crashed at run-time.

With the LAN disabled, I did a yum update and then was able to
re-enable the LAN with a newer kernel.  The system has been stable for
several weeks with the newer kernel.

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


Re: [CentOS] Boot CentOS 5 to command line

2008-08-18 Thread Brett Serkez
On Mon, Aug 18, 2008 at 2:46 PM, ABBAS KHAN [EMAIL PROTECTED] wrote:
 Hi fellows,

 Pretty new to CentOS.
 I was trying to find a way to boot CentOS into command prompt instead of GUI
 (or without loading any services).
 Tried using 'Crl+Alt+F1' at the boot process, but, that holds the screen at
 mounting and doing fstab and doesn't proceed further.
 Is there anyother way to boot CentOS into command prompt without using
 Rescue option from the installation CD?

You can change to multi-processing command line mode with 'init 3' and
single user mode with the command 'init 1'.  Modes can be changed
dynamically in a running system.

See the file /etc/inittab, it lists all the possible modes, the first
line of this file defines the default mode:

id:5:initdefault:

which defaults to running the GUI at boot, change it to:

id:3:initdefault:

to not run the GUI at boot.

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


[CentOS] Lightweight MTA for XEN CentOS guests

2008-08-18 Thread Brett Serkez
All,

For a production environment, I'd like to setup CentOS XEN guests as
lightweight as possible.  I'd like the XEN guests to be able to send
nightly email as all CentOS servers do, but there is no reason to run
a mail server as the CentOS Dom0 already has an email server running
that can act as an email smart host.

The options that seem most appealing to me are either ssmtp or
sendmail minimally configured to only run the queuing submission
agent.

As far as ssmtp, I have not as yet found an CentOS RPM, presumably a
Fedora RPM might be suitable.  The down side of ssmtp is the lack of
queuing should the smart host not be available, not likely but it is
possible the email daemon could crash or be down for maintenance or
other reason.

As far as sendmail, it is simple to switch off the sendmail daemon and
only run the queuing submission agent:

1) edit /etc/sysconfig/sendmail and set
DAEMON=no
2) edit /etc/mail/submit.mc and set
FEATURE(`msp', `[IP.of.relayhost]')dnl

and of course add an alias for root.

Does anyone on this list have experience running a minimal MTA?  What
other options/software should I be looking at?  Any other insights,
suggestions or insights?

Both the Dom0 and guests are CentOS 5.2.

Thanks in advance,

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


Re: [CentOS] Samba permissions problem

2008-07-17 Thread Brett Serkez
 On Thu, Jul 17, 2008 at 6:02 AM, Kevin Thorpe [EMAIL PROTECTED] wrote:
 Hi all,
I have a permissions problem with a samba share which I really can't
 fathom out. I'm trying to create a fully group writable share. Easy or so I
 thought.
 As you can see from my config I am trying all the options to set files group
 writable, however when I create a file from the client I'm always getting
 the
 mode 0644. Does anyone have a clue why?  Thanks!

 client:
 //database.pricetrak.com/spendtrak  /home/spendtrak cifs
 username=webserver,password=twonkerlet,uid=apache,file_mode=0660,dir_mode=0770
 0 0

 server:
 [spendtrak]
 comment = Spendtrak Files
 path = /home/spendtrak
 browseable = no
 writable = yes
 printable = no
 valid users = +spendtrak
 force group = spendtrak
 create mode = 0660
 create mask = 0660
 force create mode = 0660
 directory mode = 0770

I have this working with:

[example]
path = /home/example
writeable = yes
browseable = yes
create mask = 0775
force create mode = 0775
directory mask = 0775
force directory mode = 0775

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


Re: [CentOS] 2.6.18-92.1.6.el5xen hangs Samba daemon

2008-07-01 Thread Brett Serkez
On Fri, Jun 27, 2008 at 2:43 PM, Brett Serkez [EMAIL PROTECTED] wrote:
 On Fri, Jun 27, 2008 at 1:59 PM, Anne Wilson [EMAIL PROTECTED] wrote:

 I'm running 2.6.18-92.1.6.el5.bz_pre53 and samba is working for me.  There 
 was
 an rpmnew question during the update.  Could that be the problem?

 I run into the problem with: 2.6.18-92.1.6.el5xen, the xen version of
 the kernel.

 Just to re-verify the issue, I rebooted back to the above kernel and
 this time Samba starts right up no problem!

 I had tried this earlier and it did not.  I'll have to keep an eye on
 it over time and see if the behavior changes again.

Just as a follow up, after a reboot (without any updates) the network
on this system fails to start.  Either the kernel or system seems
unstable, given this is a brand new system I suspect the kernel, I'll
have to go on-site to further investigate.

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


Re: [CentOS] 2.6.18-92.1.6.el5xen hangs Samba daemon

2008-06-27 Thread Brett Serkez
On Fri, Jun 27, 2008 at 1:59 PM, Anne Wilson [EMAIL PROTECTED] wrote:

 I'm running 2.6.18-92.1.6.el5.bz_pre53 and samba is working for me.  There was
 an rpmnew question during the update.  Could that be the problem?

I run into the problem with: 2.6.18-92.1.6.el5xen, the xen version of
the kernel.

Just to re-verify the issue, I rebooted back to the above kernel and
this time Samba starts right up no problem!

I had tried this earlier and it did not.  I'll have to keep an eye on
it over time and see if the behavior changes again.

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


Re: [CentOS] LDAP syncrepl incompatibility between CentOS 4.x and 5.x

2008-06-12 Thread Brett Serkez
 There is an openldap in the CentOS Testing repo for centos-4 that will work
 with centos-5.

 It has a compat-openldap-c4_version for the things that are compiled
 against the c4 version ... and i am using it in production and syncing c5
 and c4.

This works great!   Thanks for the tip, this is just what I was looking for.

 However, it is a couple updates behind.

 The version is  openldap-2.3.27-4.el4.centos

This is the same version as CentOS 5, perfect.

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


[CentOS] LDAP syncrepl incompatibility between CentOS 4.x and 5.x

2008-06-11 Thread Brett Serkez
All,

After many hours of research I have found there is a incompatibility
between OpenLDAP V2.3.x and V2.2.x, or atleast between V2.3.27 the
current version on CentOS V5 and V2.2.13 the current version on CentOS
V4.

The syncrepl feature of OpenLDAP, to keep multiple slapd servers
sync'd, was working between CentOS 4 and 5 at one time, as that is how
I populated the slave servers.

I've found references indicating protocol changes and
incompatibilities between these versions and indeed looking at
detailed debugging logs I can see the protocol falling apart between
the two versions.

Has anyone else seen this issue?  Is anyone aware of a fix in the
pipeline or a work around?

Thanks in advance,

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


Re: [CentOS] LDAP syncrepl incompatibility between CentOS 4.x and 5.x

2008-06-11 Thread Brett Serkez
On Wed, Jun 11, 2008 at 6:24 PM, Craig White [EMAIL PROTECTED] wrote:
 That said, I don't recall syncrepl ever working in 2.2.x and have used
 slurpd for replicating with 2.2 but if the OP says he thinks he had it
 running, well, I'm not gonna argue with him.

syncrepl 2.2.x works fine between CentOS 4 systems as installed via
yum.  I just used this today, made changes on the master that I needed
on to use on the slave, the replication was instant.

The issue is between 2.2.x and 2.3.x.  What I said I thought worked
was replication from CentOS 4.x to CentOS 5.x (ie. 2.2.x - 2.3.x), as
when I brought the CentOS 5.x on-line and started slapd,  the LDAP
database was almost instantly available.  I never used any other
method to load the LDAP data on the CentOS 5.x system from the CentOS
4.x master.

It is only recently that I noticed the replication failing, I believe
after a recent yum update.

I have looked at using yum to regress the version of LDAP on the
CentOS 5.x system, but it seems I needed to have turned on a yum
option before the update to do this.  I also noticed all the
dependencies as far as trying to build myself.

My assumption is that eventually newer versions of LDAP will be
available that will work.

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


Re: [CentOS] rsync - set owner and group?

2008-05-09 Thread Brett Serkez
On Fri, May 9, 2008 at 10:38 AM, Sean Carolan [EMAIL PROTECTED] wrote:
 Is there a way to force rsync to set a specific owner and group on
 destination files?  I have managed to get the permissions set up the
 way I want, but the owner and group are still defaulting to a numeric
 id instead of the correct owner and group.

Do your user and group names on both your source and destination
systems have matching numeric values?

Linux/UNIX systems carry the numeric values and look up the text
values in /etc/passwd and /etc/group for display.   If you are seeing
numeric values, that would imply there are no matching entries in
those files.

If you adjust your numeric values for the owner and group to match on
source and destination systems, your systems will match up.

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


Re: [CentOS] read only root file system

2008-05-02 Thread Brett Serkez
On Fri, May 2, 2008 at 12:16 AM, Jason Pyeron [EMAIL PROTECTED] wrote:
 I am looking at having a read only box, it will not use a swap partition.
  Any recommendations?

You'll need to break out your hard drive into multiple partitions, as
there are certain portions of the file system that need to be writable
such as /var and /home.  I setup systems in this manner to make them
more difficult to subvert, I'd suggestion searching for topics such as
linux file system hardening.

When you do need to do maintenance, such as package management, you'll
need to remount the root file system as writable which will likely
require a reboot.

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


Re: [CentOS] read only root file system

2008-05-02 Thread Brett Serkez
On Fri, May 2, 2008 at 9:38 AM, Ralph Angenendt [EMAIL PROTECTED] wrote:
 Brett Serkez wrote:
   On Fri, May 2, 2008 at 12:16 AM, Jason Pyeron [EMAIL PROTECTED] wrote:
I am looking at having a read only box, it will not use a swap partition.
 Any recommendations?
  
   You'll need to break out your hard drive into multiple partitions, as
   there are certain portions of the file system that need to be writable
   such as /var and /home.  I setup systems in this manner to make them
   more difficult to subvert, I'd suggestion searching for topics such as
   linux file system hardening.

  What do you do with /etc/mtab - where the system clearly wants to write
  into when you mount/unmount stuff?

Make it a soft-link to /var or other writable file system, perhaps
/etc/mtab - /var/etc/mtab.

For the most part the Linux/UNIX file system is broken up into well
defined areas, but alas, exceptions need to be dealt with.

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


Re: [CentOS] Total novice

2007-11-25 Thread Brett Serkez
Edit ./etc/fstab and comment out the mount entry for that drive with a
'#' in the first position of the line.

Brett

On Nov 25, 2007 11:07 AM, Manuel Leon [EMAIL PROTECTED] wrote:




 Hi.



 I want to remove one of three hard drives. But if I just remove the disk,
 Linux

 signals  errors and enters administrative mode requesting corrective actions
 which,

 of course, I do not know. If I reconnect the drive, everything returns to
 normality.



 Can anyone help me?



 Thanks in advance.



 MLM
 ___
 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] Permissions question

2007-10-01 Thread Brett Serkez
Todd,

On 10/1/07, Todd Cary [EMAIL PROTECTED] wrote:
 My www directory is owned by apache and the group is todd and the
 permissions are 775.

 My Windows computers use Samba and they log into Linux with todd.

 Under the www directory there are various directories which may have a
 group belonging to a user e.g. viewpoint.  Using this example, there
 is a directory under www (acutally called httpd), viewpoint that is
 owned by apache and is a member of the viewpoint group.  todd is
 also a member of  the viewpoint group.

 Now this is the problem I do not know how to correct:  if todd using
 Samba creates a directory in viewpoint, the owner and group is todd
 with 755 permissions.  Now if the viewpoint user tries to write to the
 directory, he does not have adequate permissions.

 Maybe I have not setup the owners and groups correctly.  maybe there is
 something I need to do with how Samba interacts with the server.

When files/folders are created on a UNIX/Linux system, all permission
bits set minus your umask, which is usually 022.  In your case, 777 -
022 = 755.Just type umask at a command prompt to see your umask
value.

umask is set during system login and inherited during process
creation.  You could change your system wide login's umask setting
from 022 to 002 which would change the default to 755 for all new
files and folders created on the system.

A better alternate for you might be to specify an override in your
samba configuration for the specific share, I've found these settings
work best:

[Example]
path = /home/Example
create mask = 0775
force create mode = 0775
directory mask = 0775
force directory mode = 0775
...

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


Re: [CentOS] Multiple IP Address

2007-09-15 Thread Brett Serkez
 I have only assumed it is the address that matches it's host name, which
 is why I always configure that in the /etc/hosts file.

Right, one would think so, but this doesn't seem to effect this behavior either.

Shutting down and start up OpenVPN immediately effects the behavior,
indicating this behavior is dynamic.   I've been searching for a way
to effect this behavior, perhaps in a configuration file
(/etc/sysconfig... or /proc/...) with no luck so far.

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


Re: [CentOS] Multiple IP Address

2007-09-15 Thread Brett Serkez
   I have only assumed it is the address that matches it's
  host name, which
   is why I always configure that in the /etc/hosts file.
 
  Right, one would think so, but this doesn't seem to effect
  this behavior either.
 
  Shutting down and start up OpenVPN immediately effects the behavior,
  indicating this behavior is dynamic.   I've been searching for a way
  to effect this behavior, perhaps in a configuration file
  (/etc/sysconfig... or /proc/...) with no luck so far.

 I should have asked this, but what do you mean by the default IP on
 a multi-homed host?

It is not multi-homed, as described in my initial post.  It has only
one ethernet card with a single IP address.  The problem comes in when
running OpenVPN which adds two virtual adapters, each with a unique IP
address (i.e., 10.55.5.x and 10.55.6.x).

When OpenVPN is stopped, all works fine, it is only with OpenVPN
running that the server starts using one of the IPs from the last
virtual adapter as its IP address, in some cases.

 I am unsure whether there is a default IP at all and the routing table
 decides which interface depending on the source and destination IP
 addresses used on the host.

OpenVPN does modify the routing table, but only for the specific
subnet routing, ie. 10.55.5.0/24 and 10.55.6.0/24.

The problem is that when a Windows desktop is OpenVPN connected to
another CentOS system on the same local network as the subject server
on an unrelated subnet ( i.e. 10.55.3.0/24) it is given the subject
server's 10.55.6.x address vs. the ethernet 10.44.0.x address, which
would work perfectly.

So from a Windows workstation on the local subnet, if I ping
CentOServer I get 10.44.0.x, which is what I want.  If I am on the
Windows desktop VPN connected to the other CentOS server on subnet
10.55.3.0/24 and I ping CentOSServer I get 10.55.6.x vs the 10.44.0.x
I would have expected.  There should be no relationship between the
originating Workstation's IP and the IP it is given for CentOServer,
but there is, I am trying to understand why if there is a way to
change this behavior.

Is this any clearer?

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


[CentOS] Multiple IP Address

2007-09-14 Thread Brett Serkez
I'm hoping that someone on this list can shed some light on how
Linux/CentOS decides which IP address to report when a Windows desktop
attempts to access it via SAMBA/WINS.

The CentOS system in question is running a single NIC and OpenVPN
which adds two additional virtual NICs.  This is a backup system,
there is another CentOS system that acts as the primary VPN server.
The local NIC is 10.44.0.0/24, the virtual NICs are 10.55.5.0/24 and
10.55.6.0/24, respectively.

If a Windows Desktop on the local network attempts to contact this
CentOS server, it is given its 10.44.0.x address.  If a Windows
Desktop is VPN connected to the primary CentOS VPN server, with a
10.55.3.x address, it is given this CentOS server's 10.55.6.x address.

It seems the IP address of the requester is being taken into account,
perhaps looking for the closest subnet match?

Ultimately I'd like the CentOS system to always report its 10.44.0.x
address.  Is there anyway to force this behavior?

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