mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Lasse Kärkkäinen" <tronic+bpsk@trn.iki.fi>
To: linux-kernel@vger.kernel.org
Subject: Resizing block devices that are in use
Date: Wed, 12 Nov 2008 19:44:07 +0200	[thread overview]
Message-ID: <491B15E7.8000501@trn.iki.fi> (raw)

Currently the kernel does not seem to resize SCSI devices when rescan is 
done, if the device is in use (e.g. there's a filesystem mounted on it). 
Additionally, it also won't resize it if rescan (changing size in 
hardware) is done first while mounted and then the device is unmounted, 
even if rescan is attempted again.

Steps to reproduce:
1. mount a filesystem on a SCSI device
2. resize the disk (e.g. grow hardware RAID array)
3. echo 1 > "/sys/bus/scsi/devices/0:0:1:0"
4. unmount the filesystem
5. echo 1 > "/sys/bus/scsi/devices/0:0:1:0" again
6. the size of the device (e.g. /dev/sdb) still hasn't changed

A preferrable solution (to me) would be to resize the device as soon as 
rescan is done, no matter if it is in use or not. It will fix the bug 
and the "feature" both at the same time.


                 reply	other threads:[~2008-11-12 17:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=491B15E7.8000501@trn.iki.fi \
    --to=tronic+bpsk@trn.iki.fi \
    --cc=linux-kernel@vger.kernel.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
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

all inboxes | Powered by JetHome®