> Source: [sk43364](https://support.checkpoint.com/results/sk/sk43364)

# sk43364 - Smart-1 SAN card setup instructions

| Property | Value |
|----------|-------|
| Solution ID | sk43364 |
| Date Created | 2009-12-02 |
| Last Modified | 2023-07-16 |
| Technical Level | General |
| Products | Security Management Server |
| Versions | R82.10, R82, R81.20 |
| Platform | Smart-1 |

## Solution

The below instructions will enable you to setup a directory on your Smart-1 50/150 appliance for mounting a partition on the SAN storage server and to redirect the log traffic to the mounted partition or any other directory that you specify.   

**To mount a SAN storage partition to the Smart-1 appliance:**

* See if the SAN got recognized and check the device name. Usually the fist SAN device is /dev/sda
  * `fdisk -l`
  * `cat /proc/scsi/scsi`
  * `dmesg `
* Create a new partition on the storage server
  * `e.g. fdisk /dev/sda`

<!-- -->

* Create a new `ext3` file system on this partition
  * mkfs.ext3 /dev/sda1

<!-- -->

* Mount the partition to a directory on the Smart-1 appliance. (It is strongly advised to update `/etc/fstab` by adding a line like the following to make the SAN available right after boot.)
  * /dev/sda1 /san ext3 defaults 0 0

<br />

<br />

**To redirect the log files for Multi-Domain Security Management Server**

1. Download the [Smart-1_SAN_logs_redirection.zip](https://support.checkpoint.com/results/download/10636) file.
2. Extract the `linklogs.sh` script from the archive.
3. Copy the script to the `$MDSDIR/scripts` directory.
4. Make the file executable by running the command:   
   `chmod +x $MDSDIR/scripts/linklogs.sh`
5. Run the script by executing `linklogs all move` \<*target dir* \>   
   where \<*target dir* \> is where you want the logs to be located.  
   **Note**: all of the logs currently on the Smart-1 appliance will be copied to the target directory to avoid loss of information.
6. Extract the `mdsadd_customer` script from the archive and copy it to `$MDSDIR/scripts`.   
   **IMPORTANT** : Newer versions - open a port request for the revised *mdsadd_customer* script. Do not use the script from the download file, it's old and incompatible with newer versions. if you are not sure if your version is compatible, contact support.
7. If you want to redirect the logs to a new directory without copying the current logs to the target directory, use: `linklogs all link` \<*target dir*\>. This command can be especially useful if there is a problem with the storage server and you want to redirect the logs back to the Smart-1 appliance.

<br />

<br />

**To redirect the log files for Security Management Server:**

1. Stop the Security Management Server by running `cpstop`.
2. \[Optional\] Copy all of the logs to the new logs directory location.   
   For example, if the new target location is "`/storage/logs`" then run: `cp -rf $FWDIR/log/* /storage/logs`.
3. If all of the log files were copied successfully, delete the `$FWDIR/log` directory.   
   For example: `rmdir $FWDIR/log`.
4. Create a soft-link to the new logs directory from $FWDIR.   
   For example, run the ln -s /storage/logs $FWDIR/log command.

<br />

<br />

**Warning!**   
If communication to the SAN server is interrupted, logs cannot be sent to the SAN server and will be lost. There are two options for this issue:   

1. Redirection of logs: redirect the log traffic back to the Smart-1 machine as explained above (using the `linklogs all move` \<*target dir* \> command).   

2. Re-mounting the SAN server: when such a communication interruption occurs, the mounted SAN file system may become read-only in order to prevent corruption of data. This is a normal behavior for a Linux based OS mounting an `ext3` file system. The file system has to be fixed (for example by using the `fsck` command) prior to re-mounting the directory to continue normal operation.   

   **Note:** this option can take a long time; therefore, to avoid a loss of logs, it is recommended to use Option 1 (Redirection of logs) before implementing it.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
