Question

How to display the disks which a file locates

  • 23 December 2018
  • 4 replies
  • 225 views

Badge +1
I want to know the disks which a file locates. Is there any command line to display it? Thanks

4 replies

Userlevel 4
Badge +19
@yangyang

Can you provide more details on the requirement.

Also what hypervisor do u use?
Badge +1
I am using AHV cluster with 2 RF. When I write a file, I want to know which disks my file stores. Is there any approach?
Userlevel 4
Badge +19
@yangyang

1) SSH to any CVM,
2) Get the VM which u need to find the disk details.
acli vm.list | grep -i "vm name"
3) Get the VM UUID from above result.
4) Get VM details
acli vm.get "UUID" include_vmdisk_paths=true
Badge +1
@sandeepmp Thanks very much for the reply.

If I dd a file in VM, is there any way to show which physical disks the file stores?

Reply