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: 14 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:







using collections in a class

how to make asp.net page open a terminal emulator

encoding type for images

help with server side form printing.

what are different?

converting a vb6 application to asp

uploading mp3 files and video files to the server.......

connection leak

missing an "official" word about changes between versions

is it really free?

does not match delegate

should i fill dropdowns from code behind or class

multiple tables help

global variable

style a wizard control using css

javascript email domain validation

creating a folder on the server

security exception: aspnethostingpermission

urgent help needed!

thoughts please

determine debug/release mode

iis blues

help with global function accessed from aspx code.

conversion from string "14-01-08" to type 'date' is not valid error

how to display what time it will be in x minutes based off of computer's clock?

image upload and resize

"could not load type" error

tool tip on webchart control

creating a mail application

asp 3.0

sending email to a distribution list within asp.net

what are benefits to use inheritance

issues with quotes

credit card application

what is the best way to create dynamic sql queries?

please help me fix this code to make it work properly

not able to access file thorugh url

asp.net v2.0

newbie - how do i get started?

how to use the select name to show in the internal workgroup/domain.

looking for a good wysiwyg editor

what does this means?

on browser close intreacting with server

select statement help - last 30 days

using asp.net components

setting variable equal to dataset column

url mappings from database

hw to pass parameters between applets and aspx page

at the web site provider, what type of service is required to make express2005 work with db

seeking advice regarding vswebcache

   
  Privacy | Contact Us
All Times Are GMT