Skip to contentSkip to conversation

Drivers: scsi

DISCUSSION K. Y. Srinivasan 2 participants 3 messages Nov 3, 2012 – Nov 4, 2012 SCSI

lore
Share & tools
lore
#0 lore raw

Do we currently support dynamic re-sizing of LUNs. Hyper-V can notify capacity change via sense data and I was wondering if this is handled in the generic scsi code.

Regards,

K. Y

maintainer
#1 lore raw
Quoted 3 lines · K. Y. Srinivasan

Do we currently support dynamic re-sizing of LUNs. Hyper-V can notify capacity change via sense data and I was wondering if this is handled in the generic scsi code.

Depends what you mean by "dynamic". Experience shows that most users really don't want all this to happen without manual intervention (particularly on shrink). However, we have the mechanics in place. Just send ASC/Q 2A/09 and it can get vectored up to LVM which resizes the volume and can be scripted automatically to resize the filesystem.

hypervisor people tend to have problems with scripting, so there are some hacks that do this outside of the normal event system ... see for example virtio_scsi.c

James

#2 lore raw
Quoted 22 lines

-----Original Message-----
From: James Bottomley [mailto:[email protected]]
Sent: Sunday, November 04, 2012 4:39 AM
To: KY Srinivasan
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; linux- [email protected]
Subject: Re: Drivers: scsi

Quoted 3 lines · K. Y. Srinivasan

Do we currently support dynamic re-sizing of LUNs. Hyper-V can notify capacity change via sense data and I was wondering if this is handled in the generic scsi code.

Depends what you mean by "dynamic". Experience shows that most users really don't want all this to happen without manual intervention (particularly on shrink). However, we have the mechanics in place. Just send ASC/Q 2A/09 and it can get vectored up to LVM which resizes the volume and can be scripted automatically to resize the filesystem.

Quoted 3 lines

hypervisor people tend to have problems with scripting, so there are some hacks that do this outside of the normal event system ... see for example virtio_scsi.c

Thanks for the prompt response.

Regards,

K. Y