* Resizing block devices that are in use
@ 2008-11-12 17:44 Lasse Kärkkäinen
0 siblings, 0 replies; only message in thread
From: Lasse Kärkkäinen @ 2008-11-12 17:44 UTC (permalink / raw)
To: linux-kernel
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-11-12 17:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-12 17:44 Resizing block devices that are in use Lasse Kärkkäinen
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®