On Thu, 8 Jun 2017 19:38:23 +0200
Michael Rasmussen <m...@datanom.net> wrote:

> On Thu, 8 Jun 2017 19:21:50 +0200
> Michael Rasmussen <m...@datanom.net> wrote:
> 
> > I seem to have found a bug in the API because changing the size through
> > the API all though the zvol is properly resized rescanning the session
> > on the client side does not show the changed size. If I do the same
> > from the FreeNAS GUI then it works as expected!
> >   
> Created a bug report: https://bugs.freenas.org/issues/24432
> 
To conclude on this long thread:
1) Online resize is not functional due to the bug in FreeNAS API so
until this bug is resolved only allow offline resize
2) If I manually resizes the disk in the FreeNAS gui and rescan the
iscsi session on the client online resize works with both VM and CT
VM:
   1) Change size of zvol
   2) rescan iscsi session
   3) qmp block_resize drive-scsiX +size[KMG]
CT:
   1) Change size of zvol
   2) rescan iscsi session
   3) unshare -m -- sh -c 'mount --make-rprivate / && mount 
/dev/disk/by-path/ip-10.0.1.32:3260-iscsi-iqn.2005-10.org.freenas.ctl:some_lun 
/tmp && resize2fs 
/dev/disk/by-path/ip-10.0.1.32:3260-iscsi-iqn.2005-10.org.freenas.ctl:some_lun'


-- 
Hilsen/Regards
Michael Rasmussen

Get my public GnuPG keys:
michael <at> rasmussen <dot> cc
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3C9A00E
mir <at> datanom <dot> net
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE501F51C
mir <at> miras <dot> org
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917
--------------------------------------------------------------
/usr/games/fortune -es says:
If redness or swelling develop, consult physician promptly.

Attachment: pgpbhqqrLLfhb.pgp
Description: OpenPGP digital signature

_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to