Gregorio Silveira
Dabbler
- Joined
- Dec 30, 2014
- Messages
- 45
Hi,
I needed to grow a file that is in use on my VMWare 1.8T to 2.3T.
Performed procedures:
File Extent Based LUN:
1) Before growing the file extent based LUN, make sure all que initiators are disconnected. Stop the iSCSI service in Control Services.
2) Then, go to Services → iSCSI → File → View File Extents Extents to determine the path of the file extent to grow. Open Shell to grow the extent. This example grows / mnt / volume1 / data by 2G:
truncate -s + 500g / mnt / zfspool / vmware18TB
3) Go back to Services → iSCSI → File → View File Extents Extents and click the Edit button for the file extent. Set the size to the 0 this causes the iSCSI target to use the existing size of the file.
4) You can now start the iSCSI service and allow initiators to connect.
I did not add 500GB and reading the "man truncate" I decided to run: truncate -s + 500G /mnt/zfspool/vmware18TB
I run -s +500g and +500G :(
The amendment was:
1979657800908800
1980194671820800
When I remounted this LUN for VMWare it showed me the 1.8TB again.
Where is my mistake?
Thanks a lot.
I needed to grow a file that is in use on my VMWare 1.8T to 2.3T.
Performed procedures:
File Extent Based LUN:
1) Before growing the file extent based LUN, make sure all que initiators are disconnected. Stop the iSCSI service in Control Services.
2) Then, go to Services → iSCSI → File → View File Extents Extents to determine the path of the file extent to grow. Open Shell to grow the extent. This example grows / mnt / volume1 / data by 2G:
truncate -s + 500g / mnt / zfspool / vmware18TB
3) Go back to Services → iSCSI → File → View File Extents Extents and click the Edit button for the file extent. Set the size to the 0 this causes the iSCSI target to use the existing size of the file.
4) You can now start the iSCSI service and allow initiators to connect.
I did not add 500GB and reading the "man truncate" I decided to run: truncate -s + 500G /mnt/zfspool/vmware18TB
I run -s +500g and +500G :(
The amendment was:
1979657800908800
1980194671820800
When I remounted this LUN for VMWare it showed me the 1.8TB again.
Where is my mistake?
Thanks a lot.