ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Alexey Borovskoy <alexey.borovskoy@gmail.com>
To: ALT Linux Sisyphus discussion list <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] raidstop
Date: Mon, 21 Aug 2006 23:54:32 +1300
Message-ID: <44E990E8.2030009@gmail.com> (raw)
In-Reply-To: <20060821104549.GB3532@semushin.plesk.ru>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Slava Semushin пишет:
> --- Alexey Borovskoy 2006-08-21 23:21:28 +1300
> +++ Slava Semushin 2006-08-21 17:42:32 +0700
> 
> AB> for mddev in $(sed -ne 's/^\(md[^[:space:]]*\).*/\1/p' /proc/mdstat); do
> AB>         action "Turning off RAID for $mddev:" $raidstop "/dev/$mddev"
> AB> done
> 
>     md* т.е. все. В это регулярном выражении говорится, что после md могут
>     идти любые символы, кроме пробельных. Как только встретится пробел, то
>     выражение выполнится. Кстати, из-за того что используется звяздока, а
>     не плюс просто строка "md" тоже подойдет.

А если у меня к примеру на md0 корень лежит, то такая MD не остановится.
Или в 2.6 останавливается?

> AB> С sed я не очень дружу.
> 
>     Я тоже :]
> 
> 


- --
Алексей.
GPG key fingerprint
949B BC0E 2C44 7528 4F63  2753 E37A 9E3F 11F3 BDE1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFE6ZDo43qePxHzveERAsSyAJwJ1LjV+Ys8sHR4OQORjJig4L459gCeOa2H
3nTUJDGy7vzUWp9o9yWY7Qc=
=l30i
-----END PGP SIGNATURE-----


  reply	other threads:[~2006-08-21 10:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-21 10:21 Alexey Borovskoy
2006-08-21 10:45 ` Slava Semushin
2006-08-21 10:54   ` Alexey Borovskoy [this message]
2006-08-21 11:14     ` Slava Semushin
2006-08-28 16:48       ` Aleksey Avdeev

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=44E990E8.2030009@gmail.com \
    --to=alexey.borovskoy@gmail.com \
    --cc=sisyphus@lists.altlinux.org \
    /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

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git