"Stop-A" instead of clean shutdown (was Re: solaris 2.3 on a sparc 1)

"Stop-A" instead of clean shutdown (was Re: solaris 2.3 on a sparc 1)

Post by Casper H.S. D » Fri, 07 Oct 1994 18:08:00




>Is it okay to just use "Stop-A" to halt the machine, then turn
>it off?  We have been doing this for more than a month now _every_
>working day, and there seems to be no problem the morning after.
>The machine just "corrects" itself.  We're using Solaris 2.3, btw.
>I assume it uses a journaling file system.

No, that is not safe.  (Neither Stop-A sync).  You really should
bring the machine down gracefully.

Quote:>To be more safe though, we usually log out from an X session, and
>only do the "Stop-A" when the login banner is displayed.  I know
>that a clean shutdown is advisable, but could the "Stop-A" lazy
>routine still be considered safe?

In the majority of cases yes, in a minority of cases not.

It may totally*up your system.

Casper

 
 
 

"Stop-A" instead of clean shutdown (was Re: solaris 2.3 on a sparc 1)

Post by Alexander Cer » Fri, 07 Oct 1994 15:37:14


Quote:> >But we noticed "L1-A sync" does not work anymore on SPARCstation 5's
> >and SPARCstation Classic's. What use does sync have when you cannot
> >use it to flush the disks of a running (and hung) Sun?

> I would assume it should work.  It doesn't?

> All sync does is "jmp %g0" which should panic the system and make
> it sync its disks.  Is this function broken in the PROM?
> What does it do?

> Casper

Is it okay to just use "Stop-A" to halt the machine, then turn
it off?  We have been doing this for more than a month now _every_
working day, and there seems to be no problem the morning after.
The machine just "corrects" itself.  We're using Solaris 2.3, btw.
I assume it uses a journaling file system.

To be more safe though, we usually log out from an X session, and
only do the "Stop-A" when the login banner is displayed.  I know
that a clean shutdown is advisable, but could the "Stop-A" lazy
routine still be considered safe?

Thanks very much.

Alex Cerna

 
 
 

"Stop-A" instead of clean shutdown (was Re: solaris 2.3 on a sparc 1)

Post by Ruth Miln » Sat, 08 Oct 1994 02:44:11




>Is it okay to just use "Stop-A" to halt the machine, then turn
>it off?  

Never, ever, make this standard practice - even if your OS does use
a journalling filesystem. You are courting disaster.

Quote:>We have been doing this for more than a month now _every_
>working day, and there seems to be no problem the morning after.

Then either your system really doesn't get used for much, or you've
just been lucky.

Is there some particular reason why you are turning the machine off
every day? If not, I'd recommend not doing it routinely.

Quote:>The machine just "corrects" itself.  

If there really were "no problem", it wouldn't have to "correct" anything.

Quote:>We're using Solaris 2.3, btw.  I assume it uses a journaling file system.

Why do you assume that? It's a pretty big - and dangerous - assumption.
Please read the documentation. It will tell you that 2.3 does *not* use
a journalling filesystem. This really should have been checked out
thoroughly before adopting the L1-A habit.

Quote:>To be more safe though, we usually log out from an X session, and
>only do the "Stop-A" when the login banner is displayed.  

So what? How can you be sure that all pending disk writes have been
flushed? And that some daemon or other hasn't logged something since
the last fsflush?

Quote:>I know that a clean shutdown is advisable, but could the "Stop-A" lazy
>routine still be considered safe?

You've really answered your own question. "Stop-A" is lazy. At the risk
of sounding patronizing :-), lazy practices are very seldom safe. Simply
asking this question suggests that you already know this.

Believe me, if you keep on the way you have been, you *will* eventually
get your system into a state where fsck fails and it can't reboot itself.
--
Ruth Milner                          NRAO/VLA                  Socorro NM

 
 
 

"Stop-A" instead of clean shutdown (was Re: solaris 2.3 on a sparc 1)

Post by Colin Rhod » Sat, 08 Oct 1994 10:33:08


Never, ever, ever just turn off after a L1-A!!!!!!!

To prove my point, when you get back to the prom, type

 new-mode
 sync

and watch how much data the thing writes back.

Even with a JFS you're still assuming the thing will rebuild the super
block correctly.  One day it won't and you'll be very, very, upset.

Personal experience.

Cheers,

Colin.

 
 
 

"Stop-A" instead of clean shutdown (was Re: solaris 2.3 on a sparc 1)

Post by David Lopa » Sat, 08 Oct 1994 22:07:32


...

        If your system is being used by anyone, at any time, L1-A is,
absolutely, the worst possible method for shutting down a system.
Even if a user is not logged in to the console, you cannot necessarily
guarantee that no other user is utilizing that system through one of
the hundreds of remote access methods. . .

        By the way, why on earth would you want to power-down a Sun
regularly?  With the exception of OS upgrades and hardware fixes, our
machines stay up 24/7/365. . .

--

-----------------------------------------------------------------------------

System Manager, Dept. of Statistics                     University of Florida
"Our Paperless Office printed over 16,000 pages last month. . . . . . .  . ."

 
 
 

