CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  Yes Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Novell Forums > novell.support.cluster-services Tags:
Item Type: Date Entered: 3/24/2009 5:26:03 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 5 Views: 22 Favorited: 0 Favorite
6 Items, 1 Pages 1 |< << Go >> >|
pattercw <patte
NewsGroup User
NCS and CRONTAB3/24/2009 5:26:03 PM
Reply

0


Howdy :)

So I have an NCS cluster made up of SLES10SP2/OES2SP1 nodes running
traditional Linux Volumes with NCP shares (except the Domains which are
NSS ofcourse).

Fabulous no? Well, no...but we won't go there :) Anyway, now I need
to leverage dbcopy called by crontab to create backups of these post
offices (as trying to back them up directly isn't recommended) to
another server which would then pick it up with Tivoli. This is no
problem on a standalone box.

But you know what I'm going to say next :) :) How do I setup a cron
job to only run a command if the volume and cluster resource are loaded?
And how would I manipulate it so that if there were two clusters
running on one node, it would know to backup the data from both
volumes?

What I understand so far is this : I could just setup the same crontab
on all the nodes and have them run whether the volume is mounted or not.
This is problematic and messy as it's error messages galore. I really
don't want to do that.

On a few web pages, I've heard tell of people using scripting to modify
crontab appropriately, but they weren't at all specific.

Has ANYWAY done anything like this before? Even if you've done it with
HA Linux Clusters I'd like to hear from you.

Thanks!

Chuck


--
pattercw
------------------------------------------------------------------------
pattercw's Profile: http://forums.novell.com/member.php?userid=10117
View this thread: http://forums.novell.com/showthread.php?t=366297

pattercw <patte
NewsGroup User
Re: NCS and CRONTAB3/24/2009 5:26:03 PM
Reply

0


Ugh sorry, in my previous post I said "And how would I manipulate it so
that if there were two clusters running on one node, ". I meant two
VOLUMES (or and resources) on one node.


--
pattercw
------------------------------------------------------------------------
pattercw's Profile: http://forums.novell.com/member.php?userid=10117
View this thread: http://forums.novell.com/showthread.php?t=366297

eichybush <eich
NewsGroup User
Re: NCS and CRONTAB3/24/2009 6:16:02 PM
Reply

0


pattercw;1762221 Wrote:
> Ugh sorry, in my previous post I said "And how would I manipulate it so
> that if there were two clusters running on one node, ". I meant two
> VOLUMES (or and resources) on one node.


You can do this a lot of different ways. You can try to create a file
in on the ncs volume and check for it's presence in the cron script. If
it exists then run the job, otherwise exit.


--
eichybush
------------------------------------------------------------------------
eichybush's Profile: http://forums.novell.com/member.php?userid=6341
View this thread: http://forums.novell.com/showthread.php?t=366297

Brad <bbendily@
NewsGroup User
Re: NCS and CRONTAB3/26/2009 6:31:48 PM
Reply

0

eichybush wrote:

>
> pattercw;1762221 Wrote:
>> Ugh sorry, in my previous post I said "And how would I manipulate it so
>> that if there were two clusters running on one node, ". I meant two
>> VOLUMES (or and resources) on one node.
>
>
> You can do this a lot of different ways. You can try to create a file
> in on the ncs volume and check for it's presence in the cron script. If
> it exists then run the job, otherwise exit.
>
>
Yeah. actually, just create your your script like eichybush said and store
it on the cluster volume.
then in crontab on each box, set the process to run at your specified time
and if the file is there it will run, if not it won't run and will just give
you a message in cron that it couldn't find the file.

Or, you could have crontab run a script that first checks to see if
the file exist using if, like:

if [ -e /media/clusterpart/script ]; then
echo "run script"
else
echo "exiting..."
exit
fi


bb


pattercw <patte
NewsGroup User
Re: NCS and CRONTAB3/27/2009 2:36:01 AM
Reply

0


You two rock. Thank-you so much! I'll give it a shot. I'm a former
Netware guy, and while I understand quite a bit about clustering and
eDirectory etc, I'm ignorant when it comes to Linux scripting :( I
think I need to find a scripting for dummies book and get reading :)


--
pattercw
------------------------------------------------------------------------
pattercw's Profile: http://forums.novell.com/member.php?userid=10117
View this thread: http://forums.novell.com/showthread.php?t=366297

Brad <bbendily@
NewsGroup User
Re: NCS and CRONTAB4/9/2009 3:47:54 PM
Reply

0

pattercw wrote:

>
> You two rock. Thank-you so much! I'll give it a shot. I'm a former
> Netware guy, and while I understand quite a bit about clustering and
> eDirectory etc, I'm ignorant when it comes to Linux scripting :( I
> think I need to find a scripting for dummies book and get reading :)
>
>

i rely on this link to check my syntax. It's a basic tutorial, but it'll
get you started.
http://www.linuxconfig.org/Bash_scripting_Tutorial


bb
6 Items, 1 Pages 1 |< << Go >> >|


Free Download:







exception management application block.

executereader error (microsoft enterprise libraries)

typed dataset always empty - version 3

microsfot enterprise library configuration's trace.log is not working in iis but it is working in my local machine.

difference between addinparameter and sqlparameter

upgrade enterprise library

question w/ ms data access application block

oracle with microsoft enterprise library

caching.expirations.extendedformattime doesnt work

cab working with object model?

suggestions - creating dal using daab

dataset query

invalidoperationexception thrown when using executedataset

how do i insert a wav file into a sql database

disposing the database object

oraclehelper

using enterprise library in multiple apps

xml config not loading as advertised

pag releases user interface process application block - version 2.0

how to handle decimal precision & scale with daab addoutparameter?

encryption settings and key

problem with the stored procedure..

publish exception caught by web.config file

ms daab for oracle - executescalar with stored procedure

error in the data access application block (v1)?

passing connection string to enterprise library daab 3.1

blocking popup window

datalist and caching

problem updating data with enterprise library 2.0

can i use enterprise library - january 2006 in microsoft visual web developer 2005 express edition?

uipab

sql server money and .net data type

why uip block is not in enterprise library?

unable to add reference of microsoft.applicationblocks.data.dll to my webapplication

table lock

good dal component?

config block and asp.net

configuration error in uiprocess application block version 1.0.0.1

event log "category" column

what does this exception mean?

extendedformattime what are the format times

uiprocess - name 'controller' is not declared

cmab & n-tier apps

cant open the .sln solution file for the application block

upload file to sql2005 database

data types in sql server 7.0

oracle daab stored procedure issue

storedproc error - insert - input string was not in a correct format.

executing ddl script

db.execuatereader and transactionscope class

   
  Privacy | Contact Us
All Times Are GMT