Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8839367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:13:22+00:00 2026-06-14T10:13:22+00:00

I have a complete mnesia ram_copies-only database but I am experiencing problems adding a

  • 0

I have a complete mnesia ram_copies-only database but I am experiencing problems adding a disk_copy table to a node. At the moment I do:

  1. Create all my ram_copy tables/nodes

  2. Start mnesia on the disk_copy-to-be node.

  3. Create a new schema (I didnt create a schema for the ram_copy tables) using mnesia:create_schema([Node])
  4. Copy the table I wish to be a disk_copy, using mnesia:add_table_copy(table, Node, disk_copy)
  5. I then wait for the tables to be created

Everything seems to go according to plan (no run-time errors), but when I go to the pwd(). directory and check, there is no file reflecting the table I just created. Also when I call mnesia:info() on the node, there are no disk_copy tables, only a ram_copy schema.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T10:13:23+00:00Added an answer on June 14, 2026 at 10:13 am

    Can you check that the field “running db nodes” lists both nodes that you have started ?
    It could be that you did not add the second node to the mnesia cluster.

    So if your second node was called BNode, then on the first node you would run these commands in this order:

    1) mnesia:change_config(extra_db_nodes, [BNode]).  
    2) mnesia:add_table_copy(table, BNode, disc_copies).
    

    Second: I think you should be creating the schema (step 3) before you start up mnesia on the disk_copy-to-be node (step 2).

    This is what I did to create the schema you require:
    Lets assume you have 2 nodes NodeA and NodeB.
    Make sure that there is no Mnesia dir already existing before you start this.

    %% From NodeA, setup the A node
    erl -sname a -setcookie cookie
    mnesia:start().
    mnesia:create_table(mytable, [{attributes, [field1, field2]}]).
    
    %% From NodeB, setup the B node
    erl -sname b -setcookie cookie
    net_adm:ping(NodeA).
    mnesia:create_schema([node()]).
    mnesia:start().
    
    %% From NodeA, Add the NodeB to the mnesia cluster
    [BNode | _] = nodes().
    mnesia:change_config(extra_db_nodes, [BNode]).
    
    %% From NodeA, add NodeB as a disc copy
    mnesia:add_table_copy(mytable, BNode, disc_copies).
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have used auto complete textbox previously. That auto complete works only when i
I have a boot complete broadcast receiver but it wasnt working as expected. Nor
I have complete code for implemention for facebook in my application But the problem
I have a Windows CE device that we are deploying, but we have complete
First, I think that I don't have complete understanding about 3D/Game maths. But I
I have complete image location stored in Database .The image is stored in that
I have complete readonly access to a SQL Server Database. If I try to
I am trying to make a list box where I have complete control over
I have a complete validation on an obeject and am trying to figure out
I have a complete stumper, and pose it to all of you to see

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.