Difference between revisions of "SUSE Manager/DisconnectedSetup"

From MicroFocusInternationalWiki
Jump to: navigation, search
(This material is not copied yet in the manual, restoring)
Line 1: Line 1:
[https://www.suse.com/documentation/suse_manager/singlehtml/book_susemanager_install/book_susemanager_install.html#s1-disconnected-setup Full instructions for disconnected setup are available in the manual].
+
[[SUSE_Manager|SUSE Manager Main Page]]
 +
 
 +
* install SMT in the external network with NCC/SCC connection.
 +
* mirror all repositories you want to have
 +
* create a "database replacement file"
 +
  smt-sync --createdbreplacementfile /tmp/dbrepl.xml
 +
* mount external harddisk / usb stick
 +
* Export the data to the mounted media
 +
  smt-sync --todir /media/disk/
 +
  smt-mirror --dbreplfile /tmp/dbrepl.xml --directory /media/disk \
 +
              --fromlocalsmt -L /var/log/smt/smt-mirror-export.log
 +
 
 +
  '''''Note:''''' smt-sync export also the subscription and entitlement data. To keep SUSE Manager up-to-date
 +
  with the amount of subscriptions and entitlements, you need to export/import these data frequently.
 +
 
 +
* umount the disk, carry it to your SUSE Manager and mount it there
 +
 
 +
* specify the local path on the SUSE Manager Server in /etc/rhn/rhn.conf (this is optional if you are still using NCC with mgr-ncc-sync, while it's mandatory for SCC use via mgr-sync):
 +
  server.susemanager.fromdir = /media/disk
 +
 
 +
* restart Tomcat:
 +
 
 +
  rctomcat6 restart
 +
 
 +
* do a full sync before you do anything else:
 +
  mgr-ncc-sync --from-dir /media/disk    # NCC
 +
  mgr-sync refresh                      # SCC - requires fromdir in rhn.conf
 +
 
 +
* on SUSE Manager mgr-ncc-sync / mgr-sync can be used now as usual. The only difference is the new parameter "--from-dir" to point it to the mounted disk, if not specified in rhn.conf.
 +
  mgr-ncc-sync --from-dir /media/disk -l
 +
  mgr-ncc-sync --from-dir /media/disk -c <channel-name>
 +
 
 +
  mgr-sync list channels
 +
  mgr-sync add channel <channel-label>
 +
 
 +
Be careful. The disk must be available always at the same mount point. Do not trigger a sync, if the disk 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 (this includes NCC).
 +
 
 +
* to disable the forwarding of registrations to NCC set the following value in "/etc/rhn/rhn.conf"
 +
 
 +
  server.susemanager.forward_registration = 0

Revision as of 15:54, 29 May 2015

SUSE Manager Main Page

  • install SMT in the external network with NCC/SCC connection.
  • mirror all repositories you want to have
  • create a "database replacement file"
  smt-sync --createdbreplacementfile /tmp/dbrepl.xml
  • mount external harddisk / usb stick
  • Export the data to the mounted media
  smt-sync --todir /media/disk/
  smt-mirror --dbreplfile /tmp/dbrepl.xml --directory /media/disk \
             --fromlocalsmt -L /var/log/smt/smt-mirror-export.log
 Note: smt-sync export also the subscription and entitlement data. To keep SUSE Manager up-to-date 
 with the amount of subscriptions and entitlements, you need to export/import these data frequently.
  • umount the disk, carry it to your SUSE Manager and mount it there
  • specify the local path on the SUSE Manager Server in /etc/rhn/rhn.conf (this is optional if you are still using NCC with mgr-ncc-sync, while it's mandatory for SCC use via mgr-sync):
  server.susemanager.fromdir = /media/disk
  • restart Tomcat:
  rctomcat6 restart
  • do a full sync before you do anything else:
 mgr-ncc-sync --from-dir /media/disk    # NCC
 mgr-sync refresh                       # SCC - requires fromdir in rhn.conf
  • on SUSE Manager mgr-ncc-sync / mgr-sync can be used now as usual. The only difference is the new parameter "--from-dir" to point it to the mounted disk, if not specified in rhn.conf.
 mgr-ncc-sync --from-dir /media/disk -l
 mgr-ncc-sync --from-dir /media/disk -c <channel-name>
 
 mgr-sync list channels
 mgr-sync add channel <channel-label>

Be careful. The disk must be available always at the same mount point. Do not trigger a sync, if the disk 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 (this includes NCC).

  • to disable the forwarding of registrations to NCC set the following value in "/etc/rhn/rhn.conf"
 server.susemanager.forward_registration = 0