Programming :: Shutdown Two Nodes With Dependencies?

Mar 16, 2010

I have a cluster script (CentOS 5.4) and I need a UPS for a shutdown. It should look like this ... The first node must wait until the second node has completed several actions and has been completely shut down. So I need a script with a shutdown wait until the other node is ... I was thinking of a test using ping. Alternatively, I would also have an IPMI interface. However, the "pause" may last a maximum of 10 minutes ... Then the wait must be ended.

View 10 Replies


ADVERTISEMENT

Server :: Shutdown The Nodes From The Master Terminal Using "shutdown -h Now" Get Shutdown?

Dec 10, 2010

I have installed a cluster computer with 10 nodes . The manufacturer is HP . All nodes and the master node have redhat enterprise linux installed in them . When I shutdown the nodes from the master terminal using "shutdown -h now" they get shutdown . But they dont get completely turned off . This issue bothers me when the power supply is given , all nodes boot up simultaneously generating a huge heat .

Thing to note : When we shutdown our PC they get completely turned off . When the power supply is given , a press on the Power On button is required to boot the system. But , why does it not happpen in the case of cluster? Is there any other way of completely turning off the nodes from the master terminal ?

View 1 Replies View Related

Programming :: Traverse Through The XML Nodes?

Jul 12, 2011

I have a xml file and I read it within a php file with XML dom. This is the node structure of my xml file :

<Root><name></name>
<surname></surname>
<ID></ID>
<department></department>

[code]....

In the comment line, I've got the parent node of the current node. Parent node is "User" node. I would like to obtain the children of this parent node, say "name","surname " etc. How can I do this? Is there any function such as : "$parent_nodes->bringChildren('name')".

View 1 Replies View Related

Programming :: Event Device Nodes And Xorg?

Oct 14, 2010

When i create a new event device (/dev/input/event) it is automatically grabbed by Xorg:

Code:
(II) config/udev: Adding input device Keypad Emulation Driver (/dev/input/event7)
(**) Keypad Emulation Driver: Applying InputClass "evdev keyboard catchall"

[code]....

View 1 Replies View Related

Programming :: Library Dependencies And G++

Apr 18, 2010

How to make simple games (snake, pong... nothing too fancy). I have completed making snake and now want to be able to distribute it. I built it using C++ and wxWidgets so it would be multi-platform. I'm able to compile it and run it in both Windows and Ubuntu using g++. In windows, I was able to distribute it by putting a *.dll file in the same folder as the executable. However in Linux, I don't understand what I need to do so that it would run on any installation of Ubuntu out of the "box". When I build it and try to run it in a different installation of Ubuntu (which has g++) it gives me an error saying that a particular library file was not found and Getlibs fails to find that library file.

Is there a way to build a project with G++ so that all the dependencies are either packaged in the executables or copied into the folder....?

View 3 Replies View Related

Programming :: Compiling Libusb C++ Program To Run Without It's Dependencies?

Aug 6, 2010

I've built a piece of hardware that communicates using usb. I was wondering could I make a libusb based program run on it's own without gcc/ libusb

View 10 Replies View Related

Programming :: Dependencies For Graphics - How To Download Them As A Bundle

Jan 26, 2010

I'm writing simple programs using C++ on CodeBlocks, now I got stuck on a bus reservation program which need the following header files

#include "conio.h"
#include "stdio.h"
#include "iostream.h"
#include "string.h"
#include "graphics.h"
#include "stdlib.h"
#include "dos.h"

[Code]...

My question is how to dowload all these in interface folder instead of downloading one by one? Tried googling but no success.

View 2 Replies View Related

Programming :: Build All Project Dependencies On Fedora/RedHat-based Systems?

Sep 17, 2010

On Debian, if I want to compile some package X myself, but I don't want to spend time hunting down and installing its dependencies, I can issue the following command:

Code:
apt-get build-dep X

And apt (so long as it knows about package X) will install all the dependencies for me.Does the yum package manager on RedHat-based systems have a similar feature?

View 1 Replies View Related

Programming :: Shutdown Multiple Computers Via SSH (Try Different Passwords)

Oct 1, 2010

I'm trying to write a mass reboot script in the event of a power outage (servers go to UPS for some 15 minutes or so and shutdown uncleanly). What I have is a set of 6 common passwords which will be prompted for per ssh connection, is there any way I can cycle through this password list

