I have a Linux server with a disk containing a loop device that contains a Windows NTFS volume, connecting to my Windows machines via iSCSI. After a connection problem Windows insisted to recheck the NTFS volume, ultimately to reformat it. That didn't sound as a good idea to me and I started by saving the image, called disk01.img, to another location on my Linux server. Then I let Windows rewrite the volume, so now I have a correct Windows volume, which is still empty. I tried to copy back the file disk01.img, but that doesn't seem to work yet. I would now like to use the saved copy of disk01.img as the source for iSCSI. However, the docs are not quite clear to me on how to do that and I would appreciate some help. I have now:
Quote:
targetcli
/> ls /backstores/fileio/disk01
o- disk01 ................ [/storage/disk01.img (680.0GiB) write-back activated]
o- alua ..................................................... [ALUA Groups: 1]
o- default_tg_pt_gp ......................... [ALUA state: Active/optimized]
|
I would like trying to change the parameter disk01 from the current /storage/disk01.img into /saveddir/disk01.img but I don't want to make any errors here and this is not something I have done before. What would be the correct instruction in targetcli?
Edit:
Solved, found it