Arkivju

Karigi tagged "SnapMirror"

Script Setup SnapMirror

Kelli l-kompitu li jirreplikaw 1 filer klijenti eżistenti għas-sistema DR tagħhom ġodda. Dan kien pjuttost sistema kbar, u kemm-ħolqien SnapMirrors mhuwiex partikolarment kumplessa, huwa ħafna ħin. Allura kif ħafna affarijiet I do, I kiteb b'kitba li jgħinu tiegħi jinkiseb dan il-kompitu aktar malajr, u jmorru għadhom ieħor kafè.

Int ser ikollok bżonn qabel il-komuni ċwievet setup (daqs qatt qabel), iżda l-bqija hija mħeġġa għall. M'hemm l-ebda validazzjoni tad-data (l-ebda sorpriża). L-iskript se output 4 text files, waħda għall-ħolqien / restrizzjoni l-volumi kollha, waħda għall-"snapmirror.conf", fuq li għandhom jintużaw minflok "snapmirror.conf" waqt li tkun qed tagħmel l-inizjalizzazzjoni linja bażi, u finalment wieħed attwalment initialize l snapmirrors. M'hemm l-ebda intelliġenza madwar flussi konkorrenti, sabiex inizjalizzazzjoni għadu daqsxejn ta 'att juggling u logħba ta' stennija.

Nitolbok li tgħarrafni jekk issib dan utli.

#! / Bin / bash

eku "Jekk jogħġbok ikteb l-isem tal-filer PRIMARJA:"
taqra PRI_FILER

eku "Jekk jogħġbok ikteb l-isem tal-filer DR:"
taqra DR_FILER

ConnectString = "ssh-c 3DES"
# ConnectString = "Rsb"

SnapMirrorHour = 22
SnapMirrorMinute = 0
SnapMirrorStagger = 5

eku ""> $ {DR_FILER} _filer_volumes.txt
eku ""> $ {DR_FILER} _snapmirror.conf
eku ""> $ {DR_FILER} _sm_initialize.txt
eku ""> $ {DR_FILER} _snapmirror_init.conf

għall aggr fil `$ {ConnectString} $ PRI_FILER" aggr istatus "| awk"! $ 2 ~ / Stat / {print $ 1} "'
tagħmel
DAQS = $ {`ConnectString} $ PRI_FILER" df-Ah $ aggr "| zat" s / \ ([0-9] [KMGT] \) B / \ 1 / g "|!." Awk $ 1 ~ / stampa | Aggregat / {print $ 2} "'
għall VOL fil `$ {ConnectString} $ PRI_FILER" show_space aggr $ aggr "| awk" $ 1 ~ / Spazju / {print $ 0}! "| awk" $ 4 ~ / volum | fajl | xejn / {print $ 1} "'
tagħmel
eku "vol joħolqu $ {VOL}-s ħadd $ {aggr} $ {DAQS}" >> $ {DR_FILER} _filer_volumes.txt
eku "vol jirrestrinġu $ {VOL}" >> $ {DR_FILER} _filer_volumes.txt
eku "snapmirror initialize-S $ {PRI_FILER}: $ {VOL} $ {DR_FILER}: $ {VOL}" >> $ {DR_FILER} _sm_initialize.txt
eku "$ {PRI_FILER}: $ {VOL} $ {DR_FILER}: $ {VOL} - $ {SnapMirrorMinute} $ {SnapMirrorHour} **" >> $ {DR_FILER} _snapmirror.conf
eku "$ {PRI_FILER}: $ {VOL} $ {DR_FILER}: $ {VOL} -----" >> $ {DR_FILER} _snapmirror_init.conf

SnapMirrorMinute = `expr SnapMirrorStagger $ SnapMirrorMinute + $`

snapmirror

Werrej

ISEM

snapmirror - Log ta 'Attività SnapMirror

Synopsis

/ Etc / log / snapmirror

DESKRIZZJONI

Il-fajl log SnapMirror fih reġistru ta 'attività SnapMirror għal dan filer. Il-fajl jgħix fi / etc / log fuq il-volum għerq ta 'kemm il-għajn u filers destinazzjoni. Meta l-snapmirror.log.enable għażla huwa stabbilit li fuq, l-attivitajiet kollha SnapMirror se jiġu rreġistrati f'dan il-fajl log. Ara għażliet għall dettalji dwar kif tippermetti u jiskonnettja din l-għażla. Kull Ħadd fil 00:00, / etc / log / snapmirror jiġi mċaqlaq lejn / etc/log/snapmirror.0, / etc/log/snapmirror.0 jiġi mċaqlaq lejn / etc/log/snapmirror.1, eċċ. Is-suffiss jista 'jitla' sa 5. Dan il-proċess jissejjaħ 'rotazzjoni. Entrati log SnapMirror huma salvati għal total ta 'sitt ġimgħat.

Kull dħul mill-fajl / etc / log / snapmirror hija linja waħda tikkonsisti fl-ispazju separati oqsma. Is-sottomissjonijiet kollha log tibda bil qasam tip u qasam timestamp. Il-qasam finali jista 'jkun magħluqa bil-parentesi, f'liema każ jista' jkun fiha l-ispazji. Il-qasam timestamp fih numru fiss ta 'spazji, u bħala tali jista' jiġi parsed bħala ħames ispazju delimitati fit-oqsma. Liema oqsma jidhru, u f'liema ordni li jidhru fi, huwa determinat mill-qasam tip ta 'dħul log (li hija l-ewwel qasam).

Wara huwa deskrizzjoni ta 'kull qasam.

tip Indika t-tip tad-dħul, li jiddetermina wkoll il-format tal-bqija tad-dħul. Dan jista 'jkun wieħed mill-valuri li ġejjin:

log
log attività faċilità

Format: event_info timestamp tip ...

sistemi
tas-sistema kollha attività

Format: event_info timestamp tip ...

TGT
attività mira snapvault

Format: timestamp tip volum mira event_info ...

src
attività sors

Format: timestamp tip ta 'sors destinazzjoni event_info ...

DST
attività destinazzjoni

Format: timestamp tip ta 'sors destinazzjoni event_info ...

CMD
attività kmand utent

Format: timestamp tip ta 'sors destinazzjoni event_info ...

SCN
attività replikazzjoni sors verifika

Format: timestamp tip ta 'sors destinazzjoni event_info ...

chk
replikazzjoni check attività destinazzjoni.

Format: timestamp tip ta 'sors destinazzjoni event_info ...

vol
volum kollha attività

Format: event_info tip volum timestamp ...

SLK
softlock minn hekk-tħassir attività

Format: timestamp tip softlock event_info ...

timestamp
Murija fil ctime () il-format, eż ġim 17 Lulju 20:41:09 GMT. Jindika l-ħin dan l-avveniment hija rreġistrata.

volum Tispeċifika l-isem tal-volum li għalihom japplika dan ta 'dħul.

mira Dan huwa l-isem u t-tip tal-mira għal dan dħul. Miri huma volum azzjonijiet madwar, kreazzjonijiet snapshot tipikament. Huwa murija bħala żewġ oqsma colonseparated, kif ġej:

target_type: target_name

L-isem mira tista 'tkun string vojt.

sors Dan huwa l-isem tal-filer sors u l-isem volum jew il-passaġġ qtree li jkun rifless. L-isem huwa speċifikat bħala żewġ kolon-oqsma separati, kif ġej:

ospitanti: triq

Dan il-qasam jista 'jkun `-" meta mhux applikabbli għall-avveniment.

destinazzjoni
Dan huwa l-isem tal-filer destinazzjoni u l-isem volum jew il-passaġġ qtree tad-destinazzjoni. L-isem huwa speċifikat bħala żewġ oqsma separati, kolon-istess bħal fil-qasam tas-sors.

Dan il-qasam jista 'jkun `-" meta mhux applikabbli għall-avveniment.

event_info
Dan il-field fih l-avveniment li qed jiġi logged. Xi avvenimenti jista 'jkollu informazzjoni żejda fil-parentesi.

Talba (indirizz IP | tip ta 'trasferiment) Talba ta' trasferiment ġiet mibgħuta (destinazzjoni) jew riċevuti (sors). Min-naħa sors, l-indirizz IP ta 'l-filer destinazzjoni li għamlet it-talba hija inkluża fil-parentesi. Min-naħa destinazzjoni, it-tip ta 'trasferiment hija inkluża fil-parentesi.

Bidu Il-bidu ta 'trasferiment.

Bidu (Snapshots biex jiċċekkjaw = # num, livell = {data | checksum}, {check | jiffissaw}, {malajr | sħiħa} mod)
Il-bidu ta 'replikazzjoni kkontrollati jew jiffissaw sessjoni. L-għażliet sessjoni huma inklużi fil-parentesi. L-għażliet kollha jidhru fuq il-log naħa destinazzjoni iżda biss il-Snapshots biex jiċċekkjaw "għażla tidher fil-ġurnal naħa sors.

Nerġgħu (@ num KB)
Il-bidu ta 'trasferiment jerġa.

Tmiem (num KB isir)
It-tlestija ta 'trasferiment. Id-daqs totali tat-trasferiment fil KB hija inkluża fil-parentesi.

(Src_only = num_1, dst_only = num_2, żbilanċ = num_3) Tmiem It-tlestija ta 'replikazzjoni kkontrollati jew jiffissaw sessjoni. Is-sommarju tas-sessjoni hija inkluża fil-parentesi. Is-sommarju huwa preżenti biss fuq il-zkuk sekondarji destinazzjoni. Zkuk sekondarji Sors ma jkunx fiha ebda informazzjoni fil-qosor.

Abort (żball msg)
A trasferiment huwa abortiti. Il-messaġġ ta 'żball hija inkluża fil-parentesi.

Tiddifferixxi (raġuni)
Jindika trasferiment hija differita minħabba limitazzjoni tar-riżorsi. Ir-raġuni għall-posponiment hija inkluża fil-parentesi.

Wait_tape
Operazzjoni tejp SnapMirror qed jistenna għall-tejp li jmiss.

New_tape
Operazzjoni tejp SnapMirror kompla l-operazzjoni mal-tape-ġdida.

Sync_start
Il-bidu tal-modalità duplikazzjoni sinkroniku għar-relazzjoni SnapMirror speċifikata minn dan id-dħul log.

Sync_end (raġuni)
It-tmiem tal-modalità duplikazzjoni sinkroniku għar-relazzjoni SnapMirror speċifikata minn dan id-dħul log. Ir-raġuni għal jitilqu mill-modalità sinkroniku hija inkluża fil-parentesi.

Quiesce_start
Il-bidu ta 'proċess quiesce.

Quiesce_end
It-tlestija tal-proċess quiesce.

Quiesce_failed (raġuni)
Il-falliment tal-proċess quiesce. Ir-raġuni għal nuqqas huwa inkluż fil-parentesi.

Rollback_start
Il-bidu ta 'proċess żmantellament għal SnapMirror qtree jew SnapVault.

Rollback_end
It-tlestija ta 'proċess żmantellament għal SnapMirror qtree jew SnapVault.

Rollback_failed (raġuni)
Il-falliment ta 'proċess żmantellament għal SnapMirror qtree jew SnapVault. Ir-raġuni għal nuqqas huwa inkluż fil-parentesi.

Coalesce_start (stampa)
Il-bidu ta 'coalesce proċess għal qtree SnapVault. L-istampa bażi għall-operazzjoni coalesce hija inkluża fil-parentesi.

Coalesce_end
It-tlestija ta 'coalesce proċess għal qtree SnapVault.

Coalesce_failed (raġuni)
Il-falliment ta 'coalesce proċess għal qtree SnapVault. Ir-raġuni għal nuqqas huwa inkluż fil-parentesi.

Target_start
Il-bidu ta 'mira SnapVault.

Target_end
It-tlestija ta 'mira SnapVault.

Target_failed (raġuni)
Il-falliment ta 'mira SnapVault. Ir-raġuni għal nuqqas huwa inkluż fil-parentesi.

Start_logging
Log SnapMirror kien funzjonabbli.

End_logging
Log SnapMirror kien b'diżabilità.

SnapMirror_on (kawża)
SnapMirror kienet mixgħula fuq dan ospitanti. L-operazzjoni jew proċess li kkawża SnapMirror li ssir ppermettiet huwa speċifikat fil-parentesi.

SnapMirror_off (kawża)
SnapMirror kien b'diżabilità fuq dan ospitanti. L-operazzjoni jew proċess li kkawża SnapMirror li saru diżabbli huwa speċifikat fil-parentesi.

SnapVault_on (kawża)
SnapVault kienet mixgħula fuq dan ospitanti. L-operazzjoni jew proċess li kkawża SnapVault li ssir ppermettiet huwa speċifikat fil-parentesi.

SnapVault_off (kawża)
SnapVault kien b'diżabilità fuq dan ospitanti. L-operazzjoni jew proċess li kkawża SnapVault biex saru diżabbli huwa speċifikat fil-parentesi.

Resume_command
Utent maħruġa snapmirror kmand jerġa.

Break_command
Utent maħruġa kmand waqfa snapmirror.

Release_command
Utent maħruġa kmand rilaxx snapmirror.

Abort_command

Abort_command (tip)
Utent maħruġa snapmirror kmand abort. It-tip biss jkun preżenti jekk ir abort inħarġet ma 'għażliet addizzjonali filwaqt li mmodifikaw-tip tal-abort.

Resync_command (stampa komuni)
Utent maħruġa snapmirror kmand resync. L-istampa komuni għall-operazzjoni resync hija inkluża fil-parentesi.

Restore_resync_command (stampa komuni) Utent maħruġa snapvault jirrestawraw-r kmand. L-istampa komuni għall-operazzjoni resync hija inkluża fil-parentesi.

Migrate_command
Utent maħruġa snapmirror jemigraw kmand.

Request_check (snapshot_name)
Talba għal stampa waħda matul is-sessjoni kontroll replikazzjoni. Dan huwa dħul sors log ġenb. Kull stampa qed jiġu ċċekkjati sessjoni verifika replikazzjoni se jkollhom dħul tiegħu. Isem tal-istampa hija inkluża fil-parentesi.

Sors Checking_snapshot snapshot_name (timestamp, cpcount = num_2, snapid = id) biex dest_snapshot_name (timestamp, cpcount = għadd, snapid = id) Il-bidu ta 'tqabbil stampa waħda matul verifika replikazzjoni. Huwa logged fuq kemm sors u destinazzjoni.

Abort_check
replikazzjoni check sessjoni għall SnapMirror jew SnapVault interrot. Raġuni ta 'abort hija inkluża fil-parentesi.

Abort_check_command
Utent maħruġa replikazzjoni check abort kmand. Korrispondenti dħul fajl log jidher ma 'tip CMD.

Data_differ ({blokk blk_num fil file_path | vbn VBN})
Replikazzjoni verifika sabet nuqqas ta 'qbil blokk data. Jew il-blokk numru u t-triq inode jew blokk volum Numru (VBN) hija inkluża fil-parentesi.

Kontroll Unique_in_src Replikazzjoni (entry_type għall entry_path) sabet uniku annotazzjoni preżenti fil-sors. It-tip dħul u l-path dħul huma inklużi fil-parentesi.

Kontroll Unique_in_dst Replikazzjoni (entry_type għall entry_path) sabet dħul preżenti biss fl-destinazzjoni. It-tip dħul u l-path dħul huma inklużi fil-parentesi.

Size_differ (triq)
Verifika Replikazzjoni sab nuqqas ta 'qbil daqs tal-fajl fil inode speċifikat. Il-passaġġ inode hija inkluża fil-parentesi.

Type_differ (triq)
Verifika Replikazzjoni sab nuqqas ta 'qbil tip inode. Il-passaġġ inode hija inkluża fil-parentesi.

UID_differ (triq)
Verifika Replikazzjoni sab nuqqas ta 'qbil user ID għall inode speċifikat. Il-passaġġ inode hija inkluża fil-parentesi.

GID_differ (triq)
Verifika Replikazzjoni sab nuqqas ta 'qbil ID grupp għall inode speċifikat. Il-passaġġ inode hija inkluża fil-parentesi.

Perm_differ (triq)
Verifika Replikazzjoni sabet permess jew żbilanċ dosbit għall inode speċifikat. Il-passaġġ inode hija inkluża fil-parentesi.

Atime_differ (triq)
Verifika Replikazzjoni sabet nuqqas ta 'qbil fil-ħin ta' aċċess aħħar inode speċifikat. Il-passaġġ inode hija inkluża fil-parentesi.

Mtime_differ (triq)
Verifika Replikazzjoni sabet nuqqas ta 'qbil fil-ħin aħħar modifika għall inode speċifikat. Il-passaġġ inode hija inkluża fil-parentesi.

Ctime_differ (triq)
Verifika Replikazzjoni sabet nuqqas ta 'qbil fil-ħin bidla aħħar daqs / status għall inode speċifikat. Il-passaġġ inode hija inkluża fil-parentesi.

Crtime_differ (triq)
Verifika Replikazzjoni sabet nuqqas ta 'qbil fil-ħin għall-ħolqien inode speċifikat. Il-passaġġ inode hija inkluża fil-parentesi.

Rdev_differ (triq)
Verifika Replikazzjoni sab nuqqas ta 'qbil numru mezz għall inode speċifikat. Il-passaġġ inode hija inkluża fil-parentesi.

DOSbits_differ (triq)
Replikazzjoni check sab nuqqas ta 'qbil bits DOS għall inode speċifikat. Il-passaġġ inode hija inkluża fil-parentesi.

ACL_differ (triq)
Kontroll Replikazzjoni sabet NT jew NFS żbilanċ V4 ACL għall inode speċifikat. Il-passaġġ inode hija inkluża fil-parentesi.

Hardlink_differ (triq)
Verifika Replikazzjoni sabet hardlink għall inode speċifikat, iżda l-inode fuq id-destinazzjoni ma taqbilx bejn il-konnessjonijiet. Il-passaġġ inode hija inkluża fil-parentesi.

Qtree_oplock_differ (triq)
Replikazzjoni check sab oplock iffissar diskrepanza għal qtree. Il-passaġġ qtree hija inkluża fil-parentesi.

Qtree_security_differ (triq)
Kontroll Replikazzjoni sabet iffissar sigurtà diskrepanza għal qtree. Il-passaġġ qtree hija inkluża fil-parentesi.

Hole_uses_disk_space (triq)
Kontroll Replikazzjoni jinstabu bla bżonn disk użu għall inode speċifikat, dan madankollu ma jkunx ta 'qbil. Il-passaġġ inode hija inkluża fil-parentesi.

Convert_command
Utent maħruġa snapmirror jikkonvertu kmand.

Older_snapshot
Aġġornament minn stampa li hija aktar minn l-istampa bażi kurrenti.

Snapshot_delete (isem stampa)
Daqqa t'għajn lejn huwa mħassar minn dan il-volum. L-isem stampa hija inkluża fil-parentesi.

Snapshot_replace (isem stampa)
Daqqa t'għajn lejn SnapVault ġie sostitwit wara operazzjoni tas-SIS bi stampa aktar ġodda ta 'l-istess isem. L-isem stampa hija inkluża fil-parentesi.

FILER_REBOOTED
Il-filer huwa fasslu.

WORM_LOG_FAIL (raġuni)
Ikteb lill-fajl log WORM fallew. Ir-raġuni għal nuqqas huwa inkluż fil-parentesi.

WORM_LOG_FAILURE_RECOVER_START
Il-bidu ta 'l-irkupru ta' l-entrati fallew log WORM.

WORM_LOG_FAILURE_RECOVER_END
It-tmiem tal-irkupru ta 'l-entrati fallew log WORM.

Softlock_add (operazzjoni)
A softlock huwa miżjud. L-operazzjoni li jiżdiedu l-softlock hija inkluża fil-parentesi.

Softlock_add_pending (operazzjoni)
A softlock huwa miżjud bħala softlock pendenti. L-operazzjoni li jiżdiedu l-softlock hija inkluża fil-parentesi.

Softlock_delete (operazzjoni)
A softlock huwa mħassar. L-operazzjoni li ħassar ir-softlock hija inkluża fil-parentesi.

Softlock_delete_pending (operazzjoni) A softlock pendenti jitħassar. L-operazzjoni li hija mħassra hija inkluża fil-parentesi.

Softlock_mark_pending (operazzjoni)
A softlock huwa mmarkat bħala pendenti. L-operazzjoni li mmarkat huwa inkluż fil-parentesi.

EŻEMPJI

A dħul tipiku / etc / log / snapmirror Dehra:
  DST ġim 17 Lulju 22:50:18 GMT filer1: srcvol filer2: Talba dstvol (Aġġornament) 

L-eżempju hawn fuq turi talba aġġornament rreġistrati mill-ġenb destinazzjoni għal relazzjoni SnapMirror mill filer: srcvol biex filer2: dstvol li ġara fil-ħin reġistrat.

Sessjoni tipiku kontroll Replikazzjoni in / etc / log / snapmirror fuq id-destinazzjoni Dehra:

  chk Wed Jannar 19 01:07:39 GMT Woolf :/ vol/vol1 milton :/ Talba vol/vol1 (kontroll) chk Wed Jannar 19 01:07:39 GMT Woolf :/ vol/vol1 milton :/ vol/vol1 Bidu ( Snapshots biex jiċċekkjaw = 2, il-livell = data, verifika, sħaħ) chk Wed Jannar 19 01:07:39 GMT Woolf :/ vol/vol1 milton :/ vol/vol1 Checking_snapshot milton (0033587346) _vol1.5 (Jannar 18 ... chk Wed Jannar 19 01:07:48 GMT Woolf :/ vol/vol1 milton :/ vol/vol1 Checking_snapshot nightly.0 (18 Jan 00:00, cpcount = ... chk Wed Jannar 19 01:07:57 GMT Woolf :/ vol/vol1 milton :/ Tmiem vol/vol1 (src_only = 0, dst_only = 0, żbilanċ = 0) 

Sessjoni tipiku kontroll Replikazzjoni in / etc / log / snapmirror fuq sors Dehra:

   SCN Wed Jannar 19 00:58:27 GMT Woolf :/ vol/vol1 milton :/ Talba vol/vol1 (172.29.19.15) SCN Wed Jannar 19 00:58:27 GMT Woolf :/ vol/vol1 milton :/ vol/vol1 Bidu (Snapshots biex jiċċekkjaw = 2) SCN Wed Jannar 19 00:58:27 GMT Woolf :/ vol/vol1 milton :/ vol/vol1 Request_check (milton (0033587346) _vol1.5) SCN Wed Jannar 19 00:58:27 GMT Woolf :/ vol/vol1 milton :/ vol/vol1 Checking_snapshot milton (0033587346) _vol1.5 (Jannar 18 ... SCN Wed Jannar 19 00:58:36 GMT Woolf :/ vol/vol1 milton :/ vol/vol1 Request_check (nightly. 0) SCN Wed Jannar 19 00:58:36 GMT Woolf :/ vol/vol1 milton :/ vol/vol1 Checking_snapshot nightly.1 (18 Jan 00:00, cpcount = ... SCN Wed Jannar 19 00:58:45 GMT Woolf: / vol/vol1 milton :/ Tmiem vol/vol1 

A softlock tipiku qtugħ fil / etc / log / snapmirror Dehra:

   SLK Wed Mejju 10 03:06:15 GMT state.softlock.vol1.0000011e.054.filer1: vol3 Softlock_add (Trasferiment) SLK Wed Mejju 10 03:06:15 GMT state.softlock.vol1.0000011b.054.filer1: vol3 Softlock_delete (Trasferiment) SLK Wed Mejju 10 03:06:15 GMT state.softlock.vol1.0000011b.054.filer1: vol3 Softlock_delete (Lura) SLK Wed Mejju 10 03:06:15 GMT state.softlock.vol1.0000011b.054 . filer1: vol3 Softlock_delete (Rilaxx) SLK Wed Mejju 10 03:06:15 GMT state.softlock.vol1.0000011b.054.filer1: vol3 Softlock_delete (Clean_softlocks) SLK Wed Mejju 10 03:06:15 GMT state.softlock.vol1 .0000011 b.054.filer1: vol3 Softlock_add (RSM_forward) SLK Wed Mejju 10 03:06:15 GMT state.softlock.vol1.0000011b.054.filer1: vol3 Softlock_delete (RSM_forward) SLK Wed Mejju 10 03:06:15 GMT istat . softlock.vol1.0000011b.054.filer1: vol3 Softlock_delete (Snapmirror_destinations) SLK Wed Mejju 10 03:06:15 GMT state.softlock.vol1.0000011b.054.filer1: vol3 Softlock_delete_pending (Trasferiment) SLK Wed 10 Mejju 03:06 : 15 GMT state.softlock.vol1.0000011b.054.filer1: vol3 Softlock_add_pending (Trasferiment) SLK Wed Mejju 10 03:06:15 GMT state.softlock.vol1.0000011b.054.filer1: vol3 Softlock_mark_pending (Trasferiment) 

FAJLS

/ Etc / log / snapmirror
Log SnapMirror fajl għall-ġimgħa kurrenti.

/ Etc / log / snapmirror. [0-5]
SnapMirror log fajls għal ġimgħat ta 'qabel.

ARA WKOLL

għażliet, snapmirror snapvault


Werrej







































































Tags: , , , , Kategoriji: Manwal Pages Tags: , , , ,

snapmirror

Werrej

ISEM

snapmirror - volum, u duplikazzjoni qtree

Synopsis

snapmirror {fuq | off}

snapmirror istat [għażliet] [volum | qtree ... ]

snapmirror Initialize [għażliet] destinazzjoni

snapmirror aġġornament [għażliet] destinazzjoni

snapmirror quiesce destinazzjoni

snapmirror destinazzjoni jerġa

waqfa snapmirror [għażliet] destinazzjoni

snapmirror resync [għażliet] destinazzjoni

destinazzjonijiet snapmirror [Għażla] [source]

snapmirror rilaxx sors destinazzjoni

snapmirror {maħżen | irkuprata} volum tapedevices

snapmirror tapedevices destinazzjoni użu

snapmirror throttle <n> destinazzjoni

snapmirror abort [għażliet] ... destinazzjoni

snapmirror jemigraw [għażliet] destinazzjoni sors

DESKRIZZJONI

Il-kmand snapmirror huwa użat biex jikkontrolla SnapMirror, metodu ta 'tirrifletti volumi u qtrees. Hija tippermetti lill-utent biex jippermettu u jiskonnettja skedati u trasferimenti manwali ta 'data, informazzjoni talba dwar it-trasferimenti, tibda t-trasferiment tad-data initializing, bidu aġġornament ta' mera, temporanjament aġġornamenti nieqaf għal mera, break relazzjonijiet mera, resynchronize mirja miksur, informazzjoni destinazzjoni lista , tfal mirja rilaxx, il-volum stampi taħżen tejp, jirkupraw immaġini volum minn tejp, u trasferimenti abort għaddejjin.

SnapMirror jista 'jintuża biex jirreplika volumi jew qtrees. Il-proċessi u l-imgieba involuti huma ftit (u xi kultant sottili) differenti bejn it-tipi varji ta 'data duplikazzjoni.

The SnapMirror process is destination-driven. The snapmirror initialize command starts the first transfer which primes the destination with all the data on the source. Prior to the initial transfer, the destination must be ready to be overwritten with the data from the source; destination volumes must be restricted (see vol ), and destination qtrees must not yet exist.

For asynchronous mirrors, the destination periodically requests an update from the source, accepts a transfer of data, and writes those data to disk. These update transfers only include changes made on the source since the last transfer. The SnapMirror scheduler initiates these transfers automatically according to schedules in the snapmirror.conf file.

Synchronous mirrors will initially behave asynchronously, but will transition to synchronous mode at first opportunity. These mirrors may return to asynchronous mode on error (eg a network partition between the mirroring filers) or at the request of the user.

The snapmirror update command can be used to initiate individual transfers apart from the scheduled ones in snapmirror.conf .

After the initial transfer, the destination is available to clients, but in a read-only state. The status of a destination will show that it is snapmirrored (see aggr , vol , or qtree for more details on displaying the destination state).

Biex tuża l-destinazzjoni għall-kitba kif ukoll qari, li huwa utli f'każ ta 'diżastru jagħmel is-sors disponibbli jew meta inti tixtieq li tuża l-destinazzjoni bħala volum tat-test / qtree, inti tista' tintemm ir-relazzjoni SnapMirror mal-kmand waqfa snapmirror. Dan il-kmand bidliet istatus id-destinazzjoni tal minn snapmirrored għal imkisser off, u b'hekk jagħmilha writable. Il-kmand resync snapmirror jistgħu jbiddlu lura l-istatus ta 'destinazzjoni qabel li snapmirrored u se resynchronize kontenut tiegħu mal-sors. (Meta applikata għal sors ta 'qabel, snapmirror resync tista jibdluh mera tad-destinazzjoni qabel. B'dan il-mod, ir-rwoli ta' sors u destinazzjoni jistax jitreġġa 'lura.)

A filer żżomm kont ta 'destinazzjonijiet kollha, jew mirja diretti jew mirja ta' mirja, għal kull sorsi tiegħu. Din il-lista tista 'tintwera permezz ta' l-kmand destinazzjonijiet snapmirror. Il-kmand rilaxx snapmirror jistgħu jintużaw biex tgħid filer li 1 mera dirett ċerti se aġġornamenti talba ma jibqgħux.

Biex jiffrankaw bandwidth netwerk, tejp jistgħu jintużaw biex prime volum mera ġdida minflok il-kmand initialize snapmirror. Il-miżbliet snapmirror kmand maħżen immaġni tas-sors għall-tejp. Il-kmand irkuprata snapmirror tirrestawra dehra volum minn tejp u jipprepara l-volum għal trasferimenti aġġornament fuq in-netwerk. Jekk tejps multipli huma użati biex tinħoloq immaġini volum, il-kmand użu snapmirror huwa użat li tordna lill-maħżen ta 'stennija jew irkuprata proċess li tikteb produzzjoni jew jaċċettaw input lejn / minn apparat tejp ġdid. Il-kmandijiet store and retrieve ma jistgħux jintużaw ma 'qtrees.

Il-kmand jemigraw snapmirror hija użata fuq sors eżistenti u par destinazzjoni li jagħmlu l-volum destinazzjoni writable "jimitaw" tas-sors. Id-destinazzjoni jassumi r-filehandles NFS tas-sors, tgħin lill-amministratur filer biex jevitaw NFS mill-ġdid immuntar fuq it-naħa tal-klijent.

Il-fajl snapmirror.conf fuq il-volum għerq il-filer destinazzjoni tal jikkontrolla l-konfigurazzjoni u l-iskedar ta 'SnapMirror fuq id-destinazzjoni. Ara snapmirror.conf għal aktar dettalji dwar konfigurazzjoni u l-iskedar ta 'SnapMirror.

Aċċess għal sors huwa kkontrollat ​​bl-għażla snapmirror.access fuq il-filer sors. Ara għażliet u protocolaccess (8) għall-informazzjoni dwar it-twaqqif l-għażla.

(Jekk l-għażla snapmirror.access huwa ssettjat għal "wirt", l-aċċess huwa kkontrollat ​​mill-fajl snapmirror.allow fuq il-volum għerq il-filer ikkonċernat. Ara snapmirror.allow għal aktar dettalji.)

SnapMirror huwa servizz liċenzjat, u liċenzja għandha tinkiseb qabel l-kmand snapmirror jistgħu jintużaw. SnapMirror għandhom ikunu liċenzjati kemm fuq is-sors u filers destinazzjoni. Ara liċenzja għal aktar dettalji.

SnapMirror is supported on regular vfilers, as well as the physical filer named vfiler0. Use vfiler context or vfiler run to issue snapmirror commands on a specific vfiler. See vfiler for details on how to issue commands on vfilers. The use of SnapMirror on vfilers requires a MultiStore license.

When used on a vfiler, a few restrictions apply. The vfiler must be rooted on a volume and SnapMirror sources and destinations cannot be qtrees in shared volumes. Tape devices and Synchronous SnapMirror are not supported on vfilers. For a qtree SnapMirror, the vfiler must own the containing volume of the Qtree.

Each vfiler has its own /etc/snapmirror.conf file in its root volume. SnapMirror can be turned on or off on a vfiler independently. SnapMirror commands issued on a vfiler can only operate on volumes or qtrees it has exclusive ownership of.

For backward compatibility, the physical filer (vfiler0) can operate on all volumes and all qtrees, even if they are owned by vfilers. It is highly recommanded, however, that all storage units (volumes and qtrees) be mirrored from either vfiler0 or the hosting vfiler, not both. When vfiler storage units are mirrored via vfiler0, leave snapmirror off on the vfiler.

UŻU

The snapmirror command has many subcommands. Nearly every command takes a destination argument. This argument takes three different forms. The form used for a particular invocation depends on whether you're specifying a volume or a qtree.

Volumes are specified by their name:

 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:

on

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 trasferimenti kollha attivi SnapMirror tad-data u tiddiżattiva l-kmandi li tibda trasferimenti ġodda (initialize, aġġornament, resync, taħżen, u jerġgħu jieħdu lura), u jibdel il-Scheduler SnapMirror off.

Il-mixgħul / mitfi istat ta 'SnapMirror tippersisti permezz reboots, u huwa rifless mill-għażla snapmirror.enable. Din l-għażla tistax tiġi paċuta u fuq, u dan għandu l-istess effett eżatt kif il-snapmirror fuq jew snapmirror off jikkmanda.

istatus ['l |-t | q] [volum | qtree ... ]

Rapporti istatus ta 'l-relazzjonijiet ma' SnapMirror sors u / jew destinazzjoni fuq dan filer. Dan il-kmand jirrapporta wkoll jekk SnapMirror huwa fuq jew off. Jekk xi volum jew argumenti qtree huma mogħtija lill-kmand, biss ir-relazzjonijiet ma 'SnapMirror sors tqabbil jew destinazzjoni se jiġu rrapurtati. Jekk l-argument mhuwiex validu, mhux se jkun hemm kwalunkwe status fil-produzzjoni.

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).

If the -l option is given, the output displays more detailed information for each SnapMirror relationship. If a * is displayed along with relationship status in the short form output of snapmirror status command, then extra special information about that relationship is available, which is visible only with -l option.

If the -t option is given, the output displays the relationships that are active. A relationship is considered as active if the source or destination is involved in:

1. data transfer to or from the network. 2. reading or writing to a tape device. 3. waiting for a tape change.
4. Performing local on-disk processing or cleanup.

If the -q option is given, the output displays the volumes and qtrees that are quiesced or quiescing. See the quiesce command, below, for what this means.

See the Examples section for more information on snapmirror status .

On a vfiler, the status command shows entries related to the vfiler only. On the physical filer, active transfer entries from all vfilers are displayed. Inactive transfers are only displayed on the relevant vfiler. The preferred way to get a comprehensive and more readable list of SnapMirror transfers is to run vfiler run * snapmirror status . It iterators through all vfilers and lists its transfers.

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

Starts an initial transfer over the network. An initial transfer–either over the network or from tape–is required before update transfers can take place. The initialize command must be issued on the destination filer. If the destination is a volume, it must be restricted (see vol for information on how to examine and restrict volumes). If the destination is a qtree, it must not already exist (see qtree for information on how to list qtrees). If a qtree already exists, it must be renamed or removed (using an NFS or CIFS client), or snapmirror initialize to that qtree will not work.

If the snapmirror status command reports that an aborted initial transfer has a restart checkpoint, the initialize commmand will restart the transfer where it left off.

Il-S-għażla tispeċifika filer sors u l-volum jew il-passaġġ qtree, f'format simili għal dik ta 'argumenti eżaminazzjoni des_ t. Is-sors għandha taqbel mal-dħul għad-destinazzjoni fil-fajl snapmirror.conf. Jekk ma taqbilx ma ', l-operazzjoni stampi messaġġ ta' żball u aborts. Jekk lS-għażla ma tkunx stabbilita, is-sors użat huwa dak speċifikat mid-dħul għal dik id-destinazzjoni fil-fajl snapmirror.conf. Jekk ma jkunx hemm tali dħul, l-operazzjoni stampi messaġġ ta 'żball u aborts.

Il-k-għażla jistabbilixxi l-veloċità massima li biha data hija trasferita fuq in-netwerk fl-kilobytes kull sekonda. Huwa użat biex throttle disk, CPU, u l-użu tan-netwerk. Din l-għażla sempliċement tistabbilixxi valur massimu għall-veloċità tat-trasferiment; ma tiggarantix li t-trasferiment se jmorru li mgħaġġel. Jekk din l-għażla ma tkunx stabbilita, il-filer jittrasmetti data skond id-Kbs jistabbilixxu għal din ir-relazzjoni fil-fajl snapmirror.conf (ara snapmirror.conf). Madankollu, jekk din l-għażla mhuwiex stabbilit u m'hemm l-ebda kuntest Kbs għal din ir-relazzjoni fil-fajl snapmirror.conf, il-filer jittrasmetti data malajr kemm jista '.

Il-c-unika għażla taħdem għal initialize għal qtree. B'din l-għażla, SnapMirror toħloq stampa msemmija create_dest_snap dwar id-destinazzjoni wara l-initialize temm b'suċċess (sabiex ma jikkompetix ma 'kwalunkwe aġġornamenti kontinwi). SnapMirror ma jissakkar jew tħassar din l-istampa. Create_dest_snap ma tistax tkun hourly.x, nightly.x, jew weekly.x, għaliex dawn l-ismijiet huma riservati għal Snapshots skedati.

-I-unika għażla taħdem għal initialize għal qtree. Tinnomina stampa jismu src_snap minnu SnapMirror jittrasferixxi l-qtree, minflok ma jinħolqu stampa sors u trasferiment tal-qtree mill-istampa l-ġdida. Din l-għażla jintuża biex jittrasferixxi kontenut 1 snapshot speċifiku fuq; per eżempju, jista 'jittrasferixxi stampa li ttieħdet waqt database kienet stabbli, l-istat konsistenti. SnapMirror ma jissakkar jew iħassar il-src_snap. Src_snap ma tistax tkun hourly.x, nightly.x, weekly.x, snapshot_for_backup.x jew snapshot_for_volcopy.x.

Lw-għażla tikkawża l-kmand ma jmorrux lura ladarba t-trasferiment inizjali jibda. Minflok, se stenna sakemm it-trasferiment itemm (jew tonqos), f'liema ħin se jistampaw l-istatus tlestija u mbagħad jirritornaw.

aġġornament [S sors] [-k kilobytes] [-s src_snap] [-c create_dest_snap] [w] destinazzjoni

Għal mirja mhux sinkroniku, aġġornament immedjatament beda mill-għajn sa l destinazzjoni biex taġġorna l-mera mal-kontenut tas-sors.

Għal mirja sinkroniku, stampa hija maħluqa fuq il-volum sors li ssir viżibbli għall-klijenti tal-volum destinazzjoni.

Il-kmand aġġornament għandu jinħareġ fuq il-filer destinazzjoni.

Il-S-għażla settijiet-sors tat-trasferiment, u jaħdem l-istess għal aġġornament bħal ma tagħmel għall initialize.

Il-k-għażla settijiet-throttle, fil kilobytes kull sekonda, tat-trasferiment, u jaħdem l-istess għal aġġornament bħal ma tagħmel għall initialize.

Il-c-unika għażla jaħdem għal aġġornament għal qtree. Ma 'dan SnapMirror għażla toħloq stampa msemmija create_dest_snap dwar id-destinazzjoni wara l-tikkompleta aġġornament (sabiex ma jikkompetix ma' kwalunkwe aġġornamenti kontinwi). SnapMirror ma jissakkar jew tħassar din l-istampa. Create_dest_snap ma tistax tkun hourly.x, nightly.x, jew weekly.x, għaliex dawn l-ismijiet huma riservati għal Snapshots skedati.

Il s-unika għażla jaħdem għal aġġornament għal qtree. Tinnomina stampa jismu src_snap minnu SnapMirror jittrasferixxi l-qtree, minflok ma jinħolqu stampa sors u trasferiment tal-qtree mill-istampa l-ġdida. Din l-għażla jintuża biex jittrasferixxi kontenut 1 snapshot speċifiku fuq; per eżempju, jista 'jittrasferixxi stampa li ttieħdet waqt database kienet stabbli, l-istat konsistenti. SnapMirror ma jissakkar jew iħassar il-src_snap. Src_snap ma tistax tkun hourly.x, nightly.x, weekly.x, snapshot_for_backup.x jew snapshot_for_volcopy.x.

Lw-għażla tikkawża l-kmand ma jmorrux lura ladarba t-trasferiment inkrementali jibda. Minflok, se stenna sakemm it-trasferiment itemm (jew tonqos), f'liema ħin se jistampaw l-istatus tlestija u mbagħad jirritornaw.

quiesce destinazzjoni

Tippermetti fil-progress trasferimenti lil destinazzjoni biex jitlesta wara li t-trasferimenti ġodda mhumiex permessi biex tibda. Mirja sinkroniku se jittieħdu mill-modalità sinkroniku. Kwalunkwe talba oħra biex taġġorna dan il-volum jew qtree se jonqsu sa l-kmand jerġa snapmirror hija applikata għaliha.

Dan il-kmand għandu tifsira speċjali għal destinazzjonijiet qtree. A destinazzjoni qtree li qed tiġi modifikata mill SnapMirror matul trasferiment se jkollhom bidliet preżenti fiha. Dawn il-bidliet mhux ser jiġu esportati lill-klijenti NFS jew CIFS. Madankollu, jekk kopja tittieħed matul dan iż-żmien, l-istampa se jkun fih il-kontenut transizzjonijiet tal-qtree. Quiesce se ġġib dik qtree barra ta 'stat transizzjoni, jew mill-irfinar jew undoing kwalunkwe bidliet trasferiment għamlet. Istatus snapmirror jista tirrapporta jekk 1 qtree huwa quiesced jew le. Il-proċess quiesce jistgħu jieħdu xi żmien biex jitlesta filwaqt SnapMirror jagħmel tibdiliet kontenut tal-qtree tal. Kull stampa meħuda waqt li qtree huwa quiesced se jkun fiha l-immaġni ta 'dik qtree li jaqbel mal-kontenut esportati lill-klijenti NFS u CIFS.

jerġa destinazzjoni

Resumes transfers to destination . The snapmirror resume command can be used either to abort a snapmirror quiesce in progress or undo a previously completed snapmirror quiesce . The command restores the state of the destination from quiescing or quiesced to whatever it was prior to the quiesce operation.

break [ -f ] destination

Breaks a SnapMirror relationship by turning a snapmirrored destination into a normal read/write volume or qtree. This command must be issued on the destination filer.

The -f option forces a snapmirror break between snaplocked volume relationship without prompting for conformation.

This command does not modify the snapmirror.conf file. Any scheduled transfers to a broken mirror will fail.

For volumes, this command has the same effect as the vol options snapmirrored off command, and will remove the snapmirrored option from a volume. The fs_size_fixed volume option will remain on; it must be manually removed from the volume to reclaim any disk space that SnapMirror may have truncated for replication. (See the Options section and vol for more information on these two volume options.)

A destination qtree must be quiesced before it can be broken.

resync [ -n ] [ -f ] [ -S source ] [ -k kilobytes ] [ -s src_snap ] [ -c create_dest_snap ] [ -w ] destination

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.

The -s option only works for a resync 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 resync transfer starts. Instead, it will wait until the transfer completes (or fails), at which time it will print the completion status and then return. This option has no effect if the -n option is also specified.

destinations [ -s ] [ source ]

Lists all of the currently known destinations for sources on this filer. For volumes, this command also lists any cascaded destinations; these are any volumes which are replicas of direct destinations. This command will list all such descendants it knows about.

The -s option includes in the listing names of snapshots retained on the source volume for each destination.

If a specific source is specified, only destinations for that volume will be listed. The source may either be a volume name or a qtree path.

release source { filer : volume | filer : qtree }

Tell SnapMirror that a certain direct mirror is no longer going to request updates.

Jekk destinazzjoni partikolari m'għadux se jitlob aġġornamenti, għandek tgħid lit SnapMirror sabiex ma jibqax iżomm stampa għal dik id-destinazzjoni. Dan il-kmand se tneħħi Snapshots li m'għadhomx meħtieġa għar-replikazzjoni għal dik id-destinazzjoni, u jistgħu jintużaw biex tnaddaf SnapMirror-maħluqa Snapshots wara waqfa snapmirror tinħareġ fuq in-naħa destinazzjoni.

L-argument sors huwa l-volum sors jew qtree li d-destinazzjoni għandha tkun rilaxxata minn. L-argument destinazzjoni għandu jkun jew il-filer destinazzjoni u l-isem volum destinazzjoni jew il-filer destinazzjoni u l-path qtree destinazzjoni. Tista 'tuża linja mill-produzzjoni tal-kmand destinazzjonijiet snapmirror bħala s-sett ta' argumenti għal dan il-kmand.

maħżen ['g ġeometrija] destinazzjoni tapedevices

Miżbliet immaġni tal-volum destinazzjoni għall-tapedevices speċifikati. Dan huwa ħafna bħall-kmand initialize snapmirror, iżda minn volum sors ma 'apparat tejp. Tista 'tuża l-tapes u l-kmand irkuprata biex iwettqu t-trasferiment inizjali priming, fuq kull volum ristrett.

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.

Il-kmand abort jistgħux jiġu invokati jew mill-sors jew il-filer destinazzjoni. Madankollu, il-h-għażla hija effettiva biss fuq il-filer destinazzjoni. L-għażla se jiġu injorati jekk speċifikat fuq il-filer sors.

jemigraw [n] [-f] [-k kilobytes] [source_filer:] source_volume [destination_filer:] destinazzjoni t ion_volume

jemigraw snapmirror għandu jseħħ fuq l filer li jkollu l-volum sors. Għandu jiġi jimxu fuq żewġ volumi li huma diġà is-sors u destinazzjoni ta 'par SnapMirror.

jemigraw snapmirror se trasferiment tad-data u filehandles NFS mill-source_volume għall-destinazzjoni t ion_filer "i destination_volume (jekk l-ebda filer huwa speċifikat, allura jemigraw jassumi l-volum huwa lokali). Jekk source_filer huwa speċifikat, allura l-destinazzjoni jemigraw se jużaw dik network interface għall-konnessjoni sa l-filer sors għat-trasferiment ta 'informazzjoni.

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.

         toaster> snapmirror status -l arc1 Snapmirror is on. 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 maħżen vol1 rst0a, rst1a snapmirror: Referenza Snapshot: snapmirror_tape_5.17.100_21: 47:28 toaster> SNAPMIRROR: maħżen li toaster: rst0a, rst1a jispiċċaw ta 'tape.  toaster> użu snapmirror toaster: rst0a, rst1a rst0a toaster> Wed Mejju 17 23:36:31 GMT [worker_thread: Avviż]: snapmirror: Aħżen minn "vol1 'volum li tejp kienet ta' suċċess (11 MB fil-minuti 1:03, 3 tejps bil-miktub). 

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 

NOTES

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.

ALTERNATTIVI

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) 


Table of Contents















Categories: Manual Pages Tags: , , , ,

snapmirror.conf basics

April 4th, 2009 Chris Kranz No comments

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.

SnapMirror Replication Scheduling Spreadsheet

February 21st, 2009 Chris Kranz 1 comment

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.11_1134]
Rata din il-kariga:
Rating: 0.0/ 10 (0 votes cast)

Waiting and the Progress Bar

January 22nd, 2009 Chris Kranz No comments

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.11_1134]
Rata din il-kariga:
Rating: 0.0/ 10 (0 votes cast)

Categories: General Tags: , ,

SnapMirror failover

January 22nd, 2009 Chris Kranz 8 comments

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.11_1134]
Rata din il-kariga:
Rating: 0.0/ 10 (0 votes cast)

Categories: Command Line Tags: , , , ,

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

© 2009-2012 Chris KRANZ Drittijiet kollha Reserved
This site is not affiliated or sponsored in anyway by NetApp or any other company mentioned within.