From: NeilBrown <neilb@suse.de>
To: Leslie Rhorer <lrhorer@satx.rr.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Is this stupid?
Date: Mon, 5 Dec 2011 17:01:14 +1100 [thread overview]
Message-ID: <20111205170114.49cf7437@notabene.brown> (raw)
In-Reply-To: <D4.5D.10364.904FBDE4@cdptpa-omtalb.mail.rr.com>
[-- Attachment #1: Type: text/plain, Size: 1451 bytes --]
On Sun, 4 Dec 2011 16:28:25 -0600 "Leslie Rhorer" <lrhorer@satx.rr.com> wrote:
> I have a system - one that is not expandable - that has relatively limited
> RAM, comparatively speaking, and must boot from a usb stick. The system
> hosts a RAID array, but one cannot assume the RAID array is available when
> the system boots. IOW, I want to be able to take down the RAID array for
> maintenance, possibly booting the system with no array created, at all.
>
> On the other hand, USB sticks have a limited number of writes available
> before they fail, so I don't want the system to be thrashing the flash drive
> any more than necessary. At this time, I have /var/run, /var/log,
> /var/lock, and /tmp mounted as tmpfs file systems. What I propose is to run
> an init script that checks to see if the array is mounted, and if so appends
> files in the aforementioned directories to existing directories on the array
> and then remounts and binds the directories on the array. The stop call in
> the script will reverse the process so the system can shutdown or so I can
> take the array offline after booting for maintenance. Is this unwise? Am I
> missing something crucial that might cause the system to blow up?
Sounds reasonably sane.
After the bind mount you would need to make sure any process with a file
open in one of those directories re-opens the file. So you might want to
restart syslogd.
NeilBrown
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
next prev parent reply other threads:[~2011-12-05 6:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-04 22:28 Is this stupid? Leslie Rhorer
2011-12-05 6:01 ` NeilBrown [this message]
2011-12-05 7:42 ` Leslie Rhorer
2011-12-05 6:18 ` Doug Dumitru
2011-12-05 8:01 ` Leslie Rhorer
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=20111205170114.49cf7437@notabene.brown \
--to=neilb@suse.de \
--cc=linux-raid@vger.kernel.org \
--cc=lrhorer@satx.rr.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox