non-active

Software-based VM-centric and flash-friendly VM storage + free version

Moderators: anton (staff), art (staff), Anatoly (staff), Max (staff)

Post Reply
copperek
Posts: 2
Joined: Mon Jul 10, 2017 8:52 pm

Mon Jul 10, 2017 9:10 pm

Hi Guys,

Hopefully you can help me with a problem i'm experiencing. first let me explain what happened that it come to this. I had a 2 node hyper-v cluster with starwind virtual san running in HA, which was running perfectly. However on one day I get a power failure and it seems I under estimated the running time of my UPS. So my virtual machines where down but one, and both of my nodes where still running when my UPS just cut the power as it was empty. After booting the sync between the nodes seems to be damaged, and as long as one of the starwind HA's was down everything went smooth, but as soon as the sync of one of the HA nodes was completed, the device became unreachable and my cluster went down. So long story short, I decided to start all over as I still could access all the important data, I copied my CSV 1 and 2 contents to an external disk and start over. When Windows Server 2012 R2 was reinstalled I thought shoot, I don't have my files excessable as my fileserver is still down, so I downloaded the latest version. I tried to mount the IMG on the first server that was ready but it was giving an error and with my backup I decided not to bother and just create empty ones. all machines imported and everthing was happy except for my Fileserver. It turned out that at the time of installation I created another target that I forgot to copy the contents from, which was interfaced directly from hyper-v and not as a CSV.

I still have my IMG file, but I need to extract the data from it. I have tried to mount it in a new target as read-only, but the state of the target is non-active, but what is worse is that my Device Size is 0MB while I'm pretty sure it is somewhere between 500 and 600GB. So anybody have an idea how I can mount my IMG to extract the data from it? there is no need to have it in HA mode again as previously, but extracting my data would help me a lot.

And yes I know Backups are really important, but I was just about to move the servers and the backup facility was already moved. But i'm quiete sure I learned my lesson, ALWAYS have backups of everything.

regards,
Ivan (staff)
Staff
Posts: 172
Joined: Thu Mar 09, 2017 6:30 pm

Tue Jul 11, 2017 4:20 pm

Hello copperek,
Thanks for your interest in StarWind solution.
Could you try to perform next steps:
1) Open folder which is contains .img file and open properties of this .img file
2) Uncheck "Read-only" and apply the changes
3) Open StarWind management console and click "Add device (advanced)" on top of console.
4) Select "Hard Disk Drive" and "Virtual Disk"
5) Check the second option "Use an Existing Virtual Disk" and specify the path for .img file. In pop-up message (header file) create new header.
6) Select Virtual block size - 512 (for ESXi/XEN/KVM); 4096 for Microsoft
7) Choose RAM cache mode and size for L1 cache
8 ) Specify L2 cache if it needed.
9) Click next and create
10) Open iSCSI Initiator and connect this target via loopback IP (127.0.0.1) NOTE: make sure you have discovered this IP in iSCSI Initiator.
11) Open Disk management and check the Filesystem. Can be RAW or NTFS
12) If it RAW it can be reserved by cluster. Open CMD as administrator and type:

Code: Select all

Diskpart
list disk 
select disk X
detail disk 
and check "Clustered Disk" string. If you will see "Yes" open PowerShell as admin and run next command:

Code: Select all

Clear-ClusterDiskReservation -disk X -f
Please keep us updated about your progress in this case.
Thanks,
Ivan
copperek
Posts: 2
Joined: Mon Jul 10, 2017 8:52 pm

Wed Jul 12, 2017 7:30 am

This did not work, however I think I have found the problem. During the reinstall my E and D drive where swapped. So it is trying to Open D:\Shares\Shares.img. I found out that the .swdsk file contains the location as well:
<storage id="2" name="My Computer\D\Shares\Shares.img" type="file">

Changed it to
<storage id="2" name="My Computer\E\Shares\Shares.img" type="file">

and removed the target from the starwind software and added it again (did not want to restart the service, as the hyper-v cluster is currently running on it)

From another machine I connected to the iSCSI portal added the device the normal way, and now I'm copying the files from it to the fileserver.

Thanks for your help. This topic can be closed.
Ivan (staff)
Staff
Posts: 172
Joined: Thu Mar 09, 2017 6:30 pm

Wed Jul 12, 2017 1:03 pm

Hello copperek,
Thanks for your reply!
Glad to hear that!
Have a great day.
Post Reply