Re: Power Cut

2016-10-31 Thread Andre Majorel
On 2016-10-30 12:25 +0300, Reco wrote:
> On Sun, 30 Oct 2016 10:06:30 +0100
> Andre Majorel <aym-nai...@teaser.fr> wrote:
> > On 2016-10-29 23:37 -0700, Hadi Motamedi wrote:
> > >
> > > Can you please do me favor and let me know if there is any log
> > > on my debian server that I can check to see if there would be
> > > many frequent power cut there ?
> > 
> > If you mean reboots, you could try something like
> > 
> >   zgrep ' Command line: BOOT_IMAGE=' /var/log/syslog*
> > 
> > Alternatively, look into commands such as last(1), uptime(1),
> > utmpdump(1) or who(1).
> 
> Won't a simple "last | grep boot" suffice?

If the man page is not lying, "last reboot" will. But none of
the machines I have access to reboot often enough for me to make
sure.

-- 
André Majorel <http://www.teaser.fr/~amajorel/>
Plusieurs grandes marques de spambots recommandent lists.debian.org.



Re: Power Cut

2016-10-30 Thread Gene Heskett
On Sunday 30 October 2016 08:03:57 Lisi Reisz wrote:

> On Sunday 30 October 2016 07:36:23 Gene Heskett wrote:
> > I'd also
> > see if natural gas is available at the site, so that a generator can
> > be started when the main power fails.
>
> Gene -  Why only natural gas?  Is this a linguistic matter or
> technical? Why would this not work with say, coal gas, Calor gas
> (which can be at any site) etc..  Why only *natural* gas?  Or is
> "natural gas" US-speak for "gaseous gas" as opposed to liquid gas,
> which you call gas and we call petrol?
>
> Lisi

Thats the common terminology on this side of the pond, to distinguish it 
from propane, which can also be used, but propane is normally stored in 
high pressure tankage of from 100 lbs to 5000 gallons.  Natural comes 
from the well with a bit of debris filtering and would not be used up 
until that well network was out of gas, possibly another 100 years.  The 
propane tanks contents OTOH, will eventually be used up and will require 
refilling.  So we tend to equate "natural" as a continuously available 
supply.

So yes, language differences. As has been said many times, Great Britain, 
and the USA, two great  countries separated by a common language. :)

Somehow, I get the impression that the OP may be in the back country of 
India, but he has not confirmed it.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Re: Power Cut

2016-10-30 Thread Lisi Reisz
On Sunday 30 October 2016 07:36:23 Gene Heskett wrote:
> I'd also
> see if natural gas is available at the site, so that a generator can be
> started when the main power fails.

Gene -  Why only natural gas?  Is this a linguistic matter or technical? Why 
would this not work with say, coal gas, Calor gas (which can be at any site) 
etc..  Why only *natural* gas?  Or is "natural gas" US-speak for "gaseous 
gas" as opposed to liquid gas, which you call gas and we call petrol?

Lisi



Re: Power Cut

2016-10-30 Thread Reco
Hi.

On Sun, 30 Oct 2016 10:06:30 +0100
Andre Majorel <aym-nai...@teaser.fr> wrote:

> On 2016-10-29 23:37 -0700, Hadi Motamedi wrote:
> 
> > I am using a debian server for cdr billing and mediation
> > device on a remote network. I am experiencing problem that I
> > am suspicious it comes from main supply power cut at the
> > remote site. The power supply to the remote site comes from
> > battery charger that will be automatically switched in circuit
> > under main supply power cut but cannot provide adequate power
> > for more than 2 hours . I am suspicious that the remote system
> > is suffering from many frequent main supply power cut.
> >
> > Can you please do me favor and let me know if there is any log
> > on my debian server that I can check to see if there would be
> > many frequent power cut there ?
> 
> If you mean reboots, you could try something like
> 
>   zgrep ' Command line: BOOT_IMAGE=' /var/log/syslog*
> 
> Alternatively, look into commands such as last(1), uptime(1),
> utmpdump(1) or who(1).

Won't a simple "last | grep boot" suffice?

Reco



Re: Power Cut

2016-10-30 Thread Andre Majorel
On 2016-10-29 23:37 -0700, Hadi Motamedi wrote:

