cluster:150
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| cluster:150 [2016/09/16 13:59] – created hmeij07 | cluster:150 [2016/11/29 19:36] (current) – hmeij07 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| **[[cluster: | **[[cluster: | ||
| + | ==== Rsync Daemon/ | ||
| - | ==== The problem | + | ==== The Problem |
| - | Trying to offload heavy read/write traffic from our file server. I also did a deep information dive to assess if we could afford enterprise level storage. That answer basically means a $42K layout at the low end and up to $70K for the high end. I've detailed the result here [[cluster:139|Enterprise Storage]] | + | Trying to offload heavy read/write traffic from our file server. I also did a deep information dive to assess if we could afford enterprise level storage. That answer basically means a $42K layout at the low end and up to $70K for the high end. I've detailed the result here [[cluster:149|Enterprise Storage]], lots to be gained by doing that but implementing the **Short Term** plan first as detailed on that page. |
| + | Avoiding NFS as much as possible, I'd like to set up '' | ||
| + | Using version 1.3.1 since I've seriously tested that out, from [[http:// | ||
| + | |||
| + | Download source, untar, follow simple instructions in file INSTALL on target server. | ||
| + | |||
| + | Next, and this took some time to dig up, on target server where the snapshots will reside | ||
| + | |||
| + | < | ||
| + | |||
| + | cpan YAML | ||
| + | cpan Lchown | ||
| + | |||
| + | </ | ||
| + | |||
| + | On the source server (where /home is local) configure rsync for daemon mode. Create file ''/ | ||
| + | |||
| + | < | ||
| + | |||
| + | syslog facility = local3 | ||
| + | read only = yes list = yes | ||
| + | auth users = root | ||
| + | secrets file = / | ||
| + | hosts allow = 10.11.103.253 | ||
| + | uid = 0 | ||
| + | gid = 0 | ||
| + | |||
| + | [root] | ||
| + | comment = / | ||
| + | path = / | ||
| + | |||
| + | </ | ||
| + | |||
| + | Create that '' | ||
| + | |||
| + | < | ||
| + | |||
| + | rsync --daemon | ||
| + | |||
| + | </ | ||
| + | |||
| + | Back on target server where snapshots will reside, configure the ''/ | ||
| + | |||
| + | < | ||
| + | |||
| + | [root@cottontail .snapshots]# | ||
| + | config_version | ||
| + | snapshot_root | ||
| + | cmd_cp | ||
| + | cmd_rm | ||
| + | cmd_rsync | ||
| + | cmd_ssh / | ||
| + | cmd_logger | ||
| + | cmd_du | ||
| + | cmd_rsnapshot_diff | ||
| + | cmd_preexec | ||
| + | cmd_postexec | ||
| + | interval | ||
| + | interval | ||
| + | interval | ||
| + | interval | ||
| + | verbose | ||
| + | loglevel | ||
| + | logfile / | ||
| + | lockfile | ||
| + | rsync_short_args | ||
| + | rsync_long_args | ||
| + | du_args -csh | ||
| + | one_fs | ||
| + | link_dest | ||
| + | backup | ||
| + | |||
| + | </ | ||
| + | |||
| + | Couple of notes | ||
| + | * cmd_preexec and cmd_postexec just echo the date to console and start/stop the rsync daemons remotely on source server | ||
| + | * choose to use whole-file to speed things up | ||
| + | * onefs is important | ||
| + | * link_dest is important | ||
| + | * the backup command points to my private IP of source server using the Infiniband network and then points to the module defined in ''/ | ||
| + | |||
| + | Start things up | ||
| + | |||
| + | < | ||
| + | |||
| + | # on target | ||
| + | [root@cottontail ~]# / | ||
| + | |||
| + | # on source | ||
| + | [root@sharptail ~]# lsof -i:873 | ||
| + | COMMAND | ||
| + | rsync 17814 root 3u IPv4 261839487 | ||
| + | rsync 17814 root 5u IPv6 261839488 | ||
| + | rsync 29717 root 6u IPv4 261962741 | ||
| + | |||
| + | |||
| + | # check what rsync is doing | ||
| + | [root@sharptail ~]# strace -p 29717 | ||
| + | Process 29717 attached - interrupt to quit | ||
| + | close(5) | ||
| + | lstat("/ | ||
| + | open("/ | ||
| + | read(5, " | ||
| + | close(5) | ||
| + | lstat("/ | ||
| + | open("/ | ||
| + | CTRL-C | ||
| + | |||
| + | </ | ||
| + | |||
| + | Suggest you debug with a small directory first, /home is 10TB in our case with 40+ million files. | ||
| + | |||
| + | Then remount the user inaccessible area / | ||
| + | |||
| + | < | ||
| + | |||
| + | # / | ||
| + | / | ||
| + | |||
| + | # /etc/fstab content, then mount / | ||
| + | / | ||
| + | localhost:/ | ||
| + | |||
| + | # test | ||
| + | [root@cottontail .snapshots]# | ||
| + | touch: cannot touch `/ | ||
| + | |||
| + | </ | ||
| + | |||
| + | Finally, if you get this error, which is hardly informative, | ||
| + | |||
| + | < | ||
| + | |||
| + | 2016-09-15T11: | ||
| + | |||
| + | </ | ||
| \\ | \\ | ||
| **[[cluster: | **[[cluster: | ||
cluster/150.1474034356.txt.gz · Last modified: (external edit)
