Due to certains constraints with respect to the size of the AWS instance which is about 500GB, i am going for the complex approach of merging two different Planet OSM files.
This is the approach am following:

  1. Northamerica.osm.bz2 - decompress it to .osm using bzip2 -d command (bz2 size - 12 GB and decompressed .osm size is 161 GB)
  2. Southamerica.osm.bz2 - decompress it to .osm using bzip2 -d command (bz2 size - 2.33GB and decompressed .osm size is 31 GB)
  3. Merge Northamerica.osm and Southamerica.osm using osmosis command to get merged.osm (merged.osm size is 168 GB)
  4. Again zip merged.osm to bz2 due to the limitations in size of my AWS instance
  5. Them Import this merged.osm.bz2 to respective DB directories accordingly

Among the above steps, i got stuck at 4th step where i tries to zip the merged.osm to merge.osm.bz2

So many times the operation got aborted. Dont exactly know whats the issue.
Can someone help in this context?