I have configured RHEL cluster by installing ricci and luci server. I have successfully tested it for httpd service. Now my target is to achive the HA of python. Can anyone help me with it?
Hy,
I am new to linuxquestion.org, however i am mid-level linux administrator.
As per my scenario, I want to cluster python and java services in two nodes running RHEL 6.4. Till now by watching tutorial I have seen application level clustering of linux for eg: webserver, mysql database and so on. However I haven't found any with python & java clustering.
I am already familiar with windows clustering having clustered ip of the two nodes. In my scenario, we have both the options open either going with active-active or active-passive cluster. So I want to some sort of idea to achieve linux os clustering and hence obtained clustered ip.
Further any idea on how this service will float from one node to another. Further, I cannot get to the fencing mechanism in Linux. Any idea for this will be helpful to understand.
Hope to get positive respond ASAP. Thanks in advance for those who help me with this.
Hy All,
I have two nodes running RHEL 6.4 which are in cluster. I have clustered httpd service. Now I have certain application suppose X which reside in SAN partition. Now my job is to only automate this script to run by analyzing httpd status. I have successfully created the script apptrigger.sh whose content is given below,
-bash-4.1$ cat apptrigger.sh
a=0
b=0
c=0
d=0
a="service httpd status"
b=`eval $a`
##### CHECKING WHETHER HTTPD SERVICE IS RUNNING OR NOT #####
if [ "$b" != "httpd is stopped" ]; then
c="bash /switchapp/switch/ezlinkenterprise/bin/ezlink-cluster.sh status"
d=`eval $c`
##### CHECKING WHETHER EZ IS RUNNING OR NOT #####
if [ "$d" != "EzTaskMgr is Running" ]; then
ezstart
fi
fi
I have created this script in say test user. Now when I put this script to automate or run every minute through test user and defined its value in crontab -e of test user whose content is as shown below
$crontab -l
* * * * * /bin/bash /home/test/apptrigger.sh
but this script is running as root user so I cannot get the o/p
I think some environment variable need to be set. Anyone can guide me with this step? Thanks for your views and suggestion.
Unetbootin does not do it and nor does startup disk creator. I the forums are described other ways but too complicated for me. I did find this, with simple instructions
https://ifireball.wordpress.com/2011...tor-on-ubuntu/
sudo aptitude install python-parted isomd5sum python-pyisomd5sum python-urlgrabber extlinux python-qt4 python-qt4-dbus tar
That command should install these packages but all I get is sudo: aptitude: command not found.
isomd5sum
python-parted
python-pyisomd5sum
python-urlgrabber
extlinux
python-qt4
python-qt4-dbus
tar
Does anybody know a simple way to make a Fedora live USB using ubuntu. I was planing to try their Fedora Workstation 22
One week user of Ubuntu v15 and I have tried to install the file Python-3.5.0a1.tar gz but without success. The following points have arisen.
1). The file was downloaded. OK
2). The file was extracted to the Desktop as Python-3.5.0a1
3). Using sudu apt-get install Python-3.5.0a1, the message 'file not found'. Why not!
4). Looking into the extracted files it seems that this is a source package and therefore cannot be installed as is?
5). Finally, using the bash command 'find' it could not find the above file either.
Can someone kindly sort this out for me.
Thanks.
hello Experts!
need some help here with python FTP. so what i'm trying to do is, from a linux machine, ill be sending over a python script to a windows machine via python ftp. that works fine with no problem. now, i want to execute that python script i sent remotely. im having trouble with that. here's my code to just execute the script:
p.s : please dont suggest other options such as python paramiko due to many network security reasons
Code:
ftp = ftplib.FTP("windows machine name")
ftp.login("username", "password")
ftp.cwd("where\\python\\script\\is kept\\")
ftp.sendcmd("python myscript.py")
but looks like it doesn't recognize that command. how do i accomplish this please?
Hi Team,
I have RHEL satellite login credentials and I am able to update successfully my machine.Updating single worked for sometime.
My current requirement is to keep a separate VM locally in my environment and sync the RHEL repo to my machine.
How do I do it.
Thanks in advance
I have just installed Debian "jessie" as well as Python 2.7.9. I have all the OpenSSL packages and I thought everything was working fine until I tried to hit the server using a browser (Chrome) and https://; Once I did that I got this error message on the server end, and ideas on how to resolve this would be great.
Incoming web connection from ('192.168.15.177', 53202)
error: uncaptured python exception, closing channel <main.AlarmServer listening :8111 at 0x75ea7b48> (:certfile must be specified for server-side operations [/usr/lib/python2.7/asyncore.py|read|83] [/usr/lib/python2.7/asyncore.py|handle_read_event|443] [./alarmserver.py|handle_accept|456] [/usr/lib/python2.7/ssl.py|wrap_socket|891] [/usr/lib/python2.7/ssl.py|init|498])
Hello - I have an HP DL180 that I just upgraded to RHEL 6.5 (from RHEL 5.8). Since the upgrade, it is now rebooting automatically at various times during the day. I thought it was like something to do with the power mgr, but it is turned off... I am looking through /var/log files and such for clues but am getting nowhere.
Here is an example of what last shows:
reboot system boot 2.6.32-431.el6.x Tue Mar 31 17:22 - 19:45 (02:23)
What is going on? Evil computer?
Hi
I am getting the below error while trying to install openshift by script openshift.sh
subscription-manager repos --enable=rhel-6-server-ose-2.1-infra-rpms
Error: rhel-6-server-ose-2.1-infra-rpms is not a valid repo ID
I am running a headless Linux 17 media/NAS server. I have setup and tested the plexconnect script and it works. My only issue is that I can't figure out how to get the script to automatically run on startup. I tried using the GUI, but it doesn't seem to work.
To get it to work, I have to open terminal and navigate to the directory:
/usr/local/lib/PlexConnect/
Then run: sudo ./PlexConnect.py
The window has to remain open in order to keep running (which isn't an issue as it's headless). I'd just like to not have to login and start it each time the power goes out, or is rebooted.
I tried editing the crontab file and adding the following variations with no luck:
@reboot python /usr/local/lib/PlexConnect/PlexConnect.py
@reboot /usr/local/lib/PlexConnect/PlexConnect.py
Neither has worked. Does anyone know what I'm doing wrong?
Thanks!