Blue Flower

We used to have a massive VM of 2TB running SuSe Linux Enterprise 10 SP3, that was hosted on an Hyper-V cluster

We decommissioned that Hyper-V cluster and moved the SuSe VM to a vSphere environment running 6.0. In this article I'm just going to list the main points that we follow to achieve the completion of this project

 

Reduce the size of the SuSe VM

Personally, I believe that there is something wrong if you have a VM that is bigger than 1TB, this one was hosting 2TB of data which is totally out of order. We acquired an NFS storage server (you can use Nimble, NetApp, EMC, etc) to host those files running on the SuSe, and one that huge drives on the SuSe were empty we needed to detach them from the system without upsetting the kernel. This is what I did:

vi /etc/fstab   //**edit this file and comment out (with a #) the drives that you don't need

  

Handy command for the SuSe:

cat /etc/SuSe-release
cat /etc/issue

ps -ef  //**list of the processes running on the system

ps -ef | grep tomcat

ENABLE ROOT TO LOGIN THROUGH SSH

vi etc/ssh/sshd_config //**edit this file and uncommet the following entry:

#PermitRootLogin yes


AFTER SUSE LINUX ENTERPRISE RESTART:

/usr/local/tomcat/bin# ./startup.sh

/var/log# chwon -R squid:nogroup squid

/var/log# chmod -R 755 squid

rcsquid start

rcsquid status

READ ROOT MAIL

/var/logs# cat root

  

 

The oracle - from Hyper-V to VMware

First of all, shutdown the Oracle 11g do as follows:

//**to check status of the listener:

lsnrctl status listener


cat /etc/oratab //**identify the SID of the database

export ORACLE_SID=PROD  //**export the SID, on this example is "PROD"

sqlplus / as sysdba

shutdown immediate


//**to check status of the database do:

select status from v$instance;

 

At the time of running VMware converter for a SuSe 10 machine, follow this guides:

  1. Use VMware Coverter 5.5
  2. Copy the VM to a standalone ESXi host (not vCenter) with SSH enabled
  3. Define a static IP address in the VMware converter section of "Helper VM network configuration"; ensure that this new IP address is different from the static IP assigned to the source VM
  4. Edit the file /etc/udev/rules.d/70-persistent-net.rules and delete the conflicting eth0, renaming then the VMware nic to "eth0" instead of "eth1"
  5. Edit the file /etc/fstab and set " 1 1" at the end of the entry for every /dev/mapper/mpath mounted file, instead of the current "1 2"

 

 https://docs.oracle.com/cd/B28359_01/server.111/b32009/strt_stp.htm#UNXAR153

 

Change IP address in CentOS

http://ask.xmodulo.com/configure-static-ip-address-centos7.html 

 

Make Linux a FTP server

If you need to add a new hard drive to your Linux VM to cope with the FTP transfer, follow these instructions:

https://www.codero.com/knowledge-base/content/30/111/en/how-do-i-add-a-new-hard-drive-in-linux.html 

Install the webmin as described on this link:

http://www.nazaudy.com/index.php/16-linux/36-install-squid-webmin-and-sent-data-to-splunk-with-centos-7

 

rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm
yum update
yum install proftpd

ProFTPD Server is installed in: /usr/libeexec.webmin/proftpd

cp /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd.conf.orig 

 

 

 

Disable user list at login window:

https://www.centos.org/forums/viewtopic.php?t=54014 

References:

https://forums.opensuse.org/showthread.php/399471-Network-named-eth1-instead-of-eth0

 

 

Print Friendly, PDF & Email

Comments powered by CComment