16.4 Migration using Offline Tool

To migrate the event data partitions, you can use the offline tool. This tool must be run on the Sentinel server to migrate the underlying H2DB version of the attachment data partition to the latest version. You will not be able to view attachments in older data if you do not migrate event data partitions containing Change Guardian attachment data using the offline tool.

16.4.1 How to Migrate using Offline Tool

You should use an offline tool if only your Sentinel system is integrated with Change Guardian. To migrate the attachment data partitions, you must use the offline tool. You can run the offline tool on event data partitions containing attachment data on primary storage (Sentinel server) or secondary storage (NFS, CIFS, and SAN).

Migration of Attachment Data using the Offline Tool on the Sentinel Server (Primary Storage)

Below steps to be followed:

  1. Log in to the Sentinel server.

  2. Switch to novell user:

    su novell
  3. Go to the following directory:

    <sentinel_installation_path>/opt/novell/sentinel/bin
  4. Run the following script:

    ./h2migrate.sh <event datadirectory path> <from date> <to date>

    Example: ./h2migrate.sh /var/opt/novell/sentinel/data/eventdata/events 20220825 20220925

    The above parameters mentioned in the command migrate partitions containing attachment data from Aug 25, 2022 to September 25, 2022.

Migration of Attachment data using offline tool on the Secondary Storage

Run the following script:

./h2migrate.sh <Event data directory path> <fromDate> <toDate>
  • <fromDate>: The from date to start migrating attachment (H2DB) files.

    Example: 20220510 OR using wildcards 20220510* OR 202205 OR 2022

  • <toPartitionId>: The to partition date to end migrating attachment (H2DB) files.

    Example: 20220510 OR using wildcards 20220510* OR 202205 OR 2022

For more information, run the following command:

./h2migrate.sh