Αρχείο

Θέσεις Tagged 'SnapMirror »

SnapMirror Script Εγκατάστασης

14 Μαρτίου 2010

Είχα το καθήκον της αναπαράγει ένα filer τους υπάρχοντες πελάτες για το νέο σύστημα DR τους. Αυτό ήταν ένα αρκετά μεγάλο σύστημα, και όσο η δημιουργία SnapMirrors δεν είναι ιδιαίτερα πολύπλοκη, είναι χρονοβόρα. Έτσι, όπως με πολλά πράγματα που κάνω, μου έγραψε ένα σενάριο για να βοηθήσει μου την αποστολή αυτή γρηγορότερα, και να πάει να έχουν ένα ακόμη καφέ.

Θα χρειαστείτε κοινών προ-κλειδιά setup (όπως πάντα), αλλά τα υπόλοιπα είναι για τους ζητηθεί. Δεν υπάρχει επικύρωσης δεδομένων (δεν αποτελεί έκπληξη). Το script θα δώσει 4 αρχεία κειμένου, ένα για τη δημιουργία / περιορισμό όλων των όγκων, ένα για το "snapmirror.conf», για να χρησιμοποιηθεί στη θέση του "snapmirror.conf» ενώ κάνετε την αρχικοποίηση βάσης, και, τέλος, ένα προς πράγματι η προετοιμασία του snapmirrors. Δεν υπάρχει πληροφοριών γύρω από ταυτόχρονες ροές, ώστε initialization εξακολουθεί να είναι ένα κομμάτι ενός juggling πράξη και παιχνίδι αναμονής.

Παρακαλώ ενημερώστε με αν βρείτε αυτό χρήσιμο.

#! / Bin / bash

echo "Παρακαλώ εισάγετε το όνομα του filer PRIMARY:"
διαβάστε PRI_FILER

echo "Παρακαλώ εισάγετε το όνομα του filer DR:"
διαβάστε DR_FILER

ConnectString = "ssh-c 3des"
# ConnectString = "rsh"

SnapMirrorHour = 22
SnapMirrorMinute = 0
SnapMirrorStagger = 5

echo ""> $ (DR_FILER) _filer_volumes.txt
echo ""> $ (DR_FILER) _snapmirror.conf
echo ""> $ (DR_FILER) _sm_initialize.txt
echo ""> $ (DR_FILER) _snapmirror_init.conf

για aggr στο «$ (ConnectString) $ PRI_FILER" aggr κατάσταση "| awk '$ 2! ~ / μέλος / (print $ 1)»
κάνω
SIZE = "$ (ConnectString) $ PRI_FILER" df-Αχ $ aggr "| sed 's / \ ([0-9] [KMGT] \) B / \ 1 / g' | awk '$ 1! ~ /. | Snapshot Τα συνολικά / (print $ 2) »
για VOL σε «$ (ConnectString) $ PRI_FILER" show_space aggr $ aggr "| awk '| awk $ 1! ~ / Space / (print $ 0)' '$ 4 ~ / όγκο | αρχείο | κανένας / (print $ 1)»
κάνω
echo "vol δημιουργήσει $ () VOL-s κανένας $ (aggr) $ (SIZE)">> $ (DR_FILER) _filer_volumes.txt
echo "vol περιορίσεις $ (VOL)">> $ (DR_FILER) _filer_volumes.txt
echo "SnapMirror Φορμάρισμα-S $ (PRI_FILER): $ (VOL) $ (DR_FILER): $ (VOL)">> $ (DR_FILER) _sm_initialize.txt
echo "$ (PRI_FILER): $ (VOL) $ (DR_FILER): $ (VOL) - $ (SnapMirrorMinute) $ (SnapMirrorHour) * *">> $ (DR_FILER) _snapmirror.conf
echo "$ (PRI_FILER): $ (VOL) $ (DR_FILER): $ (VOL) - - - - -">> $ (DR_FILER) _snapmirror_init.conf

SnapMirrorMinute = `expr $ SnapMirrorMinute + $ SnapMirrorStagger»

Command Line , , , ,

SnapMirror

7 Ιουλίου 2009

Πίνακας περιεχομένων

ΟΝΟΜΑ

SnapMirror - Σύνδεση των SnapMirror Δραστηριότητας

ΣΥΝΟΨΗΣ

/ Etc / log / SnapMirror

ΠΕΡΙΓΡΑΦΗ

Το αρχείο καταγραφής SnapMirror περιέχει μια καταγραφή της δραστηριότητας SnapMirror για αυτό filer. Οι ζωές αρχείο στο / etc / συνδεθείτε με τον όγκο ρίζα και η πηγή και ταξινομητές προορισμού. Όταν η επιλογή snapmirror.log.enable είναι ενεργοποιημένη, όλες οι δραστηριότητες SnapMirror θα καταγράφονται σε αυτό το αρχείο καταγραφής. Δείτε τις επιλογές για λεπτομέρειες σχετικά με το πώς να ενεργοποιήσετε και να απενεργοποιήσετε αυτή την επιλογή. Κάθε Κυριακή στις 00:00, / etc / log / SnapMirror μεταφέρεται στο / etc/log/snapmirror.0, / etc/log/snapmirror.0 μεταφέρεται στο / etc/log/snapmirror.1, και ούτω καθεξής. Το επίθεμα μπορεί να ανέλθει σε 5. Η διαδικασία αυτή ονομάζεται περιστροφή. Οι SnapMirror καταχωρήσεις καταγραφής αποθηκεύονται για ένα σύνολο έξι εβδομάδων.

Κάθε εγγραφή του αρχείου / etc / log / SnapMirror αρχείο είναι μία γραμμή που αποτελείται από το διάστημα χωρίζονται τομείς. Όλες οι καταχωρήσεις ημερολογίου ξεκινήσω με έναν τύπο πεδίου και ένα πεδίο σήμανσης χρόνου. Το τελικό πεδίο μπορεί να περικλείονται από παρενθέσεις, οπότε μπορεί να περιέχει κενά. Το πεδίο σήμανσης χρόνου περιέχει έναν σταθερό αριθμό των χώρων, και ως εκ τούτου μπορεί να αναλυθεί σε πέντε οριοθετημένη με διαστήματα, τα πεδία. Ποιους τομείς φαίνεται, και με ποια σειρά εμφανίζονται στο, καθορίζεται από τον τύπο στον τομέα της εισόδου log (που αποτελεί το πρώτο πεδίο).

Ακολουθεί μια περιγραφή του κάθε πεδίου.

Τύπος Αναφέρατε το είδος της εγγραφής, η οποία καθορίζει και τη μορφή του το υπόλοιπο της εισόδου. Μπορεί να είναι μία από τις ακόλουθες τιμές:

κούτσουρο
log δραστηριότητα εγκατάστασης

Μορφή: Τύπος event_info timestamp ...

sys
σε όλο το σύστημα δραστηριότητας

Μορφή: Τύπος event_info timestamp ...

TGT
snapvault δραστηριότητα στόχος

Μορφή: Τύπος όγκος timestamp event_info στόχο ...

src
δραστηριότητα πηγή

Μορφή: Τύπος πηγή timestamp event_info προορισμό ...

dst
δραστηριότητα προορισμού

Μορφή: Τύπος πηγή timestamp event_info προορισμό ...

cmd
χρήστης δραστηριότητα εντολή

Μορφή: Τύπος πηγή timestamp event_info προορισμό ...

SCN
αναπαραγωγή πηγή έλεγχος δραστηριότητα

Μορφή: Τύπος πηγή timestamp event_info προορισμό ...

chk
αναπαραγωγή δραστηριότητα προορισμό έλεγχο.

Μορφή: Τύπος πηγή timestamp event_info προορισμό ...

vol
όγκος σε επίπεδο δραστηριότητας

Μορφή: Τύπος event_info όγκος timestamp ...

slk
softlock δραστηριότητα προσθήκη-διαγραφή

Μορφή: Τύπος event_info softlock timestamp ...

timestamp
Εμφανίζονται σε ctime () μορφή, π.χ. Παρ 17 Ιουλ. 20:41:09 GMT. Δείχνει τον χρόνο εκδήλωσης αυτής καταγράφεται.

Καθορίζει τον όγκο το όνομα του όγκου στο οποίο ισχύει η καταχώρηση αυτή ισχύει.

στόχος Αυτό είναι το όνομα και τον τύπο του στόχου για αυτή την καταχώρηση. Στόχοι είναι ο όγκος σε επίπεδο δράσεων, συνήθως δημιουργίες στιγμιότυπο. Εμφανίζεται ως δύο colonseparated πεδία, ως εξής:

target_type: target_name

Το όνομα στόχος μπορεί να είναι ένα κενό string.

πηγή Αυτό είναι το όνομα της πηγής filer και το όνομα ή τον όγκο qtree πορεία που πρέπει να αντικατοπτριστούν. Το όνομα ορίζεται ως δύο παχέος εντέρου-χωρίζονται τα πεδία, ως εξής:

υποδοχής: μονοπάτι

Το πεδίο αυτό μπορεί να είναι `- 'όχι όταν εφαρμόζεται για το γεγονός.

προορισμός
Αυτό είναι το όνομα του filer προορισμού και το όνομα ή τον όγκο qtree διαδρομή του προορισμού. Το όνομα ορίζεται ως δύο παχέος εντέρου-χωρίζονται τομείς, το ίδιο και στον τομέα πηγή.

Το πεδίο αυτό μπορεί να είναι `- 'όχι όταν εφαρμόζεται για το γεγονός.

event_info
Το πεδίο αυτό περιέχει το συμβάν που έχει καταγραφεί. Ορισμένα γεγονότα μπορεί να έχουν επιπλέον πληροφορίες σε παρένθεση.

Αίτηση (η διεύθυνση IP | μεταβίβαση τύπου) Ένα αίτημα μεταφοράς έχει σταλεί (προορισμός) ή λαμβάνονται (πηγή). Από την πλευρά πηγή, η διεύθυνση IP του filer προορισμού που υπέβαλε το αίτημα περιλαμβάνεται σε παρένθεση. Από την πλευρά προορισμού, το είδος μεταφοράς περιλαμβάνεται στην παρένθεση.

Ξεκινήστε Η έναρξη της μεταφοράς.

Ξεκινήστε (Στιγμιότυπα να ελέγξει = # num, το επίπεδο = (δεδομένα | checksum), (έλεγχο | καθορίζει), (γρήγορη | πλήρης) mode)
Η αρχή του ελέγχου αναπαραγωγής ή να καθορίζει συνόδου. Οι επιλογές συνόδου περιλαμβάνονται στην παρένθεση. Όλες οι επιλογές εμφανίζονται στο αρχείο καταγραφής πλευρά προορισμό, αλλά μόνο το «στιγμιότυπα για να ελέγξετε" η επιλογή εμφανίζεται στο ημερολόγιο πλευρά πηγή.

Κάντε επανεκκίνηση (@ num KB)
Η αρχή μιας εκ νέου σε λειτουργία μεταφοράς.

Τέλος (που πραγματοποιείται num KB)
Η ολοκλήρωση της μεταβίβασης. Το συνολικό μέγεθος της μεταβίβασης, KB συμπεριλαμβάνεται στην παρένθεση.

Τέλος (src_only = num_1, dst_only = num_2, αναντιστοιχία = num_3) Η ολοκλήρωση του ελέγχου αναπαραγωγής ή να καθορίζει συνόδου. Η περίληψη της συνόδου περιλαμβάνεται στις παρενθέσεις. Η περίληψη είναι παρούσα μόνο στην πλευρά προορισμό κορμών. Πηγή πλευρά κορμοί δεν θα περιλαμβάνουν πληροφορίες σύνοψης.

Ματαίωση (msg λάθους)
Η μεταβίβαση αυτή ματαιώνεται. Το μήνυμα λάθους που περιλαμβάνονται στην παρένθεση.

Αναβάλει (λόγος)
Υποδεικνύει μια μεταφορά αναβάλλεται εξαιτίας ενός περιορισμού των πόρων. Ο λόγος για την αναβολή περιλαμβάνεται στην παρένθεση.

Wait_tape
Μια επιχείρηση ταινία SnapMirror περιμένει για την επόμενη ταινία.

New_tape
Μια επιχείρηση ταινία SnapMirror συνεχίστηκε με τη λειτουργία με τη νέα ταινία.

Sync_start
Η έναρξη της σύγχρονη λειτουργία κατοπτρισμού για τη σχέση SnapMirror καθορίζονται από αυτή την καταχώρηση μητρώου.

Sync_end (λόγος)
Το τέλος της σύγχρονη λειτουργία κατοπτρισμού για τη σχέση SnapMirror καθορίζονται από αυτή την καταχώρηση μητρώου. Ο λόγος για την εγκατάλειψη του σύγχρονου τρόπου περιλαμβάνεται στις παρενθέσεις.

Quiesce_start
Η έναρξη της διαδικασίας ησυχάζω.

Quiesce_end
Η ολοκλήρωση της διαδικασίας ησυχάζω.

Quiesce_failed (λόγος)
Η αποτυχία της διαδικασίας ησυχάζω. Ο λόγος για την αποτυχία περιλαμβάνεται στην παρένθεση.

Rollback_start
Η απαρχή μιας διαδικασίας επαναφοράς για ένα qtree SnapMirror ή SnapVault.

Rollback_end
Η ολοκλήρωση μιας διαδικασίας επαναφοράς για ένα qtree SnapMirror ή SnapVault.

Rollback_failed (λόγος)
Η αποτυχία μιας διαδικασίας επαναφοράς για ένα qtree SnapMirror ή SnapVault. Ο λόγος για την αποτυχία περιλαμβάνεται στην παρένθεση.

Coalesce_start (snapshot)
Η αρχή μιας ενώνομαι διαδικασία για qtree SnapVault. Το στιγμιότυπο βάση για τη λειτουργία ενώνομαι περιλαμβάνεται στις παρενθέσεις.

Coalesce_end
Η ολοκλήρωση μιας ενώνομαι διαδικασία για qtree SnapVault.

Coalesce_failed (λόγος)
Η αποτυχία μιας ενώνομαι διαδικασία για qtree SnapVault. Ο λόγος για την αποτυχία περιλαμβάνεται στην παρένθεση.

Target_start
Η έναρξη του στόχου SnapVault.

Target_end
Την ολοκλήρωση ενός στόχου SnapVault.

Target_failed (λόγος)
Η αποτυχία του στόχου SnapVault. Ο λόγος για την αποτυχία περιλαμβάνεται στην παρένθεση.

Start_logging
SnapMirror ημερολόγιο ήταν ενεργοποιημένο.

End_logging
SnapMirror ημερολόγιο ήταν άτομα με ειδικές ανάγκες.

SnapMirror_on (αιτία)
SnapMirror ήταν ενεργοποιημένο σε αυτήν υποδοχής. Η πράξη ή διαδικασία που προκάλεσε SnapMirror να γίνει ενεργοποιημένη καθορίζεται στις παρενθέσεις.

SnapMirror_off (αιτία)
SnapMirror ήταν άτομα με ειδικές ανάγκες σε αυτή υποδοχής. Η πράξη ή διαδικασία που προκάλεσε SnapMirror να γίνουν ειδικές ανάγκες, καθορίζεται στις παρενθέσεις.

SnapVault_on (αιτία)
SnapVault ήταν ενεργοποιημένο σε αυτήν υποδοχής. Η πράξη ή διαδικασία που προκάλεσε SnapVault να γίνει ενεργοποιημένη καθορίζεται στις παρενθέσεις.

SnapVault_off (αιτία)
SnapVault ήταν άτομα με ειδικές ανάγκες σε αυτή υποδοχής. Η πράξη ή διαδικασία που προκάλεσε SnapVault να γίνουν ειδικές ανάγκες, καθορίζεται στις παρενθέσεις.

Resume_command
Χρήστης έχει εκδοθεί SnapMirror επαναλάβει εντολή.

Break_command
Χρήστης έχει εκδοθεί εντολή SnapMirror διάλειμμα.

Release_command
Χρήστης έχει εκδοθεί SnapMirror εντολή απελευθέρωσης.

Abort_command

Abort_command (τύπος)
Χρήστης έχει εκδοθεί εντολή SnapMirror ματαίωση. Ο τύπος θα είναι παρόντες όταν η ματαίωση έχει εκδοθεί με τις επιπλέον επιλογές που άλλαξε το είδος του ματαίωση.

Resync_command (κοινή στιγμιότυπο)
Χρήστης έχει εκδοθεί SnapMirror resync εντολή. Η κοινή εικόνα για τις resync λειτουργία περιλαμβάνεται στις παρενθέσεις.

Restore_resync_command (κοινή snapshot) Χρήστης εκδοθεί snapvault αποκατάσταση-r εντολή. Η κοινή εικόνα για τις resync λειτουργία περιλαμβάνεται στις παρενθέσεις.

Migrate_command
Χρήστης έχει εκδοθεί SnapMirror μεταναστεύσουν εντολή.

Request_check (snapshot_name)
Η αίτηση για την ενιαία στιγμιότυπο κατά τη διάρκεια της συνόδου ελέγχου αναπαραγωγής. Αυτό είναι πηγή εισόδου log πλευρά. Κάθε στιγμιότυπο να διασταυρώνονται, σε μια περίοδο ελέγχου αναπαραγωγής θα έχει τη θέση του. Όνομα του στιγμιότυπου περιλαμβάνεται στις παρενθέσεις.

Checking_snapshot snapshot_name πηγή (timestamp, cpcount = num_2, snapid = id) για να dest_snapshot_name (timestamp, cpcount μετράνε =, snapid = id) Η αρχή της ενιαίας σύγκριση στιγμιότυπο κατά τη διάρκεια του ελέγχου αναπαραγωγής. Είναι συνδεδεμένος τόσο προέλευσης και προορισμού.

Abort_check
αναπαραγωγή συνεδρία ελέγξετε SnapMirror ή SnapVault ματαιώθηκε. Αιτιολογία της εγκαταλείψετε περιλαμβάνεται στις παρενθέσεις.

Abort_check_command
Χρήστης έχει εκδοθεί εντολή αναπαραγωγή ματαίωση έλεγχο. Αντίστοιχες καταγραφής εισόδου αρχείο εμφανίζεται με cmd τύπου.

Data_differ ((blk_num μπλοκ σε file_path VBN vbn |))
Replication έλεγχο διαπιστώθηκε αναντιστοιχία μπλοκ δεδομένων. Είτε τον αριθμό μπλοκ και το inode διαδρομή ή τόμος Block Αριθμός (VBN) περιλαμβάνεται στις παρενθέσεις.

Unique_in_src (entry_type για entry_path) Replication έλεγχος διαπίστωσε μια καταχώρηση εμφανίστηκαν μόνο στην πηγή. Ο τύπος εισόδου και διαδρομή εισόδου περιλαμβάνονται στην παρένθεση.

Unique_in_dst (entry_type για entry_path) Replication έλεγχος διαπίστωσε μια καταχώρηση μόνο που υπάρχουν στο τόπο προορισμού. Ο τύπος εισόδου και διαδρομή εισόδου περιλαμβάνονται στην παρένθεση.

Size_differ (διαδρομή)
Replication έλεγχο βρέθηκε ένα αρχείο αναντιστοιχία μεγέθους σε συγκεκριμένες inode. Η διαδρομή inode περιλαμβάνεται στις παρενθέσεις.

Type_differ (διαδρομή)
Replication έλεγχος βρήκε ένα inode ασυμφωνία τύπου. Η διαδρομή inode περιλαμβάνεται στις παρενθέσεις.

UID_differ (διαδρομή)
Replication έλεγχος βρήκε ένα user ID αναντιστοιχία για συγκεκριμένες inode. Η διαδρομή inode περιλαμβάνεται στις παρενθέσεις.

GID_differ (διαδρομή)
Replication έλεγχος βρήκε ένα αναγνωριστικό ομάδας αναντιστοιχία για συγκεκριμένες inode. Η διαδρομή inode περιλαμβάνεται στις παρενθέσεις.

Perm_differ (διαδρομή)
Replication έλεγχο βρέθηκαν να έχουν άδεια ή dosbit αναντιστοιχία για συγκεκριμένες inode. Η διαδρομή inode περιλαμβάνεται στις παρενθέσεις.

Atime_differ (διαδρομή)
Replication έλεγχο διαπιστώθηκε μία ανακολουθία στον τελευταίο χρόνο πρόσβασης για συγκεκριμένες inode. Η διαδρομή inode περιλαμβάνεται στις παρενθέσεις.

Mtime_differ (διαδρομή)
Replication έλεγχο διαπιστώθηκε μία ανακολουθία κατά την τελευταία φορά τροποποίηση για συγκεκριμένες inode. Η διαδρομή inode περιλαμβάνεται στις παρενθέσεις.

Ctime_differ (διαδρομή)
Replication έλεγχο διαπιστώθηκε μία ανακολουθία στην τελευταία μέγεθος / ώρα αλλάξει το καθεστώς για συγκεκριμένες inode. Η διαδρομή inode περιλαμβάνεται στις παρενθέσεις.

Crtime_differ (διαδρομή)
Replication έλεγχο διαπιστώθηκε μία ανακολουθία στην ώρα κατάρτισης ορίζεται inode. Η διαδρομή inode περιλαμβάνεται στις παρενθέσεις.

Rdev_differ (διαδρομή)
Replication έλεγχο διαπιστώθηκε μία ανακολουθία συσκευή αριθμό για συγκεκριμένες inode. Η διαδρομή inode περιλαμβάνεται στις παρενθέσεις.

DOSbits_differ (διαδρομή)
Replication έλεγχος βρήκε ένα DOS αναντιστοιχία κομμάτια για συγκεκριμένες inode. Η διαδρομή inode περιλαμβάνεται στις παρενθέσεις.

ACL_differ (διαδρομή)
Αναπαραγωγή έλεγχος βρήκε μια NT ή NFS V4 ACL αναντιστοιχία για συγκεκριμένες inode. Η διαδρομή inode περιλαμβάνεται στις παρενθέσεις.

Hardlink_differ (διαδρομή)
Replication έλεγχος βρήκε ένα hardlink για καθορισμένους inode, αλλά το inode με τον τόπο προορισμού δεν ταιριάζει μεταξύ τους δεσμούς. Η διαδρομή inode περιλαμβάνεται στις παρενθέσεις.

Qtree_oplock_differ (διαδρομή)
Αναπαραγωγή έλεγχο διαπιστώθηκε Oplock καθορισμό αναντιστοιχία για μια qtree. Η διαδρομή qtree περιλαμβάνεται στις παρενθέσεις.

Qtree_security_differ (διαδρομή)
Αναπαραγωγή έλεγχο διαπιστώθηκε ρύθμιση ασφαλείας αναντιστοιχία για μια qtree. Η διαδρομή qtree περιλαμβάνεται στις παρενθέσεις.

Hole_uses_disk_space (διαδρομή)
Αναπαραγωγή έλεγχο διαπιστώθηκε περιττή χρήση του δίσκου για καθορισμένους inode, αυτό όμως δεν αναντιστοιχία. Η διαδρομή inode περιλαμβάνεται στις παρενθέσεις.

Convert_command
Χρήστης έχει εκδοθεί SnapMirror εντολή convert.

Older_snapshot
Ενημέρωση από μια στιγμιαία εικόνα που είναι μεγαλύτερα από την τρέχουσα στιγμιότυπο βάσης.

Snapshot_delete (όνομα εικόνα)
Ένα στιγμιότυπο είναι διαγραφεί από αυτόν τον τόμο. Το όνομα στιγμιότυπο περιλαμβάνεται στις παρενθέσεις.

Snapshot_replace (όνομα εικόνα)
Ένα στιγμιότυπο SnapVault έχει αντικατασταθεί μετά από μια λειτουργία του SIS με μια νεότερη στιγμιότυπο με το ίδιο όνομα. Το όνομα στιγμιότυπο περιλαμβάνεται στις παρενθέσεις.

FILER_REBOOTED
Η filer γίνει επανεκκίνηση.

WORM_LOG_FAIL (λόγος)
Γράψτε στο αρχείο καταγραφής WORM απέτυχε. Ο λόγος για την αποτυχία περιλαμβάνεται στην παρένθεση.

WORM_LOG_FAILURE_RECOVER_START
Η έναρξη της ανάκαμψης από την αποτυχημένη WORM καταχωρήσεις ημερολογίου.

WORM_LOG_FAILURE_RECOVER_END
Το τέλος της αποκατάστασης του αποτυχημένου WORM καταχωρήσεις ημερολογίου.

Softlock_add (λειτουργία)
Μια softlock προστίθεται. Η πράξη που πρόσθεσε το softlock περιλαμβάνεται στις παρενθέσεις.

Softlock_add_pending (λειτουργία)
Μια softlock προστίθεται ως εκκρεμεί softlock. Η πράξη που πρόσθεσε το softlock περιλαμβάνεται στις παρενθέσεις.

Softlock_delete (λειτουργία)
Μια softlock διαγράφεται. Η πράξη ότι διέγραψε την softlock περιλαμβάνεται στις παρενθέσεις.

Softlock_delete_pending (λειτουργία) Μια αναμονή softlock διαγράφεται. Η επιχείρηση που διαγράφεται περιλαμβάνεται στις παρενθέσεις.

Softlock_mark_pending (λειτουργία)
Μια softlock επισημαίνεται ότι εκκρεμεί. Η επιχείρηση που σημάδεψαν περιλαμβάνεται στις παρενθέσεις.

ΠΑΡΑΔΕΙΓΜΑΤΑ

Μια τυπική καταχώρηση στο / etc / log / SnapMirror μοιάζει με:
   dst Παρ. 17 Ιουλίου 22:50:18 GMT filer1: srcvol filer2: dstvol Αίτηση (Update) 

Το παραπάνω παράδειγμα δείχνει μια αίτηση ενημέρωσης που καταγράφονται από την πλευρά προορισμό για μια σχέση SnapMirror από filer: srcvol να filer2: dstvol ότι συνέβη κατά την καταγραφή του χρόνου.

Μια τυπική συνεδρία έλεγχος Replication στο / etc / log / SnapMirror σχετικά με τον προορισμό μοιάζει με:

  chk Τετ 19ης Ιανουαρίου 1:07:39 GMT Γουλφ: / vol/vol1 Milton: / vol/vol1 Αίτηση (check) chk Τετ 19 Ιαν 1:07:39 GMT Γουλφ: / vol/vol1 Milton: / vol/vol1 Start ( στιγμιότυπα για να ελέγξετε = 2, το επίπεδο των δεδομένων =, έλεγχος, πλήρης) chk Τετ 19η Ιανουαρίου 1:07:39 GMT Γουλφ: / vol/vol1 Milton: / vol/vol1 Checking_snapshot Milton (0033587346) _vol1.5 (18 Ιαν. ... chk Τετ 19 Ιαν. 1:07:48 GMT Γουλφ: / vol/vol1 Milton: / vol/vol1 Checking_snapshot nightly.0 (18ης Ιανουαρίου 00:00, cpcount = ... chk Τετ 19 Ιαν 1:07:57 GMT Γουλφ: / vol/vol1 Milton: / vol/vol1 End (src_only = 0, dst_only = 0, αναντιστοιχία = 0) 

Μια τυπική συνεδρία έλεγχος Replication στο / etc / log / SnapMirror με την πηγή μοιάζει με:

  SCN Τετ 19 Ιαν. 00:58:27 GMT Γουλφ: / vol/vol1 Milton: / vol/vol1 Αίτηση (172.29.19.15) SCN Τετ 19 Ιανουαρίου 00:58:27 GMT Γουλφ: / vol/vol1 Milton: / vol/vol1 Ξεκινήστε (Στιγμιότυπα να ελέγξει = 2) SCN Τετ 19 Ιαν 00:58:27 GMT Γουλφ: / vol/vol1 Milton: / vol/vol1 Request_check (Milton (0033587346) _vol1.5) SCN Τετ 19 Γενάρη 00:58:27 GMT Γουλφ: / vol/vol1 Milton: / vol/vol1 Checking_snapshot Milton (0033587346) _vol1.5 (18 Ιαν. ... SCN Τετ 19 Ιαν 00:58:36 GMT Γουλφ: / vol/vol1 Milton: / vol/vol1 Request_check (nightly. 0) SCN Τετ 19 Ιαν 00:58:36 GMT Γουλφ: / vol/vol1 Milton: / vol/vol1 Checking_snapshot nightly.1 (18 Ιαν. 00:00, cpcount = ... SCN Τετ 19 Ιανουαρίου 00:58:45 GMT Γουλφ: / vol/vol1 Milton: / vol/vol1 End 

Μια τυπική softlock υλοτομία στο / etc / log / SnapMirror μοιάζει με:

  slk Τετ 10 Μαΐου 3:06:15 GMT state.softlock.vol1.0000011e.054.filer1: vol3 Softlock_add (Transfer) slk Τετ 10 Μάη 3:06:15 GMT state.softlock.vol1.0000011b.054.filer1: vol3 Softlock_delete (Transfer) slk Τετ 10 Μάη 3:06:15 GMT state.softlock.vol1.0000011b.054.filer1: vol3 Softlock_delete (Επαναφορά) slk Τετ 10 του Μάη 3:06:15 GMT state.softlock.vol1.0000011b.054 . filer1: vol3 Softlock_delete (Release) slk Τετ 10 Μαΐου 3:06:15 GMT state.softlock.vol1.0000011b.054.filer1: vol3 Softlock_delete (Clean_softlocks) slk Wed 10η Μάη 3:06:15 GMT state.softlock.vol1 .0000011 b.054.filer1: vol3 Softlock_add (RSM_forward) slk Τετ 10 Μαΐου 3:06:15 GMT state.softlock.vol1.0000011b.054.filer1: vol3 Softlock_delete (RSM_forward) slk Τετ 10 Μαΐου 3:06:15 GMT κατάσταση . softlock.vol1.0000011b.054.filer1: vol3 Softlock_delete (Snapmirror_destinations) slk Wed 10ης Μάη 3:06:15 GMT state.softlock.vol1.0000011b.054.filer1: vol3 Softlock_delete_pending (Transfer) slk Τετ 10 Μαΐου 3:06 : 15 GMT state.softlock.vol1.0000011b.054.filer1: vol3 Softlock_add_pending (Transfer) slk Τετ 10 Μαΐου 3:06:15 GMT state.softlock.vol1.0000011b.054.filer1: vol3 Softlock_mark_pending (Transfer) 

ΑΡΧΕΙΑ

/ Etc / log / SnapMirror
SnapMirror αρχείο καταγραφής για την τρέχουσα εβδομάδα.

/ Etc / log / SnapMirror. [0-5]
SnapMirror αρχεία καταγραφής για τις προηγούμενες εβδομάδες.

ΔΕΙΤΕ ΕΠΙΣΗΣ

επιλογές, SnapMirror snapvault


Πίνακας περιεχομένων







































































Εγχειρίδιο Σελίδες , , , ,

SnapMirror

7 Ιουλίου 2009

Πίνακας περιεχομένων

ΟΝΟΜΑ

SnapMirror - τον όγκο, και qtree mirroring

ΣΥΝΟΨΗΣ

SnapMirror (on | off)

[Επιλογές καθεστώς SnapMirror] [όγκο | qtree ... ]

SnapMirror αρχικοποιήσετε [επιλογές] προορισμός

SnapMirror ενημέρωση [επιλογές] προορισμός

SnapMirror προορισμό ησυχάζω

SnapMirror επαναλάβει προορισμού

SnapMirror διάλειμμα [επιλογές] προορισμός

resync SnapMirror [επιλογές] προορισμός

προορισμοί SnapMirror [επιλογή] [πηγή]

SnapMirror πηγή απελευθέρωσης προορισμού

SnapMirror (κατάστημα | ανακτήσετε) tapedevices όγκο

προορισμού tapedevices χρήση SnapMirror

SnapMirror προορισμό <n> γκαζιού

Σβήνει SnapMirror [επιλογές] προορισμός ...

SnapMirror μεταναστεύουν [επιλογές] πηγή προορισμού

ΠΕΡΙΓΡΑΦΗ

Η εντολή SnapMirror χρησιμοποιείται για τον έλεγχο SnapMirror, μια μέθοδο των όγκων κατοπτρισμού και qtrees. Επιτρέπει στο χρήστη να ενεργοποιούν και να απενεργοποιούν τις τακτικές και χειροκίνητη μεταφορά δεδομένων, πληροφορίες σχετικά με τις μεταφορές αίτημα, αρχίζει την αρχικοποίηση τη μεταφορά δεδομένων, ξεκινήστε μια ενημέρωση από έναν καθρέφτη, για την προσωρινή παύση για ανανεωμένες εκδόσεις σε έναν καθρέφτη, σπάσιμο καθρέφτη των σχέσεων, συγχρονιστούν σπασμένα καθρέπτες, πληροφορίες προορισμό λίστα , καθρέφτες παιδί απελευθέρωση, αποθηκεύσετε εικόνες όγκο σε ταινία, την ανάκτηση εικόνων όγκο από ταινία, και η ματαίωση συνεχή μεταφορές.

SnapMirror μπορεί να χρησιμοποιηθεί για να αναπαράγουν τον όγκο ή qtrees. Τις διαδικασίες και συμπεριφορές που συμμετέχουν είναι ελαφρώς (και ενίοτε διακριτικά) είναι διαφορετικές μεταξύ των διαφόρων ειδών των δεδομένων κατοπτρισμού.

Η διαδικασία SnapMirror είναι ο προορισμός-οδηγείται. Η SnapMirror προετοιμάσει η εντολή ξεκινά την πρώτη μεταβίβαση η οποία primes ο προορισμός με όλα τα στοιχεία σχετικά με την πηγή. Πριν από την αρχική μεταφορά, ο προορισμός πρέπει να είναι έτοιμη να αντικατασταθούν με τα δεδομένα από την πηγή? Όγκοι προορισμού, πρέπει να περιοριστεί (βλ. κατ 'όγκο), και qtrees προορισμού δεν πρέπει να υπάρχουν ακόμα.

Για ασύγχρονη καθρέφτες, ο προορισμός ζητά περιοδικά μια ενημέρωση από την πηγή, αποδέχεται τη μεταβίβαση των δεδομένων, και γράφει τα δεδομένα στο δίσκο. Οι μεταβιβάσεις αυτές ενημέρωση περιλαμβάνει μόνο αλλαγές που έγιναν σχετικά με την πηγή από την τελευταία μεταφορά. Το χρονοδιάγραμμα SnapMirror κινεί τα μεταφέρει αυτόματα σύμφωνα με τα προγράμματα στο αρχείο snapmirror.conf.

Σύγχρονη καθρέφτες αρχικά θα συμπεριφερθεί ασύγχρονα, αλλά θα μετάβαση στο σύγχρονο τρόπο κατά την πρώτη ευκαιρία. Αυτά τα κάτοπτρα μπορούν να επιστρέψουν στις ασύγχρονο τρόπο στο λάθος (π.χ. κατάτμηση του δικτύου μεταξύ των ταξινομητές mirroring) ή μετά από αίτηση του χρήστη.

Η εντολή update SnapMirror μπορεί να χρησιμοποιηθεί για να κινήσει μεμονωμένες μεταφορές εκτός από τις τακτικές αυτές στη snapmirror.conf.

Μετά την αρχική μεταφορά, ο προορισμός είναι διαθέσιμη στους πελάτες, αλλά σε κατάσταση μόνο για ανάγνωση. Η κατάσταση ενός προορισμού θα δείξει ότι είναι snapmirrored (βλ. aggr, vol, ή qtree για περισσότερες λεπτομέρειες σχετικά με την εμφάνιση των κρατικών προορισμού).

Για να χρησιμοποιήσετε τον προορισμό για τη γραφή, καθώς και την ανάγνωση, η οποία είναι χρήσιμη όταν μια καταστροφή καθιστά την πηγή διαθέσιμη ή όταν θέλετε να χρησιμοποιήσετε τον προορισμό ως όγκος δοκιμής / qtree, μπορείτε να τερματίσετε τη σχέση SnapMirror με την εντολή διάλειμμα SnapMirror. Αυτή η εντολή αλλάζει τον προορισμό του καθεστώτος του από snapmirrored να σπάσει-off, καθιστώντας έτσι εγγράψιμο. Η εντολή resync SnapMirror μπορεί να αλλάξει πρώην προορισμού καθεστώς ενός πίσω στο snapmirrored και θα συγχρονιστούν το περιεχόμενό της με την πηγή. (Όταν εφαρμόζεται σε μια πρώην πηγή, resync SnapMirror μπορεί να μετατραπεί σε έναν καθρέφτη του πρώην προορισμού. Με τον τρόπο αυτό, οι ρόλοι της πηγής και προορισμού μπορεί να αντιστραφεί.)

Μια filer παρακολουθεί όλους τους προορισμούς, είτε απευθείας καθρέφτες και τους καθρέπτες από καθρέπτες, για καθεμία από τις πηγές του. Αυτός ο κατάλογος μπορεί να εμφανίζεται με τους προορισμούς SnapMirror εντολή. Η εντολή απελευθέρωσης SnapMirror μπορεί να χρησιμοποιηθεί για να πείτε σε έναν filer ότι ορισμένες άμεσες καθρέφτη δεν θα είναι πλέον ενημερωμένες εκδόσεις αίτημα.

Για να αποθηκεύσετε το εύρος ζώνης του δικτύου, η ταινία μπορεί να χρησιμοποιηθεί για ένα νέο βασικό όγκο καθρέφτη αντί του SnapMirror αρχικοποίηση εντολή. Η εντολή χωματερές κατάστημα SnapMirror μια εικόνα της πηγής σε ταινία. Η SnapMirror ανακτήσει αποκαθιστά εντολή μια εικόνα από ταινία όγκο και προετοιμάζει τον όγκο των μεταφορών ενημέρωση μέσω του δικτύου. Εάν ταινίες είναι πολλαπλές χρησιμοποιούνται για να δημιουργήσουν μια εικόνα όγκου, η εντολή χρήση SnapMirror χρησιμοποιείται για να αναθέσει σε αναμονή κατάστημα ή ανακτήσετε διαδικασία να γράψω εξόδου ή δέχονται εισροές σε / από μια νέα συσκευή ταινίας. Η αποθήκευση και ανάκτηση εντολές δεν μπορούν να χρησιμοποιηθούν με qtrees.

Η SnapMirror μεταναστεύουν εντολή χρησιμοποιείται σε ένα υπάρχον αρχείο προέλευσης και προορισμού ζευγάρι να κάνει τον όγκο προορισμό ένα εγγράψιμο «μιμούνται» της πηγής. Ο προορισμός αναλαμβάνει το NFS filehandles της πηγής, που βοηθά το διαχειριστή filer να αποφευχθεί η εκ νέου NFS τοποθέτηση στην πλευρά του client.

Το αρχείο snapmirror.conf για filer ρίζα του όγκου προορισμό τους ελέγχους τη διαμόρφωση και τον προγραμματισμό των SnapMirror με τον προορισμό. Βλ. snapmirror.conf για περισσότερες λεπτομέρειες σχετικά με τη διαμόρφωση και τον προγραμματισμό των SnapMirror.

Η πρόσβαση σε μια πηγή ελέγχεται με τη snapmirror.access επιλογή στο filer πηγή. Δείτε τις επιλογές και protocolaccess (8) για πληροφορίες σχετικά με τη ρύθμιση του δικαιώματος προαίρεσης.

(Αν το snapmirror.access επιλογή τίθεται στην "κληρονομιά", η πρόσβαση ελέγχεται από την snapmirror.allow αρχείο filer ρίζα του όγκου πηγή του. Δείτε snapmirror.allow για περισσότερες λεπτομέρειες.)

SnapMirror είναι αδειοδοτημένη υπηρεσία, καθώς και την άδεια, πρέπει να ληφθεί πριν από την εντολή SnapMirror μπορεί να χρησιμοποιηθεί. SnapMirror πρέπει να έχουν άδεια από τις δύο πηγές και τα φίλτρα προορισμού. Να δω την άδεια για περισσότερες λεπτομέρειες.

SnapMirror υποστηρίζεται σε τακτική vfilers, καθώς και η φυσική filer ονομάζεται vfiler0. Χρησιμοποιήστε το πλαίσιο vfiler ή vfiler τρέχει να εκδώσει εντολές SnapMirror σε ένα συγκεκριμένο vfiler. Βλ. vfiler για λεπτομέρειες σχετικά με το πώς να εκδίδουν εντολές για vfilers. Η χρήση του SnapMirror για vfilers απαιτεί άδεια πολυκαταστημάτων.

Όταν χρησιμοποιείται σε ένα vfiler, λίγα ισχύουν περιορισμοί. Η vfiler πρέπει να βασίζεται σε έναν τόμο και SnapMirror πηγές και τους προορισμούς που δεν είναι δυνατόν να qtrees σε κοινές τόμους. Ταινία συσκευές και Σύγχρονη SnapMirror δεν υποστηρίζονται σε vfilers. Για μια qtree SnapMirror, ο vfiler πρέπει να περιέχει η ίδια η ένταση του Qtree.

Κάθε vfiler έχει τη δική του / etc / snapmirror.conf αρχείο σε όγκο ρίζα του. SnapMirror μπορεί να ενεργοποιηθεί ή να απενεργοποιηθεί σε vfiler ανεξάρτητα. SnapMirror εντολές που εκδίδονται σε ένα vfiler μπορεί να λειτουργήσει μόνο για τον όγκο ή qtrees έχει την αποκλειστική κυριότητα του.

Για συμβατότητα με παλαιότερες εκδόσεις, η φυσική filer (vfiler0) μπορεί να λειτουργήσει σε όλες τις ποσότητες και όλες qtrees, ακόμη και αν αυτά ανήκουν vfilers. Είναι ιδιαίτερα recommanded, ωστόσο, ότι όλες οι εγκαταστάσεις αποθήκευσης (όγκος και qtrees) να οδηγήσει, είτε από vfiler0 ή τη φιλοξενία vfiler όχι, και τα δύο. Όταν οι μονάδες αποθήκευσης vfiler είδωλα μέσω vfiler0, αφήνουν ανοικτά SnapMirror στην vfiler.

ΧΡΗΣΗ

Η εντολή SnapMirror έχει πολλές subcommands. Σχεδόν κάθε εντολή παίρνει ένα επιχείρημα προορισμό. Το επιχείρημα αυτό παίρνει τρεις διαφορετικές μορφές. Το έντυπο που χρησιμοποιείται για ένα συγκεκριμένο επίκληση εξαρτάται από το αν είστε καθορισμό ενός όγκου ή μια qtree.

Όγκοι προσδιορίζονται από το όνομά τους:

  VOL1 

Qtrees are specified by their fully-qualified path:

         /vol/vol1/qtree 

There is a special path that can be used to SnapMirror all the data in a volume which does not reside in a qtree. This path can only be used as a SnapMirror source, never a SnapMirror destination. The path is specified as:

         /vol/vol1/- 

All commands which don't say otherwise can take any of these forms as an argument.

The snapmirror subcommands are:

επί

Enables SnapMirror data transfers and turns on the SnapMirror scheduler. This command must be issued before initiating any SnapMirror data transfers with the initialize , update , resync , store , or retrieve subcommands. This command also turns on the SnapMirror scheduler, which initiates update transfers when the time matches one of the schedules in the snapmirror.conf file. This command must be issued on the source side for the filer to respond to update requests from destinations.

off

Aborts all active SnapMirror data transfers and disables the commands which initiate new transfers ( initialize , update , resync , store , and retrieve ), and turns the SnapMirror scheduler off.

The on/off state of SnapMirror persists through reboots, and is reflected by the snapmirror.enable option. This option can be set off and on, and doing so has the exact same effect as the snapmirror on or snapmirror off commands.

status [ -l | -t | -q ] [ volume | qtree ... ]

Reports status of all the SnapMirror relationships with a source and/or destination on this filer. This command also reports whether SnapMirror is on or off. If any volume or qtree arguments are given to the command, only the SnapMirror relationships with a matching source or destination will be reported. If the argument is invalid, there won't be any status in the output.

Without any options, the short form of each relationship's status is displayed. This shows the state of the local side of the relationship, whether a transfer is in progress (and if so, the progress of that transfer), and the mirror lag, ie the amount of time by which the mirror lags behind the source. This is a simple difference of the current time and the source-side timestamp of the last successful transfer. The lag time will always be at least as much as the duration of the last successful transfer, unless the clocks on the source and destination are not synchronized (in which case it could even be negative).

Αν η επιλογή-l είναι δεδομένη, η παραγωγή εμφανίζει πιο λεπτομερείς πληροφορίες για κάθε σχέση SnapMirror. Εάν μια * εμφανίζεται μαζί με το καθεστώς σχέση βραχυπρόθεσμα έξοδο μορφή εντολή κατάστασης SnapMirror, στη συνέχεια, επιπλέον ειδική πληροφορίες σχετικά με την εν λόγω σχέση είναι διαθέσιμη, η οποία είναι ορατή μόνο με την επιλογή-l.

Αν η επιλογή-t είναι δεδομένη, η παραγωγή εμφανίζει τις σχέσεις που είναι ενεργή. Η σχέση αυτή θεωρείται ως ενεργό, εάν η πηγή ή ο προορισμός είναι για:

1. μεταφορά δεδομένων προς ή από το δίκτυο. 2. ανάγνωση ή γραφή σε μια συσκευή ταινία. 3. αναμονής για μια αλλαγή ταινία.
4. Performing τοπική επεξεργασία στο δίσκο ή εκκαθάρισης.

Αν η επιλογή-q είναι δεδομένη, η παραγωγή εμφανίζει ο όγκος και qtrees που quiesced ή quiescing. Βλέπε την εντολή ησυχάζω, κατωτέρω, για ό, τι αυτό σημαίνει.

Δείτε το τμήμα Παραδείγματα για περισσότερες πληροφορίες σχετικά με το καθεστώς SnapMirror.

Σε ένα vfiler, η εντολή της τρέχουσας κατάστασης δείχνει εγγραφές που σχετίζονται με την vfiler μόνο. Σχετικά με τη φυσική filer, εμφανίζονται δραστηριοποιούνται καταχωρήσεις μεταφορά από όλα τα vfilers. Οι Inactive μεταβιβάσεις εμφανίζονται μόνο στα σχετικά vfiler. Ο προτιμώμενος τρόπος για να πάρετε μια ολοκληρωμένη και πιο εύχρηστη λίστα SnapMirror μεταβιβάσεων είναι να τρέχει vfiler τρέχει * καθεστώς SnapMirror. Είναι iterators μέσω όλων vfilers και λίστες μεταβιβάσεις της.

αρχικοποιήσετε [S-source]-k kilobytes []-ες src_snap [] [-c] create_dest_snap [-w προορισμού]

Ξεκινά σε πρώτη μεταβίβαση από το δίκτυο. Μια αρχική μεταβίβαση-είτε μέσω του δικτύου ή από ταινία, είναι απαραίτητη πριν από τις μεταβιβάσεις ενημέρωση μπορεί να πραγματοποιηθεί. Η αρχικοποιήσετε εντολή πρέπει να εκδοθεί την filer προορισμού. Αν ο προορισμός είναι ένας όγκος, πρέπει να περιοριστεί (βλ. κατ 'όγκο για πληροφορίες σχετικά με το πώς να εξετάσει και να περιορίσει τον όγκο). Αν ο προορισμός είναι qtree, δεν πρέπει να υφίστανται ήδη (βλ. qtree για πληροφορίες σχετικά με το πώς να qtrees λίστα). Εάν ένα qtree υπάρχει ήδη, θα πρέπει να μετονομαστούν ή να αφαιρεθεί (με χρήση NFS ή CIFS πελάτη), ή SnapMirror προετοιμαστεί για το qtree δεν θα λειτουργήσει.

Εάν η εντολή εκθέσεις κατάστασης SnapMirror ότι ματαιώθηκε αρχική μεταβίβαση έχει μια επανεκκίνηση σημείο ελέγχου, η αρχικοποίηση commmand θα ξαναρχίσει η μεταφορά σημείο που σταμάτησε.

The -S option specifies a source filer and volume or qtree path, in a format similar to that of des_ t ination arguments. The source must match the entry for the destination in the snapmirror.conf file. If it doesn't match, the operation prints an error message and aborts. If the -S option is not set, the source used is the one specified by the entry for that destination in the snapmirror.conf file. If there is no such entry, the operation prints an error message and aborts.

The -k option sets the maximum speed at which data is transferred over the network in kilobytes per second. It is used to throttle disk, CPU, and network usage. This option merely sets a maximum value for the transfer speed; it does not guarantee that the transfer will go that fast. If this option is not set, the filer transmits data according to the kbs setting for this relationship in the snapmirror.conf file (see snapmirror.conf ). However, if this option is not set and there is no kbs setting for this relationship in the snapmirror.conf file, the filer transmits data as fast as it can.

The -c option only works for an initialize to a qtree. With this option, SnapMirror creates a snapshot named create_dest_snap on the destination after the initialize has successfully completed (so that it does not compete with any ongoing updates). SnapMirror does not lock or delete this snapshot. create_dest_snap cannot be hourly.x, nightly.x, or weekly.x, because these names are reserved for scheduled snapshots.

The -s option only works for an initialize to a qtree. It designates a snapshot named src_snap from which SnapMirror transfers the qtree, instead of creating a source snapshot and transferring the qtree from the new snapshot. This option is used to transfer a specific snapshot's contents; for example, it can transfer a snapshot that was taken while a database was in a stable, consistent state. SnapMirror does not lock or delete the src_snap . src_snap cannot be hourly.x, nightly.x, weekly.x, snapshot_for_backup.x or snapshot_for_volcopy.x.

The -w option causes the command not to return once the initial transfer starts. Instead, it will wait until the transfer completes (or fails), at which time it will print the completion status and then return.

update [ -S source ] [ -k kilobytes ] [ -s src_snap ] [ -c create_dest_snap ] [ -w ] destination

For asynchronous mirrors, an update is immediately started from the source to the destination to update the mirror with the contents of the source.

For synchronous mirrors, a snapshot is created on the source volume which becomes visible to clients of the destination volume.

The update command must be issued on the destination filer.

The -S option sets the source of the transfer, and works the same for update as it does for initialize .

The -k option sets the throttle, in kilobytes per second, of the transfer, and works the same for update as it does for initialize .

The -c option only works for an update to a qtree. With this option SnapMirror creates a snapshot named create_dest_snap on the destination after the update completes (so that it does not compete with any ongoing updates). SnapMirror does not lock or delete this snapshot. create_dest_snap cannot be hourly.x, nightly.x, or weekly.x, because these names are reserved for scheduled snapshots.

The -s option only works for an update to a qtree. It designates a snapshot named src_snap from which SnapMirror transfers the qtree, instead of creating a source snapshot and transferring the qtree from the new snapshot. This option is used to transfer a specific snapshot's contents; for example, it can transfer a snapshot that was taken while a database was in a stable, consistent state. SnapMirror does not lock or delete the src_snap . src_snap cannot be hourly.x, nightly.x, weekly.x, snapshot_for_backup.x or snapshot_for_volcopy.x.

The -w option causes the command not to return once the incremental transfer starts. Instead, it will wait until the transfer completes (or fails), at which time it will print the completion status and then return.

quiesce destination

Allows in-progress transfers to destination to complete after which new transfers are not allowed to start. Synchronous mirrors will be taken out of synchronous mode. Any further requests to update this volume or qtree will fail until the snapmirror resume command is applied to it.

This command has special meaning to qtree destinations. A qtree destination which is being modified by SnapMirror during a transfer will have changes present in it. These changes will not be exported to NFS or CIFS clients. However, if a snapshot is taken during this time, the snapshot will contain the transitioning contents of the qtree. quiesce will bring that qtree out of a transitioning state, by either finishing or undoing any changes a transfer has made. snapmirror status can report whether a qtree is quiesced or not. The quiesce process can take some time to complete while SnapMirror makes changes to the qtree's contents. Any snapshot taken while a qtree is quiesced will contain an image of that qtree which matches the contents exported to NFS and CIFS clients.

resume destination

Βιογραφικά μεταβιβάσεις προς τον προορισμό. Η SnapMirror βιογραφικό εντολή μπορεί να χρησιμοποιηθεί είτε για να διακόψει μια ησυχάζω SnapMirror σε εξέλιξη ή να αναιρέσετε μια προηγουμένως ολοκληρωθεί ησυχάζω SnapMirror. Η εντολή επαναφέρει την κατάσταση του προορισμού από quiescing ή quiesced σε ό, τι ήταν πριν από την πράξη ησυχάζω.

διάλειμμα [-f] προορισμού

Διακοπές σχέση SnapMirror με την περιστροφή ενός snapmirrored προορισμό σε μια κανονική ανάγνωσης / εγγραφής όγκο ή qtree. Αυτή η εντολή θα πρέπει να εκδοθεί την filer προορισμού.

Η επιλογή-f δυνάμεις ένα διάλειμμα SnapMirror μεταξύ snaplocked σχέση όγκου χωρίς ειδοποίηση για τη διάπλαση.

Αυτή η εντολή δεν τροποποιεί το αρχείο snapmirror.conf. Οι προγραμματισμένες μεταφορές σε ένα σπασμένο καθρέφτη θα αποτύχει.

Για τον όγκο, αυτή η εντολή έχει το ίδιο αποτέλεσμα με την vol επιλογές snapmirrored off εντολή, και θα αφαιρέσει την snapmirrored επιλογή από τον όγκο. Η επιλογή fs_size_fixed όγκος θα παραμείνουν στο? Πρέπει να αφαιρεθεί από το χέρι τον όγκο για να διεκδικήσουν οποιοδήποτε χώρο στο δίσκο που SnapMirror μπορεί να έχει περικοπεί για την αναπαραγωγή. (Δείτε την ενότητα Επιλογές και τ. για περισσότερες πληροφορίες σχετικά με αυτές τις δύο επιλογές όγκο.)

Μια qtree προορισμού, πρέπει να quiesced να μπορεί να σπάσει.

resync [-n] [-f]-S πηγή []-k kilobytes []-ες src_snap [] [-c] create_dest_snap [-w προορισμού]

Resynchronizes a broken-off destination to its former source, putting the destination in the snapmirrored state and making it ready for update transfers. The resync command must be issued on the destination filer.

The resync command can cause data loss on the destination. Because it is effectively making desti_ n ation a replica of the source, any edits made to the destination after the break will be undone.

For formerly mirrored volumes, the resync command effectively performs a SnapRestore (see vol ) on the destination to the newest snapshot which is common to both the source and the destination. In most cases, this is the last snapshot transferred from the source to the destination, but it can be any snapshot which is on both the source and destination due to SnapMirror replication. If new data has been written to the destination since the newest common snapshot was created, that data will be lost during the resync operation.

For formerly mirrored qtrees, SnapMirror restores data to the file system from the latest SnapMirrorcreated snapshot on the destination volume. Unlike the volume case, it requires this last snapshot in order to perform a resync .

The resync command initiates an update transfer after the SnapRestore or qtree data restoration completes.

The -n option reports what execution of the resync command would do, but does not execute the command.

The -f option forces the operation to proceed without prompting for confirmation.

The -S option sets the source of the transfer, and works the same for resync as it does for initialize .

The -k option sets the throttle, in kilobytes per second, of the transfer, and works the same for resync as it does for initialize .

The -c option only works for a resync to a qtree. With this option SnapMirror creates a snapshot named create_dest_snap on the destination after the resync transfer completes (so that it does not compete with any ongoing updates). SnapMirror does not lock or delete this snapshot. create_dest_snap cannot be hourly.x, nightly.x, or weekly.x, because these names are reserved for scheduled snapshots.

Η επιλογή-s λειτουργεί μόνο για ένα resync σε qtree. Διορίζει στιγμιότυπο ονομάζεται src_snap από την οποία SnapMirror μεταφέρει το qtree, αντί να δημιουργήσει μια πηγή snapshot και τη μεταφορά των qtree από το νέο στιγμιότυπο. Η επιλογή αυτή χρησιμοποιείται για να μεταφέρει ένα συγκεκριμένο κλισέ περιεχόμενο? Για παράδειγμα, μπορεί να μεταφέρει ένα στιγμιότυπο που ελήφθη, ενώ μια βάση δεδομένων έγινε σε μια σταθερή, σταθερή κατάσταση. SnapMirror δεν κλειδώνει ή διαγράφει src_snap. Src_snap δεν μπορεί να hourly.x, nightly.x, weekly.x, snapshot_for_backup.x ή snapshot_for_volcopy.x.

Το-w επιλογή προκαλεί την εντολή να μην επιστρέψουν μόλις το resync ξεκινάει η διαδρομή. Αντ 'αυτού, θα περιμένει μέχρι να ολοκληρωθεί η μεταφορά (ή παραλείπει), οπότε και θα εκτυπωθεί το καθεστώς ολοκλήρωση και στη συνέχεια να επανέλθει. Αυτή η επιλογή δεν έχει κανένα αποτέλεσμα αν η επιλογή-n Επίσης, διευκρινίζεται.

προορισμούς [-s] [πηγή]

Απαριθμεί όλους τους σήμερα γνωστούς προορισμούς για τις πηγές σχετικά με αυτό το filer. Για τον όγκο, αυτή η εντολή παραθέτει επίσης κάθε κλιμάκωση προορισμοί? Αυτά είναι οιωνδήποτε όγκων που είναι αντίγραφα των άμεσων προορισμούς. Αυτή η εντολή θα κατάλογος όλων αυτών των απογόνων γνωρίζει σχετικά.

Η επιλογή-s περιλαμβάνει τα ονόματα λίστα των στιγμιότυπων που διατηρούνται επί του όγκου της πηγής για κάθε προορισμό.

Εάν μια συγκεκριμένη πηγή προσδιορίζεται, μόνο για τους προορισμούς που ο όγκος θα πρέπει να αναφέρονται. Η πηγή μπορεί να είναι είτε ένα όνομα όγκου ή μέχρις ενός qtree μονοπάτι.

πηγή απελευθέρωσης (filer: όγκος filer |: qtree)

Πείτε SnapMirror ότι ορισμένες άμεσες καθρέφτη δεν είναι πλέον πρόκειται να ζητήσουν ενημέρωση.

Αν ένα συγκεκριμένο προορισμό δεν είναι πλέον πρόκειται να ζητήσουν ενημέρωση, πρέπει να πείτε SnapMirror, έτσι ώστε δεν θα είναι πλέον να διατηρούν ένα στιγμιότυπο για τον προορισμό αυτό. Αυτή η εντολή θα αφαιρέσει στιγμιότυπα που δεν είναι πλέον αναγκαία για την αναπαραγωγή σε αυτόν τον προορισμό, και μπορεί να χρησιμοποιηθεί για τον καθαρισμό SnapMirror δημιουργούνται στιγμιότυπα μετά την διακοπή SnapMirror εκδίδεται από την πλευρά της προορισμό.

Η πηγή επιχείρημα είναι η πηγή όγκου ή qtree ότι ο προορισμός είναι να απελευθερωθεί από το. Το επιχείρημα προορισμός θα πρέπει να είναι είτε το filer προορισμού και προορισμού, το όνομα ή τον όγκο του filer προορισμού και προορισμού διαδρομής qtree. Μπορείτε να χρησιμοποιήσετε μια γραμμή από την έξοδο των προορισμών SnapMirror εντολή ως το σύνολο των επιχειρημάτων σε αυτή την εντολή.

κατάστημα [-g προορισμό tapedevices] γεωμετρία

Χωματερών μια εικόνα του όγκου προορισμού στην καθορισμένη tapedevices. Αυτό μοιάζει πολύ με το SnapMirror αρχικοποιήσετε εντολή, αλλά από μια πηγή έντασης για μια συσκευή ταινία. Μπορείτε να χρησιμοποιήσετε τις ταινίες και την ανάκτηση εντολή για την εκτέλεση της αρχικής, αστάρωμα μεταφορά σε οποιοδήποτε περιορισμένο όγκο.

Using the -g option on a snapmirror store will optimize the tape for a particular destination traditional volume. The geometry argument is a string which describes the geometry of the intended destination traditional volume. It can be acquired by using the snapmirror retrieve -g command on that traditional volume. Using this option can increase snapmirror retrieve performance dramatically. The -g option is only effective with traditional volumes.

Only volumes can be stored to or retrieved from tape. Qtrees cannot be stored to or retrieved from tape.

The tapedevices field of this command is a commaseparated list of valid tape devices. See tape for more information on tape device names.

Tape devices are not supported on vfilers. This command runs on the physical filer only.

retrieve { destination tapedevices | -h tapedevice | -g volume }

Restores the image on the tapedevices to the desti_ n ation specified. This is much like the snapmirror initialize command, but from a tape device to a destination volume. If destination is part of a SnapMirror relationship with the source volume from the store performed to create these tapes, the two volumes can be mirrored as if volume had been primed via an initial transfer over the network.

You can use the -h flag to read the header off of the single tapedevice specified. This will provide information on the tape source and index.

The -g option provides the volume geometry string for the specified volume . This string, when given to the snapmirror store -g command, will dramatically improve snapmirror retrieve performance to this volume .

The tapedevices field of this command is a commaseparated list of valid tape devices. See tape for more information on tape device names.

This feature only works for volumes. Qtrees cannot be stored to or retrieved from tape.

Tape devices are not supported on vfilers. This command runs on the physical filer only.

use destination tapedevices

Continues a tape transfer to destination with the specified tapedevices .

If a store or retrieve operation runs out of tape, it will prompt the user to provide another tape. After another tape has been provided, the use command is invoked to tell the SnapMirror process where to find it.

The destination field is specified by filer : volume in the case of retrieve , and filer : tapedevices in the case of store .

The tapedevices field of this command is a commaseparated list of valid tape devices. See tape for more information on tape device names.

Tape devices are not supported on vfilers. This command runs on the physical filer only.

throttle <n> destination

Modifies the throttle value for the snapmirror transfer to the destination with the specified value in kilobytes per second. This sets the maximum speed at which the data is trasfered over the network for the current transfer. A value of zero can be used to disable throttling.

The new value will be used only for the current transfer. The next scheduled transfer will use the kbs value specified in the snapmirror.conf file. If the value for the kbs option in the snapmirror.conf is changed while transfer is going on, then the new value will take effect within two minutes.

abort [ -h ] destination

Aborts currently executing transfers to all specified destination s. It may take a few minutes for a transfer to clean up and abort. This does not stop new updates from starting. If you are interested in stopping further updates use the snapmirror quiesce command.

Any transfer with a restart checkpoint (you can view this via the snapmirror status command) may be restartable; to clear out the restart checkpoint and force any subsequent transfer to start with a fresh snapshot on the source, you can use abort -h on the destination. The -h option specifies that this is a hard abort; the restart checkpoint will be cleared out in addition to the transfer being stopped.

The abort command can be invoked from either the source or the destination filer. However, the -h option is only effective on the destination filer. The option will be ignored if specified on the source filer.

migrate [ -n ] [ -f ] [ -k kilobytes ] [ source_filer :] source_volume [ destination_filer :] desti t ion_volume

snapmirror migrate is run on the filer which holds the source volume. It must be run on two volumes which are already the source and destination of a SnapMirror pair.

snapmirror migrate will transfer data and NFS filehandles from the source_volume to the desti t ion_filer ’s destination_volume (if no filer is specified, then migrate assumes the volume is local). If source_filer is specified, then the migrate destination will use that network interface to connect up to the source filer for the transfer of information.

The first thing migrate will do is check the source and destination sides for readiness. Then, it will stop NFS and CIFS service to the source. This will prevent changes to the source volume's data, which will make it appear to clients as though nothing has changed during the migration. It will run a regular SnapMirror transfer between the two volumes. At the end of the transfer, it will migrate the NFS filehandles, bring the source offline, and make the destination volume writable.

The -n flag will make a test run; that is, it will run all the pre-transfer checks, but stop short of transferring data. The -f flag will not prompt the user for confirmation. The -k flag will throttle the speed at which the transfer runs (at kilobytes kilobytes per second), in a manner similar to that used in the snapmirror update command.

CLUSTER CONSIDERATIONS

If one filer in a cluster failover pair goes down, any active transfers are aborted. The SnapMirror scheduler and services will continue for volumes on the downed filer. The configurations of the SnapMirror relationships are taken from the downed filer's snapmirror.access option or snapmirror.allow and snapmirror.conf files.

EXAMPLES

Here are a few examples of use of the snapmirror command:

The following example turns the scheduler on and off:

         toaster> snapmirror on          toaster> snapmirror status          Snapmirror is on. toaster> snapmirror off          toaster> snapmirror status          Snapmirror is off. toaster> 

The following example presents the snapmirror status with transfers running. Two are idle destinations (both from fridge); one of these has a restart checkpoint, and could be restarted if the setup of the two volumes has not changed since the checkpoint was made. The transfer from vol1 to arc2 has just started, and is in the initial stages of transferring. The transfer from toaster to icebox is partially completed; here, we can see the number of megabytes transferred.

         toaster> snapmirror status          Snapmirror is on. Source        Destination   State          Lag       Status          fridge:home   toaster:arc1  Snapmirrored   22:09:58  Idle          toaster:vol1  toaster:arc2  Snapmirrored   01:02:53  Transferring          toaster:vol2  icebox:saved  Uninitialized  –         Transferring (128MB done)          fridge:users  toaster:arc3  Snapmirrored   10:14:36  Idle with restart checkpoint (12MB done)          toaster> 

The following example presents detailed status for one of the above snapmirror relationships specified as argument to the command. It displays extra information about base snapshot, transfer type, error message, and last transfer, etc.

          > Τοστιέρα SnapMirror status-l arc1 SnapMirror είναι αναμμένη. Source:                 fridge:home          Destination:            toaster:arc1          Type:                   Volume          Status:                 Idle          Progress:      –          State:                  Snapmirrored          Lag:                    22:09:58          Mirror Timestamp:       Wed Aug  8 16:53:04 GMT 2001          Base Snapshot:          toaster(0001234567)_arc1.1          Current Transfer Type:  –          Current Transfer Error: –          Contents:      Replica          Last Transfer Type:     Initialize          Last Transfer Size:     1120000 KB          Last Transfer Duration: 00:03:47          Last Transfer From: fridge:home 

The following example shows how to get all the volumes and qtrees that are quiesced or quiescing on this filer with the status command.

         filer> snapmirror status -q          Snapmirror is on. vol1 has quiesced/quiescing qtrees:                  /vol/vol1/qt0 is quiesced                  /vol/vol1/qt1 is quiescing          vol2 is quiescing 

The following example starts writing an image of vol1 on toaster to the tape on tape device rst0a and continues with the tape on rst1a . When the second tape is used up, the example shows how to resume the store using a new tape on rst0a .

         toaster> snapmirror store vol1 rst0a, rst1a          snapmirror: Reference Snapshot: snapmirror_tape_5.17.100_21:47:28          toaster>          SNAPMIRROR: store to toaster:rst0a, rst1a has run out of tape. toaster> snapmirror use toaster:rst0a, rst1a rst0a          toaster>          Wed May 17 23:36:31 GMT [worker_thread:notice]: snapmirror: Store from volume 'vol1′ to tape was successful (11 MB in 1:03 minutes,  3 tapes written). 

The following example retrieves the header of the tape on tape device rst0a . It then retrieves the image of vol1 from the tape on tape device rst0a .

         toaster> snapmirror retrieve -h rst0a          Tape Number:                    1          WAFL Version:                   12          BareMetal Version:              1          Source Filer:                   toaster          Source Volume:                  vol0          Source Volume Capacity:         16MB          Source Volume Used Size:        11MB          Source Snapshot:                snapmirror_tape_5.17.100_21:47:28          toaster>          toaster> snapmirror retrieve vol8 rst0a          SNAPMIRROR: retrieve from tape to toaster:vol8 has run out of tape. toaster> snapmirror use toaster:vol8 rst0a          SNAPMIRROR: retrieve from tape to toaster:vol8 has run out of tape. toaster> snapmirror use toaster:vol8 rst0a          toaster> snapmirror status          Snapmirror is on. Source               Destination   State    Lag  Status          toaster:rst1a, rst0a  toaster:dst1  Unknown  –    Transferring (17MB done)          toaster>          Wed May 17 23:54:29 GMT [worker_thread:notice]: snapmirror: Retrieve from tape to volume 'vol8′ was successful (11 MB in 1:30 minutes). 

The following example examines the status of all transfers, then aborts the transfers to volm1 and volm2 , and checks the status again. To clear the restart checkpoint, snapmirror abort is invoked again.

         toaster> snapmirror status          Snapmirror is on. Source        Destination    State          Lag       Status          fridge:home   toaster:volm1  Uninitialized  –         Transferring (10GB done)          fridge:mail   toaster:volm2  Snapmirrored   01:00:31  Transferring (4423MB done)          toaster> snapmirror abort toaster:volm1 volm2          toaster> snapmirror status          Snapmirror is on. Source        Destination    State          Lag       Status          fridge:home   toaster:volm1  Snapmirrored   00:01:25  Idle          fridge:mail   toaster:volm2  Snapmirrored   01:03:11  Idle with restart checkpoint (7000MB done)          toaster> snapmirror abort toaster:volm2          toaster> snapmirror status          Snapmirror is on. Source        Destination    State          Lag       Status          fridge:home   toaster:volm1  Snapmirrored   00:02:35  Idle          fridge:mail   toaster:volm2  Snapmirrored   01:04:21  Idle 

The following example examines the status of all transfers, then aborts the transfers to volm1 and volm2 with the -h option and checks the status again. No restart checkpoint is saved.

         toaster> snapmirror status          Snapmirror is on. Source        Destination    State          Lag       Status          fridge:home   toaster:volm1  Uninitialized  –         Transferring (10GB done)          fridge:mail   toaster:volm2  Snapmirrored   01:00:31  Transferring (4423MB done)          toaster> snapmirror abort -h toaster:volm1 toaster:volm2          toaster> snapmirror status          Snapmirror is on. Source        Destination    State          Lag       Status          fridge:home   toaster:volm1  Snapmirrored   00:02:35  Idle          fridge:mail   toaster:volm2  Snapmirrored   01:04:21  Idle 

Here is an example of the use of the snapmirror migrate command:

         toaster> snapmirror migrate home mirror          negotiating with destination…. 

This SnapMirror migration will take local source volume home and complete a final transfer to destination toaster:mirror using the interface named toaster. After that, open NFS filehandles on the source will migrate to the destination and any NFS filehandles open on the destination will be made stale. Clients will only see the migrated NFS filehandles if the destination is reachable at the same IP addresss as the source. The migrate process will not take care of renaming or exporting the destination volume.

As a result of this process, the source volume home will be taken offline, and NFS service to this filer will be stopped during the transfer. CIFS service on the source volume will be terminated and CIFS will have to be set up on the destination.

         Are you sure you want to do this? yes          nfs turned off on source filer          performing final transfer from toaster:home to mirror…. (monitor progress with “snapmirror status”)          transfer from toaster:home to mirror successful          starting nfs filehandle migration from home to mirror          source volume home brought offline          source nfs filehandles invalidated          destination toaster:mirror confirms migration          migration complete          toaster> vol status                   Volume State   Status            Options                     root online  normal            root,  raidsize=14                   mirror online  normal                     home offline normal          toaster> vol rename home temp          home renamed to temp          you may need to update /etc/exports          toaster> vol rename mirror home          mirror renamed to home          you may need to update /etc/exports          toaster> exportfs -a 

ΣΗΜΕΙΩΣΕΙΣ

If a source volume is larger than the replica destination, the transfer is disallowed.

Notes on the snapmirror migrate command:

The migrate command is only a partial step of the process. It is intended to work when an administrator desires to move the data of one volume to another, possibly because they want to move to a new set of disks, or to a larger volume without adding disks.

We intend that migrate be run in as controlled an environment as possible. It is best if there are no dumps or SnapMirror transfers going on during the migration.

The clients may see stale filehandles or unresponsive NFS service while migrate is running. This is expected behavior. Once the destination volume is made writable, the clients will see the data as if nothing has happened.

migrate will not change exports or IP addresses; the new destination volume must be reachable in the same way as the source volume once was.

CIFS service will need to be restarted on the migrate destination.

OPTIONS

Here are SnapMirror-related options (see options , protocolaccess , snapmirror , and snapmirror.allow for details on these options):

snapmirror.access
Controls SnapMirror access to a filer.

snapmirror.checkip.enable
Controls SnapMirror IP address checking using snapmirror.allow .

snapmirror.delayed_acks.enable
Controls a SnapMirror networking option.

replication.volume.transfer_limits
Controls increased stream counts. This option is provided to revert stream counts to legacy limits.

replication.volume.reserved_transfers
Guarantees that specified number of volume SnapMirror source/destination transfers always start. This option will reduce the maximum limit on all other transfers types and will be equivalent to maximum number of transfers possible.

snapmirror.enable
Turns SnapMirror on and off. SnapMirror can only be enabled on vfilers which are rooted on volumes.

snapmirror.log.enable
Turns SnapMirror logging on and off.

replication.volume.use_auto_resync
Turns auto resync functionality on and off for Synchronous SnapMirror relations. This option if enabled on Synchronous SnapMirror, destination will update from the source using the latest common base snapshot deleting all destination side snapshots newer than the common base snapshot.

Here are SnapMirror-related volume pseudo-options (see vol for more details):

snapmirrored
Designates that the volume is read-only.

fs_size_fixed
Effectively truncates the filesystem on the destination volume to the size of the source.

Options snapmirror.access , snapmirror.checkip.enable , and snapmirror.enable can be manipulated independently on a per-vfiler basis.

FILES

/etc/snapmirror.allow
This file controls SnapMirror's access to a source filer. See snapmirror.allow , for details.

/etc/snapmirror.conf
This file controls SnapMirror schedules and relationships. See snapmirror.conf for details.

/etc/log/snapmirror
This file logs SnapMirror activity. See snapmirror for details.

SEE ALSO

   aggr    license    options    qtree    vol    tape(4)    protocolaccess(8)    snapmirror(5)    snapmirror.allow(5)    snapmirror.conf(5) 


Πίνακας περιεχομένων















Manual Pages , , , ,

snapmirror.conf basics

April 4th, 2009

This search seems to come up quite a lot, so I thought I'd cover it quickly. I'm going to steer away from covering SnapMirror as a whole, and just look at the format of the snapmirror.conf file. I will also steer away from Synchronous SnapMirror as I'm not a huge fan, I prefer SyncMirror!

First, you can find it in /etc/snapmirror.conf. Edit it using either rdfile / wrfile (see “ Basic file manipulation on a filer ” for a bit more on these), or map to /vol/etc and edit them with your favourite text editor (but not Windows Notepad please!). Once you get used to the formatting, you'll be writing these with your eyes closed! Having said that, I usually need to refer to something for reference!

The basic layout is…

source_filer:volume_name destination_filer:volume_name options min hour dom dow

This drops it down into very simple terms, a good reference to start with. The “volume_name” can of course be a QTree if you are doing qsm, but I will concentrate on VSM for now.

The options section is often left blank. Any blank entry from options through the schedule will be filled in with “-”. So if you are setting up SnapManager for Exchange or SQL, you would create a relationship with this setting, do a baseline, then get SMx to manage the replication. Leaving the option as a single “-” assumes you accept the default for all settings. If you define one setting, the others are assumed to stay the defaults.

The options you can choose from are…

  • “kbs=” to limit the transfer speeds to whatever number you define here. This is in kilobytes, so remember to convert it for WAN speeds.

Web Searches , , , , ,

SnapMirror Replication Scheduling Spreadsheet

February 21st, 2009

I created an Excel spreadsheet as I was tasked with creating a SnapMirror replication schedule for a customer that only had an 8meg line. The problem was that the replication would fail if more than 1 transferred happened at the same time. So I needed a way of calculating the rate of change, and designing the replication based on this.

The spreadsheet will calculate the snapmirror.conf schedule, but will also give you the commands to create, restrict and initialize the volumes.

VN: F [1.9.3_1094]
Rate this post:
Rating: 0.0/ 10 (0 votes cast)

General , , ,

Waiting and the Progress Bar

January 22nd, 2009

I sent a twitter out last night from my car as I sat in Holyhead waiting for my ferry to Dublin (we live an exotic life). How much of our lives do we waste waiting around for stuff? As an Englishman (in the loosest possible sense), I know how to queue and I do so very politely and quietly!

But then this British past time of queueing and waiting has transcended into the IT world. How many times have you sat there watching a progress bar as something installs, or you wait for something to copy. What happened to multi-tasking?

VN: F [1.9.3_1094]
Rate this post:
Rating: 0.0/ 10 (0 votes cast)

General , ,

SnapMirror failover

January 22nd, 2009

So I helped a customer a few months ago (before SRM) to script a complete site failover. It will bring the DR site online within about 30 minutes, the scripts are a bit clunky and need a massive re-design, so I thought I'd post the originals here.

This, I think, is a great example of how flexible the NetApp systems are in that you can quickly and easily setup SSH access from a management host and script your heart away! Soon as I get the hang of the API, I'm sure there'll be plenty more info coming along too.

This script will bring all volumes online on the DR filer, what's more, an volume that is labelled as “_vm” at the end (which is a nice naming convention to use for all VMware volumes anyway), will get re-mapped to a new igroup you choose and already have setup for the DR ESX servers.

I've modified this script slightly since writing it to remove filer names, so I don't expect it to work out of the box, as with my other scripts, it's just meant to as an example of how this can be achieved.

VN: F [1.9.3_1094]
Rate this post:
Rating: 0.0/ 10 (0 votes cast)

Command Line , , , ,



This site is not affiliated or sponsored in anyway by NetApp or any other company mentioned within.

Bad Behavior has blocked 5268 access attempts in the last 7 days.

© 2009-2010 Chris Kranz All Rights Reserved
This site is not affiliated or sponsored in anyway by NetApp or any other company mentioned within.