Code:
#below is an example of how this is constructed, IP's are used instead of hostnames due to the possibility of a DNS server being offline.
SERVERSRM1="1 2 3"
SERVERSRM2="110 120 130"
For i in $SERVERSRM1; do ssh -n root@192.168.0.$i "hostname && shutdown -y -i5 -g0"; done;'
for i in $SERVERSRM2; do ssh -n root@192.168.0.$i "hostname && shutdown -y -i5 -g0"; done;'
Each time the code is executed I'm prompted for a password (it's always one of 6 passwords). It would be quicker to have the passwords be cycled through.

I realise this is basic code at the moment but it will eventually allow for a specific set of computers to be shut down based on what power supply they're using. Authorized keys not really an option given the scale of computers (some 300 or so).

View 10 Replies View Related

Programming :: How To Properly Clean Up On Asynchronous Or Sudden Shutdown

Jun 6, 2010

I have an user space application that performs file I/O operations, when a SIGKILL is captured, some routines are done first to ensure that all I/O operations are completed before rebooting the application or system. My question is, this won't work if the power button is pressed or the power supply is disconnected, so there can be incomplete I/O operation or corrupted data written into the file, so is there a way to prevent data corruption or at least complete any ongoing operation when this scenario happens? Assuming there is at most 1 second before the power really went out, can I/O be still completed?' I'm running the application on a busybox 2.6.14 kernel on an embedded system board.

View 1 Replies View Related

Programming :: Create A Shell Script That Would Automatically Backup And Shutdown?

Oct 14, 2010

I would like to develop a shell script that would automatically run a backup program and then shutdown the computers, but I do not know the first thing about script development or even writing scripting.

View 2 Replies View Related

Programming :: START And STOP Oracle Automatically On System Startup And Shutdown?

Aug 17, 2009

I have installed Oracle 11g on 5.3. Now, I am trying to START and STOP oracle automatically on system startup and shutdown. I am following this link To have this effect, I have created /etc/init.d/dbora

Code:

#!/bin/sh
# chkconfig: 345 99 10
ORA_HOME=/oracle/app/oracle/product/11.1.0/db_1

[code]....

View 4 Replies View Related

Debian :: Sendmail On Nodes ?

Jun 17, 2010

I ise debian lenny on both server and nodes. Nodes are in sence of drbl drbl project.

So, my sendmail on server works well but on nodes in syslog i see:

Code:

Configuration of sendmail on server and nodes is same and it is:

Code:

View 2 Replies View Related

General :: Set Anchor Nodes In NS2?

Oct 22, 2010

How to set the anchor node in NS2? How to define the channel propagation model as Log Normal Shadowing instead of two ray ground reflection model in NS2?

View 2 Replies View Related

General :: Add Keys To The Sensor Nodes?

Feb 5, 2010

i want to add keys to the sensor nodes. Hence i want to know whether there is any parameter for key storage in senor nodes

View 1 Replies View Related

Networking :: Discover All Network Nodes And Their Ips?

Feb 7, 2011

i need to discover all network nodes and their ips is their a way to do it, then if i need to discover certain nodes which runs certain program. I'm using Fedora14 and FreeBSD

View 2 Replies View Related

Ubuntu Servers :: Can A VM Span Multiple Nodes

Mar 3, 2010

I'm trying to work with a project manager and some hardware guys and all of us are trying to get a grasp on the UEC.

1. Can a VM span multiple nodes?

2. If a website scales beyond 100% CPU on a node, does it automatically spill over to another node and start using processing power there?

3. Do I have to rewrite the code of my web app (such as WordPress) so that it works in a private cloud?

4. Does KVM support virtual memory such that when I run out of RAM it uses paging?

5. How is UEC any different than me bringing up several servers with several VMs inside, and then moving VMs around as I need? Is it really a cloud where the VMs exist in a cloud, not necessarily a node?

6. If I power off a node while it's hot, how can I assure myself that the data will be okay?

7. Do I want to use SCSI attached RAID, or NAS, or NFS? We're simply trying to host thousands of blogs and LAMP sites in a way that we can handle spike loads.

8. Do I attach the disk volumes to the cluster controller and then run a command such that the nodes can mount those virtual volumes?

9. Do I need to run another command on the VMs to mount volumes that the nodes can see?

10. What is the role of the storage controller and how is it separate from the cluster controller?

11. How many systems, minimum, do we need to get this tested out?

12. For testing purposes, can I install UEC on an Intel P4 server and then a node on Intel P3 server -- even with some limitations?

