SOLVED resize iscsi file extent?

Elias Pereira

Dabbler
Joined
Apr 5, 2017
Messages
20
Hello,

I have a freenas 9 installed on a xenserver. I did the
procedure to increase the disk in xenserver and also in freenas.

I checked and the extent file I have configured for
a debian client is still at the old disk size.

Is there any way to resize this file?
 

HoneyBadger

actually does care
Administrator
Moderator
iXsystems
Joined
Feb 6, 2014
Messages
5,110
Just so I'm clear:
FreeNAS is installed as a guest on XenServer, using virtual disks as backing storage. You've resized the virtual disk Xen is presenting to FN and FN sees the new size.
You're running an iSCSI file extent for a Debian guest - is the guest under XenServer or bhyve in FreeNAS?
Have you resized the file extent itself from within FreeNAS, and triggered a SCSI rescan/refresh from inside Debian?
 

Elias Pereira

Dabbler
Joined
Apr 5, 2017
Messages
20
> You're running an iSCSI file extent for a Debian guest - is the guest under XenServer or bhyve in FreeNAS?
Under xenserver

> Have you resized the file extent itself from within FreeNAS, and triggered a SCSI rescan/refresh from inside Debian?
I tried to resize the extent file with a
Code:
truncate -s +16G /mnt/strdc3/strdc3.file

but apparently it didn't work.

Is there another way to do this?
 
Last edited:

Elias Pereira

Dabbler
Joined
Apr 5, 2017
Messages
20
Now it worked with reisize2fs directly on the guest OS (debian). I was forcing the unmounting of /dev/sda, but I was not stopping the samba4 services. So it wasn't completely unmounted.

I did that now and was able to resize.

Thanks for the great help!!!
 
Top