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/04 15:23] hmeij07 |
cluster:151 [2016/11/10 20:37] hmeij07 [Tuning] |
||
---|---|---|---|
Line 24: | Line 24: | ||
* '' | * '' | ||
+ | |||
+ | ==== Resync Data ==== | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | //If the primary storage target of a buddy group is unreachable, | ||
+ | |||
+ | 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. | ||
+ | |||
+ | So you can full storage content mirror. You'll still need rsnapshots to recover lost data or point in time restores. | ||
==== Mirror Data ==== | ==== Mirror Data ==== | ||
Line 109: | Line 133: | ||
[root@petaltail chroots]# ls -lh / | [root@petaltail chroots]# ls -lh / | ||
-rw-rw-rw- 1 root root 4.9G Apr 7 2014 / | -rw-rw-rw- 1 root root 4.9G Apr 7 2014 / | ||
+ | ^^^^^^^^ | ||
# copy on secondary | # copy on secondary | ||
Line 115: | Line 140: | ||
[root@swallowtail ~]# ls -lh / | [root@swallowtail ~]# ls -lh / | ||
-rw-rw-rw- 1 root root 4.9G Apr 7 2014 / | -rw-rw-rw- 1 root root 4.9G Apr 7 2014 / | ||
+ | ^^^^^^^^ | ||
# seems to work, notice the '' | # seems to work, notice the '' | ||
Line 140: | Line 166: | ||
| | ||
| | ||
+ | ^^^ | ||
</ | </ | ||
Line 154: | Line 180: | ||
* do BEFORE populating XFS file systems | * do BEFORE populating XFS file systems | ||
+ | ==== Meta Backup/ | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | < | ||
+ | |||
+ | # latest tar | ||
+ | rpm -Uvh / | ||
+ | |||
+ | # backup | ||
+ | cd /data; tar czvf / | ||
+ | |||
+ | # restore | ||
+ | cd / | ||
+ | |||
+ | # test | ||
+ | cd /data; diff -r beegfs_meta beegfs_meta.orig | ||
+ | # no results | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ==== Resync Meta ==== | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | * older versions | ||
+ | * new future version will work like storage mirror with HA and self-healing | ||
==== Mirror Meta ==== | ==== Mirror Meta ==== | ||
+ | |||
+ | //Metadata mirroring can currently not be disabled after it has been enabled for a certain directory// | ||
Definitely want Meta content mirrored, that way I can use the n38-n45 nodes with local 15K disk, plus maybe cottontail2 (raid 1 with hot and cold spare). | Definitely want Meta content mirrored, that way I can use the n38-n45 nodes with local 15K disk, plus maybe cottontail2 (raid 1 with hot and cold spare). | ||
Line 182: | Line 239: | ||
[root@sharptail ~]# ssh n38 find / | [root@sharptail ~]# ssh n38 find / | ||
/ | / | ||
- | ^^^^^^ | + | |
# and find | # and find | ||
[root@sharptail ~]# ssh n39 find / | [root@sharptail ~]# ssh n39 find / | ||
Line 259: | Line 316: | ||
* set in / | * set in / | ||
- | * backup | + | * backup/restore/mirror |
- | * attempt a restore | + | * see more towards top this page |
- | * or just snapshot | + | |
* storage server tuning | * storage server tuning |