Closed cryptobum closed 6 years ago
I'd recommend to follow VR configuration procedure described in admin guide:
Hi, Mike! Thanks for answer! A'm follow VR configuration procedure described in admin guide and have error. Can you look my config files maybe I missed something? Please.
node-0
metaServer.clientPort = 20000
metaServer.chunkServerPort = 30000
metaServer.logDir = /opt/qfs/conf/meta/transaction_logs
metaServer.cpDir = /opt/qfs/conf/meta/checkpoint
metaServer.recoveryInterval = 30
metaServer.clusterKey = my-fs-unique-identifier
metaServer.msgLogWriter.logLevel = INFO
chunkServer.msgLogWriter.logLevel = NOTICE
metaServer.vr.id = 0
metaServer.vr.hostnameToId = meta-0 0 meta-1 1 meta-2 2
metaServer.vr.syncVrStateFile = 1
metaServer.vr.ignoreInvalidVrState = 1
metaServer.metaDataSync.fileSystemId = 371167773649703093
metaServer.metaDataSync.servers = 192.168.233.116 20000 192.168.233.117 20000 192.168.233.118 20000
metaServer.metaDataSync.writeSync = 1
metaServer.log.receiver.listenOn = 0.0.0.0 22222
metaServer.exitOnRestart = 1
node-1
metaServer.clientPort = 20000
metaServer.chunkServerPort = 30000
metaServer.logDir = /opt/qfs/conf/meta/transaction_logs
metaServer.cpDir = /opt/qfs/conf/meta/checkpoint
metaServer.recoveryInterval = 30
metaServer.clusterKey = my-fs-unique-identifier
metaServer.msgLogWriter.logLevel = INFO
chunkServer.msgLogWriter.logLevel = NOTICE
metaServer.vr.id = 1
metaServer.vr.hostnameToId = meta-0 0 meta-1 1 meta-2 2
metaServer.vr.syncVrStateFile = 1
metaServer.vr.ignoreInvalidVrState = 1
metaServer.metaDataSync.fileSystemId = 371167773649703093
metaServer.metaDataSync.servers = 192.168.233.116 20000 192.168.233.117 20000 192.168.233.118 20000
metaServer.metaDataSync.writeSync = 1
metaServer.log.receiver.listenOn = 0.0.0.0 22222
metaServer.exitOnRestart = 1
node-2
metaServer.clientPort = 20000
metaServer.chunkServerPort = 30000
metaServer.logDir = /opt/qfs/conf/meta/transaction_logs
metaServer.cpDir = /opt/qfs/conf/meta/checkpoint
metaServer.recoveryInterval = 30
metaServer.clusterKey = my-fs-unique-identifier
metaServer.checkpoint.writeSync = 1
metaServer.msgLogWriter.logLevel = INFO
chunkServer.msgLogWriter.logLevel = NOTICE
metaServer.vr.id = 2
metaServer.vr.hostnameToId = meta-0 0 meta-1 1 meta-2 2
metaServer.vr.syncVrStateFile = 1
metaServer.vr.ignoreInvalidVrState = 1
metaServer.metaDataSync.fileSystemId = 371167773649703093
metaServer.metaDataSync.servers = 192.168.233.116 20000 192.168.233.117 20000 192.168.233.118 20000
metaServer.log.receiver.listenOn = 0.0.0.0 22222
metaServer.exitOnRestart = 1
VR configuration stored in transaction log and checkpoint, as these are replicated to all active meta server nodes. This is done order to allow to reconfigure VR (add / remove meta server nodes) without downtime.
The qfs_admin is used to configure and re-configure VR. Typically qfs_admin error messages could be used to determine what the problem is.
Additional info, including test script that configures VR, can be found in the following discussion: https://github.com/quantcast/qfs/issues/223
I try use VR with 3 meta nodes. ID 0 start is ok. But when start last nodes i see error:
and qfsadmin return error when i ping this nodes
What could be my mistake?
FULL RETURN
# metaserver MetaServer.prp