From: Oleg Drokin <green@namesys.com>
To: Greg Ward <gward@python.net>
Cc: reiserfs-list@namesys.com
Subject: Re: Safely spinning down SCSI ReiserFS disk
Date: Mon, 28 Apr 2003 09:31:50 +0400 [thread overview]
Message-ID: <20030428053150.GA22902@namesys.com> (raw)
In-Reply-To: <20030426211638.GA690@cthulhu.gerg.ca>
Hello!
On Sat, Apr 26, 2003 at 05:16:38PM -0400, Greg Ward wrote:
> >From searching the list archives, I know I'm not the only one who wants
> to do this, but I'm having problems that might be ReiserFS-related.
> Specifically, it looks like ReiserFS is trying to write journal data to
> the disk after it's spun down, even though I run /bin/sync before the
> spindown.
By running /bin/sync you seem to access /bin/sync and force atime update on the
/bin/sync
Why don't you just rely on apm --suspend thing that is supposed to spin-down
everything by itself after OS is sleeping?
> * create a ramdisk with a few minimal tools -- mainly the
> scsi-spin binary from scsitools 0.3-2 (Debian package)
> * write a script in the ramdisk that runs
> sync
> scsi-spin --force --down /dev/sda
> sleep 5
> scsi-spin --force --up /dev/sda
> * sync and chroot to the ramdisk and run that script in it
> The disk spins down fine, and then comes back up -- but any process that
> tries to access the disk blocks forever, and there's a "kernel bug" dump
> on my console. At that point I have to reboot -- good thing I built the
> "Magic SysRq key" feature into my kernel, since I can't even run the
> "reboot" binary!
Well, what's the BUG message? We cannot tell you what it means before you
give us this information.
> Is this sort of behaviour expected? Is there anything more I should be
I don't even know what part of the kernel emits this BUG for you.
> doing to safely spin down the disk containing ReiserFS filesystems?
To safely spin-down the fisk with reiserfs you need to make sure nobody writes/accesses to
the fs when the disk is spun-down (this is only if you want the disk to stay spun-down).
Also when disk spins-up, it must be functional in order to continue the work.
(I believe these requirements are the same for any FS, anyway)
> Would it be useful if I provided that "kernel bug" dump? (Maybe I can
> write it to my IDE disk before rebooting... hmmm...)
Yes, that might shed some light on what's going on.
Bye,
Oleg
next prev parent reply other threads:[~2003-04-28 5:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-26 21:16 Safely spinning down SCSI ReiserFS disk Greg Ward
2003-04-28 5:31 ` Oleg Drokin [this message]
2003-04-29 0:33 ` Greg Ward
2003-04-29 2:40 ` Greg Ward
2003-04-29 15:51 ` bscott
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030428053150.GA22902@namesys.com \
--to=green@namesys.com \
--cc=gward@python.net \
--cc=reiserfs-list@namesys.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.