private void writeLiveData() {
    lock(true);
    try {
      ifLiveRecordCount = 0;
      ifTotalRecordCount = 0;
      writeDiskStoreId();
      saveGemfireVersion();
      saveInstantiators();
      saveDataSerializers();
      saveCrfIds();
      saveDrfIds();
      saveKrfIds();
      for (DiskRegionView drv : drMap.values()) {
        writeLiveData(drv);
      }
      for (DiskRegionView drv : parent.getDiskRegions()) {
        writeLiveData(drv);
      }
      savePRConfigs();
      saveCanonicalIds();
      saveRevokedMembers();
      if (logger.isDebugEnabled()) {
        logger.debug("After compacting init file lrc={} trc={}", ifLiveRecordCount,
            ifTotalRecordCount);
      }
    } finally {
      unlock(true);
    }
  }
Write all live data to the init file
geode-core/src/main/java/org/apache/geode/internal/cache/DiskInitFile.java