Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-19-2008, 06:13 AM
Ercmz
 
Posts: n/a
Default UPS and Linux...

Hi,

I have a really old computer that I would like to use a UPS with. It is
used for home automation and real time control. The way I have the guts
mounted and out-of-sight make it difficult to do hardware upgrades. The
software also has been so heavily tweaked and tailored over the years that
it would be counterproductive to start fresh. ("If it ain't broke, don't
fix it.") Security isn't a concern as this system has no connectivity,
physical or logical, with the outside world.

H/W: Guts mainly from old Compaq Deskpro 2000/5166
P1-200Mhz (non-MMX), 128MB, PSU < 200W (unsure of exact wattage)

S/W: Linux
Distro: Redhat9
Kernel: 2.4.20-6
FS: ext2fs

Anyone use a UPS with RH9? From what I have gathered, the APC "SmartUPS"
units should work using the powerd daemon. Any specific units work better
than others? I'd prefer one that uses the serial port to communicate rather
than USB, which may mean having to go to Ebay for an old unit.

Any "gotcha's" that may come into play. One that I see already is that the
m/b doesn't power completetly off at shutdown. It goes into some sort of
"ready" mode at (software) shutdown. Will the UPS be smart enough to kill
power at this point? When power is reapplied, it does automatically begin
POST'ing.

Instead of having a physical BIOS chip, these old Compaqs used a
properietary bullshit scheme where the "BIOS" resides on a special partition
on the HDD. Needless to say, I got rid of that nonsense years ago. Having
read the manual, there are no settings that would enable/disable complete
powerdown, anyway.

Thanks...


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-19-2008, 06:13 AM
Ercmz
 
Posts: n/a
Default Re: UPS and Linux...


"Ercmz" <none@nowhere.cvb> wrote in message
news:46840855$0$20561$4c368faf@roadrunner.com...
> Hi,
>
> I have a really old computer that I would like to use a UPS with. It is
> used for home automation and real time control. The way I have the guts
> mounted and out-of-sight make it difficult to do hardware upgrades. The
> software also has been so heavily tweaked and tailored over the years that
> it would be counterproductive to start fresh. ("If it ain't broke, don't
> fix it.") Security isn't a concern as this system has no connectivity,
> physical or logical, with the outside world.
>
> H/W: Guts mainly from old Compaq Deskpro 2000/5166
> P1-200Mhz (non-MMX), 128MB, PSU < 200W (unsure of exact wattage)
>
> S/W: Linux
> Distro: Redhat9
> Kernel: 2.4.20-6
> FS: ext2fs
>
> Anyone use a UPS with RH9? From what I have gathered, the APC "SmartUPS"
> units should work using the powerd daemon. Any specific units work better
> than others? I'd prefer one that uses the serial port to communicate
> rather than USB, which may mean having to go to Ebay for an old unit.
>
> Any "gotcha's" that may come into play. One that I see already is that
> the m/b doesn't power completetly off at shutdown. It goes into some
> sort of "ready" mode at (software) shutdown. Will the UPS be smart enough
> to kill power at this point? When power is reapplied, it does
> automatically begin POST'ing.
>
> Instead of having a physical BIOS chip, these old Compaqs used a
> properietary bullshit scheme where the "BIOS" resides on a special
> partition on the HDD. Needless to say, I got rid of that nonsense years
> ago. Having read the manual, there are no settings that would
> enable/disable complete powerdown, anyway.
>
> Thanks...



Leaning towards:

APC Back-UPS ES UPS, 350VA, 200watts
(Cheap and to the point)

Using apcupsd
http://www.apcupsd.org/

Which says works with RH(9)
http://www.apcupsd.org/manual/Buildi...ed-Hat-Systems

....just have to jibjab a USB controller into the mix

The m/b not completetly powering down at software shutdowns still worries me
though.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-19-2008, 06:13 AM
Jean-David Beyer
 
Posts: n/a
Default Re: UPS and Linux...

Ercmz wrote:
> Hi,
>
> I have a really old computer that I would like to use a UPS with. It is
> used for home automation and real time control. The way I have the guts
> mounted and out-of-sight make it difficult to do hardware upgrades. The
> software also has been so heavily tweaked and tailored over the years that
> it would be counterproductive to start fresh. ("If it ain't broke, don't
> fix it.") Security isn't a concern as this system has no connectivity,
> physical or logical, with the outside world.
>
> H/W: Guts mainly from old Compaq Deskpro 2000/5166
> P1-200Mhz (non-MMX), 128MB, PSU < 200W (unsure of exact wattage)
>
> S/W: Linux
> Distro: Redhat9
> Kernel: 2.4.20-6
> FS: ext2fs


Normally, I would suggest upgrading to a more modern version of Linux, but
in this case, since you are not connected to the Internet, if it works
reliably enough for you I would suggest keeping it.
>
> Anyone use a UPS with RH9?


I used to, but that machine is running CentOS4 at the moment.

> From what I have gathered, the APC "SmartUPS"
> units should work using the powerd daemon. Any specific units work better
> than others? I'd prefer one that uses the serial port to communicate rather
> than USB, which may mean having to go to Ebay for an old unit.


I like APC UPSs, especially the SmartUPS series.

I think I used the genpowerd daemon long long ago. I know I had to make a
special serial cable for it, whatever it was. When PowerChutePlus came out,
I took it because it has a nice fancy window display.

I use PowerChutePlus-4.5.3-2_RedHat.i386.rpm with it. This program is no
longer supported by APC, but still works. At the moment, I have a SmartUPS
2200 that has a serial interface, a SmartUPS 1000 that also has a serial
interface, and a SmartUPS 620 that also has a serial interface. Some of them
also have USB interface -- The 620 does not seem to have USB, the 1000 does,
and the 2200 does not seem to. So be sure it says they have a serial
interface before buying. I would be afraid to buy a used one. Call APC to be
sure.
>
> Any "gotcha's" that may come into play. One that I see already is that the
> m/b doesn't power completetly off at shutdown.


No, but you can be sure they shut off when you pull the plug. ;-)

> It goes into some sort of
> "ready" mode at (software) shutdown. Will the UPS be smart enough to kill
> power at this point? When power is reapplied, it does automatically begin
> POST'ing.


When running PowerChutePlus, the UPS signals the computer about once every 2
seconds saying all is well. When power fails, it tells it that too.
Depending on the configuration, it will do a controlled shutdown either
after a specified time, or when the battery is too weak. Once the computer
is shut down, it powers the computer off as though you had pulled the plug,
but by then all file systems are unmounted and the CPU is executing a HALT
instruction.

When the power comes back on, i.e., when it is plugged in, it does whatever
the BIOS tells it to do. If your machine is old enough, the BIOS is not
involved and it just powers up. If it is pretty new, the BIOS can cause it
to stay off until you push the start button, return to whatever state it
used to be in, or start up.
>
> Instead of having a physical BIOS chip, these old Compaqs used a
> properietary bullshit scheme where the "BIOS" resides on a special partition
> on the HDD. Needless to say, I got rid of that nonsense years ago. Having
> read the manual, there are no settings that would enable/disable complete
> powerdown, anyway.
>
> Thanks...
>
>

P.S.: If your power is like mine, and you are using the computer to control
anything critical, you may want a large UPS. My power often goes off for
over an hour. Now I do not know if you have a UPS on all the sensors for
your computer (e.g., temperature sensors) and all the actuators (water
pumps, circulators, ...), but you should think about that.

Now my machines do nothing so critical, so they run a while and then shut
down if the power is off too long.


--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ PGP-Key: 9A2FC99A Registered Machine 241939.
/( )\ Shrewsbury, New Jersey http://counter.li.org
^^-^^ 15:40:01 up 7 days, 23:15, 4 users, load average: 4.20, 4.23, 4.19
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-19-2008, 06:13 AM
Chris Cox
 
Posts: n/a
Default Re: UPS and Linux...

Ercmz wrote:
> Hi,
>
> I have a really old computer that I would like to use a UPS with. It is
> used for home automation and real time control. The way I have the guts
> mounted and out-of-sight make it difficult to do hardware upgrades. The
> software also has been so heavily tweaked and tailored over the years that
> it would be counterproductive to start fresh. ("If it ain't broke, don't
> fix it.") Security isn't a concern as this system has no connectivity,
> physical or logical, with the outside world.
>
> H/W: Guts mainly from old Compaq Deskpro 2000/5166
> P1-200Mhz (non-MMX), 128MB, PSU < 200W (unsure of exact wattage)
>
> S/W: Linux
> Distro: Redhat9
> Kernel: 2.4.20-6
> FS: ext2fs
>
> Anyone use a UPS with RH9? From what I have gathered, the APC "SmartUPS"
> units should work using the powerd daemon. Any specific units work better
> than others? I'd prefer one that uses the serial port to communicate rather
> than USB, which may mean having to go to Ebay for an old unit.


Good luck. Old UPS is just asking for troubles (UPS wise). You've got
several strikes working against you ... ancient machine, ancient Linux,
etc.

>
> Any "gotcha's" that may come into play. One that I see already is that the
> m/b doesn't power completetly off at shutdown. It goes into some sort of
> "ready" mode at (software) shutdown. Will the UPS be smart enough to kill
> power at this point?


No

> When power is reapplied, it does automatically begin
> POST'ing.
>
> Instead of having a physical BIOS chip, these old Compaqs used a
> properietary bullshit scheme where the "BIOS" resides on a special partition
> on the HDD. Needless to say, I got rid of that nonsense years ago. Having
> read the manual, there are no settings that would enable/disable complete
> powerdown, anyway.
>
> Thanks...


At some point you have to weigh the costs of supporting outdated
equipment and OS's and the limitations and frustrations that come
from that. For a few hundred bucks, you could eliminate the issues.
The question is: Is it worth $200-300 to you?

I see no value in trying to do something sophisticated with hardware
and software that is restricted from doing anything very sophisticated.

It sounds neat to tell people that you have a 486 running Linux... but
a LOT of stuff just wasn't possible back then irrespective of OS. Times
have changed. Personally, I could live without the headache....


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-19-2008, 06:13 AM
Keith Keller
 
Posts: n/a
Default Re: UPS and Linux...

["Followup-To:" header set to comp.os.linux.setup.]

On 2007-06-28, Ercmz <none@nowhere.cvb> wrote:
>
> Any "gotcha's" that may come into play. One that I see already is that the
> m/b doesn't power completetly off at shutdown. It goes into some sort of
> "ready" mode at (software) shutdown. Will the UPS be smart enough to kill
> power at this point? When power is reapplied, it does automatically begin
> POST'ing.


You need to configure your shutdown procedure, either via inittab or a
shutdown script, to tell the UPS to kill the power. If you're willing,
I'd suggest installing NUT, from http://www.networkupstools.org . It
has excellent documentation for configuring and testing your UPS setup.
You may need an older version for RH9, but it should still work fine.

--keith

--
kkeller-usenet@wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-19-2008, 06:13 AM
Ogre
 
Posts: n/a
Default Re: UPS and Linux...

Ercmz wrote:
> Hi,
>
> I have a really old computer that I would like to use a UPS with. It is
> used for home automation and real time control. The way I have the guts
> mounted and out-of-sight make it difficult to do hardware upgrades. The
> software also has been so heavily tweaked and tailored over the years that
> it would be counterproductive to start fresh. ("If it ain't broke, don't
> fix it.") Security isn't a concern as this system has no connectivity,
> physical or logical, with the outside world.

.... snip

This might help you in picking a ups: http://geekbiker.net/upsinfo
Though I have not updated that page in a while.

BTW, my personal favorite brand is MGE, but they are a bit more
expensive and harder to find.

--
Ogre
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-19-2008, 06:13 AM
Ercmz
 
Posts: n/a
Default Re: UPS and Linux...

Hi,

Thanks for the replies. I've read all of them and they were all helpful.

Since posting the last time, I picked up a [APC Back-UPS ES UPS, 350VA,
200watts] and also threw a USB controller into the witch brew.

Using the RH9 RPM for apcupsd, it was a straight-forward drop in and is
working....

Actually, I was pleasantly surprised how simple it was to get up and
running. I'll probably tweak out some of the timing variables to my own
preferences, but for all purposes it works well "right out of the box"
(apcusbd).

I'm happy with it. I'll check out NUT and the other sources listed in this
thread though. Left for another day is a few things that I'd like to tweak
on the UPS EPROM firmware itself such as turning the annoying alarm beeps
off, changing the "grace period" from time UPS gets a "power off" command to
actually turning off, etc. The apctest program doesn't seem to recognize any
of these settings even though does pick up battery date, manuf date, etc.
No big deal. The HDD has a real small W98 partition and I think I saw a
Windoze program to get at all this stuff...

UPS newbie here and just happy it was so painless... Hard to believe gone
so many years without any of these animals. I'll definetly be getting some
big ones for my main computers soon. :-)

Thanks!





Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-19-2008, 06:13 AM
Ercmz
 
Posts: n/a
Default Re: UPS and Linux...


"Ercmz" <none@nowhere.cvb> wrote in message
news:46844b41$0$8058$4c368faf@roadrunner.com...
> Hi,
>
> Thanks for the replies. I've read all of them and they were all helpful.
>
> Since posting the last time, I picked up a [APC Back-UPS ES UPS, 350VA,
> 200watts] and also threw a USB controller into the witch brew.
>
> Using the RH9 RPM for apcupsd, it was a straight-forward drop in and is
> working....
>
> Actually, I was pleasantly surprised how simple it was to get up and
> running. I'll probably tweak out some of the timing variables to my own
> preferences, but for all purposes it works well "right out of the box"
> (apcusbd).
>
> I'm happy with it. I'll check out NUT and the other sources listed in
> this thread though. Left for another day is a few things that I'd like to
> tweak on the UPS EPROM firmware itself such as turning the annoying alarm
> beeps off, changing the "grace period" from time UPS gets a "power off"
> command to actually turning off, etc. The apctest program doesn't seem to
> recognize any of these settings even though does pick up battery date,
> manuf date, etc. No big deal. The HDD has a real small W98 partition and
> I think I saw a Windoze program to get at all this stuff...
>
> UPS newbie here and just happy it was so painless... Hard to believe gone
> so many years without any of these animals. I'll definetly be getting
> some big ones for my main computers soon. :-)
>
> Thanks!


Got the firmware tweaked out to personal preferences now. No more annoying
beeping.

I'm still amazed at how smooth that went. I was expecting blood to be
drawn. Status messages sent to mail spool are even working. Cool.

I monitor/control this "system" (more of a "system" than a "computer") via
http, so definetly will play with the apcusbd cgi stuff. Spitting out UPS
stats on a web page could be cool. Hairy configuration is done over SSH.
(Networking is just point-to-point.)

Its headless, which meant dragging out a monitor everytime there was a power
failure to do a fsck. (ex2fs)

This "system" is so tweaked and tailored out (years worth) that it made more
sense to continue to work with it than to upgrade hardware, do cartwheeling
to convert the FS to ext3fs/reiserfs, etc...

Thanks!



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-19-2008, 06:13 AM
Jean-David Beyer
 
Posts: n/a
Default Re: UPS and Linux...

Ercmz wrote:

>
> Its headless, which meant dragging out a monitor everytime there was a
> power failure to do a fsck. (ex2fs)
>
> This "system" is so tweaked and tailored out (years worth) that it made
> more sense to continue to work with it than to upgrade hardware, do
> cartwheeling to convert the FS to ext3fs/reiserfs, etc...
>

RHL9 supports ext3 file systems; all you need do is run tune2fs and tell it
to upgrade (on a partition by partition basis, so you need not change all at
once).

Something like the following if it is hda7 that you want to change. You can
probably change the root file system as well, without umounting it, but you
probably have to reboot to get it to take effect.

umount /dev/hda7
tune2fs -j /dev/hda7
[change /etc/fstab from ext2 to ext3 for /dev/hda7]
mount /dev/hda7

See the man pages to be sure.

--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ PGP-Key: 9A2FC99A Registered Machine 241939.
/( )\ Shrewsbury, New Jersey http://counter.li.org
^^-^^ 06:30:01 up 8 days, 14:05, 3 users, load average: 4.39, 4.26, 4.11
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-19-2008, 06:13 AM
Ogre
 
Posts: n/a
Default Re: UPS and Linux...

Ogre wrote:
> Ercmz wrote:
>> Hi,
>>
>> I have a really old computer that I would like to use a UPS with. It
>> is used for home automation and real time control. The way I have the
>> guts mounted and out-of-sight make it difficult to do hardware
>> upgrades. The software also has been so heavily tweaked and tailored
>> over the years that it would be counterproductive to start fresh.
>> ("If it ain't broke, don't fix it.") Security isn't a concern as this
>> system has no connectivity, physical or logical, with the outside world.

> ... snip
>
> This might help you in picking a ups: http://geekbiker.net/upsinfo
> Though I have not updated that page in a while.
>
> BTW, my personal favorite brand is MGE, but they are a bit more
> expensive and harder to find.
>


The power supply on my server blew out last night so this web page is
not currently available. I hope to have it back up this evening.

--
Ogre
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:19 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543