[Spacewalk-list] reposync hang- lost spacewalk urgently

Bushby, Bruce (London)(c) bbushby at maninvestments.com
Thu Mar 11 10:12:46 UTC 2010


Hi Rob

Most dhcp servers always hand out the same ipaddress so even though you
can't access your host via "dns name" you can still configure your host
with it's FQDN.

As an example, if your system is called "spacewalk" and you domain is
"myoffice.com", then make sure your /etc/hosts file at least looks like
the following:
 #
127.0.0.1 		localhost.localdomain localhost
#
192.168.100.10		spacewalk.myoffice.com	spacewalk
#

Then edit /etc/sysconfig/network to look something like this:
NETWORKING=yes
HOSTNAME=spacewalk.myoffice.com


Then run the hostname command, giving it your FQDN:
/bin/hostname spacewalk.myoffice.com

Test things, type
/bin/hostname

It should return your FQDN
/bin/ping FQDN


Then restart spacewalk
Rhn-satellite stop
/etc/init.d/oracle-xe stop
Rhn-satellite start

You may find that you have issues with jabber/ssl due to hostname
changes....I always setup /etc/hosts and hostname before installing
spacewalk

Also, when you did your installation, did you setup your Oracle listener
as "localhost" .... I've had some issue with Oracle-xe and the listener.

This is how I install Oracle.....good luck, hope this helps!



#-------------------------------
echo "Installing 32bit libs"
yum -y install bc libc.so.6 libaio.so.1 > $BASE/log/yum-install32bit.log
2>&1
sleep 1
echo ""


echo "Installing Oracle"
rpm -ivh ./oracle/oracle-xe-univ-10.2.0.1-1.0.i386.rpm >>
$BASE/log/oracle-install.log 2>&1
rpm -ivh ./oracle/oracle-instantclient-basic-10.2.0.4-1.x86_64.rpm >>
$BASE/log/oracle-install.log 2>&1
rpm -ivh ./oracle/oracle-instantclient-sqlplus-10.2.0.4-1.x86_64.rpm >>
$BASE/log/oracle-install.log 2>&1
sleep 1



echo "Installing 32bit compat libs"
yum -y install oracle-lib-compat >
$BASE/log/yum-installoracle-lib-compat.log 2>&1
sleep 1

echo "Creating oracle-xe configure answer file"
cat >> /tmp/xe-configure.txt << 'EOF'
9055
1521
spacewalk
spacewalk
y
EOF
sleep 1

echo "Configuring oracle-xe..."
/etc/init.d/oracle-xe configure < /tmp/xe-configure.txt >
$BASE/log/oracle-xe-configure.log 2>&1
/bin/rm -f /tmp/xe-configure.txt
/etc/init.d/oracle-xe stop
sleep 1

echo "Create tnsname.ora"
cat >> /etc/tnsnames.ora << 'EOF'
XE =
    (DESCRIPTION =
       (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
       )
       (CONNECT_DATA =
          (SERVICE_NAME = xe)
       )
    )
EOF


echo "Restarting oracle"
/etc/init.d/oracle-xe start
sleep 1
echo ""

echo "Connecting to Oracle, creating spacewalk user"
sqlplus 'sys/spacewalk at xe as sysdba' << 'EOF'
create user spacewalk identified by spacewalk default tablespace users;
grant dba to spacewalk;
quit;
EOF
sleep 1

echo "Configuring oracle spacewalk user"
sqlplus 'spacewalk/spacewalk at xe' << 'EOF'
alter system set processes = 400 scope=spfile;
alter system set "_optimizer_filter_pred_pullup"=false scope=spfile;
alter system set "_optimizer_cost_based_transformation"=off
scope=spfile;
quit;
EOF
sleep 1

echo "Restarting oracle"
/sbin/service oracle-xe restart
sleep 1
echo ""

#-----------------------------------------------






-----Original Message-----
From: spacewalk-list-bounces at redhat.com
[mailto:spacewalk-list-bounces at redhat.com] On Behalf Of rob morrien
Sent: 11 March 2010 09:44
To: spacewalk-list at redhat.com
Subject: Re: [Spacewalk-list] reposync hang- lost spacewalk urgently

> On Tue, 9 Mar 2010, rob morrien wrote:
>
>> Starting httpd: httpd: Could not reliably determine the server's 
>> fully qualified domain name, using 127.0.0.1 for ServerName
>
> That doesn't sound good.
>
> Does the output of 'hostname' and the IP on eth0 have a matching entry

> in /etc/hosts?
>
> Does hostname return an FQDN?
>
> j

john

we run dhcp at this moment i can only access to the system using an
ip-adress

rob

>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>




_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

**********************************************************************
 Please consider the environment before printing this email or its attachments.
The contents of this email are for the named addressees only.  It contains information which may be confidential and privileged.  If you are not the intended recipient, please notify the sender immediately, destroy this email and any attachments and do not otherwise disclose or use them. Email transmission is not a secure method of communication and Man Investments cannot accept responsibility for the completeness or accuracy of this email or any attachments. Whilst Man Investments makes every effort to keep its network free from viruses, it does not accept responsibility for any computer virus which might be transferred by way of this email or any attachments. This email does not constitute a request, offer, recommendation or solicitation of any kind to buy, subscribe, sell or redeem any investment instruments or to perform other such transactions of any kind. Man Investments reserves the right to monitor, record and retain all electronic communications through its network to ensure the integrity of its systems, for record keeping and regulatory purposes. 
Visit us at: www.maninvestments.com 
TG0908
**********************************************************************





More information about the Spacewalk-list mailing list