Re: Is automatic wakeonlan possible?
Kevin Dalley wrote: Thanks for the suggestion. A wrapper (or part of the cron job) only handles part of the problem. If the machine has a timeout, say 1 hour, then either solution will allow the estimate to be performed, but the backup itself may fail if it is more than 1 hour between the estimate and the backup. Solutions: 1. Do not allow automatic sleep on servers that need backup. 2. Let the amanda server start a script that keeps the clients wake during the backup time: write a marker-file, and start a script in the background that does wakeonlan e.g. every 15 minutes as long as the file exists. When amdump is finished, remove the file. You could even parse the output of amstatus and let the wakeonlan only bother with machines that have not done yet: amstatus config --waitdumping --estimate --gestimate would list the necessary machines (no need for --dumping, because real activity does not let the machine go to sleep). I would prefer solution number 1. -- Paul Bijnens, XplanationTel +32 16 397.511 Technologielaan 21 bus 2, B-3001 Leuven, BELGIUMFax +32 16 397.512 http://www.xplanation.com/ email: [EMAIL PROTECTED] *** * I think I've got the hang of it now: exit, ^D, ^C, ^\, ^Z, ^Q, ^^, * * F6, quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, * * stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt, abort, hangup, * * PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e, kill -1 $$, shutdown, * * init 0, kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... * * ... "Are you sure?" ... YES ... Phew ... I'm out * ***
Re: Is automatic wakeonlan possible?
Oops. I misread the position of the wrapper. Since the wrapper described on http://www.amanda.org/docs/howto-wrapper.html runs on the client, the wrapper won't work if the client is asleep. Kevin Dalley <[EMAIL PROTECTED]> writes: > Thanks for the suggestion. > > A wrapper (or part of the cron job) only handles part of the problem. > > If the machine has a timeout, say 1 hour, then either solution will > allow the estimate to be performed, but the backup itself may fail if > it is more than 1 hour between the estimate and the backup. > > Matt Hyclak <[EMAIL PROTECTED]> writes: > >> On Thu, Nov 10, 2005 at 06:00:59PM -0800, Kevin Dalley enlightened us: >>> Some machines which I back up are occasionally put to sleep. I have a >>> few options: >>> >>> I could try hard to keep the machines from going to sleep, but any >>> user can put some of the machines to sleep. >>> >>> I could ignore the problem, and skip backing up machines which are >>> asleep. >>> >>> I could use wakeonlan to wake up all of the machines which are subject >>> to narcolepsy. My cron job could easily run wakeonlan for all of the >>> machines before amdump starts. This will usually make the estimates >>> run correctly. The dump itself may fail if the machines automatically >>> sleep. Both dump and estimate are subject to failure if people put the >>> machine to sleep, but this is probably less of a worry. >>> >>> Does amanda have a method of automatically running wakeonlan, or the >>> equivalent? What do other people do? >> >> Most people would either make it part of their cron job, or use a wrapper: >> >> http://www.amanda.org/docs/howto-wrapper.html >> >> Matt >> >> -- >> Matt Hyclak >> Department of Mathematics >> Department of Social Work >> Ohio University >> (740) 593-1263 >> > > -- > Kevin Dalley > [EMAIL PROTECTED] > -- Kevin Dalley [EMAIL PROTECTED]
Re: Is automatic wakeonlan possible?
Thanks for the suggestion. A wrapper (or part of the cron job) only handles part of the problem. If the machine has a timeout, say 1 hour, then either solution will allow the estimate to be performed, but the backup itself may fail if it is more than 1 hour between the estimate and the backup. Matt Hyclak <[EMAIL PROTECTED]> writes: > On Thu, Nov 10, 2005 at 06:00:59PM -0800, Kevin Dalley enlightened us: >> Some machines which I back up are occasionally put to sleep. I have a >> few options: >> >> I could try hard to keep the machines from going to sleep, but any >> user can put some of the machines to sleep. >> >> I could ignore the problem, and skip backing up machines which are >> asleep. >> >> I could use wakeonlan to wake up all of the machines which are subject >> to narcolepsy. My cron job could easily run wakeonlan for all of the >> machines before amdump starts. This will usually make the estimates >> run correctly. The dump itself may fail if the machines automatically >> sleep. Both dump and estimate are subject to failure if people put the >> machine to sleep, but this is probably less of a worry. >> >> Does amanda have a method of automatically running wakeonlan, or the >> equivalent? What do other people do? > > Most people would either make it part of their cron job, or use a wrapper: > > http://www.amanda.org/docs/howto-wrapper.html > > Matt > > -- > Matt Hyclak > Department of Mathematics > Department of Social Work > Ohio University > (740) 593-1263 > -- Kevin Dalley [EMAIL PROTECTED]
Re: Is automatic wakeonlan possible?
--On November 10, 2005 6:00:59 PM -0800 Kevin Dalley <[EMAIL PROTECTED]> wrote: Does amanda have a method of automatically running wakeonlan, or the equivalent? What do other people do? I don't backup desktops/workstations. There's a central fileserver available for things that people want/need to backup on their workstation/desktop.
Re: Is automatic wakeonlan possible?
On Thu, Nov 10, 2005 at 06:00:59PM -0800, Kevin Dalley enlightened us: > Some machines which I back up are occasionally put to sleep. I have a > few options: > > I could try hard to keep the machines from going to sleep, but any > user can put some of the machines to sleep. > > I could ignore the problem, and skip backing up machines which are > asleep. > > I could use wakeonlan to wake up all of the machines which are subject > to narcolepsy. My cron job could easily run wakeonlan for all of the > machines before amdump starts. This will usually make the estimates > run correctly. The dump itself may fail if the machines automatically > sleep. Both dump and estimate are subject to failure if people put the > machine to sleep, but this is probably less of a worry. > > Does amanda have a method of automatically running wakeonlan, or the > equivalent? What do other people do? Most people would either make it part of their cron job, or use a wrapper: http://www.amanda.org/docs/howto-wrapper.html Matt -- Matt Hyclak Department of Mathematics Department of Social Work Ohio University (740) 593-1263
Is automatic wakeonlan possible?
Some machines which I back up are occasionally put to sleep. I have a few options: I could try hard to keep the machines from going to sleep, but any user can put some of the machines to sleep. I could ignore the problem, and skip backing up machines which are asleep. I could use wakeonlan to wake up all of the machines which are subject to narcolepsy. My cron job could easily run wakeonlan for all of the machines before amdump starts. This will usually make the estimates run correctly. The dump itself may fail if the machines automatically sleep. Both dump and estimate are subject to failure if people put the machine to sleep, but this is probably less of a worry. Does amanda have a method of automatically running wakeonlan, or the equivalent? What do other people do? -- Kevin Dalley [EMAIL PROTECTED]