Subscribe

CINDER - How can I relate lun clones (vol file clone) with their parent luns?

[ Edited ]
Using iscsi LUNs

How I can relate lun clones (vol file clone) with there parent luns? Is a file clone automatically split? How I can see stats of luns?

I am working with the CINDER Netapp driver using its functionality to create snapshots and from then create a lun.

I guess under the covers is using "vol file clone" for both operations so, it must create a kind of clone that acts as snapshot for next clones, so: lun -> snapshot -> 1:n clones

My question is to understand how files clones work. After reading the documentation I understand that if I do a :
df -s volname (page 92, Logical Storage Management Guide) I should see the savings due to cloning on luns, so if I am doing a file clone on a lun of 100GB I should see something like we saved 100GB, independently of space-reserved false|true. Is this assumption correct? In reality I dont see any saving. Is this meaning that the file clone is automatically split? I dont think.

I want to also understand how can I relate clones to their parent luns e.g.:

c02::> lun show -vserver vsiscsi -fields size,size-used, is-clone, qos-policy-group,space-reserve,space-allocation
vserver path
size space-reserve space-allocation size-used is-clone qos-policy-group
------- ------------------------------------------------------------------ ----- ------------- ---------------- --------- -------- ----------------
vsiscsi /vol/openstack_vol01/snapshot-dff2c013-8bfe-4a95-aa50-38ed28ad9cf8 100GB disabled disabled 0 true -
vsiscsi /vol/openstack_vol01/volume-00d992bf-1fca-403a-b0bf-4bcf7ecc439a 150GB enabled disabled 90.71MB false low_iops
vsiscsi /vol/openstack_vol01/volume-02357acc-5870-4f74-8d2a-23b5368fc37d 100GB enabled disabled 20.17GB true -
vsiscsi /vol/openstack_vol01/volume-1eb2f643-6c24-4099-8da8-68c2e58bfd04 100GB enabled disabled 0 false -
vsiscsi /vol/openstack_vol01/volume-29e3d627-edd1-45a3-a5ef-be3223e7aa49 100GB enabled disabled 20.17GB false -
vsiscsi /vol/openstack_vol01/volume-4c2a0bb7-a42d-417b-ac29-754a51e98972 100GB enabled
disabled 0 false -
vsiscsi /vol/openstack_vol01/volume-889e981c-0011-48b1-9c88-d14a8cfe70e6 10GB enabled disabled 75.31MB false -
vsiscsi /vol/openstack_vol01/volume-f685ca71-24e2-4b5b-99f9-d8f3cad7a821 1GB enabled disabled 28.76MB false low_iops
vsiscsi /vol/openstack_vol02/snapshot-bf6f5f15-ff79-48b1-acca-e739eb34765b 100GB enabled disabled 0 true -
vsiscsi /vol/openstack_vol02/volume-64f3eef6-0a84-416c-bf56-1a5a31b13ab4 100GB enabled disabled 0 true -
vsiscsi /vol/openstack_vol02/volume-713a0209-60ea-4b8f-ba9e-86f7f0265d4f 100GB enabled disabled 0 false -
vsiscsi /vol/openstack_vol02/volume-bc50dd29-8ab3-47f1-af15-f5f46630fe57 100GB enabled disabled 100.4GB false -
vsiscsi /vol/openstack_vol02/volume-da7c0dd1-c681-40d6-8eb4-f83d00cd9125 20GB enabled disabled 86.63MB false -
vsiscsi /vol/openstack_vol03/volume-38efc175-fab
a-446e-b2ce-e36902cf1ffa 100GB enabled disabled 0 false -
vsiscsi /vol/openstack_vol03/volume-62b7f871-8f53-4694-aa3f-84956b28064d 100GB enabled disabled 0 false -
vsiscsi /vol/openstack_vol03/volume-a7c7188d-226d-4e67-84d5-72848d25f39c 100GB enabled disabled 0 false -
vsiscsi /vol/openstack_vol03/volume-b05f5667-9cc4-49c0-82fd-40adc7366fd5 100GB enabled disabled 0 false -
17 entries were displayed.

And finally how can I retrieve statistics:

c02::*> statistics start -object lun -vserver vsiscsi -instance /vol/openstack_vol02/volume-bc50dd29-8ab3-47f1-af15-f5f46630fe57 -counter read_ops|read_data|write_ops|write_data|total_ops|avg_write_latency|avg_read_latency

Warning: The existing sample will be overwritten for sample-id: :sample_369.
Do you want to continue? {y|n}: y
Statistics collection is being started for Sample-id: sample_369

c02::*> statistics show -object lun -instance /vol/openstack_vol02
/volume-bc50dd29-8ab3-47f1-af15-f5f46630fe57

Error: show failed: Statistics collection for sample "sample_369", was not completed successfully. Please delete this sample.

c02::*> statistics show-periodic -object lun -instance /vol/openstack_vol02/volume-bc50dd29-8ab3-47f1-af15-f5f46630fe57

Warning: Failed to get statistics for object lun: For object "lun", no instances were found to match the given query.
Error: command failed: entry doesn't exist

Any help on the matter would be great..

Thanks