* block device type supporting trim or scsi unmap ? [not found] <4d1098b7-0c3e-4253-9381-be021467b76e@mailpro> @ 2012-05-10 10:19 ` Alexandre DERUMIER 2012-05-10 10:27 ` ronnie sahlberg 0 siblings, 1 reply; 5+ messages in thread From: Alexandre DERUMIER @ 2012-05-10 10:19 UTC (permalink / raw) To: kvm Hi, I'm looking to implement a san storage with ssd drive. which block device type support trim or scsi unmap ? I think ide support it (but performance...) scsi ? virtio ? virtio-scsi ? Regards, Alexandre Derumier ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: block device type supporting trim or scsi unmap ? 2012-05-10 10:19 ` block device type supporting trim or scsi unmap ? Alexandre DERUMIER @ 2012-05-10 10:27 ` ronnie sahlberg 2012-05-10 12:28 ` Alexandre DERUMIER 0 siblings, 1 reply; 5+ messages in thread From: ronnie sahlberg @ 2012-05-10 10:27 UTC (permalink / raw) To: Alexandre DERUMIER; +Cc: kvm On Thu, May 10, 2012 at 8:19 PM, Alexandre DERUMIER <aderumier@odiso.com> wrote: > Hi, > I'm looking to implement a san storage with ssd drive. > > which block device type support trim or scsi unmap ? > > I think ide support it (but performance...) > > scsi ? > virtio ? > virtio-scsi ? iscsi supports it too but it requires that your iscsi target supports these opcodes, and that the filesystem/storage behind it supports it too. TGTD with EXT4 and a suitable storage device should do the trick. > > > Regards, > > Alexandre Derumier > > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: block device type supporting trim or scsi unmap ? 2012-05-10 10:27 ` ronnie sahlberg @ 2012-05-10 12:28 ` Alexandre DERUMIER 2012-05-10 12:36 ` ronnie sahlberg 0 siblings, 1 reply; 5+ messages in thread From: Alexandre DERUMIER @ 2012-05-10 12:28 UTC (permalink / raw) To: ronnie sahlberg; +Cc: kvm >>iscsi supports it too but it requires that your iscsi target supports >>these opcodes, and that the filesystem/storage behind it supports it >>too. >>TGTD with EXT4 and a suitable storage device should do the trick. I'm using a iscsi solaris target, with scsi UNMAP support. Drives also support scsi unmap in raid (ocz talos hdd). I'm using direct lun access from host to guest. But my question was, which block device inside guests have trim or scsi unmap implemention ? ----- Mail original ----- De: "ronnie sahlberg" <ronniesahlberg@gmail.com> À: "Alexandre DERUMIER" <aderumier@odiso.com> Cc: kvm@vger.kernel.org Envoyé: Jeudi 10 Mai 2012 12:27:05 Objet: Re: block device type supporting trim or scsi unmap ? On Thu, May 10, 2012 at 8:19 PM, Alexandre DERUMIER <aderumier@odiso.com> wrote: > Hi, > I'm looking to implement a san storage with ssd drive. > > which block device type support trim or scsi unmap ? > > I think ide support it (but performance...) > > scsi ? > virtio ? > virtio-scsi ? iscsi supports it too but it requires that your iscsi target supports these opcodes, and that the filesystem/storage behind it supports it too. TGTD with EXT4 and a suitable storage device should do the trick. > > > Regards, > > Alexandre Derumier > > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- -- Alexandre D erumier Ingénieur Système Fixe : 03 20 68 88 90 Fax : 03 20 68 90 81 45 Bvd du Général Leclerc 59100 Roubaix - France 12 rue Marivaux 75002 Paris - France ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: block device type supporting trim or scsi unmap ? 2012-05-10 12:28 ` Alexandre DERUMIER @ 2012-05-10 12:36 ` ronnie sahlberg 2012-05-10 20:42 ` Alexandre DERUMIER 0 siblings, 1 reply; 5+ messages in thread From: ronnie sahlberg @ 2012-05-10 12:36 UTC (permalink / raw) To: Alexandre DERUMIER; +Cc: kvm On Thu, May 10, 2012 at 10:28 PM, Alexandre DERUMIER <aderumier@odiso.com> wrote: >>>iscsi supports it too but it requires that your iscsi target supports >>>these opcodes, and that the filesystem/storage behind it supports it >>>too. >>>TGTD with EXT4 and a suitable storage device should do the trick. > > I'm using a iscsi solaris target, with scsi UNMAP support. > Drives also support scsi unmap in raid (ocz talos hdd). > I'm using direct lun access from host to guest. > > > But my question was, which block device inside guests have trim or scsi unmap implemention ? > > Guess it depends on how recent kernel your guest runs. If you present it as a SCSI disk to the guest, then I have successfully had Linux Mint 12 guests do UNMAP when accessing /dev/sd* from within the guest. If you present the device as a SCSI disk to the guest, you use a recent 3.x linux kernel for the guest and EXT4 as the filesystem I guess it should work. Dont know about status for IDE emulation. regards ronnie sahlberg ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: block device type supporting trim or scsi unmap ? 2012-05-10 12:36 ` ronnie sahlberg @ 2012-05-10 20:42 ` Alexandre DERUMIER 0 siblings, 0 replies; 5+ messages in thread From: Alexandre DERUMIER @ 2012-05-10 20:42 UTC (permalink / raw) To: ronnie sahlberg; +Cc: kvm >>Guess it depends on how recent kernel your guest runs. >>If you present it as a SCSI disk to the guest, then I have >>successfully had Linux Mint 12 guests do UNMAP when accessing /dev/sd* >>from within the guest. Ok, thanks for the info, i'll try it ! ----- Mail original ----- De: "ronnie sahlberg" <ronniesahlberg@gmail.com> À: "Alexandre DERUMIER" <aderumier@odiso.com> Cc: kvm@vger.kernel.org Envoyé: Jeudi 10 Mai 2012 14:36:38 Objet: Re: block device type supporting trim or scsi unmap ? On Thu, May 10, 2012 at 10:28 PM, Alexandre DERUMIER <aderumier@odiso.com> wrote: >>>iscsi supports it too but it requires that your iscsi target supports >>>these opcodes, and that the filesystem/storage behind it supports it >>>too. >>>TGTD with EXT4 and a suitable storage device should do the trick. > > I'm using a iscsi solaris target, with scsi UNMAP support. > Drives also support scsi unmap in raid (ocz talos hdd). > I'm using direct lun access from host to guest. > > > But my question was, which block device inside guests have trim or scsi unmap implemention ? > > Guess it depends on how recent kernel your guest runs. If you present it as a SCSI disk to the guest, then I have successfully had Linux Mint 12 guests do UNMAP when accessing /dev/sd* from within the guest. If you present the device as a SCSI disk to the guest, you use a recent 3.x linux kernel for the guest and EXT4 as the filesystem I guess it should work. Dont know about status for IDE emulation. regards ronnie sahlberg -- -- Alexandre D erumier Ingénieur Système Fixe : 03 20 68 88 90 Fax : 03 20 68 90 81 45 Bvd du Général Leclerc 59100 Roubaix - France 12 rue Marivaux 75002 Paris - France ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-05-10 20:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <4d1098b7-0c3e-4253-9381-be021467b76e@mailpro>
2012-05-10 10:19 ` block device type supporting trim or scsi unmap ? Alexandre DERUMIER
2012-05-10 10:27 ` ronnie sahlberg
2012-05-10 12:28 ` Alexandre DERUMIER
2012-05-10 12:36 ` ronnie sahlberg
2012-05-10 20:42 ` Alexandre DERUMIER
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox