4

harbor数据从本地磁盘迁移到NFS问题汇总

 2 years ago
source link: https://huanghantao.github.io/2022/04/11/harbor%E6%95%B0%E6%8D%AE%E4%BB%8E%E6%9C%AC%E5%9C%B0%E7%A3%81%E7%9B%98%E8%BF%81%E7%A7%BB%E5%88%B0NFS%E9%97%AE%E9%A2%98%E6%B1%87%E6%80%BB/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

harbor数据从本地磁盘迁移到NFS问题汇总

2022-04-11

harbor

Comments Word Count: 227(words) Read Count: 1(minutes)

开始harbor的数据是放在本地磁盘的,然后满了,想要挂到NFS里面。

本以为拷贝到NFS里面就可以直接运行了。但是,发现有几个容器起不来。通过查看日志发现,是因为一些目录没拷贝过来,以及目录的权限有问题导致的。

因为我们的harbor是通过docker容器运行的,所以,它生成的数据目录owner不都是rootharbor的启动方式要求是root权限)。所以,在拷贝的时候,要注意保留原来的目录owner和权限才行。然后没拷贝完整的目录都再单独拷贝一下即可。

总之,迁移harbor数据的问题不要慌,先把没迁移数据前的启动日志记录了下来,然后再和迁移后的启动日志对比一下,就可以开始排查问题了。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK