Rsync examples

#TrueNAS
sleep 5
rsync -avxzzhSP –stats –delete –rsh=ssh /mnt/owncloud-data root@truenas.domain.tld:/mnt/tank0/backup/

sleep 5
ssh root@truenas.domain.tld chown -R user:user /mnt/tank0/backup/

#Linux
sleep 5
rsync -avxzhSP –stats –delete –rsh=ssh /mnt/owncloud-data root@linux-server.domain.tld:/mnt/backup/

#Google Drive
# Prereqs see https://www.more-it.de/mount-google-drive-locally-to-a-linux-machine/
sleep 5
rsync -avxzh –progress –stats –inplace –delete /mnt/owncloud-data/ /mnt/google-drive/

Check: 3PAR Storages Physical Disk State

Allgemein
Geht mit SSH. Keine zusätzlichen Pakete notwendig

Kopfzeilen des Checks für Quellreferenz
#!/bin/bash

# 3PAR Nagios check script v0.2
# Last update 2010/05/14 fredl@3par.com
# Last update 2011/03/03 ddu@antemeta.fr
Kommando deklarieren
# ARG1: URL to get
define command {
command_name check_3par_pd
command_line /opt/omd/versions/1.20/lib/nagios/plugins/check_3par $HOSTADDRESS$ $ARG1$ check_pd
}

Parametrieren mit legacy-checks
legacy_checks += [
(( „check_3par_pd!3paradm“, „3PAR Physical Devices“, True), [ „172.28.210.241“ ] ),
(( „check_3par_node!3paradm“, „3PAR Node“, True), [ „172.28.210.241“ ] ),
(( „check_3par_ld!3paradm“, „3PAR Logical Devices“, True), [ „172.28.210.241“ ] ),
(( „check_3par_vv!3paradm“, „3PAR Version“, True), [ „172.28.210.241“ ] ),
(( „check_3par_cap_fc!3paradm“, „3PAR FC CAP“, True), [ „172.28.210.241“ ] ),
(( „check_3par_cap_nl!3paradm“, „3PAR NL CAP“, True), [ „172.28.210.241“ ] ),
(( „check_3par_port_fc!3paradm“, „3PAR FC Port“, True), [ „172.28.210.241“ ] ),
]

Monitoring EMC Netwoker recycle Tapes

Dieses Skript ist für Windows Powershell.

Es ermittelt mit mminfo in Verbindung mit Location die recyclebaren Tapes.

Es sollte relativ leicht auf Unix portierbar sein.

$OK = 0 #$Warning = 1 $Critical = 2 $day = $(get-date -format dddd)  if ($day -eq "Freitag") { 	$threshold = 20 }	 else { 	$threshold = 5 }  $RecycleTapeCount = $(mminfo -q volrecycle -r volume -r location | findstr "ADIC" | Measure-Object | Select-Object -expand Count)   if ($RecycleTapeCount -lt $threshold) { 	$status = $Critical 	$statustext = "CRITICAL" 	$detail = "Die Anzahl $RecycleTapeCount der recyclebaren Tapes im Wechsler ist zu niedrig" }  else { 	$status = $OK 	$statustext = "OK" 	$detail = "Die Anzahl $RecycleTapeCount der recyclebaren Tapes im Wechsler ist in Ordnung" }  Write-Host "$status RecycleTapeCount Tapes=$($RecycleTapeCount);5;4;0 $($statustext) - $detail"

TSM einer Tape Storage Group mehr Scratch Volumes zuweisen

Allgemein

In einer Dokuementarchivsoftware (Bsp. d3 von d.velop) konnte nicht mehr in den Sekundärspeicher archiviert werden. In der Applikations gab es Fehlermeldungen. Die Prüfung des Sekundärspeichers zeigte, dass dort Disk- und Tape-Pools zu 100% ausgelastet sind. Die akute Lösung was es von mehreren noch zur Verfügung stehenden Bändern des Sekundärspeichers weitere für die Nutzung zu definieren. TSM hat dazu die Einstellunge „Max Scratch Volumes“. Diese definiert die maximale Nutztung von Scratch-Volumes (z.B. neue Bänder). Durch Heraufsetzen des Parameters konne ich weitere Bänder „aktiv“ schalten. Konkrete Meldungen und Schritte sind folgend beispielhaft abgebildet:

Fehler in Archiv Software

Fehlermeldung der Archiv…

14.07 11:58:53,268 D3SM_GP 00004B94 17788: Job started: E:\d3\D3GP.dok\jukebox\public\WORK!d3attrib-20160212-200
14.07 11:58:53,268 D3SM_GP 00004B94 17788: 836.xml.tempjob
14.07 11:58:53,330 D3SM_GP 00004B94 19216: TSM-ABORT – REASON: 29 – Document: d3attrib-20160212-120115.XML
14.07 11:58:53,330 D3SM_GP 00004B94 19216: SERVER: d3attrib-20160212-120115.xml: Error while uninitializing the tr
14.07 11:58:53,330 D3SM_GP 00004B94 19216: ansfer process (ANS0266I (RC2302) The dsmEndTxn vote is ABORT, so chec
14.07 11:58:53,330 D3SM_GP 00004B94 19216: k the reason field.)
14.07 11:58:53,346 D3SM_GP 00004B94 19216: WAITPROCESSOR: Added E:\d3\D3GP.dok\jukebox\public\WORK!d3attrib-2016
14.07 11:58:53,346 D3SM_GP 00004B94 19216: 0212-120115.xml.wait to recall list
14.07 11:58:53,346 D3SM_GP 00004B94 19216: Job ended: E:\d3\D3GP.dok\jukebox\public\WORK!d3attrib-20160212-12011
14.07 11:58:53,346 D3SM_GP 00004B94 19216: 5.xml.tempjob

Fehler in TSM

Fehlermeldung, dass keine Speicher mehr in den Pools zur Verfügung steht…

Date/Time                Message
——————–     ———————————————————-
07/21/16   14:48:47      ANR0403I Session 4589060 ended for node SERVER
                          (d3smanagertsm). (SESSION: 4589060)
07/21/16   14:48:47      ANR0522W Transaction failed for session 4589065 for node
                          SERVER (d3smanagertsm) – no space available in storage
                          pool SYSTEM-DISK and all successor pools. (SESSION: 4589065)
07/21/16   14:48:47      ANR0406I Session 4589067 started for node SERVER
                          (d3smanagertsm) (Tcp/Ip SERVER.domain.intern(59264)).
                          (SESSION: 4589067)

Überblick STG SYSTEM-DISK verschaffen und Next Storage Pool herausfinden

tsm: TSM>q stg system-disk f=d
               Storage Pool Name: SYSTEM-DISK
               Storage Pool Type: Primary
               Device Class Name: DISK
              Estimated Capacity: 2,048 G
              Space Trigger Util: 100.0
                        Pct Util: 100.0
                        Pct Migr: 100.0
                     Pct Logical: 100.0
                    High Mig Pct: 90
                     Low Mig Pct: 20
                 Migration Delay: 0
              Migration Continue: Yes
             Migration Processes: 1
           Reclamation Processes:
               Next Storage Pool: SYSTEM-TAPE
            Reclaim Storage Pool:
          Maximum Size Threshold: No Limit
                          Access: Read/Write
                     Description: Discpool for SYSTEM
               Overflow Location:
           Cache Migrated Files?: No
                      Collocate?:
           Reclamation Threshold:
       Offsite Reclamation Limit:
 Maximum Scratch Volumes Allowed:
  Number of Scratch Volumes Used:
   Delay Period for Volume Reuse:
          Migration in Progress?: No
            Amount Migrated (MB): 0.00
Elapsed Migration Time (seconds): 0
        Reclamation in Progress?:
  Last Update by (administrator): ADMIN
           Last Update Date/Time: 03/09/12   12:18:21
        Storage Pool Data Format: Native
            Copy Storage Pool(s):
             Active Data Pool(s):
         Continue Copy on Error?: Yes
                        CRC Data: No
                Reclamation Type:
     Overwrite Data when Deleted:

Details zum Next Storage Pool und dort die Maximum Scratch Volumes herausfinden

Tivoli Storage Manager und AIX Notizen

Es gab große Probleme mit der Robotik einer IBM Tape-Library. Diese wurde durch ein AIX- und TSM-System angesteuert. Beim Austausch der Library und anschließendem Update in die AIX- und TSM-Maschine brauchte ich Hilfe. Hier habe ich einige Notizen dazu dokumentiert.

Die Austausch-Library konnte beim ersten Versuch nicht korrekt in den TSM konfiguriert werden. Erst Reset der Konfig und Passworte am lokalen Bedienfeld der Library brachte TSM zur erfolgreichen Konfiguration.

Action-Log abrufen

tsm: TSM>q actlog begint=-00:01

Date/Time Message
——————– ———————————————————-
05/08/2015 17:35:09 ANR2017I Administrator ADMIN issued command: QUERY LIBRARY
f=d (SESSION: 1072)
05/08/2015 17:35:23 ANR2017I Administrator ADMIN issued command: UPDATE
LIBRARY ts3200 serial=autodetect (SESSION: 1072)
05/08/2015 17:35:23 ANR8953I Library TS3200 with serial number is updated
with the newly discovered serial number SerialNumber
. (SESSION: 1072)
05/08/2015 17:35:23 ANR8465I Library TS3200 updated. (SESSION: 1072)
05/08/2015 17:35:26 ANR2017I Administrator ADMIN issued command: QUERY LIBRARY
f=d (SESSION: 1072)
05/08/2015 17:35:33 ANR2017I Administrator ADMIN issued command: QUERY ACTLOG
begint=.00:01 (SESSION: 1072)
05/08/2015 17:35:33 ANR2166E QUERY ACTLOG: Invalid begin time – .00:01.
(SESSION: 1072)
05/08/2015 17:35:34 ANR2017I Administrator ADMIN issued command: ROLLBACK
(SESSION: 1072)

Pfade abfragen

tsm: TSM>q path

Source Name Source Type Destination Destination On-Line
Name Type
———– ———– ———– ———– ——-
TSM SERVER TS3200 LIBRARY Yes
TSM SERVER LTO4_1 DRIVE No
TSM SERVER LTO4_2 DRIVE No

Pfad Update

tsm: TSM>update path tsm lto4_1 srct=server destt=drive libra=ts3200 online=yes
ANR1722I A path from TSM to TS3200 LTO4_1 has been updated.

„Tivoli Storage Manager und AIX Notizen“ weiterlesen