赞
踩
cat /var/lib/kubelet/plugins/kubernetes.io/csi/pv/pvc-72e9a3f6-fe6d-4311-a6d4-3b4a98a72ae4/globalmount/image-meta.json
{"Version":3,"pool":"rbddata","radosNamespace":"","image":"csi-vol-fe53df33-f86f-11ed-8717-ce5768b14b50","unmapOptions":"","accessType":true,"encrypted":false,"device":"/dev/nbd0","logDir":"/var/log/ceph","logFileStrategy":"remove"}
在ceph-csi重建之后,需要恢复挂载点的信息,rbd_healer.go会调用相关函数去恢复,以nbd为例,在恢复的时候不会调用map命令,而是调用attach,而attach的时候需要指定设备名称,如/dev/nbd0
,这些信息就是通过这个元数据而获得的。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。