3.2 Subscription Management Tool (SMT) and Disconnected Setup (DMZ)

If it is not possible to connect SUSE Manager directly or via a proxy to the Internet, a disconnected setup in combination with Subscription Management Tool (SMT) is the recommended solution. In this scenario, SMT stays in an “external” network with a connection to SUSE Customer Center and synchronizes the software channels and repositories on a removable storage medium. Then you separate the storage medium from SMT, and mount it locally on your SUSE Manager server to read the updated data.

The following procedure will guide you through using SMT.

SMT: Fetching Repository Data from SUSE Customer Center

  1. Configure SMT in the external network with SUSE Customer Center (SCC). For details about configuring SMT with SUSE Linux Enterprise 12, see: https://www.suse.com/documentation/sles-12/book_smt/data/book_smt.html

  2. Using SMT, mirror all required repositories.

  3. Create a "database replacement file" (for example, /tmp/dbrepl.xml.

    smt-sync --createdbreplacementfile /tmp/dbrepl.xml
  4. Mount a removable storage medium such as an external hard disk or USB flash drive.

  5. Export the data to the mounted medium:

    smt-sync --todir /media/disk/
    smt-mirror --dbreplfile /tmp/dbrepl.xml --directory /media/disk \
               --fromlocalsmt -L /var/log/smt/smt-mirror-export.log

    NOTE: Keeping A Disconnected Server Up-to-date

    smt-sync also exports your subscription and entitlement data. To keep SUSE Manager up-to-date with your subscriptions and entitlements, you must frequently import and export this data.

  6. Unmount the storage medium and carry it securely to your SUSE Manager 3 Server.

The next procedure will show you how to update your server from the SMT media.

Updating Your SUSE Manager Server from the Storage Medium

  1. Mount the storage medium on your SUSE Manager server (for example, at /media/disk).

  2. Specify the local path on the SUSE Manager server in /etc/rhn/rhn.conf:

    server.susemanager.fromdir = /media/disk

    This setting is mandatory for SUSE Customer Center and mgr-sync.

  3. Restart Tomcat:

    systemctl restart tomcat
  4. Before performing another operation on the server execute a full sync:

    mgr-sync refresh   # SCC (fromdir in rhn.conf required!)
  5. mgr-sync can now be executed normally:

    mgr-sync list channels
    mgr-sync add channel channel-label

    WARNING: Data Corruption

    The disk must always be available at the same mount point. To avoid data corruption, do not trigger a sync, if the storage medium is not mounted. If you have already added a channel from a local repository path, you will not be able to change its URL to point to a different path afterwards.

Up-to-date data is now available on your SUSE Manager server and is ready for updating client systems. According to your maintenance windows or update schedule refresh the data on the storage medium with SMT.

Refreshing Data on the Storage Medium from SMT

  1. On your SUSE Manager server, unmount the storage medium and carry it to your SMT.

  2. On your SMT system, continue with Step 4.

    WARNING: Data Corruption

    The storage medium must always be available at the same mount point. To avoid data corruption, do not trigger a sync if the storage medium is not mounted.

This concludes using SMT with SUSE Manager 3.