Microsoft Virtualization Discussions

Copy-NaHostFile cmdlet

vloiseau
2,723 Views

Hi,

I want to have confirmation on the fact that if I have a fixed-thin syspreped VHD template, the Copy-NaHostFile cmdlet will make a thin-fixed copy ?

Thanks.

valéry.

1 ACCEPTED SOLUTION

sizemore
2,723 Views

Yes, Copy-NaHostFile leverages flexclone for files, aka sub-lun cloning.  If the source VHD is properly aligned, and the reference limit for a block hasn't been exceeded the clone will exactly match the source.  If the source VHD is not properly aligned the entier VHD will be copied.  Any block that has reached it's max ref count will be copied.  With those two exceptions no new blocks are written the cloning operation is just a bunch of pointer manipulation.

~Glenn

View solution in original post

1 REPLY 1

sizemore
2,724 Views

Yes, Copy-NaHostFile leverages flexclone for files, aka sub-lun cloning.  If the source VHD is properly aligned, and the reference limit for a block hasn't been exceeded the clone will exactly match the source.  If the source VHD is not properly aligned the entier VHD will be copied.  Any block that has reached it's max ref count will be copied.  With those two exceptions no new blocks are written the cloning operation is just a bunch of pointer manipulation.

~Glenn

Public