> I am using a debian server for cdr billing and mediation
> device on a remote network. I am experiencing problem that I
> am suspicious it comes from main supply power cut at the
> remote site. The power supply to the remote site comes from
> battery charger that will be automatically switched in circuit
> under main supply power cut but cannot provide adequate power
> for more than 2 hours . I am suspicious that the remote system
> is suffering from many frequent main supply power cut.
>
> Can you please do me favor and let me know if there is any log
> on my debian server that I can check to see if there would be
> many frequent power cut there ?

If you mean reboots, you could try something like

  zgrep ' Command line: BOOT_IMAGE=' /var/log/syslog*

Alternatively, look into commands such as last(1), uptime(1),
utmpdump(1) or who(1).

If you mean power outages short enough to not cause the computer
to shut down or reboot, I suspect you'd need special hardware to
monitor the mains voltage and report variations to the computer.
I don't think your ordinary ATX power supply does that but lots
of UPS do.

-- 
André Majorel <http://www.teaser.fr/~amajorel/>
bugs.debian.org, your one-stop shop for email addresses.



Re: Power Cut

2016-10-30 Thread Hadi Motamedi
Thank you very much for your reply . I got the point and it seems that the
/var/log/messages are more handy .
Thank you again for your time


On Sun, Oct 30, 2016 at 12:36 AM, Gene Heskett <ghesk...@shentel.net> wrote:

> On Sunday 30 October 2016 02:37:28 Hadi Motamedi wrote:
>
> > Dear All
> > I am using a debian server for cdr billing and mediation device on a
> > remote network. I am experiencing problem that I am suspicious it
> > comes from main supply power cut at the remote site. The power supply
> > to the remote site comes from battery charger that will be
> > automatically switched in circuit under main supply power cut but
> > cannot provide adequate power for more than 2 hours . I am suspicious
> > that the remote system is suffering from many frequent main supply
> > power cut . Can you please do me favor and let me know if there is any
> > log on my debian server that I can check to see if there would be many
> > frequent power cut there ?
> > Thank you for your time
>
> Likely the only log will be /var/log/messages, which will show the reboot
> time when power has been restored, IF the server is set to auto-boot
> when power is restored. That should show when it restarted but may not
> log the power failure because it doesn't have time to write the log.
> So you can get your restart times, but not the fail time.
>
> Is that "battery charger" smart enough to be interfaced with nut?
>
> Thats short for Network UPS Tools, which can monitor and log such
> activities, and even issue a clean shutdown to the whole system running
> on this emergency power when the battery is nearly depleted. I'd also
> see if natural gas is available at the site, so that a generator can be
> started when the main power fails.
>
> Going whole house and all my toys I have a 20 Kwh Generac here that
> starts automatically, so I have power back up in about 5 seconds, but
> that was in the $7000 range installed.  The wife has copd, and long
> periods w/o the AC are very hard on her, so I did what I had to do.
> This machine has a UPS, but most of the others here are set to
> auto-reboot when power is restored.
>
> Enterprising individuals can likely setup much smaller emergency/standby
> power since all it would take in a pi or arduino and some programming to
> send the start and stop commands if it had an electric starter and
> kill.  You will need a "transfer" switch which must absolutely prevent
> any locally generated power from feeding out into a failed power line as
> that might kill someone trying to restore the power some distance away
> from your site.
>
> Here in the states, kohler, generac, & a dozen house brands peddle
> smaller such generators, but are not always proportionately priced. Most
> of the teeny ones are 2 strokers, needing mixed fuel, don't have
> electric starters and in my experience are run 3 or 4 times junk so you
> wasted that $300. I suspect you are not in the "states" so I don't have
> a good idea what may be locally available for you.
>
> Just throwing out ideas to see if anything "sticks to the wall" :)
>
> Cheers, Gene Heskett
> --
> "There are four boxes to be used in defense of liberty:
>  soap, ballot, jury, and ammo. Please use in that order."
> -Ed Howdershelt (Author)
> Genes Web page <http://geneslinuxbox.net:6309/gene>
>
>


Re: Power Cut

2016-10-30 Thread Gene Heskett
On Sunday 30 October 2016 02:37:28 Hadi Motamedi wrote:

> Dear All
> I am using a debian server for cdr billing and mediation device on a
> remote network. I am experiencing problem that I am suspicious it
> comes from main supply power cut at the remote site. The power supply
> to the remote site comes from battery charger that will be
> automatically switched in circuit under main supply power cut but
> cannot provide adequate power for more than 2 hours . I am suspicious
> that the remote system is suffering from many frequent main supply
> power cut . Can you please do me favor and let me know if there is any
> log on my debian server that I can check to see if there would be many
> frequent power cut there ?
> Thank you for your time

Likely the only log will be /var/log/messages, which will show the reboot 
time when power has been restored, IF the server is set to auto-boot 
when power is restored. That should show when it restarted but may not 
log the power failure because it doesn't have time to write the log.
So you can get your restart times, but not the fail time.

Is that "battery charger" smart enough to be interfaced with nut?

Thats short for Network UPS Tools, which can monitor and log such 
activities, and even issue a clean shutdown to the whole system running 
on this emergency power when the battery is nearly depleted. I'd also 
see if natural gas is available at the site, so that a generator can be 
started when the main power fails.

Going whole house and all my toys I have a 20 Kwh Generac here that 
starts automatically, so I have power back up in about 5 seconds, but 
that was in the $7000 range installed.  The wife has copd, and long 
periods w/o the AC are very hard on her, so I did what I had to do.
This machine has a UPS, but most of the others here are set to 
auto-reboot when power is restored.

Enterprising individuals can likely setup much smaller emergency/standby 
power since all it would take in a pi or arduino and some programming to 
send the start and stop commands if it had an electric starter and  
kill.  You will need a "transfer" switch which must absolutely prevent 
any locally generated power from feeding out into a failed power line as 
that might kill someone trying to restore the power some distance away 
from your site.

Here in the states, kohler, generac, & a dozen house brands peddle 
smaller such generators, but are not always proportionately priced. Most 
of the teeny ones are 2 strokers, needing mixed fuel, don't have 
electric starters and in my experience are run 3 or 4 times junk so you 
wasted that $300. I suspect you are not in the "states" so I don't have 
a good idea what may be locally available for you.

Just throwing out ideas to see if anything "sticks to the wall" :)

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>



Power Cut

2016-10-30 Thread Hadi Motamedi
Dear All
I am using a debian server for cdr billing and mediation device on a remote
network. I am experiencing problem that I am suspicious it comes from main
supply power cut at the remote site. The power supply to the remote site
comes from battery charger that will be automatically switched in circuit
under main supply power cut but cannot provide adequate power for more than
2 hours . I am suspicious that the remote system is suffering from many
frequent main supply power cut . Can you please do me favor and let me know
if there is any log on my debian server that I can check to see if there
would be many frequent power cut there ?
Thank you for your time


Linux server power cut

2009-03-30 Thread hadi motamedi
Dear All
Can you please technically let me know why the Linux servers suffer from
sudden power cut ?
Regards
H.Motamedi


Re: Linux server power cut

2009-03-30 Thread Sudev Barar
2009/3/30 hadi motamedi motamed...@gmail.com:
 Can you please technically let me know why the Linux servers suffer from
 sudden power cut ?

From your query it is not clear what problem you are facing. If you
can describe in detail I am sure others can help. A properly
configured server shuold not have any problem. Hardware issues could
be your cause.

-- 
Regards,
Sudev Barar
Read http://blog.sudev.in for topics ranging from here to there.

PS: I know most of people do not follow email niceties (mostly they
are not aware) but if you follow bottom post/in-line post style of
email conversations it becomes a whole lot easier to carry on
meaningful dialogue and you can snip out what is not meaningful too.
Most people just hit reply button and top post leaving prior message
appended uselessly at bottom. See if you can adopt this style and
persuade others. In case you are already doing this . great,
spread the message.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Linux server power cut

2009-03-30 Thread Boyd Stephen Smith Jr.
In 74aa57df0903300027p7e603570j97fb804494b70...@mail.gmail.com, hadi 
motamedi wrote:
Can you please technically let me know why the Linux servers suffer from
sudden power cut ?

I'm going to interpret your question as Why are there negative consequences 
when a Linux server is suddenly powered off?, but you English is a bit 
broken so I'm not sure that's what you are asking.

Basically this is the same reason any system suffers from a sudden loss of 
power: caching.  In order to make some slow processes (e.g. hard disk 
writes) appear faster, allow the system to pipeline actions, and generally 
increase throughput and decrease response times of the system as a whole, 
Linux caches data in fast, volatile memory.  Unfortunately, all the data in 
that memory goes away fairly quickly once power is cut.

Generally, a Linux system will recover gracefully from the power loss, but 
no system is able to recover the data that was in volatile memory and no 
where else.
-- 
Boyd Stephen Smith Jr.   ,= ,-_-. =.
b...@iguanasuicide.net  ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.net/\_/



signature.asc
Description: This is a digitally signed message part.


Re: Linux server power cut

2009-03-30 Thread Jimmy Johnson

hadi motamedi wrote:

Dear All
Can you please technically let me know why the Linux servers suffer from 
sudden power cut ?



Using a Live CD such as Mepis or even the GParted Live CD to check your 
partitions may solve your problem.

--
Jimmy Johnson

Bakersfield, CA. U.S.A.
Registered Linux User #380263
K.I.S.S. (Keep it simple stupid)


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




Re: Hard disk power cut too early during a halt

2003-02-10 Thread Steve Webster
Ian Melnick wrote:


Hello, all

This problem has been happening for as long as I can remember... since I
enabled ACPI power management (this comp doesn't do APM afaik). Kernels in
question are from 2.4.17 to 2.4.20, I think (didn't use power management
before that).

I have two hard disks in this machine, hda and hdb. During a shutdown -h
whatever, it gets close to the end of the line and says something like
Unmounting local filesystems...done. Then the power on one of the
drives (dunno which one) clicks off and clicks back on really quickly.
Then it says Finishing something something hda hdb, and at that point
both drives click off simultaneously.

Didn't have this problem when there was only one hard disk in the
machine. I've noticed this on two different computers - A Dell Optiplex
GX1 with its original bios, and a Dell Dimension T something with its
bios updated to the latest release. It has the same problem before and
after the update, so updating it was pointless.

Has anyone else had this problem? Is there something I can do to solve
it (other than not using power management)?

Thanks!
Ian


 

Hello.

I'm using a Dell Dimension XPS T600 with debian woody installed on the 
second (slave) hard drive, and I get this message during powerdown...

Unmounting local filesystems... done
shutting down I20 system. This could take a few minutes...
I20 system down.
Power down.

It doesn't power down of course. I have to hit the restart button and 
then the power button to turn it off.
The I20 stuff is just something to do with the default kernal. I've 
recently compiled (several) new kernals.
Firstly without apm, as I had tried all the bios and apm options with no 
success. (I have a Pheonix BIOS 4.0 Release 6.0, which I haven't 
updated.) Then I put apm back in as I was suddenly convinced I had 
missed something. I hadn't, it was just late and I was feeling desperate.

I haven't as yet tried the ACPI patch. However, I am comming to believe 
that it has something to do with debian being on the slave hard drive as 
I didn't have this problem when debian was on the master. (I have 
Windows2000 on the master now, no shutdown problems there.)

I'm afraid I've not been much help, but that's my story so far. Will 
keep you posted of any successes and failures.

(I'm using a hand-rolled kernal 2.4.18)

Steve.



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Hard disk power cut too early during a halt

2003-02-09 Thread Ian Melnick
Hello, all

This problem has been happening for as long as I can remember... since I
enabled ACPI power management (this comp doesn't do APM afaik). Kernels in
question are from 2.4.17 to 2.4.20, I think (didn't use power management
before that).

I have two hard disks in this machine, hda and hdb. During a shutdown -h
whatever, it gets close to the end of the line and says something like
Unmounting local filesystems...done. Then the power on one of the
drives (dunno which one) clicks off and clicks back on really quickly.
Then it says Finishing something something hda hdb, and at that point
both drives click off simultaneously.

Didn't have this problem when there was only one hard disk in the
machine. I've noticed this on two different computers - A Dell Optiplex
GX1 with its original bios, and a Dell Dimension T something with its
bios updated to the latest release. It has the same problem before and
after the update, so updating it was pointless.

Has anyone else had this problem? Is there something I can do to solve
it (other than not using power management)?

Thanks!
Ian


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]