13. Let's imagine I have 5 node servers, and one catches fire and is a total loss. Can I get those VMs back and get that data back? What would have to be the proper config to make that happen?

View 1 Replies View Related

Ubuntu Servers :: Configure Clustering For 2 Nodes?

Mar 11, 2010

I want to connect two systems in clustering concept. am new for clustering configuration. I have installed ubuntu 9.10 server edition in two system. what do to the next step to configure clustering in ubuntu 9.10 server edition.

View 1 Replies View Related

Ubuntu :: ISCSI Login But No Device Nodes?

Aug 17, 2010

I'm running 10.04 64-bit diskless on ESXi, installed as a minimal virtual machine. I want this server to access an iSCSI drive. The machine can view the iSCSI shares with iscsiadm, and can even log into the drive. When I do an iSCSI login, this appears in /var/log/messages:

Aug 17 11:08:21 ubuntutest kernel: [1123295.329972] scsi4 : iSCSI Initiator over TCP/IP

So, it appears that open-iSCSI is working correctly. But no new /dev/sd* nodes appear, and nothing new appears in /dev/disk/by-path. I'd expect to see /dev/disk/by-path/ip-XXXXXXXXX. fdisk -l shows nothing but the boot drive. My guess is that the "minimal kernel" doesn't include some necessary module or driver.

View 1 Replies View Related

General :: Get Certificate For Web Server And Cluster Nodes?

Mar 10, 2010

I have two Web server (RHEL 5.3) as cluster. i want to get a certificate for website. do i need to get two certificates for a website?

View 2 Replies View Related

Slackware :: Udev Not Creating Usb/hiddev* Nodes?

Dec 3, 2010

Are there any prerequisites which much be met in order for udev to create /dev/usb/hiddev* nodes?

I have two Slack 13.0 systems, each connected to a APC UPS via USB, one of which creates a hiddev0 node and the other doesn't. apcupsd can't find the UPS unless this node is present.

The "working" system has been stable in its current configuration for so long that I honestly can't remember if I had to tweak anything in this regard. I've verified that it doesn't use any local udev rules to create this node, and to the best of my knowledge there are no external scripts or processes which would create it either.

The non-working system has a similar configuration - no local rules and/or scripts which touch usb devices or nodes.

View 6 Replies View Related

CentOS 5 :: 2 Nodes Cluster Hang At Startup?

Feb 17, 2010

I have an annoying problem with a 2 nodes cluster that I don't understand.

One of my server is totally shutdown.

When I start cman after a reboot on the other server, it hangs on "Starting fencing...". The process which is actually hanging is : /sbin/fence_tool -w -t 300 -m 45 join

When I start this program manually, I get this output :

# /sbin/fence_tool -w -t 300 -m 45 join
Waiting for all 2 nodes to be members
Waiting for all 2 nodes to be members
Waiting for all 2 nodes to be members
Waiting for all 2 nodes to be members
(and so on...)

What I don't understand is why the fence_tool program wait for the 2nd node to join the cluster and don't fence the other node.

Here is my cluster.conf :

<?xml version="1.0"?>
<cluster name="ctpsrv-bdd" config_version="7">
<fence_daemon clean_start="0" post_fail_delay="0" post_join_delay="20"/>
<cman expected_votes="1" two_node="1"/>

[Code]....

Would it be a good idea to edit the cman startup script and remove the "-w" option of command fence_tool join, so the command do not hang up ?

View 4 Replies View Related

Fedora :: Shutdown Policy Triggered By Vncserver - Computer Refuses To Shutdown Normally

Feb 5, 2011

Recently I installed vncserver (tigervnc) on my desktop. Ever since my computer refuses to shutdown normally. At shutdown the following message pops up: Quote: System policy prevents stopping the system when other users are logged in Then I have to enter the root password to shutdown. If I stop vncserver before, the computer shuts down normally.

[Code]....

View 2 Replies View Related

Ubuntu :: Monitor Out Of Sync During Boot And Shutdown (also Shutdown Hang)?

Jun 30, 2010

when my pc boots and shuts down my monitor goes into 'input out of range' mode for a bit between the gui and the text only phases of boot/shutdown.is there a way to fix this? or where to start troubleshooting?also, when it shuts down it hangs after coming back to the text only part

View 4 Replies View Related

Fedora Servers :: Creating The Initial Device Nodes?

Sep 16, 2009

