最近想做一个es的集群备份,使用es的__snapshot属性来弄,但是好像多机的时候会报错,报错信息如下:
{
"error": {
"root_cause": [
{
"type": "repository_verification_exception",
"reason": "[my_backup] [E31tFQYgSvqogu-jxMf8Uw, 'RemoteTransportException[[es4][10.200.2.95:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[my_backup] a file written by master to the store [/opt/index_data_backup/my_backup] cannot be accessed on the node [{es4}{E31tFQYgSvqogu-jxMf8Uw}{10.200.2.95}{10.200.2.95:9300}]. This might indicate that the store [/opt/index_data_backup/my_backup] is not shared between this node and the master node or that permissions on the store don't allow reading files written by the master node];'], [YsmTZXZfQrqoXhcwGjLl9A, 'RemoteTransportException[[es3][10.200.2.79:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[my_backup] a file written by master to the store [/opt/index_data_backup/my_backup] cannot be accessed on the node [{es3}{YsmTZXZfQrqoXhcwGjLl9A}{10.200.2.79}{10.200.2.79:9300}]. This might indicate that the store [/opt/index_data_backup/my_backup] is not shared between this node and the master node or that permissions on the store don't allow reading files written by the master node];']]"
}
],
"type": "repository_verification_exception",
"reason": "[my_backup] [E31tFQYgSvqogu-jxMf8Uw, 'RemoteTransportException[[es4][10.200.2.95:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[my_backup] a file written by master to the store [/opt/index_data_backup/my_backup] cannot be accessed on the node [{es4}{E31tFQYgSvqogu-jxMf8Uw}{10.200.2.95}{10.200.2.95:9300}]. This might indicate that the store [/opt/index_data_backup/my_backup] is not shared between this node and the master node or that permissions on the store don't allow reading files written by the master node];'], [YsmTZXZfQrqoXhcwGjLl9A, 'RemoteTransportException[[es3][10.200.2.79:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[my_backup] a file written by master to the store [/opt/index_data_backup/my_backup] cannot be accessed on the node [{es3}{YsmTZXZfQrqoXhcwGjLl9A}{10.200.2.79}{10.200.2.79:9300}]. This might indicate that the store [/opt/index_data_backup/my_backup] is not shared between this node and the master node or that permissions on the store don't allow reading files written by the master node];']]"
},
"status": 500
}
此外,多台集群来备份的话,copy出去以后在镜像导回去也麻烦,还有这个es的镜像能换到其他的es集群里面recovery吗?
{
"error": {
"root_cause": [
{
"type": "repository_verification_exception",
"reason": "[my_backup] [E31tFQYgSvqogu-jxMf8Uw, 'RemoteTransportException[[es4][10.200.2.95:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[my_backup] a file written by master to the store [/opt/index_data_backup/my_backup] cannot be accessed on the node [{es4}{E31tFQYgSvqogu-jxMf8Uw}{10.200.2.95}{10.200.2.95:9300}]. This might indicate that the store [/opt/index_data_backup/my_backup] is not shared between this node and the master node or that permissions on the store don't allow reading files written by the master node];'], [YsmTZXZfQrqoXhcwGjLl9A, 'RemoteTransportException[[es3][10.200.2.79:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[my_backup] a file written by master to the store [/opt/index_data_backup/my_backup] cannot be accessed on the node [{es3}{YsmTZXZfQrqoXhcwGjLl9A}{10.200.2.79}{10.200.2.79:9300}]. This might indicate that the store [/opt/index_data_backup/my_backup] is not shared between this node and the master node or that permissions on the store don't allow reading files written by the master node];']]"
}
],
"type": "repository_verification_exception",
"reason": "[my_backup] [E31tFQYgSvqogu-jxMf8Uw, 'RemoteTransportException[[es4][10.200.2.95:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[my_backup] a file written by master to the store [/opt/index_data_backup/my_backup] cannot be accessed on the node [{es4}{E31tFQYgSvqogu-jxMf8Uw}{10.200.2.95}{10.200.2.95:9300}]. This might indicate that the store [/opt/index_data_backup/my_backup] is not shared between this node and the master node or that permissions on the store don't allow reading files written by the master node];'], [YsmTZXZfQrqoXhcwGjLl9A, 'RemoteTransportException[[es3][10.200.2.79:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[my_backup] a file written by master to the store [/opt/index_data_backup/my_backup] cannot be accessed on the node [{es3}{YsmTZXZfQrqoXhcwGjLl9A}{10.200.2.79}{10.200.2.79:9300}]. This might indicate that the store [/opt/index_data_backup/my_backup] is not shared between this node and the master node or that permissions on the store don't allow reading files written by the master node];']]"
},
"status": 500
}
此外,多台集群来备份的话,copy出去以后在镜像导回去也麻烦,还有这个es的镜像能换到其他的es集群里面recovery吗?
4 个回复
hailin0
赞同来自: fairyland
stab - freshman
赞同来自:
hailin0
赞同来自:
fairyland
赞同来自: