Re: [CentOS] vgrename, lvrename

2010-09-12 Thread drew einhorn
On Sat, Sep 11, 2010 at 2:55 PM, Robert Heller  wrote:

> At Sat, 11 Sep 2010 13:45:55 -0600 CentOS mailing list 
> wrote:
> Note: in the case of mkinitrd, you will need to rebuild your initrd if
>  you expect to actually boot the machine after renaming the volume group
> and logical volumes. You'll need to *manually* mount the root and /boot
> (at least) someplace (eg under /sysroot), then chroot there. Don't
> forget to fix /etc/fstab and /boot/grub/grub.conf (root=...).


Googling got me the command:
   /sbin/mkinitrd -f /boot/initrd-$(uname -r).img $(uname -r)

Unfortunately this resulted in:

   error opening /sys/block: No such file or directory
   error opening /sys/block: No such file or directory

The renamed root lvm filesystem is mounted on /mnt/root
the /boot is in /dev/sda1 and mounted on /mnt/root/boot

before doing the chroot, I tried

   sudo cp -a /sys/block /mnt/root/sys

Even though it was done with root privilege I got a lot of read permission
errors,
but a lot stuff did copy, maybe I got what I need.
did the mkinitrd, no errors

Lets try booting from the hard drive.

Hmm there's a splash screen, that's a good sign.

No Joy. It's not booting and complaining about not finding stuff with the
old names.

Did I screw up the grub.conf edits.  Just checked they are ok.

It finds the volume groups with the new names
then complains about the old names:

   Volume group "VolGroup00" not found
Unable to access resume device (/dev/VolGroup00/LogVol01)

Hmm. That's the old name of the swap device.

There's at least one more piece of the puzzle that's missing.

Lets boot up the Live CD again.  And take a closer look at fstab.  Looks
good to me.

-- 
Drew Einhorn

"You can see a lot by just looking."
  --  Yogi Berra
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Network cards not recognised

2010-09-12 Thread Mogens Kjaer
On 09/11/2010 05:04 PM, Gabriel Tabares wrote:
...
> Unluckily, I have no physical access to the machine, so removing cards 
> is not an option.

Do you have iLO access to the machine?

Then you should be able to disable the cards in the BIOS.

Mogens

-- 
Mogens Kjaer, m...@lemo.dk
http://www.lemo.dk
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT: sendmail access - SOLUTION

2010-09-12 Thread Richard Gliebe
On 9/12/10 11:13 AM Richard Gliebe wrote:

> restarted sendmail and checked sendmail.cf
> 
> Now, but I'm still missing the "250-AUTH". I think this will be my problem.

oh my god, I get it running ;-)

problem was a missing Useraccount on CentOS and my access file with:

[...]
Srv_Features: A
[...]

which meens: Don't offer SMTP AUTH on this mx server!!!

thanks all and have a nice sunday ;-)

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


Re: [CentOS] OT: sendmail access

2010-09-12 Thread Richard Gliebe
On 9/12/10 10:28 AM Giles Coochey wrote:

> Well, yes, my sendmail.cf is configured via sendmail.mc... which makes it
> pretty easy...

ok, I retourned to mc Files.

dnl # guaranteed secure.
dnl # Please remember that saslauthd needs to be running for AUTH.
dnl #
define(`confAUTH_OPTIONS', `A')dnl
TRUST_AUTH_MECH(`DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl

restarted sendmail and checked sendmail.cf

Now, but I'm still missing the "250-AUTH". I think this will be my problem.

[r...@mail mail]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 mail..at ESMTP Sendmail 8.13.8/8.13.8; Sun, 12 Sep 2010 
11:05:34 +0200
ehlo localhost
250-mail..at Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
quit

saslauthd is running.

[r...@mail mail]# ps -ef |grep -i sasl
root 29633 1  0 10:03 ?00:00:00 /usr/sbin/saslauthd -m 
/var/run/saslauthd -a pam
root 29635 29633  0 10:03 ?00:00:00 /usr/sbin/saslauthd -m 
/var/run/saslauthd -a pam
root 29636 29633  0 10:03 ?00:00:00 /usr/sbin/saslauthd -m 
/var/run/saslauthd -a pam
root 29637 29633  0 10:03 ?00:00:00 /usr/sbin/saslauthd -m 
/var/run/saslauthd -a pam
root 29638 29633  0 10:03 ?00:00:00 /usr/sbin/saslauthd -m 
/var/run/saslauthd -a pam

SASL is compiled in:

[r...@mail mail]# sendmail -d0.1 < /dev/null
Version 8.13.8
  Compiled with:
DNSMAP HESIOD HES_GETMAILHOST LDAPMAP LOG MAP_REGEX
MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6
NETUNIX NEWDB NIS PIPELINING SASLv2 SCANF SOCKETMAP STARTTLS
TCPWRAPPERS USERDB USE_LDAP_INIT

it makes me stupid 

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


[CentOS] No live migration for xen virtual machines any more

2010-09-12 Thread Dirk H. Schulz
  Hi folks,

I have upgraded my CentOS RHCS cluster hosts to the recent packages, and 
now live migration of the xen virtual machines does not work any more:

[r...@node ~]# clusvcadm -M vm:XenVM -m othernode
Trying to migrate vm:XenVM to othernode...Invalid operation for resource

I have googled the net but found no recent entries for that problem, 
just older posts.

Has anyone had the same problem recently? If yes: is there any workaround?

Any hint or help is appreciated.

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


Re: [CentOS] OT: sendmail access

2010-09-12 Thread Giles Coochey
>
> But, when I'm trying to send an email, the user still becames:
>
> Relaying denied. Proper authentication required.
>
> Before SASL, the user becomes only "Relaying denied"
>
> In Outlook 2003 in Email Preferences, the authentication for smtp is
> activ.
>
> "the outgoing server (SMTP) needed Authentification - same entries as
> the Incoming Server"
>
> same UID and password on outgoing and incoming Server.
>
> I love it on Sunday to work ;-(
>

Well, yes, my sendmail.cf is configured via sendmail.mc... which makes it
pretty easy... there will be an authenticated handling process in
sendmail.cf that sendmail.mc inserts automagically...

e.g.

# authenticated?
R$* $: $1 $| $>"tls_client" $&{verify} $| MAIL
R$* $| $#$+ $#$2
R$* $| $*   $: $1

R<> $@  we MUST accept <> (RFC 1123)
R$+ $:  $1
R<$+>$: <@> <$1>
R$+  $: <@> <$1>
R$* $: $&{daemon_flags} $| $1
R$* f $* $| <@> < $* @ $- > $: < ? $&{client_name} > < $3 @ $4 >
R$* u $* $| <@> < $* >  $:  < $3 >
R$* $| $*   $: $2


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


Re: [CentOS] OT: sendmail access

2010-09-12 Thread Richard Gliebe
On 9/12/10 9:21 AM Giles Coochey wrote:
> I don't know if this is complete, but you could try the following:
> 
> # list of authentication mechanisms
> O AuthMechanisms=EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN
> 
> # Authentication realm
> #O AuthRealm
> 
> # default authentication information for outgoing connections
> #O DefaultAuthInfo=/etc/mail/default-auth-info
> 
> # SMTP AUTH flags
> O AuthOptions=A p
> 
> # SMTP AUTH maximum encryption strength
> #O AuthMaxBits

Hi,

thanks,

I inserted into sendmail.cf and restarted sendmail.

'250-AUTH' still missing

[r...@mail mail]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 mail.tfe.at ESMTP Sendmail 8.13.8/8.13.8; Sun, 12 Sep 2010 09:29:40 
+0200
ehlo localhost
250-mail.tfe.at Hello tfefw1.tfe.local [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
quit

But, when I'm trying to send an email, the user still becames:

Relaying denied. Proper authentication required.

Before SASL, the user becomes only "Relaying denied"

In Outlook 2003 in Email Preferences, the authentication for smtp is activ.

"the outgoing server (SMTP) needed Authentification - same entries as 
the Incoming Server"

same UID and password on outgoing and incoming Server.

I love it on Sunday to work ;-(

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


Re: [CentOS] OT: sendmail access

2010-09-12 Thread Giles Coochey
On Sun, September 12, 2010 07:42, Richard Gliebe wrote:
>
> Now I need the right sendmail.cf entries for SASL-AUTH (we don't work
> with *.mc Files or similar. We directly edit the sendmail.cf files ;-)
>

I don't know if this is complete, but you could try the following:

# list of authentication mechanisms
O AuthMechanisms=EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN

# Authentication realm
#O AuthRealm

# default authentication information for outgoing connections
#O DefaultAuthInfo=/etc/mail/default-auth-info

# SMTP AUTH flags
O AuthOptions=A p

# SMTP AUTH maximum encryption strength
#O AuthMaxBits


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