I'm putting a server together and have run into a boot up problem. (I thought about putting this in the server forum, but it might be a more generic problem that others have seen and know how to rectify.) The install seems to have gone just fine. I have the /boot partition on an internal IDE drive. The rest of that drive and another are mirrored in a Raid0 configuration (using the Linux software to do that) for data storage. The swap partition is a part of the Raid5 SCSI array that also has the / (root) partition on it.

After installation it would not finish the booting process. I suspected that GRUB didn't like all the Raid arrays and such, but it seems to be fine. I can say that because the machine will boot into rescue mode with the GUI splash screen and I have access to the whole directory tree. I have already searched on-line and following prudent advice, ran the yum update while in the chroot /mnt/sysimage mode. That only took overnight to download and most of this morning to complete. Still no dice. Used vim to delete the rhgb quiet commands in the grub.conf file so I could see where the kernel seems to be hanging.

So right after the "Creating initial device nodes" is a line about my generic PS2 wheel mouse. So I tried a USB mouse. Got more output so tried swapping out to a USB keyboard. Got a little further with more information about input devices, but still stops. Also, I tried a PCI video card just to make sure the onboard video wasn't the problem - no change. So, if someone in the Fedora community knows what loads up or is configured right after the mouse and keyboard, I might be able to figure out what's causing the computer to hang during the boot process.

View 2 Replies View Related

Fedora Servers :: Process Of Updating All The Clients Nodes To The Same OS?

Jun 22, 2011

I'm having a problem with NFS. I'm trying to mount /home, which is on the server, to the client nodes. The server is currently running FC14 (64 bit) and I'm in the process of updating all the clients nodes to the same OS. Currently, all the client nodes are running FC8 (32 bit) and are capable of mounting /home on the server. However, the one client node that I have updated to FC14 is having problems mounting /home. I can ssh to the node with no problem however I get the following message:

Could not chdir to home directory /home/myuserid: Permission denied. Now, if I excute the following command: "sudo mount -a" I get no errors and now I can see my home directory.

View 9 Replies View Related

Networking :: RIP V2 - OSPF Dynamically Adding And Removing Nodes

Dec 3, 2009

I am deciding to whether use OSPF or RIPv2 on my network. The key point for me is how good each of them are in dynamically adding and removing nodes. I am pretty sure that OSPF works well if a node is suddenly dropped or a new one is introduced( Please correct me if I am wrong). how good RIPv2 is at this.

View 1 Replies View Related

Slackware :: Kernel Supplying Strange Nodes And Symlinks On /dev

Aug 17, 2010

I use Slackware 13.0. I just upgraded from 2.6.32 to 2.6.35. On 2.6.35, the kernel supplying strange non-existant node like hda* and many symlink like cdr cdr0 cdrom cdrom0 etc. Well, i use libata and disable the old ATA driver, so my HDD should only be displayed as sd**. Also, i've checked all the udev rules, and i don't see any SYMLINK entries that would produce that cdr cdr0 links. My 2.6.32 and 2.6.35 config are identical. Everything were working normally on 2.6.32. Btw, i've tried to upgrade to 13.1. Then boot the standard huge.smp kernel. The same problem occured too. And with other problem i get with 13.1, i decided to downgrade to 13.0.

View 2 Replies View Related

CentOS 5 :: Caching Yum Rpms To Update Multiple Nodes?

Dec 3, 2010

As I was updating machines today, I was wondering... Is there some way to cache the RPM files locally that yum is grabbing? Like many, I have a number of VMs I run, and it most updates are the same between the nodes. I'm guessing I'd need some sort of http cache? Just looking for pointers, not sure what I'm looking for, however.

View 4 Replies View Related

General :: Locate Shutdown Log For Linux Shutdown (RHL 5.1-2.6.18-53.el5PAE)

Apr 22, 2010

I cannot locate shutdown log for Linux shutdown to check various activities carried out during shutdown. I can view Startup Log which is availble on console>Applications>System Tools>System Logs.

I have included Shutdown/Startup in dbora, so that Oracle 10gR2 Shutdown/Startup will be automated during OS Shutdown/Startup.

I want to check Shutdown log because Oracle Shutdown was not running, as from $ORACLE_HOME/shutdown.log contains no entries, where as startup log contains latest startup details.

That means here 2 issues are there. One, I want to locate OS Shutdown Log and the other being Why Oracle Shutdown not getting executed.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved