> For the complete documentation index, see [llms.txt](https://documentation.atempo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.atempo.com/lina-7.4/lina-7.4-en/administration-guide/appendix-advanced-operations/appendix-a-performing-advanced-operations.md). Agents can also search and read this documentation through its [MCP server](https://documentation.atempo.com/~gitbook/mcp).

# Appendix A: Performing Advanced Operations

This chapter explains how to perform various configuration operations regarding:

* **The ADE index database**
* **The ADE block directories**
* **The Lina agent database directories**

## Operations in the ADE command-line console

This section explains how to use the ADE command-line console for advanced administration operations.

### Moving the ADE database

1. Stop the Deduplication Engine service (default <kbd>ADE.default</kbd>).
2. Run this command: `ade_server --base_path=<path>`\
   Where `<path>` is the new path for the database and index.
3. Run this command: `ade_server --log_path=<path>`\
   Where `<path>` is the new path for the database logs, usually a subdirectory of the database directory defined in step 2.\
   All database files are moved to the new path.

> **Note:** The database must be located on a local SSD disk.

### Managing ADE storage space

Adding or deleting a storage space can also be done in the Lina Administration Console.

#### Adding a storage space

When you add a storage space, existing block files remain in the storage space where they were originally written.

You can add storage spaces using the <kbd>repository\_path</kbd> command. Each time a new block file needs to be written, the Atempo Deduplication Engine writes to the next storage space in the list, in a round-robin fashion.

It is recommended to use local disks to locate the storage space.

To add a storage space:

1. Stop the Deduplication Engine service (default <kbd>ADE.default</kbd>).
2. Run this command:

   ```bash
   ade_server --repository_path="<path1>;<path2>;<pathn>"
   ```

   Where `<path1>;<path2>;<pathn>` is the list of all storage space paths in use, including the path of the new space. You can write up to 2048 characters when defining storage space paths.
3. Restart the Deduplication Engine service.

#### Deleting a storage space

A storage space's path can be removed from <kbd>repository\_path.</kbd>

If you delete a storage space that already contained backups, the backed-up data remains in the storage space, unless you move the existing block files using one of the commands described in [<mark style="color:blue;">To move the content of an existing storage space</mark>. ](#moving-a-storage-space)Do not manually move block files, otherwise the Atempo Deduplication Engine loses track of these files.

To delete a storage space:

1. Stop the Deduplication Engine service (default <kbd>ADE.default</kbd>).
2. Run this command:

   ```bash
   ade_server --repository_path="<path1>;<path2>;<pathn>"
   ```

   Where `<path1>;<path2>;<pathn>` is the list of all remaining storage space paths in use, removing the path you want to delete.
3. Restart the Deduplication Engine service.

#### Moving a storage space

Moving block files does not create a new storage space at the destination location, nor does it delete the source storage space. Once the block files have been moved, if you do not add a new storage space at the new location, the next backup will copy new blocks into the source storage space.

To move the content of an existing storage space, follow these steps:

1. **Stop the Deduplication Engine service**
   * By default, the service is named `ADE.default`.
2. **Moving block files**
   * You have two options:
     * Move all block files at once with the command:

       ```
       ade_server --mv_blockfiles_dest=<dest>
       ```

       where `<dest>` is the new path.
     * Move each block file individually with the following command:

       ```
       ade_server --mv_blockfile=<filename> --mv_blockfiles_dest=<dest>
       ```

       where `<filename>` is the name and path of the block file to move.
3. **Restart the Deduplication Engine service**

## Command prompt

This topic describes the command mode you can use to run command-line commands.

You can get documentation on the options for:

* **ade\_server** using `ade_server -h`
* **ade\_admin** using `ade_admin -h`

The options you can use are (<mark style="color:blue;">Table 37</mark>):

**Table 37:** List of command mode options

<details>

<summary><strong>Table 37 — Options and commands</strong></summary>

| **Option / Command**         | **Description**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| -P or --port                 | Displays the TCP port number (23232 by default).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| -W or --http\_port           | Displays the embedded HTTP port number (8181 by default).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| -c or --create               | Creates or overwrites any existing database, using the default settings.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| -e or --reset                | Creates or overwrites any existing database, using the current settings.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| -3 or --repair               | Creates a database (Disaster Recovery procedure), using the configuration files provided from the given path.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| -f or --force                | Replaces/resets the current database.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| -r or --repository\_path     | Sets the storage space path. Does not move existing files (see `--mv_blockfile`).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| -S or --stream\_path         | Sets a path for the stream and moves all existing stream files to that destination.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| -b or --base\_path           | Sets the location of the main (index) database. Using an SSD is recommended.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| -L or --log\_path            | Sets the location of the core database's logs. Using an SSD is recommended.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| -M or --mv\_blockfiles\_dest | Moves the destination of block files. All files are moved if no source is specified.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| -B or --mv\_blockfiles       | Moves a block file.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| -x or --update\_repository   | Updates the base with all possible block file locations. Must be used after a manual move (-B) but is not required after a bulk move (-M).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| -X or --shrink               | Shrinks the database. A path is required to back up the database when using this command.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| -v or --version              | Displays the ADE server version.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| -V or --all\_version         | Displays all third-party component versions.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| aln\_rebind                  | <p>Copies your data to your new media.</p><p>The syntax is: <kbd>aln\_rebind \<old clientuid></kbd> <kbd>\<new clientuid></kbd> where</p><p>clientuid corresponds to the client ID in the <kbd>HNserverclients.xml</kbd> file:</p><p>\<Client></p><p>\<ID>182\</ID></p><p>\<Version>1515063606309\</Version></p><p>\<Name>FRLIO81JEANDUPONT-001\</Name></p><p>\<MD5>120FC6A15D1368B80AE11EE6208A0AED\</MD5></p><p>\<ClientID>383af9c49jf889a8f62e521453d03a3d\</ClientID></p><p>\<PasswordMD5 /></p><p>\<CatalogID>\</CatalogID></p><p>\<DataProfileID>135\</DataProfileID></p><p>\<ServiceProfileID>120\</ServiceProfileID></p><p>\<Deletion>0\</Deletion></p><p>\<SourceID>@\</SourceID></p><p>\<PathEncoding>2\</PathEncoding></p><p>\<SystemCateg>266\</SystemCateg> \<Email><jean.dupont@atempo.com>\</Email></p><p>\<AttachementArray></p><p>\<Attachement></p><p>\<HierarchyID>1\</HierarchyID></p><p>\<GroupID>1\</GroupID></p><p>\</Attachement></p><p>\<Attachement></p><p>\<HierarchyID>129\</HierarchyID></p><p>\<GroupID>129\</GroupID></p><p>\</Attachement></p><p>\<Attachement></p><p>\<HierarchyID>130\</HierarchyID></p><p>\<GroupID>1\</GroupID></p><p>\</Attachement></p><p>\</AttachementArray></p><p>\</Client></p><p>The <kbd>HNserverclients.xml</kbd> file is located in the <kbd>HSX/metabase/admindb</kbd> directory (run the <kbd>bck\_list</kbd> command from ADE admin to locate the <kbd>HSX</kbd> directory).</p><blockquote><p><strong>Important</strong>: The rebind function should only be used with Bare Metal Recovery (BMR), since the volume serial number is not changed when using BMR. Make sure that: the rebind function is used in the right direction, since this action is very sensitive and will overwrite your data. The client ID is not empty</p></blockquote> |

</details>

## Moving an agent database storage space

Moving an agent database storage space does not delete the source storage space. Once the agent database storage spaces have been moved and no new storage space is added, Lina continues to use the old storage space for the new incoming agent.

To move the content of an existing storage space:

1. **Stop the Deduplication Engine service**\
   (default ADE.default).
2. **Run the following command**

   ```
   ade_server -L "src=<sources>,dest=<destination>,set_as_default=[0|1],vol_max=<size in bytes>"
   ```

   * **\<sources>**: List of storage spaces to move. If not provided, moves all existing storage spaces.
   * **\<destination>**: List of destination storage spaces.
   * **\<set\_as\_default>**: 0 if the source spaces remain in use as agent database storage spaces. Otherwise, sets the destination as the new agent database storage space.
   * **\<vol\_max>**: Keeps moving until reaching the limit (optional).
3. **Restart the Deduplication Engine service**\
   Restart to apply the changes.

## Replication-based disaster recovery plan

The disaster recovery plan (DRP) below is based on Lina server replication, so you need to configure global replication between two servers to be able to use this recovery procedure. This procedure lets you restart backups from the secondary server if the primary server is permanently down. It applies in the following use cases:

* **Use case 1**: Converting a standalone secondary server into a standalone primary server.

  <figure><img src="https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2F2LBxdseyVTHikd0PhKdG%2Fimage.png?alt=media&amp;token=90b4dd85-39c2-4cbc-8cc2-6edf7d8d08d5" alt="" width="563"><figcaption></figcaption></figure>
* **Use case 2**: Converting a secondary master into a primary master.

  <figure><img src="https://292508252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGys70amxdMB0xUstypXG%2Fuploads%2FpOu6OerKLeNhlTtxH3aP%2Fimage.png?alt=media&amp;token=11725b1c-4b4e-4b13-86bd-ab967cd4a2df" alt=""><figcaption></figcaption></figure>

### Prerequisites

* For performance reasons, the primary and secondary servers must run the same Lina version.
* Global replication must be enabled between the two servers.

### Limitations

Only Server A to Server B type replications support the DRP procedure. Server A to Server B to Server C type replications are not supported, nor are mirror replications.

### Disaster recovery procedure

This procedure applies to both standalone servers and master servers.

1. Stop the Lina service on the secondary server.
2. Run the following command on the secondary server:<br>

   ```
   <ade_server> --convert_to_primary
   ```

   \
   **Note**: When converting the secondary into a primary, Lina retrieves all backup configuration items (strategy, rule, protection zone, etc.) from the primary and copies them onto the secondary. If a configuration item already exists on the secondary, it is not retrieved. However, the analysis performed to determine whether an item already exists is based on the item's content, not its name.\
   As a result, if you created a rule by duplicating an existing rule, for example: Copy of Windows Default Protection / User Profiles, but did not change the content of the protection, this copy will not be retrieved and will be replaced by the original Windows - Default Protection / User Profiles rule.
3. Change the secondary server's network configuration so agents continue to connect using the same server\_name:port\_number connection string as before (for example, change the DNS or IP address). This avoids having to change the CfgServerHost file on each agent.
4. Restart the Lina service.
5. Log in to the converted server's administration interface and go to Server > Tenants. This will update the tenants list. Tenants with an asterisk next to their name are replicated tenants.

## S3 disaster recovery

Backing up to S3 storage lets you copy all the items needed to rebuild your server in the event of a disaster, including the following:

* Backup streams for HyperStream Server or HyperVision Deduplication Storage (HVDS).
* Agent metabases for Lina.

HyperStream Server backup streams are copied automatically, but Lina Agent metabases require manual activation.

Your HyperStream or Lina server is rebuilt in command mode after reinstalling your server binaries, using the data stored in the corresponding S3 bucket.

### Enabling automatic copying of Lina agent metabases

1. Go to **Server > Schedules.** A list of automatic tasks is displayed.
2. Select the task that lets you copy agent metabases to your S3 storage.
3. In the task properties, select **Automatic**.

This task will be launched by the server at the appropriate time. For more information on customizing the task, see [<mark style="color:blue;">Schedules</mark>](https://documentation.atempo.com/lina-7.4/lina-7.4-en/administration-guide/deployment/configuring-the-server-environment.md#schedules).

### Rebuilding your server using your S3 storage

1. Reinstall a Lina server or a HyperStream Server, making sure the version to install is the same as the one used at backup time.
2. Stop the deduplication engine service (ADE.default). The cfg.bin bootstrap configuration file is stored in `<bucket>/config`.
3. Download the cfg.bin file locally from `<bucket>/config` to the path of your choice.\
   **Important:** The cfg.bin file must not be renamed.
4. Go to the <kbd>bin</kbd> installation directory. cd /usr/Atempo/AtempoDedupEngine/default/bin
5. Run the following command:

   ```
   ./ade_server --recover "/cfg.bin" --force
   ```

   \
   The recover function extracts:

   * Files from the cfg.bin file, including dedup.db, conf/config.xml, and various Lina XML files.
   * HyperStream Server streams.
   * Your Lina agents' metabases.
6. Launch the ADE.default service.\
   Your server now includes agent streams and metabases.

## Lina server protection information

The Lina server can be backed up using a snapshot or a third-party tool.

### Backing up and restoring the ADE server with snapshots

Snapshots are useful for protecting your ADE server before an update, major configuration changes, or maintenance operations. You can configure and manually trigger snapshots. If needed, you can restore them.

Snapshots are not designed to protect against hardware failures.

#### Prerequisites for using snapshots

**Windows:**

* All target volumes must be stored on NTFS filesystems.
* If you want to use the snapshot restore feature, do not install any ADE component on the system disk.
* Administrators must be familiar with Windows snapshot processes.

**Linux**

* All volumes must be stored on LVM2 version 2.02.95 or later.
* All volumes used by ADE must be thinly-provisioned logical volumes (Thin Provisioned LVM or thin volumes). See [<mark style="color:blue;">Creating a thin volume on Linux.</mark>](#creating-a-thin-volume-on-linux)
* Administrators must be familiar with Linux snapshot processes.

#### Triggering snapshots

Snapshot operations are performed in the <kbd>ade\_admin</kbd> command-line interface.

**To launch ade\_admin**

1. On the machine hosting the Atempo Deduplication Engine, launch the <kbd>ade\_admin</kbd> command-line interface:
   1. **Windows:** Go to **Start > Programs > Atempo Deduplication Engine >**

      **Administration.**
   2. **Linux:** Run the command <kbd>./ade\_admin.</kbd>

2\. Log in with the <kbd>admin</kbd> user and enter the password.

**ade\_admin commands**. The <kbd>ade\_admin</kbd> commands to use for snapshots are:

* <kbd>snap\_create</kbd>

Puts the ADE server into hot backup mode, creates a snapshot, then exits hot backup mode. It returns the snapshot ID and all paths to protect. If you plan to perform a backup, it is mandatory to back up all the paths provided.

* <kbd>snap\_list</kbd>

Displays a list of all snapshots created with the snap\_create command.

* <kbd>snap\_delete \<ID></kbd>

Deletes the snapshot whose ID is specified.

* <kbd>snap\_bck\_list \<ID></kbd>

Lists the paths of all ADE components required to back up this snapshot (installation directory, block storage spaces, database, logs, etc.).

These commands are for Linux only:

* <kbd>snap\_mount \<ID></kbd>

Mounts the snapshot \<ID> at the location \<ADE Install path> /snapshot/\<ID> in read-only mode.

* <kbd>snap\_unmount \<ID></kbd>

Unmounts the snapshot \<ID>.

**Example ade\_admin commands on a Windows system**

{% code title="Terminal (Linux)" %}

```bash
WIN-1NAI2760G00:23232> snap_create SNAPID={B4C61C61-75FC-4067-8A1C-EEB89462B46F}

HOME=C:\DEV\dedup
SNAP_HOME=\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy77\DEV\dedup
DB_CORE=C:\DEV\dedup\rds\catalog\dedup_block_dat\
SNAP_DB_CORE=\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy77\DEV\dedup\rds\catalog\dedup_block_dat
DB_LOG=C:\DEV\dedup\syslog\
SNAP_DB_LOG=\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy77\DEV\dedup\syslog
REPOSITORY=C:\DEV\dedup\server\dedup_block\block
SNAP_REPOSITORY=\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy77\DEV\dedup\server\dedup_block\block
REPOSITORY=C:\TEST\JUNCTION
SNAP_REPOSITORY=\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy78\AAA\BBB
REPOSITORY=C:\link\rep_link
SNAP_REPOSITORY=\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy78\target_of_link\rep_link
REPOSITORY=C:\mount\rep_mount
SNAP_REPOSITORY=\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy79\rep_mount

WIN-1NAI2760G00:23232> snap_list
{F407669E-6592-42BC-B82F-1EAC864B51F5}
{284B9A54-6F89-425B-8DB1-E6408DF9A223}
{B4C61C61-75FC-4067-8A1C-EEB89462B46F}

WIN-1NAI2760G00:23232> snap_delete {B4C61C61-75FC-4067-8A1C-EEB89462B46F}
```

{% endcode %}

**Example ade\_admin commands on a Linux system**

{% code title="Terminal (Linux)" %}

```bash
hyperstream:23238> snap\_create
SNAPID=SNAP\_a9f36767\_65ec\_45ca\_bf80\_e9502e486972\_1425649105

HOME=/mnt/lv1/ADE33/snapshot/SNAP\_a9f36767\_65ec\_45ca\_bf80\_e9502e486972\_
1425649105\_00/ADE33

DB\_CORE=/mnt/lv1/ADE33/snapshot/SNAP\_a9f36767\_65ec\_45ca\_bf80\_e9502e486972\_
1425649105\_00/ADE33/rds/catalog/dedup\_block\_dat
DB\_LOG=/mnt/lv1/ADE33/snapshot/SNAP\_a9f36767\_65ec\_45ca\_bf80\_e9502e486972\_
1425649105\_00/ADE33/syslog
REPOSITORY=/mnt/lv1/ADE33/snapshot/SNAP\_a9f36767\_65ec\_45ca\_bf80\_
e9502e486972\_1425649105\_00/ADE33/server/dedup\_block/block
REPOSITORY=/mnt/lv1/ADE33/snapshot/SNAP\_a9f36767\_65ec\_45ca\_bf80\_
e9502e486972\_1425649105\_01/BLOCKS

STREAM=/mnt/lv1/ADE33/snapshot/SNAP\_a9f36767\_65ec\_45ca\_bf80\_e9502e486972\_
1425649105\_01/STREAMS

hyperstream:23238> snap\_list
SNAP\_a9f36767\_65ec\_45ca\_bf80\_e9502e486972\_1425563072 Thu Mar 05 14:44:32

2015

SNAP\_a9f36767\_65ec\_45ca\_bf80\_e9502e486972\_1425563140 Thu Mar 05 14:45:40

2015

SNAP\_a9f36767\_65ec\_45ca\_bf80\_e9502e486972\_1425649105 Fri Mar 06 14:38:25

2015

hyperstream:23238> snap\_umount SNAP\_a9f36767\_65ec\_45ca\_bf80\_e9502e486972\_
1425649105

hyperstream:23238> snap\_delete SNAP\_a9f36767\_65ec\_45ca\_bf80\_e9502e486972\_
1425649105
```

{% endcode %}

#### Creating a thin volume on Linux

This example shows how to create a thin volume:

1\. First, create the partition and volume group:

{% code title="Terminal (Linux)" %}

```bash
pvcreate /dev/sdd3
vgcreate vg1 /dev/sdd3
```

{% endcode %}

2\. Create a 1 TB thin pool:

{% code title="Terminal (Linux)" %}

```bash
lvcreate -L 1T -T vg1/thinpool
```

{% endcode %}

3\. Create a thin volume named <kbd>lv1</kbd>. This is a virtual volume. You can store blocks in this volume, for example:

{% code title="Terminal (Linux)" %}

```bash
lvcreate -V 1T -T vg1/thinpool -n lv1
```

{% endcode %}

4\. Create a snapshot named "<kbd>snap1</kbd>" (use snap\_create in ade\_admin):

{% code title="Terminal (Linux)" %}

```bash
lvcreate -s -n snap1 vg1/lv1
lvdisplay -C --noheadings -o vg_name,lv_name,lv_attr

vg1 lv1     Vwi-a-tz
vg1 thinpool twi-a-tz
```

{% endcode %}

The bold "V" indicates that you have successfully created a thin volume. You must put all your data on this type of volume.

#### Restoring snapshots

These procedures apply to both automatic and manual snapshot restore.

Since all components (installation directory, block storage spaces, database, logs, etc.) are linked, it is mandatory to restore these components together.

Two solutions are available to restore a snapshot:

* Mount or expose the snapshot and copy the files from the snapshot to the current volume.
* Roll back/restore the entire volume (not for system volumes).

Before a restore operation: in the <kbd>ade\_admin</kbd> command-line interface, run the <kbd>snap\_list</kbd> command to get the list of available snapshots. You must stop the ADE and HyperStream Snapshot services before starting to copy any file.

After any restore operation: make sure to restart the ADE and HyperStream Snapshot services.

**Restoring snapshots on a Linux server**

**-Prerequisites**

To mount a snapshot, take these prerequisites into account:

* If the device <kbd>/dev/mapper/\<vg\_name>/\<snap\_name></kbd> is missing before the snapshot is created, you must:

  * Run <kbd>lvchange -ay \<vg\_name>/\<snap\_name>.</kbd>

  Or

  * Edit <kbd>/etc/lvm/lvm.conf</kbd> and add the line <kbd>auto\_set\_activation\_skip = 0</kbd> to the configuration file.
* The ADE command <kbd>snap\_mount \<ID></kbd> also lets you mount snapshots.

**-Mounting the snapshot**

Before mounting the snapshot, you can use the lvs command to get information about the snapshots. For example:

{% code title="Terminal (Linux)" %}

```bash
[root@cherubin data]# lvs
LV VG Attr LSize Pool Origin Data%
lv_root vg_cherubin -wi-ao     6,71g
lv_swap vg_cherubin -wi-ao   816,00m
SNAP_ID1 vg_data Vwi-a-tz-- 90,00g thinpool lv1 2,64
SNAP_ID2 vg_data Vwi-a-tz-- 90,00g thinpool lv1 2,64
lv1 vg_data Vwi-aotz-- 90,00g thinpool 2,64
lvol0 vg_data -wi-a --------- 100,00m
thinpool vg_data twi-a-tz-- 90,00g 2,66
thin2 vg_data2 twi-a-tz-- 6,00g 0,00
thinvolume vg_data2 Vwi-a-tz-- 1,00g thin2 0,00
```

{% endcode %}

To mount a snapshot:

Run the command:

{% code title="Terminal (Linux)" %}

```bash
mount /dev/mapper/<vg_name>/<snap_name> /<mount_point>
```

{% endcode %}

> Example:
>
> ```bash
> mount /dev/mapper/vg_data/SNAP_ID /mnt/snap
> ```

Whichever method you choose, after restoring your Lina server, you must manually delete the <kbd>db\_backup\_sync</kbd> file located in the Lina database path.

**Reverting the snapshot**

1. Stop the service.
2. Run:

{% code title="Terminal (Linux)" %}

```bash
umount /<lv_mount_point>
```

{% endcode %}

> **Example**:
>
> ```bash
> umount /data/lv1
> ```
>
> `/data/lv1` is the mount point of the logical volume `/dev/vg_data/lv1` that must be reverted.

3\. Run

```bash
lvrename /dev/<vg_name>/<lv_name> /dev/<vg_name>/<lv_bck_name>
lvrename /dev/<vg_name>/<snap_name> /dev/<vg_name>/<lv_name>
```

> **Example**:
>
> ```bash
> lvrename /dev/vg_data/lv1 /dev/vg_data/lv1_sav
> lvrename /dev/vg_data/SNAP_ID /dev/vg_data/lv1
> ```

4. Verify that all your data is correctly restored and remove the original volume:

{% code title="Terminal (Linux)" %}

```bash
lvremove /dev/<vg_name>/<lv_bck_name>
```

{% endcode %}

> **Example**:
>
> ```bash
> lvremove /dev/<vg_name>/<lv_bck_name>
> ```

**Restoring data on a Windows server**

This section describes several data restore methods, as well as how to perform them in graphical mode and CLI mode.

**-Restore methods**

Check the following methods to restore your data (<mark style="color:blue;">table 5</mark>):

**Table 5: Data restore methods**

| **Restore method**                                                                                                                                                                  | **When to use it?**                                          | **Advantages**                                                                                                   | **Disadvantages**                                                                                                                 |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| <p><strong>Link a snapshot.</strong></p><p><br><br></p><p><strong>This can be done with:</strong></p><p><br></p><ul><li><strong>GUI</strong></li><li><strong>CLI</strong></li></ul> | When the server was installed on the system disk.            | The snapshot is linked to a directory that you can browse to find directories and files to restore individually. | You must have enough space to copy the files to restore.                                                                          |
| **Revert a snapshot.**                                                                                                                                                              | When you need to restore the entire content of the snapshot. | This method is fast and easy. It does not require additional disk space for the restore.                         | There is no granularity, you restore the entire disk. You cannot use this method on system disks or disks containing a page file. |

**-Restore best practices**

Here are best practices for restoring your data:

* You should always restore individual items using snapshot linking before attempting a revert.
* You should always restore items from the same snapshot session to make sure all items are consistent.
* Only use revert if the entire snapshot needs to be restored.
* You cannot perform a revert if parts of the page file or other system files are present on the volume.

**-Linking a VSS snapshot to a directory in graphical mode**

1. Right-click a drive in Windows Explorer and select **Properties**.
2. The **Shadow Copies** tab shows the snapshots that have been taken. In the **Previous Versions** tab, you can mount (open) the snapshot.
3. Select a snapshot and click **Open** to mount it.
4. Browse this directory to find the required files and directories and restore them to the original disk.

Whichever method you choose, after restoring your Lina server, you must manually delete the <kbd>db\_backup\_sync</kbd> file located in the Lina database path.

**-Linking a VSS snapshot to a directory in command mode**

1. On the machine hosting the Atempo Deduplication Engine, launch the <kbd>ade\_admin</kbd> command-line interface by selecting **Start > Programs > Atempo Deduplication Engine > Administration.**
2. Run <kbd>snap\_list</kbd> to get the list of available snapshots and select the snapshot from which you want to restore.
3. Open a command prompt from the Windows Start menu and go to the <kbd>HyperStream\_Snapshot</kbd> directory of your HyperStream home directory.
4. Run the following command to create a directory that will hold the snapshot: <kbd>mkdir \<directory\_name></kbd>

> **Example:**
>
> <kbd>mkdir c:\mounted\_snapshot</kbd>

5. Run the following command: <kbd>mkjunction \<VSS\_Snapshot\_Volume> \<directory\_name></kbd>

> **Example:**
>
> <kbd>mkjunction \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy25\ c:\mounted\_snapshot</kbd>

6. The VSS snapshot is now linked to the specified directory. Browse this directory to find the required files and directories and restore them to the original disk.
7. Once you have finished restoring your data, remove the link created between the VSS snapshot and the directory. To do this, run this command: <kbd>rmdir \<directory\_name></kbd>

> **Example:**
>
> <kbd>rmdir c:\mounted\_snapshot</kbd>

Whichever method you choose, after restoring your Lina server, you must manually delete the <kbd>db\_backup\_sync</kbd> file located in the Lina database path.

**Reverting an entire disk from a VSS snapshot**

1. Stop any application running on the disk to restore, including the Atempo HyperStream Server and Atempo HyperStream Snapshot services.
2. Open a command prompt from the Windows Start menu and go to the <kbd>HyperStream\_Snapshot</kbd> directory of your HyperStream home directory.
3. Run this command:

<kbd>vssadmin revert shadow /shadow=<{snapshot ID}></kbd>

> Example:
>
> <kbd>vssadmin revert shadow /shadow={b19d5395-a7f9-494e-9670-54699bc9e556}</kbd>

The disk has been reset to the state it was in when the VSS snapshot was taken.

4. You can add the <kbd>/forcedismount</kbd> parameter at the end of the command to force the unlocking of all data located on the disk.
5. Repeat this operation for all other disks containing HyperStream data to restore. Each disk must be reverted individually.

### Backing up the server with a third-party tool

This section describes how to back up the ADE server.

#### Securing the deduplication engine database with a third-party utility

**To secure the deduplication engine database with a third-party utility.**

1. Open the <kbd>ade\_admin</kbd> command-line interface on your server.
2. Put the database into hot backup mode with this command: <kbd>ade:23232> begin</kbd>
3. Retrieve the list of all paths to back up with this command:

<kbd>ade:23232> bck\_list</kbd>

The command returns a list in the following format:

<pre data-title="bck_list output"><code>HOME=/hss/hssC
<strong>DB_CORE=/hss/hssC/rds/catalog/dedup_block_dat/
</strong>DB_LOG=/hss/hssC/syslog/
REPOSITORY=/hss/REPS
REPOSITORY=/hss/hssC/space tmp/1
REPOSITORY=/sk_tmp/2
STREAM=/hss/hssC/server/dedup/stream
ALN=
</code></pre>

4. With your third-party utility, perform a full backup of the directories:

<kbd>HOME</kbd>, <kbd>DB\_CORE</kbd>, and <kbd>DB\_LOG.</kbd>

5. At this point, do not back up any storage space, stream, or ALN subdirectory that might be located in the <kbd>HOME</kbd>, <kbd>DB\_CORE</kbd>, or <kbd>DB\_LOG</kbd> directories. This avoids having this phase of the backup take longer than one hour, since there is a non-configurable one-hour timeout on the operation in progress. For example, in the example from step 3, you should have excluded from the backup the <kbd>/hss/hssC/space tmp/1</kbd> subdirectory corresponding to a storage space and the <kbd>/hss/hssC/server/dedup/stream</kbd> subdirectory corresponding to a stream.
6. Once this first backup phase is complete, take the database out of hot backup mode with this command:

<kbd>ade:23232> db\_backup\_end</kbd>

7. With your third-party utility, perform an incremental backup of all storage spaces, streams, and ALN directories present in the backup list.
8. Complete the backup with this command:

<kbd>ade:23232> end</kbd>

#### Protecting the deduplication engine database with an operating system snapshot

**To protect the deduplication engine database with an operating system snapshot**

1. Open the <kbd>ade\_admin</kbd> command-line interface on your server.
2. Put the database into hot backup mode with this command: <kbd>ade:23232> begin</kbd>
3. Retrieve the list of all paths to back up with this command:

<kbd>ade:23232> bck\_list</kbd>

The command returns a list in the following format:

{% code title="bck\_list output" %}

```
HOME=/hss/hssC
DB_CORE=/hss/hssC/rds/catalog/dedup_block_dat/
DB_LOG=/hss/hssC/syslog/
REPOSITORY=/hss/REPS
REPOSITORY=/hss/hssC/space tmp/1
REPOSITORY=/sk_tmp/2
STREAM=/hss/hssC/server/dedup/stream
ALN=
```

{% endcode %}

4. Take a snapshot of all directories present in the backup list.
5. Disable hot backup mode on the database with this command: <kbd>ade:23232> end</kbd>
6. Store or back up the snapshot.

### Restoring the server with a third-party utility

**To restore the deduplication engine database with a third-party utility**

1. Stop the service.
2. Restore the database with the third-party utility.
3. Create a file named: <kbd>.tina\_restored</kbd> at the root of the deduplication engine installation directory. This file does not need to contain anything. It is automatically deleted by ADE once the restore process is complete.
4. Restart the ADE service.

Whichever method you choose, after restoring your Lina server, you must manually delete the <kbd>db\_backup\_sync</kbd> file located in the Lina database path.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.atempo.com/lina-7.4/lina-7.4-en/administration-guide/appendix-advanced-operations/appendix-a-performing-advanced-operations.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
