AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题

问题[znapzend](server)

Martin Hope
Crestop
Asked: 2020-07-22 02:12:19 +0800 CST

如何设置 Carton,编译 znapzend 0.20.0?

  • 1

从源代码编译时使用:

# ./configure --prefix=/opt/znapzend-0.20.0
# make 
# make install

我收到此错误: ! Couldn't find module or a distribution Carton

我可以毫无问题地从源代码编译 0.19.1 版本。我现在使用 0.19.1 有一段时间了,我对 znapzend 非常满意!谢谢你所有的工作。当我想升级到 0.20.0 时,我遇到了这个问题。

我正在使用 Ubuntu 20.04。我尝试像这样安装 Carton:

# apt install carton
# carton -v
carton v1.0.34

但是在安装 carton 后,我在编译时仍然遇到同样的错误。

自述文件包含编译版本 0.19.2 的说明,但不包含使用 carton 进行更好的依赖跟踪的版本 0.20.0 的说明。

您能否帮我提供设置 Carton 的说明,以便我可以编译 znapzend 0.20.0?

znapzend
  • 1 个回答
  • 96 Views
Martin Hope
PaladineMishakal
Asked: 2016-06-10 01:09:21 +0800 CST

Znapzend 安装错误

  • 0

我正在尝试在 OmniOS R151014 中安装 znapzend 0.15.7,但出现以下错误:

root@sgtestnas01:/opt# wget https://github.com/oetiker/znapzend/releases/download/v0.15.7/znapzend-0.15.7.tar.gz`
root@sgtestnas01:/opt# tar xzvf znapzend-0.15.7.tar.gz
root@sgtestnas01:/opt# ln -s /opt/znapzend-0.15.7 znapzend
root@sgtestnas01:/opt/znapzend# ./configure --prefix=/opt/znapzend
checking in to see how you are doing... keep fighting man!
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... conftools/install-sh -c -d
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... (cached) yes
checking for perl... /usr/bin/perl
checking for curl... /usr/bin/curl
checking for wget... /usr/bin/wget
checking for pod2man... no
checking for perl version greater than or equal to 5.10.1... ok
checking is perl reasonably complete... yes. ExtUtils::MakeMaker is available
checking if require a c compiler to get perl modules compiled... yes
checking for gcc... /usr/bin/gcc
checking is perls favorite c compiler (gcc) available... yes
checking for grep that handles long lines and -e... /usr/bin/ggrep
checking for gnumake... no
checking for gmake... /usr/bin/gmake
checking for gnu make availablility... /usr/bin/gmake is GNU make
checking the price for bergulian eckels... way to expensive!
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating thirdparty/Makefile
config.status: creating lib/Makefile
config.status: creating init/znapzend.xml
config.status: WARNING:  'init/znapzend.xml.in' seems to ignore the --datarootdir setting

** CONFIGURE DONE **********************************************`

Settings:

  PERL5LIB = not set
  PERL = /usr/bin/perl
  SVCINSTALLDIR = no

The Makefiles use GNU make functionality.
Continue installation with

  /usr/bin/gmake install

root@sgtestnas01:/opt/znapzend# /usr/bin/gmake
Making all in thirdparty
gmake[1]: Entering directory '/opt/znapzend-0.15.7/thirdparty'
  GEN      touch
Successfully installed IO-Socket-IP-0.37
Successfully installed Mojolicious-6.46
Successfully installed Scalar-List-Utils-1.45 (upgraded from 1.25)
Successfully installed Exporter-5.72 (upgraded from 5.66)
Successfully installed IO-Pipely-0.005
Successfully installed Mojo-IOLoop-ForkCall-0.17
Successfully installed Test-Harness-3.36 (upgraded from 3.23)
7 distributions installed
  GEN      touch

gmake[1]: Leaving directory '/opt/znapzend-0.15.7/thirdparty'
Making all in lib
gmake[1]: Entering directory '/opt/znapzend-0.15.7/lib'
gmake[1]: Nothing to be done for 'all'.
gmake[1]: Leaving directory '/opt/znapzend-0.15.7/lib'
gmake[1]: Entering directory '/opt/znapzend-0.15.7'
  GEN      man/znapzend.1

gmake[1]: Leaving directory '/opt/znapzend-0.15.7'

root@sgtestnas01:/opt/znapzend# /usr/bin/gmake install
Making install in thirdparty
gmake[1]: Entering directory '/opt/znapzend-0.15.7/thirdparty'
gmake[2]: Entering directory '/opt/znapzend-0.15.7/thirdparty'
gmake[2]: Nothing to be done for 'install-exec-am'.
gmake[2]: Nothing to be done for 'install-data-am'.
gmake[2]: Leaving directory '/opt/znapzend-0.15.7/thirdparty'
gmake[1]: Leaving directory '/opt/znapzend-0.15.7/thirdparty'`
Making install in lib

