LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-16-2001, 06:03 AM   #1
sitrus
Member
 
Registered: Nov 2001
Location: Finland
Distribution: Gentoo 1.4
Posts: 50

Rep: Reputation: 15
Post Power went down and Linux


Ok I have Redhat 7.2 and my house electricity went down because of a storm and my linux pc did too. Then I starded redhat and it did the scan and everything went [passed] , and everything seems to be working I just wonder is there anything I should do anymore or is everything ok?
 
Old 11-16-2001, 08:30 AM   #2
Citizen Bleys
Member
 
Registered: Mar 2001
Location: Moncton, NB
Distribution: Gentoo 2006.0
Posts: 181

Rep: Reputation: 30
j00 have felt the power of the ext3 filesystem. You are A.O.K. No fsck required.
 
Old 11-16-2001, 10:06 AM   #3
Lindy
Member
 
Registered: Nov 2001
Location: Manistique, MI
Distribution: SUSE 12.1
Posts: 136

Rep: Reputation: 15
Re: Power went down and Linux

Quote:
Originally posted by sitrus
Ok I have Redhat 7.2 and my house electricity went down because of a storm. Then I starded redhat and it did the scan and everything went [passed] , I just wonder is there anything I should do anymore or is everything ok?




Can your budget handle getting a UPS?
 
Old 11-16-2001, 10:57 AM   #4
sitrus
Member
 
Registered: Nov 2001
Location: Finland
Distribution: Gentoo 1.4
Posts: 50

Original Poster
Rep: Reputation: 15
Yeah getting an ups for christmas.
 
Old 11-16-2001, 06:05 PM   #5
b0b0
Member
 
Registered: Nov 2001
Location: Kansas
Distribution: rh71/2, mandrake81
Posts: 53

Rep: Reputation: 15
Ahh........i love my UPS.........hehe
 
Old 11-17-2001, 11:04 PM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Which brings me to my current project..


Getting my linux box to shut down when power fails.

I had a close call the other day when the ups ran down after the power went off. One of the hard drives was crashed and it was auto reconstructed.

Now, I have an older SquareD ups. It works with Windblows in stupid mode...
Should it work if I have the right cable for it or ...

I am willing to buy a supported ups to avoid the hassle of building circuits and cables, if someone knows of one that will plug in and work.

I am thinking of plugging a new one into the older one.

Last edited by DavidPhillips; 11-17-2001 at 11:11 PM.
 
Old 11-17-2001, 11:12 PM   #7
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Is ext3 more crash proof than ext2?

How much trouble is it to upgrade.
 
Old 11-17-2001, 11:49 PM   #8
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
DP: There was a major thread that was developing in the kernel.org mailing list a few months back regarding all this. ext3 is better than ext2 and is (supposed to be) a simple transformation, whereas the reiserfs is a destrucive process.

Re: UPS cable... I made one from skratch for my smart-ups 250 and 1200 and it worked like a charm except for the modem wake-up signal. The idea is that the UPS is supposed to shut down the servers when there is around 5 minutes (user selectable) of power remaining and stay off until the batteries are charged up to a user-seleted percentage. This was to prevent a UPS coming back online when the power is restored to the unit and another immediate power failure could mean that there is not enough remaining juice to keep the servers powered long enough for a shutdown. I even used the PowerChute for linux software from APS and it allowed me to calibrate the system and monitor all UPSs on the network. It was way cool. Hint: When servicing a UPS (a dangerous task in itself) remove any jewelry. Being the idiot I am I was tweaking the guts a little bit and found that the copper bracelet I was wearing served as an excellent conductor. The EEPROM that holds the software for the unit was toast. Apparently they run off of smoke and if you let the smoke out it stops working.

Do a google search and you'll be able to find some good instrucions for making a cable. Like these ones attached for an APC...
 
Old 11-18-2001, 12:25 AM   #9
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Cool

Thanks for the info..

The windows program I have is parachute and it will shut down my windows system.

I will try it out when I get home.

About the ext3 thing, I figured what the heck and changed my laptop that I am on now over to ext3.

I did ...


tune2fs -j /dev/hda2

tune2fs /dev/hda5

then edited /etc/fstab to change ext2 to ext3


I rebooted and did cat /proc/mounts

/boot was ext3 but / was still ext2


So then I saw something about / needing a ram disk.

I did not have one on my laptop for some reason so I did

mkinitrd --fstab=/etc/fstab /boot/initrd-2.4.9-12 2.4.9-12

then it was still not working.

I checked lilo on my system at home (ssh rules) and it had initrd=initrd-2.4.9-12

so I added the line to lilo

ran lilo

rebooted and it's up and running


[david@microdot david]$ cat /proc/mounts
/dev/root / ext3 rw 0 0
/proc /proc proc rw 0 0
usbdevfs /proc/bus/usb usbdevfs rw 0 0
/dev/hda2 /boot ext3 rw 0 0
none /dev/pts devpts rw 0 0
automount(pid758) /misc autofs rw 0 0


Cool

From what I saw about it when I was looking for info was that the journal file contains the difference from disk to ram and thats all that has to be check / fixed in the event of a power outage or crash.


Last edited by DavidPhillips; 11-18-2001 at 12:31 AM.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Power Failure On AC power ONLY Gateway 5300 marti35 Linux - Laptop and Netbook 1 05-22-2005 10:14 AM
Enabling power save/power management/cpu freq scaling features for a Debian system zero79 Debian 0 12-19-2004 01:17 PM
Power Management(sysfs) /sys/power/state mavrick613 Linux - General 0 05-24-2004 03:04 PM
Linux to power my car! jlturbos Linux - General 5 02-10-2004 09:27 AM
Is this all due to power of linux? packman Linux - General 10 10-21-2002 08:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration