Archyvas

Posts Tagged 'SnapMirror "

SnapMirror sąranka Script'o

Kovo 14., 2010 m.

Turėjau atkartoti esamą klientų Filer, prie naujos sistemos DR užduotis. Tai buvo gana didelis sistema, ir daug, sukurti SnapMirrors nėra itin sudėtingas, ji yra laiko. Taigi, kaip ir daugelio dalykų darau, parašė scenarijų padėti mano pasiekti šią užduotį greičiau ir eiti dar kitą kavos.

Jums reikės iš anksto bendrai raktai setup (kaip niekada), o likusi dalis yra raginami. Nėra duomenų tikrinimas (nenuostabu). Scenarijus bus išvesti 4 tekstinius failus, vieną kūrimas / apriboti visus kiekius, vienoje "snapmirror.conf, dėl būti naudojami vietoj" snapmirror.conf ", o darai pradinis paleidimą, ir pagaliau vienas realiai inicijuoti snapmirrors. Nėra jokios žvalgybos aplink vienu metu srautų, todėl iniciacijos yra dar Juggling akto bitų ir žaidimas.

Prašome leiskite man žinoti, jei rasite tai naudinga.

#! / Bin / bash

echo "Prašome įvesti, PIRMINĖS Failai pavadinimą:
skaityti PRI_FILER

echo "Prašome įvesti, DR Failai vardą:"
skaityti 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 statusas "| awk '! $ 2 ~ / valstija / {print $ 1}'`
padaryti
DYDIS = "$ {ConnectString} $ PRI_FILER" df-Ak $ AGGR "| sed 's / \ ([0-9] [KMGT] \) B / \ 1 / g' | awk '$ 1 ~ / fotografiją | Visuminė / {print $ 2} '`
tūrio `$ {ConnectString} $ PRI_FILER" aggr show_space $ AGGR "| awk '$ 1 ~ / Erdvė / {print $ 0}!" | awk' $ 4 ~ / tūris | failas | nė vienas / {print $ 1} '"
padaryti
echo "tūrio Sukurti $ {VOL}-nė $ {AGGR} $ {DYDIS}" >> $ {DR_FILER} _filer_volumes.txt.
echo "tūrio apriboti $ {tūrio}" >> $ {DR_FILER} _filer_volumes.txt
echo "snapmirror inicijuoti-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

July 7th, 2009

Table of Contents

NAME

snapmirror – Log of SnapMirror Activity

SYNOPSIS

/etc/log/snapmirror

APRAŠYMAS

SnapMirror log failas yra žurnalą šio Failai veiklos SnapMirror. Byla gyvena / etc / log dėl šaltinio ir paskirties filers namų tūrio. Kai pasirinkimas yra įjungtas snapmirror.log.enable visi SnapMirror veikla bus įrašytas į šio žurnalo failą. Galimybes informacijos apie tai, kaip įjungti ir išjungti šią parinktį. Kiekvieną sekmadienį 00:00, faile / etc / žurnalas / snapmirror, perkeliamas / etc/log/snapmirror.0, / etc/log/snapmirror.0 persikėlė į / etc/log/snapmirror.1, ir taip toliau. Priesaga gali siekti iki 5. Šis procesas yra vadinamas rotacija. SnapMirror žurnalo įrašai yra saugomi iš viso šešias savaites.

Kiekvienas įrašas / etc / log / snapmirror failo yra viena eilutė, sudaryta iš kosminės erdvės atskirtos srityse. Visi žurnalo įrašus prasideda tipo srityje ir timestamp srityje. Galutinis laukas gali būti apsupti skliausteliuose, tokiu atveju ji gali būti tarpų. Laiko žymos laukas susideda iš fiksuoto skaičiaus tarpų, ir kaip toks gali būti patikrintas, nes penkių atskirtų tarpais srityse. Kuris laukai yra ir kokia tvarka jie atrodo, yra nustatoma tipo laukelyje įrašo žurnale, kuris yra pirmas laukas).

Toliau kiekvienos srities aprašymas.

įveskite Nurodykite įrašo tipą, kuris taip pat nustato likusio įrašo formatą. Tai gali būti viena iš šių verčių:

prisijungti
prisijungti įrenginio veikla

Formatas: tipas timestamp event_info ...

sis
sistemos veikla

Formatas: tipas timestamp event_info ...

tgt
snapvault tikslinė veikla

Format: type timestamp volume target event_info…

src
source activity

Format: type timestamp source destination event_info…

dst
destination activity

Format: type timestamp source destination event_info…

Cmd
user command activity

Format: type timestamp source destination event_info…

scn
replication check source activity

Format: type timestamp source destination event_info…

chk
replication check destination activity.

Format: type timestamp source destination event_info…

vol
volume-wide activity

Format: type timestamp volume event_info…

slk
softlock addition-deletion activity

Format: type timestamp softlock event_info…

timestamp
Displayed in ctime() format, eg Fri Jul 17 20:41:09 GMT. Indicates the time this event is recorded.

apimtis Nurodo apimtis, kuriai taikomas šis įrašas pavadinimą.

nukreipti, tai šio įrašo tikslo pavadinimas ir tipas. Tikslai yra tūris masto veiksmai, paprastai fotografiją kūriniai. Jis rodomas kaip du colonseparated srityse, taip:

target_type: target_name

Tikslinė vardas gali būti tuščia eilutė.

šaltinis Tai yra šaltinio Failai pavadinimas ir, apimtis vardas ar qtree kelias būti kopijuojamos. Pavadinimas nurodomas kaip dviem dvitaškiais atskirtos srityse, taip:

host: path

Šis laukas gali būti "-" kai netaikoma tuo atveju.

paskirtis
Tai yra vardas paskirties Failai ir tūrio pavadinimas arba qtree kelias paskirties vietos. Pavadinimas yra nurodytas kaip dviem dvitaškiais atskirtų srityse, tais pačiais, kaip šaltinio, srityje.

Šis laukas gali būti "-" kai netaikoma tuo atveju.

event_info
Šis laukas yra įvykis, kuris yra prisijungęs. Kai kurie įvykiai gali turėti papildomą informaciją, skliausteliuose.

Prašymas (IP adresas | Perdavimo tipas) perkėlimo prašymas buvo išsiųstas (paskirties) arba gavo (šaltinis). Šaltinio pusėje, IP adresas yra įtrauktas į paskirties Failai kad prašymą pateikusiai skliausteliuose. Nuo paskirties vietos pusėje, perdavimo tipas yra įtrauktas skliausteliuose.

Pradžia perkėlimo pradžią.

Pradėti (Snapshots Tikrinti = # NUM lygis = {duomenys | kontrolinė} {patikrina | fix}, {greitą | Visas} režimą)
Replikacijos pradžia patikrinti ar nustatyti sesiją. Sesija alternatyvos yra įtrauktos skliausteliuose. Visi variantai rodomi paskirties pusėje žurnale, bet tik "Snapshots patikrinti" galimybė yra šaltinio šoninio žurnale.

Paleisti (@ skaičius KB)
Iš naujo perdavimo pradžia.

Pabaiga (padaryti skaičius KB)
Perdavimo užbaigimas. Bendras dydis perdavimo KB skliausteliuose.

Pabaiga (src_only = NUM_1, dst_only = NUM_2, neatitikimas = num_3 ") replikacijos užbaigimas patikrinti ar nustatyti sesiją. Sesijos santrauką skliausteliuose. Santrauka yra tik šalutinis paskirties rąstų. Šaltinis šalutinis rąstai bus nėra jokios informacijos santrauką.

Nutraukti (klaida msg)
Perdavimas nutrauktas. Klaidos pranešimas skliausteliuose.

Atidėti (priežastis)
Rodo pervedimas yra atidėtas dėl išteklių apribojimo. Atidėjimo priežastis yra skliausteliuose.

Wait_tape
SnapMirror juosta operacija laukia kitą juostą.

New_tape
Juostos operacija SnapMirror, tęsė operaciją su nauja juosta.

Sync_start
Sinchroninio atspindinti režimu šio įrašo žurnale nurodytą SnapMirror santykių pradžia.

Sync_end (priežastis)
Sinchroninės atspindinti režimu šio įrašo žurnale nurodytą SnapMirror santykių pabaiga. Sinchroninio režimu iškritimo priežastis skliausteliuose.

Quiesce_start
Quiesce proceso pradžia.

Quiesce_end
Quiesce proceso užbaigimas.

Quiesce_failed (priežastis)
Quiesce proceso nepakankamumas. Gedimo priežastis yra skliausteliuose.

Rollback_start
Atmesti proceso pradžia priimti qtree SnapMirror ar SnapVault.

Rollback_end
Atmesti proceso užbaigimas priimti qtree SnapMirror ar SnapVault.

Rollback_failed (priežastis)
Atmesti proceso nepakankamumas priimti qtree SnapMirror ar SnapVault. Gedimo priežastis yra skliausteliuose.

Coalesce_start (fotografiją)
Pradžia, susilieti procesą SnapVault qtree. Bazė fotografiją už suaugti operacijos skliausteliuose.

Coalesce_end
Užbaigimas, susilieti procesą SnapVault qtree.

Coalesce_failed (priežastis)
Nepakankamumas, susilieti procesą SnapVault qtree. Gedimo priežastis yra skliausteliuose.

Target_start
Iš SnapVault tikslo pradžia.

Target_end
Iš SnapVault tikslo užbaigti.

Target_failed (priežastis)
Iš SnapVault tikslo nepakankamumas. Gedimo priežastis yra skliausteliuose.

Start_logging
SnapMirror žurnalas buvo įjungtas.

End_logging
SnapMirror žurnalas buvo išjungta.

SnapMirror_on (priežastis)
SnapMirror buvo įjungtas šio host. Operacija arba procesas, kuris sukėlė SnapMirror tapti leido nurodytas skliausteliuose.

SnapMirror_off (priežastis)
SnapMirror šio host buvo išjungta. Operacija arba procesas, kuris sukėlė SnapMirror tapo neįgaliais, nurodyta skliausteliuose.

SnapVault_on (priežastis)
SnapVault buvo įjungtas šio host. Operacija arba procesas, kuris sukėlė SnapVault tapti leido nurodytas skliausteliuose.

SnapVault_off (priežastis)
SnapVault šio host buvo išjungta. Operacija arba procesas, kuris sukėlė SnapVault tapo neįgaliais, nurodyta skliausteliuose.

Resume_command
Vartotojas išduotas snapmirror CV komandą.

Break_command
Vartotojas išduotas snapmirror pertrauka komandą.

Release_command
Vartotojo išduotas snapmirror, atleidimo komandą.

Abort_command

Abort_command (tipas)
Vartotojo išduotas snapmirror atmetimo komandą. Bus tik, jei nutraukti buvo išduota papildomų galimybių, kurios keitėsi nutraukti tipo.

Resync_command (bendras fotografiją)
Vartotojo išduotas snapmirror Pakartotinai sinchronizuojami komandą. Bendras fotografiją Pakartotinai sinchronizuojami operacijos skliausteliuose.

Restore_resync_command (bendras fotografiją) Vartotojo išduotas snapvault atkurti r komandą. Bendras fotografiją Pakartotinai sinchronizuojami operacijos skliausteliuose.

Migrate_command
Vartotojo išduotas snapmirror migruoti komandą.

Request_check (snapshot_name)
Prašymas replikacijos žymės sesijos metu už vieną fotografiją. Tai šaltinis pusė žurnalas įrašas. Kiekvieną fotografiją tikrinama replikacijos žymės sesijos turės savo įrašą. Vardas fotografiją skliausteliuose.

Checking_snapshot šaltinis snapshot_name (timestamp, cpcount = NUM_2, snapid = id) į dest_snapshot_name (timestamp, cpcount = kiekis, snapid = id), vieną fotografiją palyginti metu replikacijos patikrinimo pradžia. Yra prisijungęs ir šaltinio ir paskirties.

Abort_check
replikacija patikrinti sesiją, už SnapMirror arba SnapVault nutrauktas. Priežastis nutraukti skliausteliuose.

Abort_check_command
Vartotojo išduotas, replikacija patikrinti atmetimo komandą. Korespondentas log failo įrašą pasirodo su cmd tipą.

Data_differ ({blokuoti blk_num. File_path | VBN VBN})
Replikacija patikrinimą rasta duomenų bloko neatitikimą. Bet bloko numeris ir inode kelias arba tomas Blokuoti numeris (VBN), yra įtrauktas skliausteliuose.

Unique_in_src (už entry_path entry_type) Replikacija patikrinimas rasti įrašą tik esamą šaltinį. Įrašas tipas ir įrašas kelias skliausteliuose.

Unique_in_dst (už entry_path entry_type) Replikacija patikrinimas nustatė tik į paskirties įrašą. Įrašas tipas ir įrašas kelias skliausteliuose.

Size_differ (kelias)
Replikacija patikrinimas failo dydžio neatitikimą, nurodytos inode. , Inode kelias yra įtrauktas skliausteliuose.

Type_differ (kelias)
Replikacija patikrinimas inode tipo neatitikimas. , Inode kelias yra įtrauktas skliausteliuose.

UID_differ (kelias)
Replikacija patikrinimas nustatė neatitikimą, nurodytos inode vartotojo ID. , Inode kelias yra įtrauktas skliausteliuose.

GID_differ (kelias)
Replikacija patikrinimas grupės ID neatitikimą, nurodytos inode. , Inode kelias yra įtrauktas skliausteliuose.

Perm_differ (kelias)
Replikacija patikrinimas nustatė, nurodytą inode leidimą ar dosbit nesutapimą. , Inode kelias yra įtrauktas skliausteliuose.

Atime_differ (kelias)
Replikacija patikrinimas nustatė neatitikimą paskutinio prieigos laiką, nurodytą inode. , Inode kelias yra įtrauktas skliausteliuose.

Mtime_differ (kelias)
Replikacija patikrinimas nustatė neatitikimą paskutinio modifikavimo metu nurodytą inode. , Inode kelias yra įtrauktas skliausteliuose.

Ctime_differ (kelias)
Replikacija patikrinimas nustatė neatitikimą, nurodytos inode paskutinio dydžio / būsenos pokyčių metu. , Inode kelias yra įtrauktas skliausteliuose.

Crtime_differ (kelias)
Replikacija patikrinimas nustatė neatitikimą sukūrimo metu nurodytos inode. , Inode kelias yra įtrauktas skliausteliuose.

Rdev_differ (kelias)
Replikacija patikrinimas įrenginio skaičiaus neatitikimą, nurodytos inode. , Inode kelias yra įtrauktas skliausteliuose.

DOSbits_differ (kelias)
Replikacija patikrinkite rasti DOS bitų neatitikimą, nurodytos inode. , Inode kelias yra įtrauktas skliausteliuose.

ACL_differ (kelias)
Replikacija patikrinimas rasti NT arba NFS V4 ACL nesutapimą nurodytą inode. , Inode kelias yra įtrauktas skliausteliuose.

Hardlink_differ (kelias)
Replikacija patikrinimas nustatė, nurodytą inode hardlink, bet dėl paskirties inode nesutampa tarp nuorodų. , Inode kelias yra įtrauktas skliausteliuose.

Qtree_oplock_differ (kelias)
Replikacija patikrinti rastą oplock blokavimas nustatymo neatitikimą per qtree. Qtree kelias skliausteliuose.

Qtree_security_differ (kelias)
Replikacija patikrinimas rasti saugumo nustatymo neatitikimą per qtree. Qtree kelias skliausteliuose.

Hole_uses_disk_space (kelias)
Replikacija patikrinimas nustatė nereikalingą disko naudojimas nurodytą inode, tačiau yra neatitikimas. , Inode kelias yra įtrauktas skliausteliuose.

Convert_command
Vartotojo išduotas snapmirror konvertuoti komandą.

Older_snapshot
Momentinį vaizdą, kuris yra vyresnis nei dabartinės bazinės fotografiją atnaujinimas.

Snapshot_delete (pavadinimas fotografijas)
Fiksuojami išbraukiamas iš šio kiekio. Pavadinimas fotografijas skliausteliuose.

Snapshot_replace (pavadinimas fotografijas)
SnapVault fotografiją buvo pakeistas po to, kai SIS su naujesne to paties pavadinimo fotografiją. Pavadinimas fotografijas skliausteliuose.

FILER_REBOOTED
Perleist Ātršuvējs.

WORM_LOG_FAIL (priežastis)
Rašykite WORM žurnalo failą nepavyko. Gedimo priežastis yra skliausteliuose.

WORM_LOG_FAILURE_RECOVER_START
Nepavykusių WORM žurnalo įrašų atkūrimo pradžia.

WORM_LOG_FAILURE_RECOVER_END
Nepavykusių WORM žurnalo įrašų atkūrimo pabaiga.

Softlock_add (operacija)
Softlock. Operacija, kad pridėtinės softlock skliausteliuose.

Softlock_add_pending (operacija)
Softlock papildomas kaip laukianti softlock. Operacija, kad pridėtinės softlock skliausteliuose.

Softlock_delete (operacija)
Išbraukiamas softlock. Operacija, kuri ištrynė softlock skliausteliuose.

Softlock_delete_pending (operacija), kol softlock yra ištrintas. Operacija, kad ištrinti skliausteliuose.

Softlock_mark_pending (operacija)
Softlock pažymėtas kaip laukiantis. Operacija, kad pažymėtas skliausteliuose.

PAVYZDŽIAI

Tipiškas įrašas / etc / log / snapmirror išvaizda:
  dst Fri Jul 17 22:50:18 GMT filer1: srcvol filer2: dstvol Prašymas (Atnaujinti) 

Pateiktas pavyzdys rodo, įrašytą į paskirties pusėje, dėl SnapMirror santykiai nuo Failai: srcvol į filer2: dstvol nutiko įrašų naujinimo užklausą.

/ Etc / log (arba) paskirties snapmirror apie tipiškas Replikacija patikrinimas sesija išvaizda:

   Chk Wed Jan 19 01:07:39 GMT Woolf :/ vol/vol1 Milton :/ vol/vol1 Prašymas (patikrinimas) Chk Wed Jan 19 01:07:39 GMT Woolf :/ vol/vol1 Milton :/ vol/vol1 Pradėti straipsnio Faktai patikrinti = 2 lygis = duomenys, čekis, pilnas) Chk Wed Jan 19 01:07:39 GMT Woolf :/ vol/vol1 Milton :/ vol/vol1 Checking_snapshot Milton (0033587346) _vol1.5 (Jan 18 ... Wed Chk Jan 19 01:07:48 GMT Woolf :/ vol/vol1 Milton :/ vol/vol1 Checking_snapshot nightly.0 (Jan 18 00:00, cpcount = ... Chk. Wed Jan 19 01:07:57 GMT. Woolf :/ vol/vol1 "Milton :/ vol/vol1 pabaiga (src_only = 0, dst_only = 0, neatitikimas = 0) 

/ Etc / log arba snapmirror šaltinyje tipiškas Replikacija patikrinimas sesija išvaizda:

  SCn Wed Jan 19 00:58:27 GMT Woolf :/ vol/vol1 Milton :/ vol/vol1 prašymu 172.29.19.15) SLN Wed Jan 19 00:58:27 GMT Woolf :/ vol/vol1 Milton :/ vol/vol1 Pradėti (Snapshots Tikrinti = 2) SCn Wed Jan 19 00:58:27 GMT Woolf :/ vol/vol1 Milton :/ vol/vol1 Request_check (Milton (0033587346) _vol1.5) SLN Wed Jan 19 00:58:27 GMT Woolf :/ vol/vol1 Milton :/ vol/vol1 Checking_snapshot Milton (0033587346) _vol1.5 (Jan 18 ... SCn Wed Jan 19 00:58:36 GMT Woolf :/ vol/vol1 Milton :/ vol/vol1 Request_check [nightly. 0) SCn Wed Jan 19 00:58:36 GMT Woolf :/ vol/vol1 Milton :/ vol/vol1 Checking_snapshot nightly.1 (Jan 18 00:00 cpcount = ... SCn Wed Jan 19 00:58:45 GMT Woolf: / :/ Milton vol/vol1. vol/vol1 pabaiga 

Tipiškas softlock, prisijungti / etc / log / snapmirror išvaizda:

   SLK Wed May 10 03:06:15 GMT state.softlock.vol1.0000011e.054.filer1.: vol3 Softlock_add (perkėlimas) SLK Wed May 10 03:06:15 GMT state.softlock.vol1.0000011b.054.filer1: vol3 softlock_delete (perkėlimas) SLK Wed May 10 03:06:15 GMT state.softlock.vol1.0000011b.054.filer1: vol3 Softlock_delete (Atstatyti) SLK Wed May 10 03:06:15 GMT state.softlock.vol1.0000011b.054 filer1: vol3 Softlock_delete (Išleidimo) SLK Wed May 10 03:06:15 GMT state.softlock.vol1.0000011b.054.filer1: vol3 Softlock_delete (Clean_softlocks) SLK Wed May 10 03:06:15 GMT state.softlock.vol1. .0000011 b.054.filer1: vol3 Softlock_add (RSM_forward) SLK Wed May 10 03:06:15 GMT state.softlock.vol1.0000011b.054.filer1: vol3 Softlock_delete (RSM_forward) SLK Wed May 10 03:06:15 GMT būsena softlock.vol1.0000011b.054.filer1: vol3 Softlock_delete (Snapmirror_destinations) SLK Wed May 10 03:06:15 GMT state.softlock.vol1.0000011b.054.filer1. vol3 Softlock_delete_pending (perdavimo) SLK Wed May 10 03:06 : 15 GMT state.softlock.vol1.0000011b.054.filer1: vol3 Softlock_add_pending (perdavimo) SLK Wed May 10 03:06:15 GMT state.softlock.vol1.0000011b.054.filer1: vol3 Softlock_mark_pending (perdavimo) 

Failų archyvas

/ Etc / log / snapmirror
SnapMirror log failas už einamąją savaitę.

/ Etc / žurnalas / snapmirror, [0-5].
SnapMirror failus iš ankstesnių savaičių.

SEE ALSO

options , snapmirror snapvault


Table of Contents







































































Rankinis Puslapiai , , , ,

snapmirror

Liepos 7, 2009

Turinys

PAVADINIMAS

snapmirror - tūris, ir qtree atspindinti

SYNOPSIS

snapmirror { on | off }

snapmirror status [ options ] [ volume | qtree ... ]

snapmirror initialize [ options ] destination

snapmirror update [ options ] destination

snapmirror quiesce destination

snapmirror resume destination

snapmirror break [ options ] destination

snapmirror resync [ options ] destination

snapmirror destinations [ option ] [ source ]

snapmirror release source destination

snapmirror { store | retrieve } volume tapedevices

snapmirror use destination tapedevices

snapmirror throttle <n> destination

snapmirror abort [ options ] destination

snapmirror migrate [ options ] source destination

APRAŠYMAS

Snapmirror komanda yra naudojami siekiant kontroliuoti SnapMirror, atspindinti apimtis ir qtrees metodas. Jis leidžia vartotojui įjungti ir išjungti planuojama ir rankinis duomenų perdavimas, prašyti informacijos apie pervedimų, pradėti iniciacijos duomenų perdavimą, pradėti atnaujinti veidrodžio, laikinai pristabdyti atnaujinimai veidrodį, pertrauka veidrodis santykius, naujo sinchronizuoti sulaužytų veidrodėliai, sąrašas paskirties informacijos , išleisti vaikų veidrodėliai, parduotuvė apimties vaizdai į juostą, atkurti garso nuotraukas iš juostelių, ir nutraukti vykdomi pervedimai.

SnapMirror gali būti naudojamas, atkartoti apimtis arba qtrees. Procesus ir elgesį, yra šiek tiek (o kartais subtiliai) skiriasi tarp įvairių rūšių duomenų dubliavimo.

SnapMirror procesas paskirties pagrįsta. Snapmirror inicijuoti komanda pradeda pirmąjį perdavimą, paprastų paskirties su visais duomenų šaltinio. Prieš pradinio perdavimo paskirties vietą turi būti pasirengusi būti perrašyti iš šaltinio duomenų paskirties apimtis turi būti apribota (žr. tūrio), ir paskirties qtrees turi dar nėra.

Asinchroniniam veidrodžių, paskirties periodiškai prašo atnaujinti iš šaltinio, priima duomenų perdavimą, ir įrašo tuos duomenis į diską. Šie atnaujinti perdavimai atliekami tik įtraukti pakeitimus, padarytus po paskutinio perdavimo šaltinį. "SnapMirror planavimo inicijuoja šių pervedimų automatiškai, atsižvelgiant į tvarkaraščių snapmirror.conf failą.

Sinchroniniai veidrodžiai pradžių elgtis asinchroniškai, bet perėjimas prie sinchroninio režimu pirmai progai pasitaikius. Šie veidrodžiai gali grįžti į asinchroniniu režimu klaidą (pvz., tinklo disko tarp mirrorów filers) arba vartotojo prašymu.

Snapmirror atnaujinimo komanda gali būti naudojamas, inicijuoti atskiri pervedimai, išskyrus nuo reguliariojo tuos snapmirror.conf.

Po pirminio perdavimo paskirties vieta yra prieinamas klientams, bet tik skaityti,. Paskirties statusas rodo, kad ji yra snapmirrored (žr. aggr, išreikšta tūrio procentais, arba qtree daugiau informacijos apie rodymo paskirties valstybės narės).

Norėdami naudoti raštu paskirties taip pat skaitote, yra naudinga, kai nelaimė šaltinis nepasiekiamas arba kai paskirties vietą, kurią norite naudoti kaip bandymo tūrio / qtree, galite baigti SnapMirror santykius su snapmirror pertraukos komandos. Ši komanda keičia paskirties statusą iš snapmirrored į Broken-off, todėl jis įrašomas. Snapmirror resync komanda gali pakeisti buvęs paskirties statusą atgal į snapmirrored ir naujo sinchronizuoti turinį su šaltinio. (Taikomas buvęs šaltinio, snapmirror resync gali paversti jį į buvusios paskirties veidrodį. Tokiu būdu, šaltinio ir paskirties vaidmenys gali būti panaikintas.)

Ātršuvējs stebi visas paskirties vietas, nei tiesioginės, veidrodžių ir veidrodžiai, veidrodžių, kiekvienas iš savo šaltinių. Šis sąrašas gali būti rodomas per snapmirror paskirtys komandą. Snapmirror spaudai komanda gali būti naudojamas papasakoti Filer, kad tam tikras tiesioginis veidrodis nebebus prašyti naujinimų.

Norėdami išsaugoti tinklo pralaidumas, juosta gali būti naudojama naudoti, pompą naują veidrodinį apimtis, vietoj snapmirror inicijuoti komandą. Į snapmirror parduotuvė komanda sąvartynų šaltinio vaizdas juosta. Snapmirror gauti komanda atkuria garso vaizdą iš juosta ir rengia atnaujinamų pervedimai per tinklo apimtį. Jei daug juostos yra naudojamos sukurti garso vaizdą, komanda snapmirror naudojimas pavesti laukimo parduotuvėje arba gauti procesą parašyti išvestį arba priima indėlį į ir iš naujos juostos prietaiso. Saugoti ir atkurti komandos gali būti naudojamas su qtrees.

Snapmirror migruoti komanda naudojama esamo šaltinio ir paskirties poros paskirties tūris rašyti "imituoti" šaltinio. Paskirties prisiima NFS bylomis šaltinio,, padėti Filer administratorių, kad būtų išvengta per NFS naujo montuoti ant kliento pusėje.

The snapmirror.conf file on the destination filer's root volume controls the configuration and scheduling of SnapMirror on the destination. See snapmirror.conf for more details on configuration and scheduling of SnapMirror.

Access to a source is controlled with the snapmirror.access option on the source filer. See options and protocolaccess (8) for information on setting the option.

(If the snapmirror.access option is set to "legacy”, access is controlled by the snapmirror.allow file on the source filer's root volume. See snapmirror.allow for more details.)

SnapMirror is a licensed service, and a license must be obtained before the snapmirror command can be used. SnapMirror must be licensed on both source and destination filers. See license for more details.

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.

Kiekvienas vfiler turi savo / etc / snapmirror.conf failą savo šaknų tūrio. SnapMirror gali būti įjungtas arba išjungtas dėl tam vfiler nepriklausomai. Komandos SnapMirror, išduoti tam vfiler gali veikti tik jis turi išimtinę teisę į jų apimtis arba qtrees.

Dėl atgalinio suderinamumo, fizinis Failai (vfiler0.), Gali veikti visų apimčių ir visų qtrees, net jei jie priklauso vfilers. Jis labai rekomenduota, tačiau, kad visi laikymo vienetai apimtys ir qtrees), atspindi iš abiejų vfiler0 ar prieglobos vfiler, ne tiek. , Kai vfiler saugojimo įrenginiai atsispindi per vfiler0, palikti snapmirror, ant vfiler.

NAUDOJIMAS

Snapmirror komanda turi daug subcommands. Beveik kiekviena komanda laikosi paskirties argumentą. Šis argumentas trunka tris skirtingas formas. Forma, naudojama tam tikro pritaikymo priklauso nuo to, ar jūs nurodant apimtį ar yra qtree,.

Apimtys yra nurodyti jų pavadinimą:

  vol1 

Qtrees nurodyta jų visiškai kvalifikuota kelio:

  / Vol/vol1/qtree 

Yra specialus takas, kuris gali būti naudojamas SnapMirror visus duomenis tūrio, kuris negyvena, qtree. Šis kelias gali būti naudojamas tik kaip SnapMirror šaltinio, niekada SnapMirror, paskirties. Kelias yra nurodyta taip:

  / Vol/vol1/- 

Visos komandos, kurios nesako kitaip, gali imtis bet kurių iš šių formų kaip argumentas.

Snapmirror subcommands:

apie

Leidžia SnapMirror duomenų perdavimo ir įsijungia SnapMirror tvarkaraščio. Ši komanda turi būti išduotas prieš inicijuoti jokių SnapMirror duomenų perdavimo Inicijuoti, atnaujinimą, Pakartotinai sinchronizuojami, saugoti ar atgauti subcommands,. Ši komanda taip pat įsijungia SnapMirror tvarkaraščio, kuris inicijuoja atnaujinimo pervedimus, kai laikas atitinka vieną iš, snapmirror.conf failą tvarkaraščių. Ši komanda turi būti išduotas už Failai reaguoti atnaujinti prašymus iš vietovių, šaltinio pusėje.

nuo

Paveikslėlio tekstų vertimas visų aktyvių SnapMirror, duomenų perdavimo ir išjungia komandos, kuri inicijuoja naujų pervedimus [inicijuoti, atnaujinimas, resync, saugoti ir atkurti), ir paverčia SnapMirror planavimo išjungtas.

Įjungimo / išjungimo būsenos į SnapMirror išlieka per krovimąsi, ir tai atsispindi pagal snapmirror.enable variantą. Ši parinktis gali būti užskaityti, ir darydama turi tą patį poveikį kaip snapmirror ar išjungti komandų snapmirror.

statusas [-L | T | Q] [kiekis | qtree ... ]

Ataskaitos statusas, visų SnapMirror santykių su šaltinio ir (arba) paskirties vietą dėl šio Failai. Ši komanda taip pat pranešimų ar SnapMirror, įjungti arba išjungti. Jei kuri nors tūris ar qtree argumentai pateikiami į komandą, tik SnapMirror santykiai su atitikimo šaltinį arba paskirties vietą bus pranešta. Jei argumentas yra neteisingas, nebus bet išėjimo statusas.

Be jokių galimybių, rodomas trumpas kiekvieno tokio santykiai statuso forma. Tai rodo, kad vietos pusėje santykių būklę, ar perdavimas vyksta (ir jei taip, tokio perdavimo pažanga), ir veidrodis atsilikimas, ty kiek laiko, veidrodis atsilieka šaltinio. Tai yra paprastas skirtumas dabartinį laiką ir paskutinio sėkmingo perdavimo šaltinis pusės timestamp. Laiko trukmė visada bus bent kiek paskutinio sėkmingo perdavimo trukme, išskyrus atvejus, kai dėl šaltinio ir paskirties laikrodžiai nėra sinchronizuojami (tokiu atveju ji gali netgi būti neigiamas).

Jei-l parinktis, išvestis rodo išsamesnę informaciją kiekvienam SnapMirror santykių. Jei * yra rodomi kartu su santykių statuso trumpą formą produkcijos snapmirror būsenos komandos, tada ypatinga informacija apie šiuos santykius ir yra prieinama, kuri matoma tik su-l variantas.

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

Pradeda pradinį perdavimą tinklu. Pirminis perkėlimas arba per tinklą arba iš juostos prieš atnaujinimas pervedimai gali vykti. Inicijuoti komanda turi būti išduotas į paskirties Filer. Jei paskirties vieta yra tūris, ji turi būti ribojama (žr. tūrio informacijos apie tai, kaip patikrinti ir apriboti apimtis). Jei paskirties qtree, ji neturi jau (žr. už informacijos apie tai, kaip į sąrašą qtrees, qtree). Jei qtree jau egzistuoja, ji turi būti pervadintas arba pašalintas (naudojant NFS ar CIFS klientas), arba snapmirror inicijuoti kad qtree bus ne dirbti.

Jei komanda snapmirror statusas praneša, kad nutrauktas pradinis perdavimas iš naujo paleisti kompiuterį taskus, inicijuoti commmand "perkraukite perdavimą, kai buvo nutrauktas.

-S parametras nurodo šaltinio Failai ir apimtis ar qtree kelią, kad des_ t ination argumentų panašia forma. Šaltinis turi atitikti paskirties snapmirror.conf failo įrašą. Jei jis neatitinka, operacija atspausdina klaidos pranešimą ir nutraukia gyvenimą. Jei-S variantas nėra, šaltinis yra nurodyta įrašo tą paskirties vietą snapmirror.conf failą. Jei nėra tokio įrašo, operacija atspausdina klaidos pranešimą ir nutraukia gyvenimą.

-K parinktis nustato didžiausią greitį, kuriuo duomenys yra perduodami per kilobaitais per sekundę tinklo. Ji naudojama droselio diską, CPU, tinklo naudojimo. Ši parinktis nustato tik didžiausią vertę perdavimo greičio, tai negarantuoja, kad perdavimas bus eiti, kad greitai. Jei ši alternatyva nėra nustatyti, Ātršuvējs perduoda duomenis pagal KBS, nustatant šio į snapmirror.conf failą santykių (žr. snapmirror.conf). Tačiau, jei ši parinktis nėra nustatyta ir nėra kbs šio snapmirror.conf failą santykių nustatymas, Ātršuvējs perduoda duomenis, taip pat greitai, kaip jis gali.

-C parinktis veikia tik, initialize į qtree. Naudodami šią parinktį, SnapMirror sukuria fotografiją, pavadintą create_dest_snap į paskirties vietą po inicijuoti sėkmingai baigė (taip, kad ji nekonkuruoja su visus vykdomus atnaujinimus). SnapMirror ar užrakinti ar ištrinti šią fotografiją. Create_dest_snap negali būti hourly.x, nightly.x, arba weekly.x, nes šie pavadinimai saugomos reguliariojo kadrų,.

-Ai variantas veikia tik, initialize į qtree. Ji paskiria fotografiją pavadinimu src_snap iš kurios SnapMirror perduoda qtree, vietoj šaltinio fotografiją sukurti ir perduoti iš naujo fotografiją qtree. Ši parinktis yra naudojama perduoti tam tikrą fotografiją turinį, pavyzdžiui, ji gali perduoti fotografiją, kuri buvo paimtas, o duomenų bazė buvo stabili, nuosekliai valstybės. SnapMirror ar ne užrakinti ar ištrinti src_snap. Src_snap negali būti hourly.x, nightly.x, weekly.x, snapshot_for_backup.x arba snapshot_for_volcopy.x,.

-, Galimybė sukelia komandą negrąžinti, kai pirminis perkėlimas prasideda. Vietoj to, jis lauks, kol perdavimas baigia (arba nepavyksta), tuo metu jis bus atspausdinti užbaigimo būseną ir tada grįžti.

atnaujinimas [-s šaltinis] [-k kilobaitų] [-src_snap] [-c create_dest_snap] [-w] paskirties

Asinchroniniam veidrodžių, atnaujinimas iš karto pradėjo nuo ištakų iki paskirties atnaujinti veidrodį su šaltinio turinį.

Sinchroninių veidrodžiai, fotografiją yra sukurta ant šaltinio apimties, kuri tampa matoma paskirties apimties klientams.

Atnaujinimas komanda turi būti išduotas į paskirties Filer.

-S parinktis nustato perdavimo šaltinį ir veikia taip pat atnaujinimo, nes jis už initialize.

-K parinktis nustato droselio, kilobaitais per sekundę, perdavimo, ir veikia taip pat atnaujinimo, nes jis už 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.

Ši komanda turi ypatingą reikšmę qtree paskirties. Qtree paskirties, kuris yra pakeistas SnapMirror perdavimo metu turės pakeisti esančias. Šie pakeitimai nebus eksportuojami NFS ar CIFS klientų. Tačiau, jei fotografiją yra imtasi per šį laiką, jame bus pateikta Perėjimas į qtree turinį. Kad qtree atneš quiesce Perėjimas valstybės arba apdailos arba atšaukti bet kokius pakeitimus perdavimas. Snapmirror statusas gali pranešti, ar qtree quiesced ar ne. Quiesce procesas gali užtrukti šiek tiek laiko užbaigti, o SnapMirror pakeitimus qtree turinio. Bet, nors qtree quiesced fotografiją bus tos, kuri atitinka turinį, NFS ir CIFS klientų eksportuotų qtree vaizdą.

atnaujinti paskirties

Santraukos perduoda paskirties vietą. Komanda snapmirror CV gali būti naudojamas arba nutraukti snapmirror quiesce pažangą arba atšaukti anksčiau užpildytą snapmirror quiesce,. Komanda atkuria paskirties valstybę nuo quiescing, arba quiesced kokia ji buvo prieš į quiesce operacija.

pertrauka [-f] paskirties

Breaks SnapMirror santykiai, tekinimo snapmirrored paskirties į normalaus skaityti / rašyti apimtį arba qtree. Ši komanda turi būti išduotas į paskirties 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.

Dėl anksčiau atspindi apimtis, resync komanda efektyviai atlieka SnapRestore (žr. tūrio) paskirties naujausios fotografiją, kuris yra bendras tiek šaltinio ir paskirties vietą. 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 ]

Išvardyti visi šiuo metu žinomi paskirties šaltinių apie šio Failai. Apimtims, ši komanda taip pat išvardyti visus pakopomis miestai; tai yra kokių nors apimtys, kurios yra kopijos tiesioginių maršrutų. Ši komanda sąrašas jis žino apie visus tokius palikuonis.

-Ai variantas apima informacinio biuletenio šaltinio tūrio nepaskirstytojo kadrų, kiekvieną paskirties vietą, pavadinimus.

Jei šaltinis yra nurodyta, tik to tomo miestai bus rodomas. Šaltinis gali būti arba tūris pavadinimas, arba qtree kelias.

spaudai šaltinis {Ātršuvējs tūris | Ātršuvējs: qtree}

Pranešti SnapMirror, kad tam tikras tiesioginis veidrodis nebėra ketina prašyti naujinimų.

Jei tam tikras paskirties nebėra ketina prašyti naujinimų, jūs turi pasakyti SnapMirror, taip, kad ji nebegali išlaikyti tą paskirties vietą fotografiją. Ši komanda bus pašalinti vaizdus, ​​kad yra nebereikalingi replikacijos į tą paskirties vietą, ir gali būti naudojami išvalyti SnapMirror sukurtus vaizdus, ​​po snapmirror pertrauka išduodamas paskirties pusėje.

The source argument is the source volume or qtree that the destination is to be released from. The destination argument should be either the destination filer and destination volume name or the destination filer and destination qtree path. You can use a line from the output of the snapmirror destinations command as the set of arguments to this command.

store [ -g geometry ] destination tapedevices

Dumps an image of the destination volume to the tapedevices specified. This is much like the snapmirror initialize command, but from a source volume to a tape device. You can use the tapes and the retrieve command to perform the initial, priming transfer on any restricted volume.

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.

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

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.

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) 


Table of Contents















Manual Pages , , , ,

snapmirror.conf basics

Balandžio 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.11_1134]
Rate this post:
Reitingas: 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.11_1134]
Rate this post:
Reitingas: 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.11_1134]
Rate this post:
Reitingas: 0.0 / 10 (0 votes cast)

Command Line , , , ,



Šis puslapis nėra susijęs arba remia vistiek pateikė NetApp arba bet kuri kita bendrovė, minėta per.

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

© 2009-2012 Chris Kranz All Rights Reserved
Šis puslapis nėra susijęs arba remia vistiek pateikė NetApp arba bet kuri kita bendrovė, minėta per.