Content-Type: multipart/mixed; boundary="===============5836070337183985823==" MIME-Version: 1.0 From: Harris, James R Subject: [SPDK] Re: On the resize of bdevs with iSCSI initiator backend or NVMf backend Date: Wed, 18 Aug 2021 04:53:21 +0000 Message-ID: In-Reply-To: PH0PR11MB50143DAA5CE1FA9FFC85855483FF9@PH0PR11MB5014.namprd11.prod.outlook.com List-ID: To: spdk@lists.01.org --===============5836070337183985823== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Shengchao, The bdev nvme module detects namespace size changes based on AER completion= s and reports them to the bdev layer using spdk_bdev_notify_blockcnt_change= (). If you are seeing different behavior, could you file an issue with spe= cific repro steps and the SPDK version you are testing on https://github.co= m/spdk/spdk/issues? For iSCSI, the bdev module does not currently detect and report resizes. I= t could be added, but no one is working on that currently. This could also= be filed in the GitHub issues database as an enhancement request. Regards, Jim =EF=BB=BFOn 8/17/21, 9:07 PM, "Cao, Gang" wrote: Hi Shengchao, The resize capability is also relying on the backend supporting device.= Take iSCSI device as example, if it could do the dynamic resize (increasin= g the capacity), the we could add a bdev_iscsi_resize() function. Once the = backend device is increased for its capacity, then we could call the spdk_b= dev_notify_blockcnt_change() function to trigger the notification. You may also refer to the bdev_rbd_resize() function and related RPC op= eration to trigger the resize. So basically if the backend device could do = the resize at runtime (like SPDK LVOL, Ceph RBD), then we could easily supp= ort the runtime resize. Thanks, Gang -----Original Message----- From: liushengchao02(a)meituan.com = Sent: Wednesday, August 18, 2021 11:31 To: spdk(a)lists.01.org Subject: [SPDK] On the resize of bdevs with iSCSI initiator backend or = NVMf backend Hello, We are studying SPDK and preparing for remote storage applications. After testing, I find that bdevs created by bdev_iscsi_create or bdev_n= vme_attach_controller can't resize accordingly when the connected remote ta= rget block devices have been resized online. However, when using 'nvme connect' or 'iscsiadmin' commands, the connec= ted block devices can resize accordingly as remote storage resizes and loca= l users can use the connected remote storage without interruption (with the= help of resize2fs or xfs_growfs). I learned that SPDK support resize of bdevs with ceph rbd or logical vo= lume beckend (i.e. bdevs created by bdev_rbd_create and bdev_lvol_create). Dose SPDK support or will support the resize of iSCSI and NVMf backend = when the connected remote target has been resized? Thank you very much. _______________________________________________ SPDK mailing list -- spdk(a)lists.01.org To unsubscribe send an email to spdk-leave(a)lists.01.org _______________________________________________ SPDK mailing list -- spdk(a)lists.01.org To unsubscribe send an email to spdk-leave(a)lists.01.org --===============5836070337183985823==--