1. For example, we already have a target image file 10g. IMG.
# Dd If =/dev/Zero of = 10g. img bs = 1 m COUNT = 10240
2. Add the following code to the/etc/Iet. conf file:
Target fat10g. img
Lun 0 Path =/work/janco/virtualdisk/fat10g. IMG, type = fileio
3. Restart the service:/etc/init. d/iSCSI-target restart
4. Mount windows or Linux and Write File data.
5.ISCSI
Initiator disconnect target
6. increase the size of the target image file by 10 Gb. IMG to 20 GB.
# Dd If =/dev/Zero of = 10g. img bs = 1 m COUNT = 10240 seek = 10240
7. Restart the service:/etc/init. d/iSCSI-target restart
8. Remount on Windows or Linux.
----------------------------------------------------------------
The above operations can be integrated into the NAS iSCSI Network Virtual Drive. You only need to capture the error "insufficient disk space when writing Files" between step 4 and Step 5 at the user's operation end"
You can.