gmake[1]: Entering directory '/opt/znapzend-0.15.7/lib'
gmake[2]: Entering directory '/opt/znapzend-0.15.7/lib'
gmake[2]: Nothing to be done for 'install-exec-am'.
 ../conftools/install-sh -c -d '/opt/znapzend/lib'
 /usr/bin/install -c -m 644  ./ZnapZend.pm '/opt/znapzend/lib/.'
/usr/bin/install: './ZnapZend.pm' and '/opt/znapzend/lib/./ZnapZend.pm' are the same file
gmake[2]: *** [install-nobase_dataDATA] Error 1
gmake[2]: Leaving directory '/opt/znapzend-0.15.7/lib'
gmake[1]: *** [install-am] Error 2
gmake[1]: Leaving directory '/opt/znapzend-0.15.7/lib'
gmake: *** [install-recursive] Error 1

我在下面的自述文件中犯了一些错误吗?还是我需要安装一些软件包?

znapzend
  • 1 个回答
  • 158 Views
Martin Hope
joncl
Asked: 2016-04-26 09:11:59 +0800 CST

znapzendzetup create 命令上的“主机密钥验证失败”

  • 1

刚刚开始在Ubuntu 14.04znapzend上编译良好(源机器,因为更新到 Ubuntu 16.04)。目标机器是 Ubuntu 16.04('backupserver')。我已经使用/设置了一个非密码 ssh 密钥对。我可以不用密码就好了。问题是,由于某种原因似乎无法到达备份服务器。mbuffer 在两台机器上都在。这是我在源机器上运行的命令和输出:ssh-keygenssh-copy-id [destination]ssh backupserverznapzend/usr/bin/mbufferznapzendzetup

sudo znapzendzetup create --recursive --mbuffer=/usr/bin/mbuffer --tsformat='%Y-%m-%d-%H%M%S' SRC '1y=>1d' pool/Documents DST '1y=>1d' jon@backupserver:pool/Documents
Host key verification failed.
Host key verification failed.
*** WARNING: executable '/usr/bin/mbuffer' does not exist on jon@backupserver

*** backup plan: pool/Documents ***
dst_0           = jon@backupserver:pool/Documents
dst_0_plan      = 1year=>1day
*** WARNING: destination 'jon@backupserver:pool/Documents' does not exist, will be ignored! ***

enabled         = on
mbuffer         = /usr/bin/mbuffer
mbuffer_size    = 1G
post_znap_cmd   = off
pre_znap_cmd    = off
recursive       = on
src             = pool/Documents
src_plan        = 1year=>1day
tsformat        = %Y-%m-%d-%H%M%S

Do you want to save this backup set [y/N]?

感谢您提供的任何见解!


更新#1

我得到:

Host key verification failed.

或者

Permission denied the ZFS utilities must be run as root.

取决于我是使用 sudo 运行 znapzendzetup,还是在命令中有 --sudo:

sudo znapzendzetup create ...

或者

znapzendzetup create --sudo ...

我将此行添加到 /etc/sudoers(通过 visudo):

jon ALL=(ALL) NOPASSWD:ALL

并在主机和目标机器上执行这一行:

sudo zfs allow -u jon create,mount,send,receive,snapshot,destroy pool/Documents

我可以尝试启用无密码 root 登录,但我知道这是不鼓励的。谢谢参观!


更新#2

我通过更改目标计算机上的 /etc/ssh/sshd_confg 中的这些行来启用远程 root 登录:

#PermitRootLogin prohibit-password
PermitRootLogin yes

然后,在源机器上:

sudo passwd root
su
ssh-keygen
ssh-copy-id BACKUPSERVER

znapzend 命令现在作为 sudo 工作,并且没有 --sudo 参数!

接下来,我启动了一个 znapzend 命令,输出如下:

jon@FILESERVER:~$ sudo znapzend --debug --runonce=pool/Documents
[Wed Apr 27 17:54:42 2016] [info] znapzend (PID=6388) starting up ...
[Wed Apr 27 17:54:42 2016] [info] refreshing backup plans...
[Wed Apr 27 17:54:42 2016] [info] found a valid backup plan for pool/Documents...
[Wed Apr 27 17:54:42 2016] [info] znapzend (PID=6388) initialized -- resuming normal operations.
[Wed Apr 27 17:54:42 2016] [debug] snapshot worker for pool/Documents spawned (6391)
[Wed Apr 27 17:54:42 2016] [info] creating snapshot on pool/Documents
# zfs snapshot pool/Documents@2016-04-27-175442
[Wed Apr 27 17:54:42 2016] [debug] snapshot worker for pool/Documents done (6391)
[Wed Apr 27 17:54:42 2016] [debug] send/receive worker for pool/Documents spawned (6393)
[Wed Apr 27 17:54:42 2016] [info] starting work on backupSet pool/Documents
# zfs list -H -o name -t snapshot -s creation -d 1 pool/Documents
[Wed Apr 27 17:54:42 2016] [debug] cleaning up snapshots on pool/Documents
# zfs destroy pool/Documents@2016-04-27-174027
[Wed Apr 27 17:54:43 2016] [info] done with backupset pool/Documents in 1 seconds
[Wed Apr 27 17:54:43 2016] [debug] send/receive worker for pool/Documents done (6393)

它似乎已经成功运行,但到目前为止,它还没有将数据集备份到目的地。它什么时候复制文件?

另外,仅供参考,我添加了 znapzend 作为服务:

sudo cp ~/znapzend-0.15.5/init/znapzend.service /etc/systemd/system
sudo chown root:root /etc/systemd/system/znapzend.service
systemctl enable znapzend.service
sudo systemctl enable znapzend.service
sudo systemctl start znapzend.service
sudo service znapzend status

谢谢!


更新#3

好的,我现在已经整理好了。我没有在目标机器上使用“root”登录的配置设置,这阻止了发送/接收功能。这是我更新的 znapzendzetup 命令:

sudo znapzendzetup create --mbuffer=/usr/bin/mbuffer --tsformat='%Y-%m-%d-%H%M%S' SRC '7d=>1h,1y=>1d' pool/Documents DST '7d=>1h,1y=>1d' root@BACKUPSERVER:pool/Documents

备份成功完成后:

sudo znapzend --debug --runonce=pool/Documents

感谢这个出色的 ZFS 快照+备份工具!!!

znapzend
  • 2 个回答
  • 681 Views
Martin Hope
Sampsa Suoninen
Asked: 2016-04-21 04:13:16 +0800 CST

如何使用 znapzendsetup 为目标服务器定义 SSH 端口

  • 3

我有一个防火墙服务器通过 ssh 在公共网络上发送数据,但 SSH 端口不是默认的 22。如何将端口配置为 znapzendzetup?

对于 mbuffer 设置端口不是问题,但如果通信未加密,我会觉得通过它发送数据不方便。

ssh znapzend
  • 1 个回答
  • 523 Views
Martin Hope
Tobi Oetiker
Asked: 2015-02-10 05:22:48 +0800 CST

znapzendzetup 创建失败,表明它找不到正在创建的 SRC 文件系统

  • 1

为什么 znapzendzetup 创建失败表明它找不到正在创建的 SRC 文件系统

sudo znapzendzetup create --tsformat='%Y-%m-%dT%H:%M:%SZ' SRC '1min=>10min,5min=>20min' /mnt/test/src DST '5min=>1year' /mnt/test/bak

ERROR: filesystem /mnt/test/src does not exist

注意:这个问题是从 github bug tracker 复制的,因为许多人似乎将 zfs 文件集名称与挂载点混淆了。

znapzend
  • 1 个回答
  • 313 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve