# Save changes to aerospike.conf

**URL:** <https://discuss.aerospike.com/t/save-changes-to-aerospike-conf/4253>\
**Category:** Configuration\
**Created:** [June 12, 2017, 1:47pm UTC](https://discuss.aerospike.com/t/save-changes-to-aerospike-conf/4253 "2017-06-12T13:47:56Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![SainiSairam](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@SainiSairam](https://discuss.aerospike.com/u/SainiSairam)\
**Post date:** [June 12, 2017, 1:47pm UTC](https://discuss.aerospike.com/t/save-changes-to-aerospike-conf/4253/1 "2017-06-12T13:47:56Z")

</div>

Hi Guys, I’m Sairam I’m trying to edit the aerospike.conf file using this command

[vagrant@vm1hn ~]$ vim /etc/aerospike/aerospike.conf

I have entered i to insert and this warning got displayed – INSERT – W10: Warning: Changing a readonly file

After, I made configuration changes but, I was unable to save the configuration and it says

E45: ‘readonly’ option is set (add ! to override) 29,10-24 Top

 ![](https://us1.discourse-cdn.com/flex019/uploads/aerospike/original/1X/28daa48c59fe6e4cb3a1b23530c59b8cbe7fd364.png)Could any one please guide me. I appreciate your help. Thanks for your time

---

<div class="post-metadata">

**Author:** ![kporter](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/kporter/32/515_2.png) [@kporter](https://discuss.aerospike.com/u/kporter)\
**Post date:** [June 12, 2017, 5:54pm UTC](https://discuss.aerospike.com/t/save-changes-to-aerospike-conf/4253/2 "2017-06-12T17:54:16Z")

</div>

You are trying to edit the config with a user that doesn’t have access to the file. Typically you would use `sudo`.

```auto
sudo vim /etc/aerospike/aerospike.conf

```

Read more about it here: [Sudo - ArchWiki](https://wiki.archlinux.org/index.php/sudo)

---

<div class="post-metadata">

**Author:** ![SainiSairam](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@SainiSairam](https://discuss.aerospike.com/u/SainiSairam)\
**Post date:** [June 14, 2017, 2:56am UTC](https://discuss.aerospike.com/t/save-changes-to-aerospike-conf/4253/3 "2017-06-14T02:56:09Z")

</div>

Thanks Kporter it helped to save changes in aerospike.config file. Now, I have new issue when you have time could you please help me.

 ![](https://us1.discourse-cdn.com/flex019/uploads/aerospike/original/1X/ac01e651abcabc9bfba4fedb623ce5916e5bf245.png)when I’m trying to add nodes suddenly I have a warning called connection lost and when I try to reload it to add nodes this page got displayed. ![](https://us1.discourse-cdn.com/flex019/uploads/aerospike/original/1X/05b9111ab3d4e19bf2084c804f9b439c038abd22.png)

Here is my vagrantfile

 ![](https://us1.discourse-cdn.com/flex019/uploads/aerospike/original/1X/5bdc3dbb4e902ef789cd6b2896cd8cc0ff4bca72.png)

---

<div class="post-metadata">

**Author:** ![Albot](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/albot/32/2076_2.png) [@Albot](https://discuss.aerospike.com/u/Albot)\
**Post date:** [June 14, 2017, 11:07pm UTC](https://discuss.aerospike.com/t/save-changes-to-aerospike-conf/4253/4 "2017-06-14T23:07:20Z")

</div>

AMC could just be down. Try recycling AMC or check cluster health using asadm

---

<div class="post-metadata">

**Author:** ![meher](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/meher/32/1644_2.png) [@meher](https://discuss.aerospike.com/u/meher)\
**Post date:** [June 16, 2017, 4:09am UTC](https://discuss.aerospike.com/t/save-changes-to-aerospike-conf/4253/5 "2017-06-16T04:09:24Z")

</div>

Adding a fresh node cannot be done through AMC. The node has to be configured correctly, and then brought up and it will join the cluster and finally will show on AMC.

---

<div class="post-metadata">

**Author:** ![SainiSairam](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@SainiSairam](https://discuss.aerospike.com/u/SainiSairam)\
**Post date:** [June 19, 2017, 1:53am UTC](https://discuss.aerospike.com/t/save-changes-to-aerospike-conf/4253/6 "2017-06-19T01:53:22Z")

</div>

Thanks, Meher, and How should I know that vagrantfile is configured correctly. You said the node has to configure correctly it means that I should edit the aerospike.config file in all the three VM’s, right?

---

<div class="post-metadata">

**Author:** ![meher](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/meher/32/1644_2.png) [@meher](https://discuss.aerospike.com/u/meher)\
**Post date:** [June 19, 2017, 6:18pm UTC](https://discuss.aerospike.com/t/save-changes-to-aerospike-conf/4253/7 "2017-06-19T18:18:54Z")

</div>

You are correct.

---

<div class="post-metadata">

**Author:** ![SainiSairam](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@SainiSairam](https://discuss.aerospike.com/u/SainiSairam)\
**Post date:** [June 21, 2017, 11:19pm UTC](https://discuss.aerospike.com/t/save-changes-to-aerospike-conf/4253/8 "2017-06-21T23:19:16Z")

</div>

Thanks, Meher. I have three VM’s running in vagrant and I have given the 127.0.0.1 to add the cluster in AMC and I see three nodes.

 ![](https://us1.discourse-cdn.com/flex019/uploads/aerospike/original/1X/0bceaa627a21c19da4daf21215e994e8da40aea2.png) ![](https://us1.discourse-cdn.com/flex019/uploads/aerospike/original/1X/a6e940b55e0e989f112285aceabff576ebc50dd1.png)

I haven’t made any changes to the aerospike.config file and what I understood was the cluster I have added has three nodes but they don’t communicate with each other.

Let’s say I need a replica of data 3, and when one node fails the other node, will use partition map and make sure that replica of data 3 is maintained with 2 nodes.

But, when I don’t configure the aerospike.config file the above-mentioned story will not happen.

Hi Meher, This is my understanding please correct me if I’m wrong. Thanks for your time and I appreciate your help.

---

<div class="post-metadata">

**Author:** ![meher](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/meher/32/1644_2.png) [@meher](https://discuss.aerospike.com/u/meher)\
**Post date:** [June 22, 2017, 12:00am UTC](https://discuss.aerospike.com/t/save-changes-to-aerospike-conf/4253/9 "2017-06-22T00:00:08Z")

</div>

Not sure I understand what you wrote. From the screenshot, you seem to have a 3 node cluster, and if you haven’t changed any configuration, it means that it is working through multicast and the nodes would be communicating with each other. If you have replication factor 3 on a 3 node cluster and lose one node, you can then only have replication factor 2 on the remaining 2 nodes.

---

<div class="post-metadata">

**Author:** ![SainiSairam](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@SainiSairam](https://discuss.aerospike.com/u/SainiSairam)\
**Post date:** [June 22, 2017, 12:20am UTC](https://discuss.aerospike.com/t/save-changes-to-aerospike-conf/4253/10 "2017-06-22T00:20:43Z")

</div>

Don’t I need to make any changes to the config file to achieve 3 node cluster multicast mode

these were the screen shots of 3 vm’s config files

 ![](https://us1.discourse-cdn.com/flex019/uploads/aerospike/original/1X/beb4b6098e0d2154f6e04908c13ff19a5a524917.png)

 ![](https://us1.discourse-cdn.com/flex019/uploads/aerospike/original/1X/089bf2dd1025a258b399f668579b2e5bf1f73953.png)

 ![](https://us1.discourse-cdn.com/flex019/uploads/aerospike/original/1X/64668beab8fc39e5a7befae173d0d06689f52ce9.png)

---

<div class="post-metadata">

**Author:** ![meher](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/meher/32/1644_2.png) [@meher](https://discuss.aerospike.com/u/meher)\
**Post date:** [June 22, 2017, 12:33am UTC](https://discuss.aerospike.com/t/save-changes-to-aerospike-conf/4253/11 "2017-06-22T00:33:14Z")

</div>

If you keep the default config and multicast is enabled on your network, it will just work as it seems to have. I would encourage you to read the documentation details on how to setup / configure / manage Aerospike. For this particular topic, the details are here: [http://www.aerospike.com/docs/operations/configure/network/heartbeat](http://www.aerospike.com/docs/operations/configure/network/heartbeat).

---

<div class="post-metadata">

**Author:** ![SainiSairam](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@SainiSairam](https://discuss.aerospike.com/u/SainiSairam)\
**Post date:** [June 23, 2017, 7:41pm UTC](https://discuss.aerospike.com/t/save-changes-to-aerospike-conf/4253/12 "2017-06-23T19:41:47Z")

</div>

Hi Meher,

I’m running all the three VM’s, asd, amc where also running fine but all the three nodes where not displayed in web browser amc.

 ![](https://us1.discourse-cdn.com/flex019/uploads/aerospike/original/1X/141d9985151395f39abc86af5e4026e76d255013.png)

 ![](https://us1.discourse-cdn.com/flex019/uploads/aerospike/original/1X/93f9df9cb7d6b664c7d556c15947257e3cc8cd09.png)

could you please help me find the issue here.

---

<div class="post-metadata">

**Author:** ![meher](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/meher/32/1644_2.png) [@meher](https://discuss.aerospike.com/u/meher)\
**Post date:** [June 23, 2017, 10:29pm UTC](https://discuss.aerospike.com/t/save-changes-to-aerospike-conf/4253/13 "2017-06-23T22:29:21Z")

</div>

I would recommend checking the logs of each of your nodes to figure out why a 3 node cluster was not formed. You obviously managed to have a 3 node cluster formed previously, or so it seems, from your previous screen shot.

---

<div class="post-metadata">

**Author:** ![SainiSairam](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@SainiSairam](https://discuss.aerospike.com/u/SainiSairam)\
**Post date:** [June 23, 2017, 11:03pm UTC](https://discuss.aerospike.com/t/save-changes-to-aerospike-conf/4253/14 "2017-06-23T23:03:11Z")

</div>

Yes, you are right previously, I have formed 3 three-node cluster but when I tried again I’m facing this issue. How do I check the log files? I have entered the VM1

 ![](https://us1.discourse-cdn.com/flex019/uploads/aerospike/original/1X/4bc0a74d8f764f98b42737a944f0a6e39addf159.png)

Which command should I use here?

---

<div class="post-metadata">

**Author:** ![meher](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/meher/32/1644_2.png) [@meher](https://discuss.aerospike.com/u/meher)\
**Post date:** [June 23, 2017, 11:14pm UTC](https://discuss.aerospike.com/t/save-changes-to-aerospike-conf/4253/15 "2017-06-23T23:14:50Z")

</div>

The log file is by default under /var/log/aerospike/aerospike.log

---

<div class="post-metadata">

**Author:** ![SainiSairam](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@SainiSairam](https://discuss.aerospike.com/u/SainiSairam)\
**Post date:** [June 24, 2017, 1:55pm UTC](https://discuss.aerospike.com/t/save-changes-to-aerospike-conf/4253/16 "2017-06-24T13:55:58Z")

</div>

> [@meher](#):
>
> /var/log/aerospike/aerospike.log

VM1

 ![](https://us1.discourse-cdn.com/flex019/uploads/aerospike/original/1X/4e0d250f37ca4421bfdc55e95a150f7d0d8c684b.png)VM2 ![](https://us1.discourse-cdn.com/flex019/uploads/aerospike/original/1X/7dbd3b8bbecc8d3c0c1f8cf055b86ec284c74fe5.png)VM3 ![](https://us1.discourse-cdn.com/flex019/uploads/aerospike/original/1X/35bb841539e2248294f4ffd6fc37d9ab371efc60.png)

Only VM1 is showing in AMC, VM2, VM3 is not there.

I couldn’t understand the problem here ? Please help me.

---

<div class="post-metadata">

**Author:** ![meher](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/meher/32/1644_2.png) [@meher](https://discuss.aerospike.com/u/meher)\
**Post date:** [June 24, 2017, 2:37pm UTC](https://discuss.aerospike.com/t/save-changes-to-aerospike-conf/4253/17 "2017-06-24T14:37:52Z")

</div>

The nodes don’t seem to properly see each other. My guess is that the traffic over fabric is not properly working… make sure your nodes can see each other over the fabric port 3001, through the interface specified (if any) under the fabric stanza. But it is hard to debug with limited logs.
