0

I have a Hyper-V cluster (2008 R2) with a CSV that I want to clone. The CSV is on a fibre channel SAN (HP MSA M3 P2000 G3). I cloned a volume from the SAN side of things, and have mapped it to my cluster nodes. The cluster nodes can see the volume, but they are marked as offline, reserved.

As far as I can tell, I am having the same problem as outlined in this question: Changing 'disk ID' of Windows GPT disk via Linux except that I'm working with fibre channel.

When I run diskpart and get the uniqueid disk, both the original disk and cloned disk share the same ID. I think this is the problem.

DISKPART> select disk 10
Disk 10 is now the selected disk.
DISKPART> uniqueid disk
Disk ID: 65DC665F
DISKPART> select disk 4
Disk 4 is now the selected disk.
DISKPART> uniqueid disk
Disk ID: 65DC665F

Additionally, when I check the attributes on the clone, it shows as clustered:

DISKPART> attributes disk
Current Read-only State : Yes
Read-only  : Yes
Boot Disk  : No
Pagefile Disk  : No
Hibernation File Disk  : No
Crashdump Disk  : No
Clustered Disk  : Yes

I've also checked on the SAN, and there are no reservations on the cloned volume.

The solutions I've running across so far:

  • Online the disk from the cluster owner of the original volume, at which point the conflicting unique ID should be resolved. This is not working for me, I am unable to online the disk from the CSV's current owner.

  • Map the volume to a non-clustered server, which should be able to mount the volume, and then modify the uniqueid. Which I can't do, only cluster nodes are plugged into the FC switch.

  • Offline the original CSV, bring the clone online. An option I'd like to avoid, the CSV contains a production server's VHD.

  • Out of curiosity, why not just create a new volume rather than cloning the existing volume? – joeqwerty Feb 18 '16 at 19:28
  • I want to test the VM on some other hosts, so I need access to the VHD. – Pete Feb 18 '16 at 20:07
  • OK, I'm not really understanding why you need to clone the CSV in order to access the VHD. Is the destination host connected to the same CSV as the source host? If not, why not just create a new CSV for the destination host, export the VM from the source host, import it on the destination host and go from there? – joeqwerty Feb 18 '16 at 20:14
  • @joeqwerty I've explored that route, I might be missing something, but I have not found a way to export while the VM is running. – Pete Feb 18 '16 at 21:23
  • Oh, my apologies. I missed the point that you're running 2008 R2. Live VM exports aren't possible for you. You'd have to shut down the VM to export it. An alternative would be to backup the VM (live) and restore it to the destination host. There are a number of Hyper-V backup products on the market that will do this. One that I often use is Trilead. Their free version can perform a live backup of the VM. It's a handy tool to have around whether or not you use it for this particular task. - trilead.com/editions – joeqwerty Feb 18 '16 at 21:27
0

You can try to follow this guide: http://support.altaro.com/customer/portal/articles/1115503-how-can-i-change-the-disk-id-of-a-drive-

To view the Disk ID:

  • Open Command prompt
  • Enter the command DISKPART and hit enter
  • Enter the command LIST DISK and hit enter to list all available disks
  • Enter SELECT DISK X (Substitute "X" for the number of the disk you wish to select) and hit enter
  • Enter UNIQUEID DISK and hit enter
  • A four byte disk ID will be returned, for example: "e9eb3aa5"

To Change the Disk ID:

  • Open Command prompt
  • Enter the command DISKPART and hit enter
  • Enter the command LIST DISK and hit enter to list all available disks
  • Enter SELECT DISK X (Substitute "X" for the number of the disk you wish to select)
  • Enter UNIQUEID DISK ID=a4e19dc0 and hit enter
  • This will change the Disk ID to "a4e19dc0"
  • Enter UNIQUEID DISK and hit enter to view the new Disk ID
  • DiskPart has encountered an error: The media is write protected. See the System Event Log for more information. The disk is offline and read only – Pete Feb 18 '16 at 20:52

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.