I have an 1.8TB volume that contains an 800GB extent. This is mounted as an NTFS volume on a Windows server and is now nearly full of data.
I want to expand the extent to the use the full 1.8TB, without losing the current data. The best I can tell, this is how to do it:
1. disconnect the connection from Windows
2. Stop the iSCSI service: Services -> Control Services -> iSCSI set to OFF
2. determine the path of the file extent: Services -> iSCSI -> Extents -> View Extents
3. expand this file by one terabyte: truncate -s +1t /mnt/myZFSVolume/myextent
4. set the extent size to 0 to use the existing size of the file (now 1.8TB): Services -> iSCSI -> Extents -> myextent set 'Extent size' to 0.
5. start the iSCSI service and allow Windows connection
6. Windows Disk Management should mount the original drive and show the the added space as Unallocated. Run Extend Volume to add the new space.
Is this how it should work? Or am I in danger of losing existing data?
Thanks!
(FreeNas build: FreeNAS-9.1.1-RELEASE-x64 (a752d35))
I want to expand the extent to the use the full 1.8TB, without losing the current data. The best I can tell, this is how to do it:
1. disconnect the connection from Windows
2. Stop the iSCSI service: Services -> Control Services -> iSCSI set to OFF
2. determine the path of the file extent: Services -> iSCSI -> Extents -> View Extents
3. expand this file by one terabyte: truncate -s +1t /mnt/myZFSVolume/myextent
4. set the extent size to 0 to use the existing size of the file (now 1.8TB): Services -> iSCSI -> Extents -> myextent set 'Extent size' to 0.
5. start the iSCSI service and allow Windows connection
6. Windows Disk Management should mount the original drive and show the the added space as Unallocated. Run Extend Volume to add the new space.
Is this how it should work? Or am I in danger of losing existing data?
Thanks!
(FreeNas build: FreeNAS-9.1.1-RELEASE-x64 (a752d35))