Already a couple of months ago (in February 2012), SP2 of SuSE Linux Enterprise Server 11 was released. If you use smt-repo to mirror updates, you will have noticed that SP2 was not in the list when the command 'smt-list-products' was launched and therefore could not be mirrored.
This was due to the fact that SP2 simply hasn't been added to https://nu.novell.com/repo/repoindex.xml. Each time the mirroring process starts, this file is downloaded and checked for available products. This xml file contains all SUSE products which can be mirrored by SMT. Yesterday I opened a support case, asking Novell to add SP2 to this xml file and only an hour later I got the answer that SP2 has been added now.
The following steps explain how to add SLES11-SP2-Updates to your mirror.
1. Launch smt-ncc-sync to download the latest product informations. It should detect new mirrorable repositories:
# smt-ncc-sync
Downloading Product information
Downloading Target information
Downloading repository information
Downloading Product/Repository relations
Downloading Subscription information
Downloading Registration information
Flagged repositories which can be mirrored
* New mirrorable repository 'SLES11-SP2-Updates sle-11-x86_64' .
* New mirrorable repository 'SLES11-SP2-Updates sle-11-i586' .
2. Check which products can be mirrored. Use smt-repos -m. Before Novell added the SP2 Updates, only the core was shown in the list:
# smt-repos -m | grep SLES11-SP2
| No | 193 | nu | SLES11-SP2-Core | sle-11-i586 | SLES11-SP2-Core for sle-11-i586
| No | 194 | nu | SLES11-SP2-Core | sle-11-x86_64 | SLES11-SP2-Core for sle-11-x86_64
| No | 195 | nu | SLES11-SP2-Extension-St | sle-11-i586 | SLES11-SP2-Extension-Store for sle-11-i586
| No | 196 | nu | SLES11-SP2-Extension-St | sle-11-x86_64 | SLES11-SP2-Extension-Store for sle-11-x86_64
Since Novell has added SLES11-SP2-Updates to repoindex.xml, the list now looks like this:
# smt-repos -m | grep SLES11-SP2
| No | 193 | nu | SLES11-SP2-Core | sle-11-i586 | SLES11-SP2-Core for sle-11-i586
| No | 194 | nu | SLES11-SP2-Core | sle-11-x86_64 | SLES11-SP2-Core for sle-11-x86_64
| No | 195 | nu | SLES11-SP2-Extension-St | sle-11-i586 | SLES11-SP2-Extension-Store for sle-11-i586
| No | 196 | nu | SLES11-SP2-Extension-St | sle-11-x86_64 | SLES11-SP2-Extension-Store for sle-11-x86_64
| No | 197 | nu | SLES11-SP2-Updates | sle-11-i586 | SLES11-SP2-Updates for sle-11-i586
| No | 198 | nu | SLES11-SP2-Updates | sle-11-x86_64 | SLES11-SP2-Updates for sle-11-x86_64
3. Activate mirroring for SP2-Updates. Use the product name (SLES11-SP2-Updates) to get a detailed list of architectures ready to mirror.
Then answer the question (Select repository number) by hitting the ID of the architecture(s) you want to mirror:
# smt-repos -e SLES11-SP2-Updates
.-------------------------------------------------------------------------------------------.
| Mirr? | ID | Type | Name | Target | Description |
+---------+----+------+--------------------+---------------+--------------------------------+
| No | 1 | nu | SLES11-SP2-Updates | sle-11-i586 | SLES11-SP2-Updates for sle-11-i586 |
| No | 2 | nu | SLES11-SP2-Updates | sle-11-ia64 | SLES11-SP2-Updates for sle-11-ia64 |
| No | 3 | nu | SLES11-SP2-Updates | sle-11-ppc64 | SLES11-SP2-Updates for sle-11-ppc64 |
| No | 4 | nu | SLES11-SP2-Updates | sle-11-s390x | SLES11-SP2-Updates for sle-11-s390x |
| No | 5 | nu | SLES11-SP2-Updates | sle-11-x86_64 | SLES11-SP2-Updates for sle-11-x86_64|
'---------+----+------+--------------------+---------------+--------------------------------'
Select repository number (or all) to change, (1-5,a) :5
1 Repo(s) enabled.
4. Verify that this repository is shown in your mirrored repositories:
# smt-repos -o
.---------------------------------------------------------------------------------------------.
| Mirr? | ID | Type | Name | Target | Description |
+---------+----+------+--------------------+---------------+----------------------------------+
| Yes | 1 | nu | SLES11-SP1-Pool | sle-11-x86_64 | SLES11-SP1-Pool for sle-11-x86_64 |
| Yes | 2 | nu | SLES11-SP1-Updates | sle-11-i586 | SLES11-SP1-Updates for sle-11-i586 |
| Yes | 3 | nu | SLES11-SP1-Updates | sle-11-x86_64 | SLES11-SP1-Updates for sle-11-x86_64 |
| Yes | 4 | nu | SLES11-SP2-Updates | sle-11-x86_64 | SLES11-SP2-Updates for sle-11-x86_64 |
| Yes | 5 | nu | SLES11-Updates | sle-11-i586 | SLES11-Updates for sle-11-i586 |
| Yes | 6 | nu | SLES11-Updates | sle-11-x86_64 | SLES11-Updates for sle-11-x86_64 |
'---------+----+------+--------------------+---------------+----------------------------------'
Next time the mirroring process is launched (usually by /usr/lib/SMT/bin/smt-daily which is called by /etc/cron.d/novell.com-smt), the SLES11-SP2-Updates will be mirrored.
Claudio from Switzerland wrote on Jun 1st, 2012:
Hmm I actually dont know and I cant verify that anymore (changed job today). My guess would be that the "-Online" was replaced by "-Core". Could you test that?
What I did anyway on the mirror server was to save the iso file on the same server, mount it as loop device and present the content on the repo website.
Johannes from wrote on Jun 1st, 2012:
Hi,
Thanks for this blod entry - it helped a lot.
Do you know the following: With SLES10 there were "-Online" repos - are they gone with SLES11?
greetings from Salzburg,
Johannes
AWS Android Ansible Apache Apple Atlassian BSD Backup Bash Bluecoat CMS Chef Cloud Coding Consul Containers CouchDB DB DNS Database Databases Docker ELK Elasticsearch Filebeat FreeBSD Galera Git GlusterFS Grafana Graphics HAProxy HTML Hacks Hardware Icinga Influx Internet Java KVM Kibana Kodi Kubernetes LVM LXC Linux Logstash Mac Macintosh Mail MariaDB Minio MongoDB Monitoring Multimedia MySQL NFS Nagios Network Nginx OSSEC OTRS Office PGSQL PHP Perl Personal PostgreSQL Postgres PowerDNS Proxmox Proxy Python Rancher Rant Redis Roundcube SSL Samba Seafile Security Shell SmartOS Solaris Surveillance Systemd TLS Tomcat Ubuntu Unix VMWare VMware Varnish Virtualization Windows Wireless Wordpress Wyse ZFS Zoneminder