---
title: "Discussion on \"The NFS share that was secretly SMB: debugging an Azure Files CSI snapshot restore\" | Hashnode"
description: "Discussion on \"The NFS share that was secretly SMB: debugging an Azure Files CSI snapshot restore\". A snapshot restore on AKS failed with an AzCopy error that pointed in the wrong direction. The real cause was a share created with the wrong protocol, and the error message itself had a copy-paste bug."
url: "https://hashnode.com/posts/the-nfs-share-that-was-secretly-smb-debugging-an-azure-files-csi-snapshot-restore/6aec797e69b281f2a5cfef3c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The NFS share that was secretly SMB: debugging an Azure Files CSI snapshot restore](https://theilgaard.dev/the-nfs-share-that-was-secretly-smb-debugging-an-azure-files-csi-snapshot-restore?utm_source=hashnode&utm_medium=feed)

A snapshot restore on AKS failed with an AzCopy error that pointed in the wrong direction. The real cause was a share created with the wrong protocol, and the error message itself had a copy-paste bug.

Nov 5 · 8 min read · theilgaard.dev  
Read the article

-   [#kubernetes](https://hashnode.com/tag/kubernetes)
-   [#azure](https://hashnode.com/tag/azure)
-   [#aks](https://hashnode.com/tag/aks)
-   [#csi](https://hashnode.com/tag/csi)
-   [#nfs](https://hashnode.com/tag/nfs)
-   [#azcopy](https://hashnode.com/tag/azcopy)
-   [#debugging](https://hashnode.com/tag/debugging)

## Written by

[Kristian Theilgaard](https://hashnode.com/@theilgaard)

@theilgaard · Copenhagen, DK

  
[View profile](https://hashnode.com/@theilgaard)

Hack, hackity, hack hack hack!

Computer Scientist with an interest in all tech! Let's hack!

## Responses 1

Markdown supported · ⌘↵ to post

[Gonzalo Gjuka](https://hashnode.com/@gonzalogjuka)

[Nov 7](https://hashnode.com/posts/the-nfs-share-that-was-secretly-smb-debugging-an-azure-files-csi-snapshot-restore/6aec797e69b281f2a5cfef3c/comment/6aef56f421f7eca6e70a5eeb)

"Watch the cleanup side of retention" applies one level up too. On Azure the managed disks that back PVCs have a `diskState` worth reading before trusting a count: `Unattached` is the real orphan; `Reserved` means the disk belongs to a stopped-deallocated VM and comes back on Start; `ActiveSAS` means someone ran `az disk grant-access` and is exporting the VHD. The portal-style check "managedBy is null" lists the last two as free to delete; `az disk list --query "[?diskState=='Unattached'].[name,diskSizeGb,lastOwnershipUpdateTime]" -o table` does not. Same pattern as your snapshots: the object that "works" for days is the one whose delete path nobody exercised, so the inventory is the test.
