Page Blob 文件释放租约工具

问题描述

有些情况下,我们删除 Page Blob 文件会报告以下错误:

error

解决方法

这里下载工具。 语法格式:

breaklease <accountName> <accountKey> <page blob url>

breaklease portalvhds70gssrgbwgbn3 dvxTERq99Ws8EkGbmRK4VThrclJ2THAK1gd051gFK9z6k29NR4L51BFrm5Q4NPJt7qUKRwq33nMSlRjpAX1BnA== https://portalvhds70gssrgbwgbn3.blob.core.chinacloudapi.cn/vhds/team-server-team-server-0530-1.vhd

测试示例

  1. 测试删除一个挂载的磁盘,由于该磁盘被占用,删除会报告以下错误:

    error2-1 error2-1

  2. 运行工具,执行:

    breaklease portalvhds70gssrgbwgbn3 dvxTERq99Ws8EkGbmRK4VThrclJ2THAK1gd051gFK9z6k29NR4L51BFrm5Q4NPJt7qUKRwq33nMSlRjpAX1BnA== https://portalvhds70gssrgbwgbn3.blob.core.chinacloudapi.cn/vhds/team-server-team-server-0530-1.vhd
    

    释放租约成功后,成功删除文件:

    success