1

I have a cluster of few machines. I have to control all configuration from single system. For that I have decided to used .bashrc in Centos 7 servers (I push same .bashrc in each system via rsync from single machine). I am facing one problem, every system have external hard drive that is mounted like /dev/sdb /mnt/2c511624-12ea-48d9-853a-54af000e7239. Name of hard drive varies for each machine. How it will be possible that this name should be correct for each machine. I have to then automatically transfer some data in each disk of each system. I have tried my best to explain my problem, if it still not clear then please comment?

3
  • Maybe would be better to utilize some distributed filesystem (Gluster/Ceph)? Commented Oct 13, 2017 at 7:19
  • Are you using .bashrc for config? That is not a good idea. Either look into some config management system like ansible or create a shell script that can push out the config. That way you can check which machine it is. If not then create custom .bashrc for each machine. Commented Oct 13, 2017 at 7:39
  • My actual software (Hadoop) reads it from its own configuration Commented Oct 13, 2017 at 7:44

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.