All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabien Salvi <fabien@cri74.org>
To: Alex Tomas <bzzz@tmi.comex.ru>
Cc: linux-scsi@vger.kernel.org,
	James Bottomley <James.Bottomley@steeleye.com>,
	Jens Axboe <axboe@suse.de>
Subject: Re: hot scsi disk resize
Date: Tue, 04 Mar 2003 10:31:40 +0100	[thread overview]
Message-ID: <3E64727C.9040204@cri74.org> (raw)
In-Reply-To: m3bs0s9xij.fsf@lexa.home.net



Alex Tomas a écrit:
> Hello!
> 
> Here is patch to implement hot scsi resize function.
> Modern storage boxes support virtualization feature and
> may change logical volume size online. I think it would
> be great if linux supports such abilities. Look at
> this example:
> 
> root@zefir:# dmesg | tail
> scsi0:A:1:0: Tagged Queuing enabled.  Depth 32
> SCSI device sda: 2097152 512-byte hdwr sectors (1074 MB)
> SCSI device sda: drive cache: write through
>  sda: unknown partition table
> Attached scsi disk sda at scsi0, channel 0, id 1, lun 0
> 
> root@zefir:# mount -treiserfs /dev/sda /mnt
> 
> root@zefir:# df -Th
> Filesystem    Type    Size  Used Avail Use% Mounted on
> /dev/hda1     ext3    1.9G  1.8G  138M  93% /
> /dev/sda  reiserfs    1.0G   33M  991M   4% /mnt
> 
> root@zefir:# echo 'scsi rescan 0 0 1 0' >/proc/scsi/scsi 
> root@zefir:# dmesg|tail -n1
> SCSI device sda: 20971520 512-byte hdwr sectors (10737 MB)
> root@zefir:# resize_reiserfs /dev/sda 
> 
> <-------------resize_reiserfs, 2002------------->
> reiserfsprogs 3.6.4
> 
> root@zefir:# df -Th
> Filesystem    Type    Size  Used Avail Use% Mounted on
> /dev/hda1     ext3    1.9G  1.8G  138M  93% /
> /dev/sda  reiserfs     10G   33M  9.9G   1% /mnt

Well, I also think it's a very important and needed feature for HA systems.
I'm very interested in such things...

But, I thought resize_reiserfs only resize *unmounted* filesystem :
http://www.reiserfs.org/resize_reiserfs.html

Will it work under IO load ?

Reiserfs has a way to do it dynamically while using it, with mount option :
http://www.reiserfs.org/mount-options.html

I've tested this without a lot of success (I encounter a lot of problems).


I'm afraid that even if scsi subsystem support the resize option, 
FileSystems won't support it correctly...
Maybe with LVM ?

Did someone test it ?

-- 
Fabien SALVI      Centre de Ressources Informatiques
                   Archamps, France -- http://www.cri74.org
                   PingOO GNU/linux distribution : http://www.pingoo.org

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2003-03-04  9:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-03 17:21 hot scsi disk resize Alex Tomas
2003-03-03 18:15 ` Christoph Hellwig
2003-03-04  5:37   ` Alex Tomas
2003-03-04  7:00   ` alexey
2003-03-17 16:21     ` James Bottomley
2003-03-17 16:30       ` Christoph Hellwig
2003-03-04  9:31 ` Fabien Salvi [this message]
2003-03-04  9:42   ` alexey
2003-03-05 10:18     ` Fabien Salvi

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=3E64727C.9040204@cri74.org \
    --to=fabien@cri74.org \
    --cc=James.Bottomley@steeleye.com \
    --cc=axboe@suse.de \
    --cc=bzzz@tmi.comex.ru \
    --cc=linux-scsi@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 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.