I have read that the best way to add space to a file based iSCSI extent is to follow the instruction in the manual like so:
Before growing a file extent based LUN, make sure that all initiators are disconnected. Stop the iSCSI
service in Control Services.
Then, go to Services - iSCSI - File Extents - View File 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 +2g /mnt/volume1/data
Go back to Services - iSCSI - File Extents - View File Extents and click the Edit button for the file
extent. Set the size to 0 as this causes the iSCSI target to use the new size of the file.
You can now start the iSCSI service and allow initiators to connect.
I have two Xen servers that attach to this iSCSI target and they host 8 virtual machines. My question is: Should I plan to restore the virtual machines from back up? or will the data be preserved when I increase the size of the file extent? I just need to plan for enough time to get the servers back up and running.
Thank you
Shawn
FreeNAS-9.2.1.8-RELEASE-x64 (e625626)
Tyan S8208GM2NR (Dell 3 node C6005)
Six-Core AMD Opteron(tm) Processor 2419 EE
32745MB Memory
Before growing a file extent based LUN, make sure that all initiators are disconnected. Stop the iSCSI
service in Control Services.
Then, go to Services - iSCSI - File Extents - View File 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 +2g /mnt/volume1/data
Go back to Services - iSCSI - File Extents - View File Extents and click the Edit button for the file
extent. Set the size to 0 as this causes the iSCSI target to use the new size of the file.
You can now start the iSCSI service and allow initiators to connect.
I have two Xen servers that attach to this iSCSI target and they host 8 virtual machines. My question is: Should I plan to restore the virtual machines from back up? or will the data be preserved when I increase the size of the file extent? I just need to plan for enough time to get the servers back up and running.
Thank you
Shawn
FreeNAS-9.2.1.8-RELEASE-x64 (e625626)
Tyan S8208GM2NR (Dell 3 node C6005)
Six-Core AMD Opteron(tm) Processor 2419 EE
32745MB Memory