"Stop-A" instead of clean shutdown (was Re: solaris 2.3 on a sparc 1)

Post by Steven S. Dic » Sun, 09 Oct 1994 00:30:25


You should create a 'halt' user that will run shutdown and/or halt FOR you.
Then log out, wait for the login prompt, type halt, and when halt finishes,
THEN shut it off.  This will only take a few more seconds.

Also, you should be aware that it is very * the entire system to shut
it down every day.  Suns are designed to be left on all the time.
Some sun systems have hard drives in them that will wear out very quickly
from being turned on and off frequently.

        Steve

 
 
 

"Stop-A" instead of clean shutdown (was Re: solaris 2.3 on a sparc 1)

Post by Stainless Steel R » Sat, 08 Oct 1994 20:34:09


David>       If your system is being used by anyone, at any time, L1-A is,
David> absolutely, the worst possible method for shutting down a system.

Actually, STOP-A is the second worst possible method for shutting down a
system, regardless of whether anyone is logged in or not, because processes
are always running. The worst is, of course, direct loss of power :).

--

http://www.ccs.neu.edu/home/ratinox|children under 10 should avoid prolonged
PGP Public Key: Ask for one today! |exposure to Happy Fun Ball.

 
 
 

"Stop-A" instead of clean shutdown (was Re: solaris 2.3 on a sparc 1)

Post by Scott Seligm » Mon, 10 Oct 1994 08:11:10



Quote:

> No, that is not safe.  (Neither Stop-A sync).  You really should
> bring the machine down gracefully.

Is the "preferred" method to use reboot/halt/poweroff, or init?
Init does more work, but what's in it for me?

Scott Seligman


 
 
 

"Stop-A" instead of clean shutdown (was Re: solaris 2.3 on a sparc 1)

Post by Dave Durb » Mon, 10 Oct 1994 15:06:00



Quote:>that a clean shutdown is advisable, but could the "Stop-A" lazy
>routine still be considered safe?

NO! You risk corrupting the file system at least. If you're running a database
engine like Sybase, Oracle, or Informix you could really hose yourself.
Transaction logs are not always 100% reliable. Why take the chance.

dave

Quote:

>Thanks very much.

>Alex Cerna

--
Dave Durbin                                       3rd Party Hardware & Software
Open Business Systems, Inc.                                Software Development
Authorized Sun VAR                                 System & Network Integration
 
 
 

"Stop-A" instead of clean shutdown (was Re: solaris 2.3 on a sparc 1)

Post by Casper H.S. D » Mon, 10 Oct 1994 20:38:23




>> No, that is not safe.  (Neither Stop-A sync).  You really should
>> bring the machine down gracefully.
>Is the "preferred" method to use reboot/halt/poweroff, or init?
>Init does more work, but what's in it for me?

init (for Solaris 2.x) is the preferred method:  it does all the
gracefull shutdowns needed for all the processes running.

Especially database processors such as Sybase, Ingres etc and things like
INN and NIS+ need a graceful shutdown.

Casper

 
 
 

"Stop-A" instead of clean shutdown (was Re: solaris 2.3 on a sparc 1)

Post by Jochen Be » Wed, 12 Oct 1994 05:14:05



Quote:>Is it okay to just use "Stop-A" to halt the machine, then turn
>it off?

If the Machine doesn't respond to ANYTHING anymore, L1-A is OK.
Try to sync, though.

Quote:>We have been doing this for more than a month now _every_
>working day, and there seems to be no problem the morning after.
>The machine just "corrects" itself.

You have a Problem forcing you to crash reboot your Machine daily?
For more than a Month? Doesn't seem to be a reasonable Vendor you
have there. Run fsck manually, the automatic Mode does *NOT* catch
all Inconsistencies, not to talk of lost Data. Don't forget to
make Backups *24 Hours a Day* if your System is *that* unreliable.

Quote:>To be more safe though, we usually log out from an X session, and
>only do the "Stop-A" when the login banner is displayed.

Hey wait a Second! You mean you *don't* have a hung Machine? You
deliberately abort all running Batch Jobs, Disk I/O Operations,
Network Connections, cron Jobs, Daemons having locked something,
User Logins, Drivers processing H/W Interrupts, etc. etc. just for
nothing?

Quote:>I know
>that a clean shutdown is advisable, but could the "Stop-A" lazy
>routine still be considered safe?

I don't remember that it was *ever* considered "safe". Safe to kill
EVERYTHING, maybe, including the Host itself on a bad Day.

Regards,
                                                                        J. Bern
--

/ J. \ <A HREF="http://www.informatik.uni-trier.de/~bern">My Homepage</A> /  \
\Bern/ FINGER, NEWS ETC. AT THIS SITE ARE BROKEN, PLEASE USE MAIL (+ WWW) \  /
 \  /  P.O. Box 1203, 54202 Trier, Germany, Europe - Ham Call Sign: DD0KZ  \/

 
 
 

"Stop-A" instead of clean shutdown (was Re: solaris 2.3 on a sparc 1)

Post by Mike O'Conno » Wed, 12 Oct 1994 20:30:28


One of the things I'm wondering about as this gets discussed is:

What about laptops?

Are there any papers out there or research about Unix systems that
probably aren't going to be up even close to 24 hours/day?

                                                ...Mike

--

 http://www.msen.com/~mjo/

"I sure wish I could get my hands on some REAL dynamite."  -Calvin

 
 
 

"Stop-A" instead of clean shutdown (was Re: solaris 2.3 on a sparc 1)

Post by Ben Tayl » Fri, 14 Oct 1994 05:31:45



: >One of the things I'm wondering about as this gets discussed is:
: >
: >What about laptops?
: >
: >Are there any papers out there or research about Unix systems that
: >probably aren't going to be up even close to 24 hours/day?

: All Sparc laptops and Voyager already give you the capability
: to shutdown,startup without rebooting.

I just wished Tadpole had made the boot w/o rebooting/restarting an
easy thing to find.  I hosed a save partition and couldn't get the
thing to boot properly until someone called Tadpole to find out
what to do.

: Sinan
: >

: > http://www.msen.com/~mjo/

Ben
--
Ben Taylor              Unix Gun for Hire & Director for Strategic Accounts

Smoke N' Mirrors, Inc.  (703) 318-1440 {office} (703) 318-8642 {fax}
580 Herndon Pkwy, Suite 300,  Herndon, VA 22070

 
 
 

"Stop-A" instead of clean shutdown (was Re: solaris 2.3 on a sparc 1)

Post by Sinan Kara » Thu, 13 Oct 1994 03:08:48



Quote:>One of the things I'm wondering about as this gets discussed is:

>What about laptops?

>Are there any papers out there or research about Unix systems that
>probably aren't going to be up even close to 24 hours/day?

All Sparc laptops and Voyager already give you the capability
to shutdown,startup without rebooting.

Sinan

>                                            ...Mike

>--

> http://www.msen.com/~mjo/

>"I sure wish I could get my hands on some REAL dynamite."  -Calvin

 
 
 

"Stop-A" instead of clean shutdown (was Re: solaris 2.3 on a sparc 1)

Post by Scott D. MacK » Fri, 14 Oct 1994 21:09:46





> >> No, that is not safe.  (Neither Stop-A sync).  You really should
> >> bring the machine down gracefully.

> >Is the "preferred" method to use reboot/halt/poweroff, or init?
> >Init does more work, but what's in it for me?

> init (for Solaris 2.x) is the preferred method:  it does all the
> gracefull shutdowns needed for all the processes running.

> Especially database processors such as Sybase, Ingres etc and things like
> INN and NIS+ need a graceful shutdown.

> Casper

Actually, the thing to remember about init and its level of cleanup which lets it
do nicer cleanup - the /etc/rc?.d directory (where ? = run level).

Just as the system boot will go through the /etc/rc3.d directory and run all S
scripts, the init to another level will activate the K scripts (I believe it
runs all K scripts first, then all S scripts).  Thus, unless you have a K script
for sybase, etc, you may not get as happy a shutdown as you think (though anything's
better than THAT evil button combo!)

                                                                        Scott

 
 
 

1. Solaris 2.3 "No directory" "No shell"

I'm running SunOS 5.3 on a SPARC 10. We are now getting
"No shell" or "No directory!" errors whenever we log in.
(rlogin, su, login, ...)

We can cd to the directory so we know there's no problem.
We can execute the shell and change to it.

A "truss su - randerso" stops with:
==========================================================
# tail /usr/tmp/truss.lis
poll(0x0003C0B0, 1, 120000)                     = 1
getmsg(4, 0xEFFFE994, 0xEFFFE988, 0xEFFFEA04)   = 0
close(4)                                        = 0
setgroups(4, 0x00031438)                        = 0
setuid(4540)                                    = 0
chdir("/u/randerso")                            Err#13 EACCES
execve("/bin/bash", 0xEFFFFDE0, 0x00023464)     Err#13 EACCES
write(2, " s u :   N o   s h e l l".., 13)      = 13
lseek(0, 0, 1)                                  = 30284
_exit(3)
#
============================================================

That EACCES error appears to be false.
============================================================
# ls -ld /u/randerso /bin/bash
-rwxr-xr-x   1 root     other    1661324 May 15 09:25 /bin/bash
drwxr-xr-x 113 randerso users       5632 Jul 13 17:01 /u/randerso
============================================================

Any help and/or insight will be appreciated.

Lew Randerson

--

--
Lewis E. Randerson
44 Scott Lane                         phone:609/921-2553 FAX:609/921-3487

2. festival support in kmail?

3. "sz" and "rz" for solaris 2.3 ??

4. Programming REXEC() with input and output streams

5. to "make clean" or not to "make clean"

6. last showing wrong under 2.3

7. GETSERVBYNAME()????????????????????"""""""""""""

8. libc.so.5 => Not found

9. Screen doesn't unblank with "screenblank" and "xlock" under 2.3

10. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""

11. HELP - Need The Solaris 2.3 equivalent of Solaris 1.1's "bar"

12. I used "make install" instead of "make bzImage" is this bad?

13. "--mode compile" instead of "--mode=compile" problem with libtool