From: Michael Biebl <biebl@debian.org>
To: Chris <email.bug@arcor.de>, 779412@bugs.debian.org
Cc: 725284@bugs.debian.org, linux-raid@vger.kernel.org,
smartmontools-support@lists.sourceforge.net
Subject: Bug#725284: Bug#779412: block devices loosing state after resume: trigger udev rules to re-apply settings
Date: Sat, 28 Feb 2015 09:38:27 +0100 [thread overview]
Message-ID: <54F17E83.5070400@debian.org> (raw)
In-Reply-To: <20150228093023.14e30d9a@smtp.arcor.de>
[-- Attachment #1: Type: text/plain, Size: 1693 bytes --]
Am 28.02.2015 um 09:30 schrieb Chris:
> (http://bugs.debian.org/779412 explanation)
>
> There is a general problem with non-permanent block devices settings
> (hard disks, optical disks, usb storage, ...), that are not restored
> when resuming from suspend (instead using factory defaults and
> loosing all pre-suspend settings).
>
> And as long as the ata/scsi command set drivers can not save and
> restore every state register a device may have (impossible?),
> systemd may ship a viable workaround for this:
>
> A systemd unit file could trigger an udev change action upon resume for
> block devices. This way the same udev rules that set up the devices when
> they are first plugged, will re-apply their settings after resume.
>
> Providing this centrally with the systemd package could avoid that
> multiple packages ship their own files, resulting in multiple change
> events triggerd on each resume.
>
> Examples for very important (non-permanent) settings are with
> hdparm (i.e. the important -B hard disk wear settings)
> https://bugs.debian.org/725284
> smartctl/mdadm/lvm/btrfs/zfs/... (i.e. set error recovery timeouts to
> prevent controller resets and data loss)
> http://sourceforge.net/p/smartmontools/mailman/message/33501936/
>
I don't think working around this in udev/systemd is a good idea.
After all, most of those custom settings aren't applied via udev rules
anyway. This should be fixed in the kernel properly (or the individual
services) and not be papered over in systemd.
Marco, what do you think?
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2015-02-28 8:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-28 8:30 block devices loosing state after resume: trigger udev rules to re-apply settings Chris
2015-02-28 8:38 ` Michael Biebl [this message]
2015-02-28 9:47 ` Bug#779412: " Chris
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=54F17E83.5070400@debian.org \
--to=biebl@debian.org \
--cc=725284@bugs.debian.org \
--cc=779412@bugs.debian.org \
--cc=email.bug@arcor.de \
--cc=linux-raid@vger.kernel.org \
--cc=smartmontools-support@lists.sourceforge.net \
/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.