This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
cluster:151 [2016/11/03 14:45] hmeij07 [Mirror Data] |
cluster:151 [2016/11/10 19:24] hmeij07 [Mirror Data] |
||
---|---|---|---|
Line 24: | Line 24: | ||
* '' | * '' | ||
+ | |||
+ | ==== Resync Data ==== | ||
+ | |||
+ | Testing out fail over and deletion of data on secondary then a full resync process: | ||
+ | |||
+ | |||
+ | * started a full --resyncstorage --mirrorgroupid=101 --timestamp=0 | ||
+ | * got --getentryinfo EntryID for a file in my / | ||
+ | * did a cat / | ||
+ | * brought primary storage down | ||
+ | * redid the cat above (it hangs for a couple of minutes, then displays the file content) | ||
+ | * while primary down, I ran rm -rf / | ||
+ | * a cat now generates the expected file not found error | ||
+ | * brought up primary and started a full --resyncstorage --mirrorgroupid=101 --timestamp=0 | ||
+ | * the nr of files and dirs discovered is as expected lower by the correct values | ||
+ | * when I now search for the EntryIDs obtained before they are gone from / | ||
+ | |||
+ | Nice that it works. | ||
==== Mirror Data ==== | ==== Mirror Data ==== | ||
Line 63: | Line 81: | ||
| | ||
# enable mirroring for data by directory -numTargets needs to be set to max nr of storage servers? | # enable mirroring for data by directory -numTargets needs to be set to max nr of storage servers? | ||
+ | # changed to 11/02/2016: | ||
+ | [root@n7 ~]# beegfs-ctl --setpattern --buddymirror / | ||
[root@n7 ~]# beegfs-ctl --setpattern --buddymirror / | [root@n7 ~]# beegfs-ctl --setpattern --buddymirror / | ||
New chunksize: 524288 | New chunksize: 524288 | ||
Line 123: | Line 143: | ||
* so the important line that tells you that this file is mirrored is "Type: Buddy Mirror" | * so the important line that tells you that this file is mirrored is "Type: Buddy Mirror" | ||
* " | * " | ||
+ | |||
+ | Another note: I changed paths for mirrormd and buddymirror to ''/ | ||
+ | |||
+ | < | ||
+ | |||
+ | [root@cottontail2 ~]# beegfs-net | ||
+ | meta_nodes | ||
+ | ============= | ||
+ | cottontail2 [ID: 250] | ||
+ | | ||
+ | |||
+ | [root@cottontail2 ~]# beegfs-ctl --listnodes --nodetype=meta --details | ||
+ | cottontail2 [ID: 250] | ||
+ | | ||
+ | | ||
+ | ^^^ | ||
+ | |||
+ | </ | ||
+ | |||
==== Quota ==== | ==== Quota ==== | ||
Line 143: | Line 182: | ||
# enable meta mirroring, directory based | # enable meta mirroring, directory based | ||
+ | # change to 11/04/2016: used --createdir to make this home. | ||
+ | [root@n7 ~]# beegfs-ctl --mirrormd / | ||
[root@n7 ~]# beegfs-ctl --mirrormd / | [root@n7 ~]# beegfs-ctl --mirrormd / | ||
Mount: '/ | Mount: '/ |