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?
- Maybe would be better to utilize some distributed filesystem (Gluster/Ceph)?Jaroslav Kucera– Jaroslav Kucera2017-10-13 07:19:17 +00:00Commented 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.Tux_DEV_NULL– Tux_DEV_NULL2017-10-13 07:39:14 +00:00Commented Oct 13, 2017 at 7:39
- My actual software (Hadoop) reads it from its own configurationHafiz Muhammad Shafiq– Hafiz Muhammad Shafiq2017-10-13 07:44:58 +00:00Commented Oct 13, 2017 at 7:44
Add a comment |