4 Replies Latest reply on Nov 4, 2019 12:30 AM by tgjustincheong01

    cannot remove vmdk no such file or directory

    tgjustincheong01 Lurker

      Dear All,

      I cannot remove vmdk no such file or directory.

      How can i sloved it. Thanks!

       

      Here is my log:

      [root@tgesxi3:/vmfs/volumes/5daa7981-f59a2c83-580b-a4bf0137e922/Test/oldfiles] rm -r Test_2-flat.vmdk

      rm: can't remove 'Test_2-flat.vmdk': No such file or directory

      [root@tgesxi3:/vmfs/volumes/5daa7981-f59a2c83-580b-a4bf0137e922/Test/oldfiles] vmkfstools -D Test_2-flat.vmdk

      Lock [type 10c00001 offset 100155392 v 182, hb offset 4161536

      gen 101, mode 0, owner 00000000-00000000-0000-000000000000 mtime 2609

      num 0 gblnum 0 gblgen 0 gblbrk 0]

      Addr <4, 28, 26>, gen 58, links 1, type reg, flags 0x9, uid 0, gid 0, mode 600

      len 48855252992, nb 5023 tbz 0, cow 0, newSinceEpoch 5023, zla 3, bs 1048576

      affinityFD <4,28,26>, parentFD <4,48,23>, tbzGranularityShift 20, numLFB 0

      lastSFBClusterNum 926, numPreAllocBlocks 0, numPointerBlocks 1

       

       

      [root@tgesxi3:/vmfs/volumes/5daa7981-f59a2c83-580b-a4bf0137e922/Test/oldfiles] touch Test_2-flat.vmdk | ls -ltr | grep vmdk

      -rw-------    1 root     root     48855252992 Nov  4 07:20 Test_2-flat.vmdk

      [root@tgesxi3:/vmfs/volumes/5daa7981-f59a2c83-580b-a4bf0137e922/Test/oldfiles] vmfsfilelockinfo -p Test_2-flat.vmdk -v 10.10.1.249 -u administrator@vsphere.local

      vmfsfilelockinfo Version 2.0

      Looking for lock owners on "Test_2-flat.vmdk"

      "Test_2-flat.vmdk" is not locked by any ESX host and is Free

      Total time taken : 0.034483469999031513 seconds.

      [root@tgesxi3:/vmfs/volumes/5daa7981-f59a2c83-580b-a4bf0137e922/Test/oldfiles]

        • 1. Re: cannot remove vmdk no such file or directory
          Tayfun DEGER Hot Shot
          vExpert

          Can you connect to ESXi host with WinSCP? Can you access the datastore directory from here?

           

          Can you try to delete it via WinSCP?

          --
          Blog: https://www.tayfundeger.com
          Twitter: https://www.twitter.com/tayfundeger

          vBlogger, vExpert, Cisco Champions

          Please, if this solution helped your problem, "Helpful" if it solves your problem "Correct Answer" to mark.
          • 2. Re: cannot remove vmdk no such file or directory
            tgjustincheong01 Lurker

            HI,I can use WinSCP to connect to ESXI.

             

            But only can rename the vmdk

             

            Still can not remove it.

            • 3. Re: cannot remove vmdk no such file or directory
              a.p. Guru
              Community WarriorsUser ModeratorsvExpert

              Do any errors show up in e.g. the vmkernel.log when you run the rm command?


              André

              • 4. Re: cannot remove vmdk no such file or directory
                tgjustincheong01 Lurker

                [root@tgesxi3:/var/log] tail /var/log/vmkernel.log

                2019-11-04T08:27:00.146Z cpu4:2099479 opID=5277cca6)WARNING: Res3: 4384: [type 1] resource 511 (cluster 974) on volume labeled 'datastore1-WuZhou' already freed by another host: This may be a non-issue

                2019-11-04T08:27:00.146Z cpu4:2099479 opID=5277cca6)Fil3: 7896: Truncating <FD c28 r26> failed: Not found

                2019-11-04T08:28:05.294Z cpu5:2097714)DVFilter: 5963: Checking disconnected filters for timeouts

                2019-11-04T08:29:11.983Z cpu6:2104223)WARNING: Res3: 4384: [type 1] resource 511 (cluster 974) on volume labeled 'datastore1-WuZhou' already freed by another host: This may be a non-issue

                2019-11-04T08:29:11.990Z cpu6:2104223)WARNING: Res3: 4384: [type 1] resource 511 (cluster 974) on volume labeled 'datastore1-WuZhou' already freed by another host: This may be a non-issue

                2019-11-04T08:29:11.990Z cpu6:2104223)Fil3: 7896: Truncating <FD c28 r26> failed: Not found

                2019-11-04T08:30:57.063Z cpu6:2097727)ScsiDeviceIO: 3435: Cmd(0x459a40eeb1c0) 0x1a, CmdSN 0x130e from world 0 to dev "naa.600605b006fdc2a6235700160f916f8e" failed H:0x0 D:0x2 P:0x0 Valid sense data: 0x5 0x24 0x0.

                2019-11-04T08:31:42.655Z cpu1:2104259)WARNING: Res3: 4384: [type 1] resource 511 (cluster 974) on volume labeled 'datastore1-WuZhou' already freed by another host: This may be a non-issue

                2019-11-04T08:31:42.672Z cpu4:2104259)WARNING: Res3: 4384: [type 1] resource 511 (cluster 974) on volume labeled 'datastore1-WuZhou' already freed by another host: This may be a non-issue

                2019-11-04T08:31:42.672Z cpu4:2104259)Fil3: 7896: Truncating <FD c28 r26> failed: Not found

                [root@tgesxi3:/var/log]